diff --git a/src/healthcareapis/HISTORY.rst b/src/healthcareapis/HISTORY.rst index 2197423f120..243765239f0 100644 --- a/src/healthcareapis/HISTORY.rst +++ b/src/healthcareapis/HISTORY.rst @@ -3,6 +3,23 @@ Release History =============== +0.4.0 +++++++ + +* `az healthcareapis service` Add new argument `--login-servers` to support adding login servers to the service instance. +* `az healthcareapis service` Add new argument `--oci-artifacts` to support specifying open container initiative artifacts. +* `az healthcareapis private-endpoint-connection` Will deprecate argument `--private-link-service-connection-state-actions-required` +* `az healthcareapis private-endpoint-connection` Will deprecate argument `--private-link-service-connection-state-description` +* `az healthcareapis private-endpoint-connection` Will deprecate argument `--private-link-service-connection-state-status` +* `az healthcareapis private-endpoint-connection` Add new argument `--private-link-service-connection-state` to support specifying information about the state of the connection between service consumer and provider. +* Add new subgroups `az healthcareapis workspace` to Manage workspace with healthcareapis. +* Add new subgroups `az healthcareapis workspace dicom-service` to Manage dicom service with healthcareapis. +* Add new subgroups `az healthcareapis workspace fhir-service` to Manage fhir service with healthcareapis. +* Add new subgroups `az healthcareapis workspace iot-connector` to Manage iot connector with healthcareapis. +* Add new subgroups `az healthcareapis workspace iot-connector fhir-destination` to Manage iot connector fhir destination with healthcareapis. +* Add new subgroups `az healthcareapis workspace private-endpoint-connection` to Manage workspace private endpoint connection with healthcareapis. +* Add new subgroups `az healthcareapis workspace private-link-resource` to Manage workspace private link resource with healthcareapis. + 0.3.3 ++++++ diff --git a/src/healthcareapis/azext_healthcareapis/__init__.py b/src/healthcareapis/azext_healthcareapis/__init__.py index be8b3049ad6..be3ebf1f165 100644 --- a/src/healthcareapis/azext_healthcareapis/__init__.py +++ b/src/healthcareapis/azext_healthcareapis/__init__.py @@ -7,13 +7,10 @@ # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- +# pylint: disable=unused-import +import azext_healthcareapis._help from azure.cli.core import AzCommandsLoader -from azext_healthcareapis.generated._help import helps # pylint: disable=unused-import -try: - from azext_healthcareapis.manual._help import helps # pylint: disable=reimported -except ImportError: - pass class HealthcareApisManagementClientCommandsLoader(AzCommandsLoader): @@ -33,8 +30,11 @@ def load_command_table(self, args): try: from azext_healthcareapis.manual.commands import load_command_table as load_command_table_manual load_command_table_manual(self, args) - except ImportError: - pass + except ImportError as e: + if e.name.endswith('manual.commands'): + pass + else: + raise e return self.command_table def load_arguments(self, command): @@ -43,8 +43,11 @@ def load_arguments(self, command): try: from azext_healthcareapis.manual._params import load_arguments as load_arguments_manual load_arguments_manual(self, command) - except ImportError: - pass + except ImportError as e: + if e.name.endswith('manual._params'): + pass + else: + raise e COMMAND_LOADER_CLS = HealthcareApisManagementClientCommandsLoader diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/__init__.py b/src/healthcareapis/azext_healthcareapis/_help.py similarity index 50% rename from src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/__init__.py rename to src/healthcareapis/azext_healthcareapis/_help.py index e7c114c922b..9b93f87a6e9 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/__init__.py +++ b/src/healthcareapis/azext_healthcareapis/_help.py @@ -1,16 +1,20 @@ -# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. # -------------------------------------------------------------------------- - -from ._healthcare_apis_management_client import HealthcareApisManagementClient -__all__ = ['HealthcareApisManagementClient'] - +# pylint: disable=wildcard-import +# pylint: disable=unused-wildcard-import +# pylint: disable=unused-import +from .generated._help import helps # pylint: disable=reimported try: - from ._patch import patch_sdk # type: ignore - patch_sdk() -except ImportError: - pass + from .manual._help import helps # pylint: disable=reimported +except ImportError as e: + if e.name.endswith('manual._help'): + pass + else: + raise e diff --git a/src/healthcareapis/azext_healthcareapis/action.py b/src/healthcareapis/azext_healthcareapis/action.py index d95d53bf711..9b3d0a8a78c 100644 --- a/src/healthcareapis/azext_healthcareapis/action.py +++ b/src/healthcareapis/azext_healthcareapis/action.py @@ -13,5 +13,8 @@ from .generated.action import * # noqa: F403 try: from .manual.action import * # noqa: F403 -except ImportError: - pass +except ImportError as e: + if e.name.endswith('manual.action'): + pass + else: + raise e diff --git a/src/healthcareapis/azext_healthcareapis/azext_metadata.json b/src/healthcareapis/azext_healthcareapis/azext_metadata.json index 7b33e2426b0..3695b0d7077 100644 --- a/src/healthcareapis/azext_healthcareapis/azext_metadata.json +++ b/src/healthcareapis/azext_healthcareapis/azext_metadata.json @@ -1,3 +1,3 @@ { - "azext.minCliCoreVersion": "2.11.0" + "azext.minCliCoreVersion": "2.15.0" } \ No newline at end of file diff --git a/src/healthcareapis/azext_healthcareapis/custom.py b/src/healthcareapis/azext_healthcareapis/custom.py index dbe9d5f9742..885447229d6 100644 --- a/src/healthcareapis/azext_healthcareapis/custom.py +++ b/src/healthcareapis/azext_healthcareapis/custom.py @@ -13,5 +13,8 @@ from .generated.custom import * # noqa: F403 try: from .manual.custom import * # noqa: F403 -except ImportError: - pass +except ImportError as e: + if e.name.endswith('manual.custom'): + pass + else: + raise e diff --git a/src/healthcareapis/azext_healthcareapis/generated/_client_factory.py b/src/healthcareapis/azext_healthcareapis/generated/_client_factory.py index 403d1850df7..31586c5fde7 100644 --- a/src/healthcareapis/azext_healthcareapis/generated/_client_factory.py +++ b/src/healthcareapis/azext_healthcareapis/generated/_client_factory.py @@ -30,3 +30,35 @@ def cf_private_endpoint_connection(cli_ctx, *_): def cf_private_link_resource(cli_ctx, *_): return cf_healthcareapis_cl(cli_ctx).private_link_resources + + +def cf_workspace(cli_ctx, *_): + return cf_healthcareapis_cl(cli_ctx).workspaces + + +def cf_dicom_service(cli_ctx, *_): + return cf_healthcareapis_cl(cli_ctx).dicom_services + + +def cf_iot_connector(cli_ctx, *_): + return cf_healthcareapis_cl(cli_ctx).iot_connectors + + +def cf_fhir_destination(cli_ctx, *_): + return cf_healthcareapis_cl(cli_ctx).fhir_destinations + + +def cf_iot_connector_fhir_destination(cli_ctx, *_): + return cf_healthcareapis_cl(cli_ctx).iot_connector_fhir_destination + + +def cf_fhir_service(cli_ctx, *_): + return cf_healthcareapis_cl(cli_ctx).fhir_services + + +def cf_workspace_private_endpoint_connection(cli_ctx, *_): + return cf_healthcareapis_cl(cli_ctx).workspace_private_endpoint_connections + + +def cf_workspace_private_link_resource(cli_ctx, *_): + return cf_healthcareapis_cl(cli_ctx).workspace_private_link_resources diff --git a/src/healthcareapis/azext_healthcareapis/generated/_help.py b/src/healthcareapis/azext_healthcareapis/generated/_help.py index fa2d93c2eb7..2b27ab9ccb8 100644 --- a/src/healthcareapis/azext_healthcareapis/generated/_help.py +++ b/src/healthcareapis/azext_healthcareapis/generated/_help.py @@ -12,6 +12,11 @@ from knack.help_files import helps +helps['healthcareapis'] = ''' + type: group + short-summary: Manage Healthcare Apis +''' + helps['healthcareapis service'] = """ type: group short-summary: healthcareapis service @@ -58,7 +63,7 @@ offer-throughput: The provisioned throughput for the backing database. key-vault-key-uri: The URI of the customer-managed key for the backing database. - - name: --authentication-configuration + - name: --authentication-configuration -c short-summary: "The authentication configuration for the service instance." long-summary: | Usage: --authentication-configuration authority=XX audience=XX smart-proxy-enabled=XX @@ -87,6 +92,16 @@ consumer. Multiple actions can be specified by using more than one --private-endpoint-connections argument. + - name: --oci-artifacts + short-summary: "The list of Open Container Initiative (OCI) artifacts." + long-summary: | + Usage: --oci-artifacts login-server=XX image-name=XX digest=XX + + login-server: The Azure Container Registry login server. + image-name: The artifact name. + digest: The artifact digest. + + Multiple actions can be specified by using more than one --oci-artifacts argument. examples: - name: Create or Update a service with all parameters text: |- @@ -179,16 +194,39 @@ helps['healthcareapis private-endpoint-connection create'] = """ type: command short-summary: "Update the state of the specified private endpoint connection associated with the service." + parameters: + - name: --private-link-service-connection-state -s + short-summary: "A collection of information about the state of the connection between service consumer and \ +provider." + long-summary: | + Usage: --private-link-service-connection-state status=XX description=XX actions-required=XX + + status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + description: The reason for approval/rejection of the connection. + actions-required: A message indicating if changes on the service provider require any updates on the \ +consumer. examples: - name: PrivateEndpointConnection_CreateOrUpdate text: |- - az healthcareapis private-endpoint-connection create --name "myConnection" --resource-group "rgname" \ + az healthcareapis private-endpoint-connection create --name "myConnection" \ +--private-link-service-connection-state description="Auto-Approved" status="Approved" --resource-group "rgname" \ --resource-name "service1" """ helps['healthcareapis private-endpoint-connection update'] = """ type: command short-summary: "Update the state of the specified private endpoint connection associated with the service." + parameters: + - name: --private-link-service-connection-state -s + short-summary: "A collection of information about the state of the connection between service consumer and \ +provider." + long-summary: | + Usage: --private-link-service-connection-state status=XX description=XX actions-required=XX + + status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + description: The reason for approval/rejection of the connection. + actions-required: A message indicating if changes on the service provider require any updates on the \ +consumer. """ helps['healthcareapis private-endpoint-connection delete'] = """ @@ -294,3 +332,560 @@ az healthcareapis acr reset --resource-group "rgname" \ --resource-name "service1" """ + + +helps['healthcareapis workspace'] = """ + type: group + short-summary: Manage workspace with healthcareapis +""" + +helps['healthcareapis workspace list'] = """ + type: command + short-summary: "Lists all the available workspaces under the specified resource group. And Lists all the available \ +workspaces under the specified subscription." + examples: + - name: Get workspaces by resource group + text: |- + az healthcareapis workspace list --resource-group "testRG" + - name: Get workspaces by subscription + text: |- + az healthcareapis workspace list +""" + +helps['healthcareapis workspace show'] = """ + type: command + short-summary: "Gets the properties of the specified workspace." + examples: + - name: Get workspace + text: |- + az healthcareapis workspace show --resource-group "testRG" --name "workspace1" +""" + +helps['healthcareapis workspace create'] = """ + type: command + short-summary: "Create a workspace resource with the specified parameters." + examples: + - name: Create or update a workspace + text: |- + az healthcareapis workspace create --resource-group "testRG" --location "westus" --name "workspace1" +""" + +helps['healthcareapis workspace update'] = """ + type: command + short-summary: "Patch workspace details." + examples: + - name: Update a workspace + text: |- + az healthcareapis workspace update --resource-group "testRG" --name "workspace1" --tags \ +tagKey="tagValue" +""" + +helps['healthcareapis workspace delete'] = """ + type: command + short-summary: "Deletes a specified workspace." + examples: + - name: Delete a workspace + text: |- + az healthcareapis workspace delete --resource-group "testRG" --name "workspace1" +""" + +helps['healthcareapis workspace wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the healthcareapis workspace is met. + examples: + - name: Pause executing next line of CLI script until the healthcareapis workspace is successfully created. + text: |- + az healthcareapis workspace wait --resource-group "testRG" --name "workspace1" --created + - name: Pause executing next line of CLI script until the healthcareapis workspace is successfully updated. + text: |- + az healthcareapis workspace wait --resource-group "testRG" --name "workspace1" --updated + - name: Pause executing next line of CLI script until the healthcareapis workspace is successfully deleted. + text: |- + az healthcareapis workspace wait --resource-group "testRG" --name "workspace1" --deleted +""" + +helps['healthcareapis workspace dicom-service'] = """ + type: group + short-summary: Manage dicom service with healthcareapis +""" + +helps['healthcareapis workspace dicom-service list'] = """ + type: command + short-summary: "Lists all DICOM Services for the given workspace." + examples: + - name: List dicomservices + text: |- + az healthcareapis workspace dicom-service list --resource-group "testRG" --workspace-name "workspace1" +""" + +helps['healthcareapis workspace dicom-service show'] = """ + type: command + short-summary: "Gets the properties of the specified DICOM Service." + examples: + - name: Get a dicomservice + text: |- + az healthcareapis workspace dicom-service show --name "blue" --resource-group "testRG" --workspace-name \ +"workspace1" +""" + +helps['healthcareapis workspace dicom-service create'] = """ + type: command + short-summary: "Create a DICOM Service resource with the specified parameters." + examples: + - name: Create or update a Dicom Service + text: |- + az healthcareapis workspace dicom-service create --name "blue" --location "westus" --resource-group \ +"testRG" --workspace-name "workspace1" +""" + +helps['healthcareapis workspace dicom-service update'] = """ + type: command + short-summary: "Patch DICOM Service details." + examples: + - name: Update a dicomservice + text: |- + az healthcareapis workspace dicom-service update --name "blue" --tags tagKey="tagValue" \ +--resource-group "testRG" --workspace-name "workspace1" +""" + +helps['healthcareapis workspace dicom-service delete'] = """ + type: command + short-summary: "Deletes a DICOM Service." + examples: + - name: Delete a dicomservice + text: |- + az healthcareapis workspace dicom-service delete --name "blue" --resource-group "testRG" \ +--workspace-name "workspace1" +""" + +helps['healthcareapis workspace dicom-service wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the healthcareapis workspace dicom-service is \ +met. + examples: + - name: Pause executing next line of CLI script until the healthcareapis workspace dicom-service is successfully \ +created. + text: |- + az healthcareapis workspace dicom-service wait --name "blue" --resource-group "testRG" --workspace-name \ +"workspace1" --created + - name: Pause executing next line of CLI script until the healthcareapis workspace dicom-service is successfully \ +updated. + text: |- + az healthcareapis workspace dicom-service wait --name "blue" --resource-group "testRG" --workspace-name \ +"workspace1" --updated + - name: Pause executing next line of CLI script until the healthcareapis workspace dicom-service is successfully \ +deleted. + text: |- + az healthcareapis workspace dicom-service wait --name "blue" --resource-group "testRG" --workspace-name \ +"workspace1" --deleted +""" + +helps['healthcareapis workspace iot-connector'] = """ + type: group + short-summary: Manage iot connector with healthcareapis +""" + +helps['healthcareapis workspace iot-connector list'] = """ + type: command + short-summary: "Lists all IoT Connectors for the given workspace." + examples: + - name: List iotconnectors + text: |- + az healthcareapis workspace iot-connector list --resource-group "testRG" --workspace-name "workspace1" +""" + +helps['healthcareapis workspace iot-connector show'] = """ + type: command + short-summary: "Gets the properties of the specified IoT Connector." + examples: + - name: Get an IoT Connector + text: |- + az healthcareapis workspace iot-connector show --name "blue" --resource-group "testRG" --workspace-name \ +"workspace1" +""" + +helps['healthcareapis workspace iot-connector create'] = """ + type: command + short-summary: "Create an IoT Connector resource with the specified parameters." + parameters: + - name: --ingestion-endpoint-configuration -c + short-summary: "Source configuration." + long-summary: | + Usage: --ingestion-endpoint-configuration event-hub-name=XX consumer-group=XX \ +fully-qualified-event-hub-namespace=XX + + event-hub-name: Event Hub name to connect to. + consumer-group: Consumer group of the event hub to connected to. + fully-qualified-event-hub-namespace: Fully qualified namespace of the Event Hub to connect to. + examples: + - name: Create an IoT Connector + text: |- + az healthcareapis workspace iot-connector create --identity-type "SystemAssigned" --location "westus" --content \ +"{\\"template\\":[{\\"template\\":{\\"deviceIdExpression\\":\\"$.deviceid\\",\\"timestampExpression\\":\\"$.measurement\ +datetime\\",\\"typeMatchExpression\\":\\"$..[?(@heartrate)]\\",\\"typeName\\":\\"heartrate\\",\\"values\\":[{\\"require\ +d\\":\\"true\\",\\"valueExpression\\":\\"$.heartrate\\",\\"valueName\\":\\"hr\\"}]},\\"templateType\\":\\"JsonPathConte\ +nt\\"}],\\"templateType\\":\\"CollectionContent\\"}" --ingestion-endpoint-configuration consumer-group="ConsumerGroupA"\ + event-hub-name="MyEventHubName" fully-qualified-event-hub-namespace="myeventhub.servicesbus.windows.net" --tags \ +additionalProp1="string" additionalProp2="string" additionalProp3="string" --name "blue" --resource-group "testRG" \ +--workspace-name "workspace1" +""" + +helps['healthcareapis workspace iot-connector update'] = """ + type: command + short-summary: "Patch an IoT Connector." + examples: + - name: Patch an IoT Connector + text: |- + az healthcareapis workspace iot-connector update --name "blue" --identity-type "SystemAssigned" --tags \ +additionalProp1="string" additionalProp2="string" additionalProp3="string" --resource-group "testRG" --workspace-name \ +"workspace1" +""" + +helps['healthcareapis workspace iot-connector delete'] = """ + type: command + short-summary: "Deletes an IoT Connector." + examples: + - name: Delete an IoT Connector + text: |- + az healthcareapis workspace iot-connector delete --name "blue" --resource-group "testRG" \ +--workspace-name "workspace1" +""" + +helps['healthcareapis workspace iot-connector wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the healthcareapis workspace iot-connector is \ +met. + examples: + - name: Pause executing next line of CLI script until the healthcareapis workspace iot-connector is successfully \ +created. + text: |- + az healthcareapis workspace iot-connector wait --name "blue" --resource-group "testRG" --workspace-name \ +"workspace1" --created + - name: Pause executing next line of CLI script until the healthcareapis workspace iot-connector is successfully \ +updated. + text: |- + az healthcareapis workspace iot-connector wait --name "blue" --resource-group "testRG" --workspace-name \ +"workspace1" --updated + - name: Pause executing next line of CLI script until the healthcareapis workspace iot-connector is successfully \ +deleted. + text: |- + az healthcareapis workspace iot-connector wait --name "blue" --resource-group "testRG" --workspace-name \ +"workspace1" --deleted +""" + +helps['healthcareapis workspace iot-connector fhir-destination'] = """ + type: group + short-summary: Manage iot connector fhir destination with healthcareapis +""" + +helps['healthcareapis workspace iot-connector fhir-destination list'] = """ + type: command + short-summary: "Lists all FHIR destinations for the given IoT Connector." + examples: + - name: List IoT Connectors + text: |- + az healthcareapis workspace iot-connector fhir-destination list --iot-connector-name "blue" \ +--resource-group "testRG" --workspace-name "workspace1" +""" + +helps['healthcareapis workspace iot-connector fhir-destination show'] = """ + type: command + short-summary: "Gets the properties of the specified Iot Connector FHIR destination." + examples: + - name: Get an IoT Connector destination + text: |- + az healthcareapis workspace iot-connector fhir-destination show --fhir-destination-name "dest1" \ +--iot-connector-name "blue" --resource-group "testRG" --workspace-name "workspace1" +""" + +helps['healthcareapis workspace iot-connector fhir-destination create'] = """ + type: command + short-summary: "Create an IoT Connector FHIR destination resource with the specified parameters." + examples: + - name: Create or update an Iot Connector FHIR destination + text: |- + az healthcareapis workspace iot-connector fhir-destination create --fhir-destination-name "dest1" \ +--iot-connector-name "blue" --location "westus" --content "{\\"template\\":[{\\"template\\":{\\"codes\\":[{\\"code\\":\ +\\"8867-4\\",\\"display\\":\\"Heart rate\\",\\"system\\":\\"http://loinc.org\\"}],\\"periodInterval\\":60,\\"typeName\\\ +":\\"heartrate\\",\\"value\\":{\\"defaultPeriod\\":5000,\\"unit\\":\\"count/min\\",\\"valueName\\":\\"hr\\",\\"valueTyp\ +e\\":\\"SampledData\\"}},\\"templateType\\":\\"CodeValueFhir\\"}],\\"templateType\\":\\"CollectionFhirTemplate\\"}" \ +--fhir-service-resource-id "subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.\ +HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice" --resource-identity-resolution-type "Create" \ +--resource-group "testRG" --workspace-name "workspace1" +""" + +helps['healthcareapis workspace iot-connector fhir-destination update'] = """ + type: command + short-summary: "Update an IoT Connector FHIR destination resource with the specified parameters." +""" + +helps['healthcareapis workspace iot-connector fhir-destination delete'] = """ + type: command + short-summary: "Deletes an IoT Connector FHIR destination." + examples: + - name: Delete an IoT Connector destination + text: |- + az healthcareapis workspace iot-connector fhir-destination delete --fhir-destination-name "dest1" \ +--iot-connector-name "blue" --resource-group "testRG" --workspace-name "workspace1" +""" + +helps['healthcareapis workspace iot-connector fhir-destination wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the healthcareapis workspace iot-connector \ +fhir-destination is met. + examples: + - name: Pause executing next line of CLI script until the healthcareapis workspace iot-connector \ +fhir-destination is successfully created. + text: |- + az healthcareapis workspace iot-connector fhir-destination wait --fhir-destination-name "dest1" \ +--iot-connector-name "blue" --resource-group "testRG" --workspace-name "workspace1" --created + - name: Pause executing next line of CLI script until the healthcareapis workspace iot-connector \ +fhir-destination is successfully updated. + text: |- + az healthcareapis workspace iot-connector fhir-destination wait --fhir-destination-name "dest1" \ +--iot-connector-name "blue" --resource-group "testRG" --workspace-name "workspace1" --updated + - name: Pause executing next line of CLI script until the healthcareapis workspace iot-connector \ +fhir-destination is successfully deleted. + text: |- + az healthcareapis workspace iot-connector fhir-destination wait --fhir-destination-name "dest1" \ +--iot-connector-name "blue" --resource-group "testRG" --workspace-name "workspace1" --deleted +""" + +helps['healthcareapis workspace fhir-service'] = """ + type: group + short-summary: Manage fhir service with healthcareapis +""" + +helps['healthcareapis workspace fhir-service list'] = """ + type: command + short-summary: "Lists all FHIR Services for the given workspace." + examples: + - name: List fhirservices + text: |- + az healthcareapis workspace fhir-service list --resource-group "testRG" --workspace-name "workspace1" +""" + +helps['healthcareapis workspace fhir-service show'] = """ + type: command + short-summary: "Gets the properties of the specified FHIR Service." + examples: + - name: Get a Fhir Service + text: |- + az healthcareapis workspace fhir-service show --name "fhirservices1" --resource-group "testRG" \ +--workspace-name "workspace1" +""" + +helps['healthcareapis workspace fhir-service create'] = """ + type: command + short-summary: "Create a FHIR Service resource with the specified parameters." + parameters: + - name: --access-policies + short-summary: "Fhir Service access policies." + long-summary: | + Usage: --access-policies object-id=XX + + object-id: Required. An Azure AD object ID (User or Apps) that is allowed access to the FHIR service. + + Multiple actions can be specified by using more than one --access-policies argument. + - name: --authentication-configuration -c + short-summary: "Fhir Service authentication configuration." + long-summary: | + Usage: --authentication-configuration authority=XX audience=XX smart-proxy-enabled=XX + + authority: The authority url for the service + audience: The audience url for the service + smart-proxy-enabled: If the SMART on FHIR proxy is enabled + - name: --cors-configuration + short-summary: "Fhir Service Cors configuration." + long-summary: | + Usage: --cors-configuration origins=XX headers=XX methods=XX max-age=XX allow-credentials=XX + + origins: The origins to be allowed via CORS. + headers: The headers to be allowed via CORS. + methods: The methods to be allowed via CORS. + max-age: The max age to be allowed via CORS. + allow-credentials: If credentials are allowed via CORS. + - name: --oci-artifacts + short-summary: "The list of Open Container Initiative (OCI) artifacts." + long-summary: | + Usage: --oci-artifacts login-server=XX image-name=XX digest=XX + + login-server: The Azure Container Registry login server. + image-name: The artifact name. + digest: The artifact digest. + + Multiple actions can be specified by using more than one --oci-artifacts argument. + examples: + - name: Create or update a Fhir Service + text: |- + az healthcareapis workspace fhir-service create --name "fhirservice1" --identity-type "SystemAssigned" --kind \ +"fhir-R4" --location "westus" --access-policies object-id="c487e7d1-3210-41a3-8ccc-e9372b78da47" --access-policies \ +object-id="5b307da8-43d4-492b-8b66-b0294ade872f" --login-servers "test1.azurecr.io" --authentication-configuration \ +audience="https://azurehealthcareapis.com" authority="https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07\ +508dc" smart-proxy-enabled=true --cors-configuration allow-credentials=false headers="*" max-age=1440 methods="DELETE" \ +methods="GET" methods="OPTIONS" methods="PATCH" methods="POST" methods="PUT" origins="*" --export-configuration-storage-account-name \ +"existingStorageAccount" --tags additionalProp1="string" additionalProp2="string" additionalProp3="string" \ +--resource-group "testRG" --workspace-name "workspace1" +""" + +helps['healthcareapis workspace fhir-service update'] = """ + type: command + short-summary: "Patch FHIR Service details." + examples: + - name: Update a Fhir Service + text: |- + az healthcareapis workspace fhir-service update --name "fhirservice1" --tags tagKey="tagValue" \ +--resource-group "testRG" --workspace-name "workspace1" +""" + +helps['healthcareapis workspace fhir-service delete'] = """ + type: command + short-summary: "Deletes a FHIR Service." + examples: + - name: Delete a Fhir Service + text: |- + az healthcareapis workspace fhir-service delete --name "fhirservice1" --resource-group "testRG" \ +--workspace-name "workspace1" +""" + +helps['healthcareapis workspace fhir-service wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the healthcareapis workspace fhir-service is \ +met. + examples: + - name: Pause executing next line of CLI script until the healthcareapis workspace fhir-service is successfully \ +created. + text: |- + az healthcareapis workspace fhir-service wait --name "fhirservices1" --resource-group "testRG" \ +--workspace-name "workspace1" --created + - name: Pause executing next line of CLI script until the healthcareapis workspace fhir-service is successfully \ +updated. + text: |- + az healthcareapis workspace fhir-service wait --name "fhirservices1" --resource-group "testRG" \ +--workspace-name "workspace1" --updated + - name: Pause executing next line of CLI script until the healthcareapis workspace fhir-service is successfully \ +deleted. + text: |- + az healthcareapis workspace fhir-service wait --name "fhirservices1" --resource-group "testRG" \ +--workspace-name "workspace1" --deleted +""" + +helps['healthcareapis workspace private-endpoint-connection'] = """ + type: group + short-summary: Manage workspace private endpoint connection with healthcareapis +""" + +helps['healthcareapis workspace private-endpoint-connection list'] = """ + type: command + short-summary: "Lists all private endpoint connections for a workspace." + examples: + - name: WorkspacePrivateEndpointConnection_List + text: |- + az healthcareapis workspace private-endpoint-connection list --resource-group "testRG" --workspace-name \ +"workspace1" +""" + +helps['healthcareapis workspace private-endpoint-connection show'] = """ + type: command + short-summary: "Gets the specified private endpoint connection associated with the workspace." + examples: + - name: WorkspacePrivateEndpointConnection_GetConnection + text: |- + az healthcareapis workspace private-endpoint-connection show --private-endpoint-connection-name \ +"myConnection" --resource-group "testRG" --workspace-name "workspace1" +""" + +helps['healthcareapis workspace private-endpoint-connection create'] = """ + type: command + short-summary: "Update the state of the specified private endpoint connection associated with the workspace." + parameters: + - name: --private-link-service-connection-state -s + short-summary: "A collection of information about the state of the connection between service consumer and \ +provider." + long-summary: | + Usage: --private-link-service-connection-state status=XX description=XX actions-required=XX + + status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + description: The reason for approval/rejection of the connection. + actions-required: A message indicating if changes on the service provider require any updates on the \ +consumer. + examples: + - name: WorkspacePrivateEndpointConnection_CreateOrUpdate + text: |- + az healthcareapis workspace private-endpoint-connection create --private-endpoint-connection-name \ +"myConnection" --private-link-service-connection-state description="Auto-Approved" status="Approved" --resource-group \ +"testRG" --workspace-name "workspace1" +""" + +helps['healthcareapis workspace private-endpoint-connection update'] = """ + type: command + short-summary: "Update the state of the specified private endpoint connection associated with the workspace." + parameters: + - name: --private-link-service-connection-state -s + short-summary: "A collection of information about the state of the connection between service consumer and \ +provider." + long-summary: | + Usage: --private-link-service-connection-state status=XX description=XX actions-required=XX + + status: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. + description: The reason for approval/rejection of the connection. + actions-required: A message indicating if changes on the service provider require any updates on the \ +consumer. +""" + +helps['healthcareapis workspace private-endpoint-connection delete'] = """ + type: command + short-summary: "Deletes a private endpoint connection." + examples: + - name: WorkspacePrivateEndpointConnections_Delete + text: |- + az healthcareapis workspace private-endpoint-connection delete --private-endpoint-connection-name \ +"myConnection" --resource-group "testRG" --workspace-name "workspace1" +""" + +helps['healthcareapis workspace private-endpoint-connection wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the healthcareapis workspace \ +private-endpoint-connection is met. + examples: + - name: Pause executing next line of CLI script until the healthcareapis workspace private-endpoint-connection \ +is successfully created. + text: |- + az healthcareapis workspace private-endpoint-connection wait --private-endpoint-connection-name \ +"myConnection" --resource-group "testRG" --workspace-name "workspace1" --created + - name: Pause executing next line of CLI script until the healthcareapis workspace private-endpoint-connection \ +is successfully updated. + text: |- + az healthcareapis workspace private-endpoint-connection wait --private-endpoint-connection-name \ +"myConnection" --resource-group "testRG" --workspace-name "workspace1" --updated + - name: Pause executing next line of CLI script until the healthcareapis workspace private-endpoint-connection \ +is successfully deleted. + text: |- + az healthcareapis workspace private-endpoint-connection wait --private-endpoint-connection-name \ +"myConnection" --resource-group "testRG" --workspace-name "workspace1" --deleted +""" + +helps['healthcareapis workspace private-link-resource'] = """ + type: group + short-summary: Manage workspace private link resource with healthcareapis +""" + +helps['healthcareapis workspace private-link-resource list'] = """ + type: command + short-summary: "Gets the private link resources that need to be created for a workspace." + examples: + - name: WorkspacePrivateLinkResources_ListGroupIds + text: |- + az healthcareapis workspace private-link-resource list --resource-group "testRG" --workspace-name \ +"workspace1" +""" + +helps['healthcareapis workspace private-link-resource show'] = """ + type: command + short-summary: "Gets a private link resource that need to be created for a workspace." + examples: + - name: WorkspacePrivateLinkResources_Get + text: |- + az healthcareapis workspace private-link-resource show --group-name "healthcareworkspace" \ +--resource-group "testRG" --workspace-name "workspace1" +""" diff --git a/src/healthcareapis/azext_healthcareapis/generated/_params.py b/src/healthcareapis/azext_healthcareapis/generated/_params.py index 0cdafc863de..bab67f40996 100644 --- a/src/healthcareapis/azext_healthcareapis/generated/_params.py +++ b/src/healthcareapis/azext_healthcareapis/generated/_params.py @@ -16,13 +16,24 @@ resource_group_name_type, get_location_type ) -from azure.cli.core.commands.validators import get_default_location_from_resource_group +from azure.cli.core.commands.validators import ( + get_default_location_from_resource_group, + validate_file_or_dict +) from azext_healthcareapis.action import ( AddAccessPolicies, AddCosmosDbConfiguration, AddAuthenticationConfiguration, AddCorsConfiguration, - AddPrivateEndpointConnections + AddServicesOciArtifacts, + AddPrivateEndpointConnections, + AddPrivateLinkServiceConnectionState, + AddIngestionEndpointConfiguration, + AddFhirservicesAccessPolicies, + AddFhirservicesAuthenticationConfiguration, + AddFhirservicesCorsConfiguration, + AddResourceTypeOverrides, + AddFhirservicesOciArtifacts ) @@ -50,15 +61,23 @@ def load_arguments(self, _): 'instance.') c.argument('cosmos_db_configuration', action=AddCosmosDbConfiguration, nargs='*', help='The settings for the ' 'Cosmos DB database backing the service.') - c.argument('authentication_configuration', action=AddAuthenticationConfiguration, nargs='*', help='The ' - 'authentication configuration for the service instance.') + c.argument('authentication_configuration', options_list=['--authentication-configuration', '-c'], + action=AddAuthenticationConfiguration, nargs='*', + help='The authentication configuration for the service instance.') c.argument('cors_configuration', action=AddCorsConfiguration, nargs='*', help='The settings for the CORS ' 'configuration of the service instance.') c.argument('private_endpoint_connections', action=AddPrivateEndpointConnections, nargs='*', help='The list of ' 'private endpoint connections that are set up for this resource.') c.argument('public_network_access', arg_type=get_enum_type(['Enabled', 'Disabled']), help='Control permission ' 'for data plane traffic coming from public networks while private endpoint is enabled.') - c.argument('export_configuration_storage_account_name', type=str, help='The name of the default export storage ' + c.argument('login_servers', type=str, help='The list of login servers that shall' + 'be added to the service instance.', arg_group='Acr Configuration') + c.argument('oci_artifacts', + action=AddServicesOciArtifacts, nargs='*', + help='The list of Open Container Initiative (OCI) artifacts.', arg_group='Acr Configuration') + c.argument('export_configuration_storage_account_name', + options_list=['--export-configuration-storage-account-name', '-s'], + type=str, help='The name of the default export storage ' 'account.') with self.argument_context('healthcareapis service update') as c: @@ -78,8 +97,8 @@ def load_arguments(self, _): with self.argument_context('healthcareapis operation-result show') as c: c.argument('location_name', type=str, help='The location of the operation.', id_part='name') - c.argument('operation_result_id', type=str, help='The ID of the operation result to get.', id_part='' - 'child_name_1') + c.argument('operation_result_id', type=str, help='The ID of the operation result to get.', + id_part='child_name_1') with self.argument_context('healthcareapis private-endpoint-connection list') as c: c.argument('resource_group_name', resource_group_name_type) @@ -88,51 +107,71 @@ def load_arguments(self, _): with self.argument_context('healthcareapis private-endpoint-connection show') as c: c.argument('resource_group_name', resource_group_name_type) c.argument('resource_name', type=str, help='The name of the service instance.', id_part='name') - c.argument('private_endpoint_connection_name', options_list=['--name', '-n', '--private-endpoint-connection-nam' - 'e'], type=str, help='The name of the private ' - 'endpoint connection associated with the Azure resource', id_part='child_name_1') + c.argument('private_endpoint_connection_name', + options_list=['--name', '-n', '--private-endpoint-connection-name'], + type=str, help='The name of the private endpoint connection associated with the Azure resource', + id_part='child_name_1') with self.argument_context('healthcareapis private-endpoint-connection create') as c: c.argument('resource_group_name', resource_group_name_type) c.argument('resource_name', type=str, help='The name of the service instance.') - c.argument('private_endpoint_connection_name', options_list=['--name', '-n', '--private-endpoint-connection-nam' - 'e'], type=str, help='The name of the private ' - 'endpoint connection associated with the Azure resource') - c.argument('private_link_service_connection_state_status', arg_type=get_enum_type(['Pending', 'Approved', '' - 'Rejected']), help='' - 'Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.') - c.argument('private_link_service_connection_state_description', type=str, help='The reason for ' - 'approval/rejection of the connection.') + c.argument('private_endpoint_connection_name', + options_list=['--name', '-n', '--private-endpoint-connection-name'], + type=str, help='The name of the private endpoint connection associated with the Azure resource') + c.argument('private_link_service_connection_state', + options_list=['--private-link-service-connection-state', '-s'], + action=AddPrivateLinkServiceConnectionState, nargs='*', + help='A collection of information about the state of the connection between service consumer and ' + 'provider.') + c.argument('private_link_service_connection_state_status', + arg_type=get_enum_type(['Pending', 'Approved', 'Rejected']), + help='Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.', + deprecate_info=c.deprecate(redirect='--private-link-service-connection-state')) + c.argument('private_link_service_connection_state_description', type=str, + help='The reason for approval/rejection of the connection.', + deprecate_info=c.deprecate(redirect='--private-link-service-connection-state')) c.argument('private_link_service_connection_state_actions_required', type=str, help='A message indicating if ' - 'changes on the service provider require any updates on the consumer.') + 'changes on the service provider require any updates on the consumer.', + deprecate_info=c.deprecate(redirect='--private-link-service-connection-state')) with self.argument_context('healthcareapis private-endpoint-connection update') as c: c.argument('resource_group_name', resource_group_name_type) c.argument('resource_name', type=str, help='The name of the service instance.', id_part='name') - c.argument('private_endpoint_connection_name', options_list=['--name', '-n', '--private-endpoint-connection-nam' - 'e'], type=str, help='The name of the private ' - 'endpoint connection associated with the Azure resource', id_part='child_name_1') - c.argument('private_link_service_connection_state_status', arg_type=get_enum_type(['Pending', 'Approved', '' - 'Rejected']), help='' - 'Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.') - c.argument('private_link_service_connection_state_description', type=str, help='The reason for ' - 'approval/rejection of the connection.') + c.argument('private_endpoint_connection_name', + options_list=['--name', '-n', '--private-endpoint-connection-name'], + type=str, help='The name of the private endpoint connection associated with the Azure resource', + id_part='child_name_1') + c.argument('private_link_service_connection_state', + options_list=['--private-link-service-connection-state', '-s'], + action=AddPrivateLinkServiceConnectionState, nargs='*', + help='A collection of information about the state of the connection between service consumer and ' + 'provider.') + c.argument('private_link_service_connection_state_status', + arg_type=get_enum_type(['Pending', 'Approved', 'Rejected']), + help='Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.', + deprecate_info=c.deprecate(redirect='--private-link-service-connection-state')) + c.argument('private_link_service_connection_state_description', type=str, + help='The reason for approval/rejection of the connection.', + deprecate_info=c.deprecate(redirect='--private-link-service-connection-state')) c.argument('private_link_service_connection_state_actions_required', type=str, help='A message indicating if ' - 'changes on the service provider require any updates on the consumer.') + 'changes on the service provider require any updates on the consumer.', + deprecate_info=c.deprecate(redirect='--private-link-service-connection-state')) with self.argument_context('healthcareapis private-endpoint-connection delete') as c: c.argument('resource_group_name', resource_group_name_type) c.argument('resource_name', type=str, help='The name of the service instance.', id_part='name') - c.argument('private_endpoint_connection_name', options_list=['--name', '-n', '--private-endpoint-connection-nam' - 'e'], type=str, help='The name of the private ' - 'endpoint connection associated with the Azure resource', id_part='child_name_1') + c.argument('private_endpoint_connection_name', + options_list=['--name', '-n', '--private-endpoint-connection-name'], + type=str, help='The name of the private endpoint connection associated with the Azure resource', + id_part='child_name_1') with self.argument_context('healthcareapis private-endpoint-connection wait') as c: c.argument('resource_group_name', resource_group_name_type) c.argument('resource_name', type=str, help='The name of the service instance.', id_part='name') - c.argument('private_endpoint_connection_name', options_list=['--name', '-n', '--private-endpoint-connection-nam' - 'e'], type=str, help='The name of the private ' - 'endpoint connection associated with the Azure resource', id_part='child_name_1') + c.argument('private_endpoint_connection_name', + options_list=['--name', '-n', '--private-endpoint-connection-name'], type=str, + help='The name of the private endpoint connection associated with the Azure resource', + id_part='child_name_1') with self.argument_context('healthcareapis private-link-resource list') as c: c.argument('resource_group_name', resource_group_name_type) @@ -164,3 +203,388 @@ def load_arguments(self, _): c.argument('resource_group_name', resource_group_name_type) c.argument('resource_name', type=str, help='The name of the service instance.', id_part='name') c.argument('login_servers', type=str, help='The list of login servers to substitute for the existing one.') + + with self.argument_context('healthcareapis workspace list') as c: + c.argument('resource_group_name', resource_group_name_type) + + with self.argument_context('healthcareapis workspace show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', options_list=['--name', '-n', '--workspace-name'], type=str, help='The name of ' + 'workspace resource.', id_part='name') + + with self.argument_context('healthcareapis workspace create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', options_list=['--name', '-n', '--workspace-name'], type=str, help='The name of ' + 'workspace resource.') + c.argument('tags', tags_type) + c.argument('etag', type=str, help='An etag associated with the resource, used for optimistic concurrency when ' + 'editing it.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('public_network_access', arg_type=get_enum_type(['Enabled', 'Disabled']), help='Control permission ' + 'for data plane traffic coming from public networks while private endpoint is enabled.') + + with self.argument_context('healthcareapis workspace update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', options_list=['--name', '-n', '--workspace-name'], type=str, help='The name of ' + 'workspace resource.', id_part='name') + c.argument('tags', tags_type) + + with self.argument_context('healthcareapis workspace delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', options_list=['--name', '-n', '--workspace-name'], type=str, help='The name of ' + 'workspace resource.', id_part='name') + + with self.argument_context('healthcareapis workspace wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', options_list=['--name', '-n', '--workspace-name'], type=str, help='The name of ' + 'workspace resource.', id_part='name') + + with self.argument_context('healthcareapis workspace dicom-service list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.') + + with self.argument_context('healthcareapis workspace dicom-service show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('dicom_service_name', options_list=['--name', '-n', '--dicom-service-name'], type=str, help='The ' + 'name of DICOM Service resource.', id_part='child_name_1') + + with self.argument_context('healthcareapis workspace dicom-service create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.') + c.argument('dicom_service_name', options_list=['--name', '-n', '--dicom-service-name'], type=str, help='The ' + 'name of DICOM Service resource.') + c.argument('tags', tags_type) + c.argument('etag', type=str, help='An etag associated with the resource, used for optimistic concurrency when ' + 'editing it.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('identity_type', + arg_type=get_enum_type(['None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned']), + help='Type of identity being specified, currently SystemAssigned and None are allowed.', + arg_group='Identity') + c.argument('user_assigned_identities', options_list=['--user-assigned-identities', '-i'], + type=validate_file_or_dict, help='The set of user assigned identities ' + 'associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids ' + 'in the form: \'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microso' + 'ft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty ' + 'objects ({}) in requests. Expected value: json-string/json-file/@json-file.', + arg_group='Identity') + c.argument('public_network_access', arg_type=get_enum_type(['Enabled', 'Disabled']), help='Control permission ' + 'for data plane traffic coming from public networks while private endpoint is enabled.') + + with self.argument_context('healthcareapis workspace dicom-service update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('dicom_service_name', options_list=['--name', '-n', '--dicom-service-name'], type=str, help='The ' + 'name of DICOM Service resource.', id_part='child_name_1') + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('tags', tags_type) + c.argument('identity_type', + arg_type=get_enum_type(['None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned']), + help='Type of identity being specified, currently SystemAssigned and None are allowed.', + arg_group='Identity') + c.argument('user_assigned_identities', options_list=['--user-assigned-identities', '-i'], + type=validate_file_or_dict, help='The set of user assigned identities ' + 'associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids ' + 'in the form: \'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microso' + 'ft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty ' + 'objects ({}) in requests. Expected value: json-string/json-file/@json-file.', + arg_group='Identity') + + with self.argument_context('healthcareapis workspace dicom-service delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('dicom_service_name', options_list=['--name', '-n', '--dicom-service-name'], type=str, help='The ' + 'name of DICOM Service resource.', id_part='child_name_1') + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + + with self.argument_context('healthcareapis workspace dicom-service wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('dicom_service_name', options_list=['--name', '-n', '--dicom-service-name'], type=str, help='The ' + 'name of DICOM Service resource.', id_part='child_name_1') + + with self.argument_context('healthcareapis workspace iot-connector list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.') + + with self.argument_context('healthcareapis workspace iot-connector show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('iot_connector_name', options_list=['--name', '-n', '--iot-connector-name'], type=str, help='The ' + 'name of IoT Connector resource.', id_part='child_name_1') + + with self.argument_context('healthcareapis workspace iot-connector create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.') + c.argument('iot_connector_name', options_list=['--name', '-n', '--iot-connector-name'], type=str, help='The ' + 'name of IoT Connector resource.') + c.argument('tags', tags_type) + c.argument('etag', type=str, help='An etag associated with the resource, used for optimistic concurrency when ' + 'editing it.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('identity_type', + arg_type=get_enum_type(['None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned']), + help='Type of identity being specified, currently SystemAssigned and None are allowed.', + arg_group='Identity') + c.argument('user_assigned_identities', options_list=['--user-assigned-identities', '-i'], + type=validate_file_or_dict, help='The set of user assigned identities ' + 'associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids ' + 'in the form: \'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microso' + 'ft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty ' + 'objects ({}) in requests. Expected value: json-string/json-file/@json-file.', + arg_group='Identity') + c.argument('ingestion_endpoint_configuration', + options_list=['--ingestion-endpoint-configuration', '-c'], + action=AddIngestionEndpointConfiguration, nargs='*', help='Source configuration.') + c.argument('content', type=validate_file_or_dict, help='The mapping. Expected value: ' + 'json-string/json-file/@json-file.', arg_group='Device Mapping') + + with self.argument_context('healthcareapis workspace iot-connector update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('iot_connector_name', options_list=['--name', '-n', '--iot-connector-name'], type=str, help='The ' + 'name of IoT Connector resource.', id_part='child_name_1') + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('tags', tags_type) + c.argument('identity_type', + arg_type=get_enum_type(['None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned']), + help='Type of identity being specified, currently SystemAssigned and None are allowed.', + arg_group='Identity') + c.argument('user_assigned_identities', options_list=['--user-assigned-identities', '-i'], + type=validate_file_or_dict, help='The set of user assigned identities ' + 'associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids ' + 'in the form: \'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microso' + 'ft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty ' + 'objects ({}) in requests. Expected value: json-string/json-file/@json-file.', + arg_group='Identity') + + with self.argument_context('healthcareapis workspace iot-connector delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('iot_connector_name', options_list=['--name', '-n', '--iot-connector-name'], type=str, help='The ' + 'name of IoT Connector resource.', id_part='child_name_1') + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + + with self.argument_context('healthcareapis workspace iot-connector wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('iot_connector_name', options_list=['--name', '-n', '--iot-connector-name'], type=str, help='The ' + 'name of IoT Connector resource.', id_part='child_name_1') + + with self.argument_context('healthcareapis workspace iot-connector fhir-destination list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.') + c.argument('iot_connector_name', type=str, help='The name of IoT Connector resource.') + + with self.argument_context('healthcareapis workspace iot-connector fhir-destination show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('iot_connector_name', type=str, help='The name of IoT Connector resource.', id_part='child_name_1') + c.argument('fhir_destination_name', type=str, help='The name of IoT Connector FHIR destination resource.', + id_part='child_name_2') + + with self.argument_context('healthcareapis workspace iot-connector fhir-destination create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.') + c.argument('iot_connector_name', type=str, help='The name of IoT Connector resource.') + c.argument('fhir_destination_name', type=str, help='The name of IoT Connector FHIR destination resource.') + c.argument('etag', type=str, help='An etag associated with the resource, used for optimistic concurrency when ' + 'editing it.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('resource_identity_resolution_type', + options_list=['--resource-identity-resolution-type', '-t'], + arg_type=get_enum_type(['Create', 'Lookup']), + help='Determines how resource identity is resolved on the destination.') + c.argument('fhir_service_resource_id', + options_list=['--fhir-service-resource-id', '-r'], + type=str, help='Fully qualified resource id of the FHIR service to connect to.') + c.argument('content', type=validate_file_or_dict, help='The mapping. Expected value: ' + 'json-string/json-file/@json-file.', arg_group='Fhir Mapping') + + with self.argument_context('healthcareapis workspace iot-connector fhir-destination update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('iot_connector_name', type=str, help='The name of IoT Connector resource.', id_part='child_name_1') + c.argument('fhir_destination_name', type=str, help='The name of IoT Connector FHIR destination resource.', + id_part='child_name_2') + c.argument('etag', type=str, help='An etag associated with the resource, used for optimistic concurrency when ' + 'editing it.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('resource_identity_resolution_type', + options_list=['--resource-identity-resolution-type', '-t'], + arg_type=get_enum_type(['Create', 'Lookup']), + help='Determines how resource identity is resolved on the destination.') + c.argument('fhir_service_resource_id', + options_list=['--fhir-service-resource-id', '-r'], + type=str, help='Fully qualified resource id of the FHIR service to connect to.') + c.argument('content', type=validate_file_or_dict, help='The mapping. Expected value: ' + 'json-string/json-file/@json-file.', arg_group='Fhir Mapping') + c.ignore('iot_fhir_destination') + + with self.argument_context('healthcareapis workspace iot-connector fhir-destination delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('iot_connector_name', type=str, help='The name of IoT Connector resource.', id_part='child_name_1') + c.argument('fhir_destination_name', type=str, help='The name of IoT Connector FHIR destination resource.', + id_part='child_name_2') + + with self.argument_context('healthcareapis workspace iot-connector fhir-destination wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('iot_connector_name', type=str, help='The name of IoT Connector resource.', id_part='child_name_1') + c.argument('fhir_destination_name', type=str, help='The name of IoT Connector FHIR destination resource.', + id_part='child_name_2') + + with self.argument_context('healthcareapis workspace fhir-service list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.') + + with self.argument_context('healthcareapis workspace fhir-service show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('fhir_service_name', options_list=['--name', '-n', '--fhir-service-name'], type=str, help='The name ' + 'of FHIR Service resource.', id_part='child_name_1') + + with self.argument_context('healthcareapis workspace fhir-service create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.') + c.argument('fhir_service_name', options_list=['--name', '-n', '--fhir-service-name'], type=str, help='The name ' + 'of FHIR Service resource.') + c.argument('tags', tags_type) + c.argument('etag', type=str, help='An etag associated with the resource, used for optimistic concurrency when ' + 'editing it.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('identity_type', + arg_type=get_enum_type(['None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned']), + help='Type of identity being specified, currently SystemAssigned and None are allowed.', + arg_group='Identity') + c.argument('user_assigned_identities', options_list=['--user-assigned-identities', '-i'], + type=validate_file_or_dict, help='The set of user assigned identities ' + 'associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids ' + 'in the form: \'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microso' + 'ft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty ' + 'objects ({}) in requests. Expected value: json-string/json-file/@json-file.', + arg_group='Identity') + c.argument('kind', arg_type=get_enum_type(['fhir-Stu3', 'fhir-R4']), help='The kind of the service.') + c.argument('access_policies', action=AddFhirservicesAccessPolicies, nargs='*', help='Fhir Service access ' + 'policies.') + c.argument('authentication_configuration', options_list=['--authentication-configuration', '-c'], + action=AddFhirservicesAuthenticationConfiguration, nargs='*', + help='Fhir Service authentication configuration.') + c.argument('cors_configuration', action=AddFhirservicesCorsConfiguration, nargs='*', help='Fhir Service Cors ' + 'configuration.') + c.argument('public_network_access', arg_type=get_enum_type(['Enabled', 'Disabled']), help='Control permission ' + 'for data plane traffic coming from public networks while private endpoint is enabled.') + c.argument('default', arg_type=get_enum_type(['no-version', 'versioned', 'versioned-update']), help='The ' + 'default value for tracking history across all resources.', arg_group='Resource Version Policy ' + 'Configuration') + c.argument('resource_type_overrides', options_list=['--resource-type-overrides', '-r'], + action=AddResourceTypeOverrides, nargs='*', help='A list of FHIR ' + 'Resources and their version policy overrides. Expect value: KEY1=VALUE1 KEY2=VALUE2 ...', + arg_group='Resource Version Policy Configuration') + c.argument('export_configuration_storage_account_name', + options_list=['--export-configuration-storage-account-name', '-s'], + type=str, help='The name of the default export storage account.', + arg_group='Export Configuration') + c.argument('login_servers', nargs='*', help='The list of the Azure container registry login servers.', + arg_group='Acr Configuration') + c.argument('oci_artifacts', action=AddFhirservicesOciArtifacts, nargs='*', help='The list of Open Container ' + 'Initiative (OCI) artifacts.', arg_group='Acr Configuration') + + with self.argument_context('healthcareapis workspace fhir-service update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('fhir_service_name', options_list=['--name', '-n', '--fhir-service-name'], type=str, help='The name ' + 'of FHIR Service resource.', id_part='child_name_1') + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('tags', tags_type) + c.argument('identity_type', + arg_type=get_enum_type(['None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned']), + help='Type of identity being specified, currently SystemAssigned and None are allowed.', + arg_group='Identity') + c.argument('user_assigned_identities', options_list=['--user-assigned-identities', '-i'], + type=validate_file_or_dict, help='The set of user assigned identities ' + 'associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids ' + 'in the form: \'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microso' + 'ft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty ' + 'objects ({}) in requests. Expected value: json-string/json-file/@json-file.', + arg_group='Identity') + + with self.argument_context('healthcareapis workspace fhir-service delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('fhir_service_name', options_list=['--name', '-n', '--fhir-service-name'], type=str, help='The name ' + 'of FHIR Service resource.', id_part='child_name_1') + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + + with self.argument_context('healthcareapis workspace fhir-service wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('fhir_service_name', options_list=['--name', '-n', '--fhir-service-name'], type=str, help='The name ' + 'of FHIR Service resource.', id_part='child_name_1') + + with self.argument_context('healthcareapis workspace private-endpoint-connection list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.') + + with self.argument_context('healthcareapis workspace private-endpoint-connection show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('private_endpoint_connection_name', + options_list=['--name', '-n', '--private-endpoint-connection-name'], + type=str, help='The name of the private endpoint connection ' + 'associated with the Azure resource', id_part='child_name_1') + + with self.argument_context('healthcareapis workspace private-endpoint-connection create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.') + c.argument('private_endpoint_connection_name', + options_list=['--name', '-n', '--private-endpoint-connection-name'], + type=str, help='The name of the private endpoint connection ' + 'associated with the Azure resource') + c.argument('private_link_service_connection_state', + options_list=['--private-link-service-connection-state', '-s'], + action=AddPrivateLinkServiceConnectionState, nargs='*', + help='A collection of information about the state of the connection between service consumer and ' + 'provider.') + + with self.argument_context('healthcareapis workspace private-endpoint-connection update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('private_endpoint_connection_name', + options_list=['--name', '-n', '--private-endpoint-connection-name'], + type=str, help='The name of the private endpoint connection ' + 'associated with the Azure resource', id_part='child_name_1') + c.argument('private_link_service_connection_state', + options_list=['--private-link-service-connection-state', '-s'], + action=AddPrivateLinkServiceConnectionState, nargs='*', + help='A collection of information about the state of the connection between service consumer and ' + 'provider.') + c.ignore('properties') + + with self.argument_context('healthcareapis workspace private-endpoint-connection delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('private_endpoint_connection_name', + options_list=['--name', '-n', '--private-endpoint-connection-name'], + type=str, help='The name of the private endpoint connection ' + 'associated with the Azure resource', id_part='child_name_1') + + with self.argument_context('healthcareapis workspace private-endpoint-connection wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('private_endpoint_connection_name', + options_list=['--name', '-n', '--private-endpoint-connection-name'], + type=str, help='The name of the private endpoint connection ' + 'associated with the Azure resource', id_part='child_name_1') + + with self.argument_context('healthcareapis workspace private-link-resource list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.') + + with self.argument_context('healthcareapis workspace private-link-resource show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('workspace_name', type=str, help='The name of workspace resource.', id_part='name') + c.argument('group_name', type=str, help='The name of the private link resource group.', + id_part='child_name_1') diff --git a/src/healthcareapis/azext_healthcareapis/generated/action.py b/src/healthcareapis/azext_healthcareapis/generated/action.py index 10d9d68a277..9ada65143a8 100644 --- a/src/healthcareapis/azext_healthcareapis/generated/action.py +++ b/src/healthcareapis/azext_healthcareapis/generated/action.py @@ -7,8 +7,13 @@ # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- + + # pylint: disable=protected-access +# pylint: disable=no-self-use + + import argparse from collections import defaultdict from knack.util import CLIError @@ -19,7 +24,7 @@ def __call__(self, parser, namespace, values, option_string=None): action = self.get_action(values, option_string) super(AddAccessPolicies, self).__call__(parser, namespace, action, option_string) - def get_action(self, values, option_string): # pylint: disable=no-self-use + def get_action(self, values, option_string): try: properties = defaultdict(list) for (k, v) in (x.split('=', 1) for x in values): @@ -33,6 +38,12 @@ def get_action(self, values, option_string): # pylint: disable=no-self-use v = properties[k] if kl == 'object-id': d['object_id'] = v[0] + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter access-policies. All possible keys are: object-id' + .format(k) + ) + return d @@ -41,7 +52,7 @@ def __call__(self, parser, namespace, values, option_string=None): action = self.get_action(values, option_string) namespace.cosmos_db_configuration = action - def get_action(self, values, option_string): # pylint: disable=no-self-use + def get_action(self, values, option_string): try: properties = defaultdict(list) for (k, v) in (x.split('=', 1) for x in values): @@ -57,6 +68,12 @@ def get_action(self, values, option_string): # pylint: disable=no-self-use d['offer_throughput'] = v[0] elif kl == 'key-vault-key-uri': d['key_vault_key_uri'] = v[0] + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter cosmos-db-configuration. All possible keys are:' + ' offer-throughput, key-vault-key-uri'.format(k) + ) + return d @@ -65,7 +82,7 @@ def __call__(self, parser, namespace, values, option_string=None): action = self.get_action(values, option_string) namespace.authentication_configuration = action - def get_action(self, values, option_string): # pylint: disable=no-self-use + def get_action(self, values, option_string): try: properties = defaultdict(list) for (k, v) in (x.split('=', 1) for x in values): @@ -83,6 +100,12 @@ def get_action(self, values, option_string): # pylint: disable=no-self-use d['audience'] = v[0] elif kl == 'smart-proxy-enabled': d['smart_proxy_enabled'] = v[0] + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter authentication-configuration. All possible keys are:' + ' authority, audience, smart-proxy-enabled'.format(k) + ) + return d @@ -91,7 +114,7 @@ def __call__(self, parser, namespace, values, option_string=None): action = self.get_action(values, option_string) namespace.cors_configuration = action - def get_action(self, values, option_string): # pylint: disable=no-self-use + def get_action(self, values, option_string): try: properties = defaultdict(list) for (k, v) in (x.split('=', 1) for x in values): @@ -113,6 +136,42 @@ def get_action(self, values, option_string): # pylint: disable=no-self-use d['max_age'] = v[0] elif kl == 'allow-credentials': d['allow_credentials'] = v[0] + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter cors-configuration. All possible keys are: origins,' + ' headers, methods, max-age, allow-credentials'.format(k) + ) + return d + + +class AddServicesOciArtifacts(argparse._AppendAction): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + super(AddServicesOciArtifacts, self).__call__(parser, namespace, action, option_string) + + def get_action(self, values, option_string): + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'login-server': + d['login_server'] = v[0] + elif kl == 'image-name': + d['image_name'] = v[0] + elif kl == 'digest': + d['digest'] = v[0] + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter oci-artifacts. All possible keys are: login-server,' + ' image-name, digest'.format(k) + ) return d @@ -140,3 +199,209 @@ def get_action(self, values, option_string): # pylint: disable=no-self-use elif kl == 'actions-required': d['actions_required'] = v[0] return d + + +class AddPrivateLinkServiceConnectionState(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.private_link_service_connection_state = action + + def get_action(self, values, option_string): + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'status': + d['status'] = v[0] + elif kl == 'description': + d['description'] = v[0] + elif kl == 'actions-required': + d['actions_required'] = v[0] + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter private-link-service-connection-state. All possible' + ' keys are: status, description, actions-required'.format(k) + ) + return d + + +class AddIngestionEndpointConfiguration(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.ingestion_endpoint_configuration = action + + def get_action(self, values, option_string): + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'event-hub-name': + d['event_hub_name'] = v[0] + elif kl == 'consumer-group': + d['consumer_group'] = v[0] + elif kl == 'fully-qualified-event-hub-namespace': + d['fully_qualified_event_hub_namespace'] = v[0] + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter ingestion-endpoint-configuration. All possible keys' + ' are: event-hub-name, consumer-group, fully-qualified-event-hub-namespace'.format(k) + ) + return d + + +class AddFhirservicesAccessPolicies(argparse._AppendAction): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + super(AddFhirservicesAccessPolicies, self).__call__(parser, namespace, action, option_string) + + def get_action(self, values, option_string): + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'object-id': + d['object_id'] = v[0] + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter access-policies. All possible keys are: object-id' + .format(k) + ) + return d + + +class AddFhirservicesAuthenticationConfiguration(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.authentication_configuration = action + + def get_action(self, values, option_string): + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'authority': + d['authority'] = v[0] + elif kl == 'audience': + d['audience'] = v[0] + elif kl == 'smart-proxy-enabled': + d['smart_proxy_enabled'] = v[0] + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter authentication-configuration. All possible keys are:' + ' authority, audience, smart-proxy-enabled'.format(k) + ) + return d + + +class AddFhirservicesCorsConfiguration(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.cors_configuration = action + + def get_action(self, values, option_string): + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'origins': + d['origins'] = v + elif kl == 'headers': + d['headers'] = v + elif kl == 'methods': + d['methods'] = v + elif kl == 'max-age': + d['max_age'] = v[0] + elif kl == 'allow-credentials': + d['allow_credentials'] = v[0] + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter cors-configuration. All possible keys are: origins,' + ' headers, methods, max-age, allow-credentials'.format(k) + ) + return d + + +class AddResourceTypeOverrides(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.resource_type_overrides = action + + def get_action(self, values, option_string): + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + v = properties[k] + d[k] = v[0] + return d + + +class AddFhirservicesOciArtifacts(argparse._AppendAction): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + super(AddFhirservicesOciArtifacts, self).__call__(parser, namespace, action, option_string) + + def get_action(self, values, option_string): + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'login-server': + d['login_server'] = v[0] + elif kl == 'image-name': + d['image_name'] = v[0] + elif kl == 'digest': + d['digest'] = v[0] + else: + raise CLIError( + 'Unsupported Key {} is provided for parameter oci-artifacts. All possible keys are: login-server,' + ' image-name, digest'.format(k) + ) + return d diff --git a/src/healthcareapis/azext_healthcareapis/generated/commands.py b/src/healthcareapis/azext_healthcareapis/generated/commands.py index e5ea9509633..71abb65801d 100644 --- a/src/healthcareapis/azext_healthcareapis/generated/commands.py +++ b/src/healthcareapis/azext_healthcareapis/generated/commands.py @@ -9,19 +9,105 @@ # -------------------------------------------------------------------------- # pylint: disable=too-many-statements # pylint: disable=too-many-locals +# pylint: disable=bad-continuation +# pylint: disable=line-too-long from azure.cli.core.commands import CliCommandType +from azext_healthcareapis.generated._client_factory import ( + cf_service, + cf_private_endpoint_connection, + cf_private_link_resource, + cf_workspace, + cf_dicom_service, + cf_iot_connector, + cf_fhir_destination, + cf_iot_connector_fhir_destination, + cf_fhir_service, + cf_workspace_private_endpoint_connection, + cf_workspace_private_link_resource, + cf_operation_result, +) + + +healthcareapis_operation_result = CliCommandType( + operations_tmpl='azext_healthcareapis.vendored_sdks.healthcareapis.operations._operation_results_operations#OperationResultsOperations.{}', + client_factory=cf_operation_result, +) + + +healthcareapis_private_endpoint_connection = CliCommandType( + operations_tmpl='azext_healthcareapis.vendored_sdks.healthcareapis.operations._private_endpoint_connections_operations#PrivateEndpointConnectionsOperations.{}', + client_factory=cf_private_endpoint_connection, +) + + +healthcareapis_private_link_resource = CliCommandType( + operations_tmpl='azext_healthcareapis.vendored_sdks.healthcareapis.operations._private_link_resources_operations#PrivateLinkResourcesOperations.{}', + client_factory=cf_private_link_resource, +) + + +healthcareapis_service = CliCommandType( + operations_tmpl=( + 'azext_healthcareapis.vendored_sdks.healthcareapis.operations._services_operations#ServicesOperations.{}' + ), + client_factory=cf_service, +) + + +healthcareapis_workspace = CliCommandType( + operations_tmpl=( + 'azext_healthcareapis.vendored_sdks.healthcareapis.operations._workspaces_operations#WorkspacesOperations.{}' + ), + client_factory=cf_workspace, +) + + +healthcareapis_dicom_service = CliCommandType( + operations_tmpl='azext_healthcareapis.vendored_sdks.healthcareapis.operations._dicom_services_operations#DicomServicesOperations.{}', + client_factory=cf_dicom_service, +) + + +healthcareapis_fhir_service = CliCommandType( + operations_tmpl='azext_healthcareapis.vendored_sdks.healthcareapis.operations._fhir_services_operations#FhirServicesOperations.{}', + client_factory=cf_fhir_service, +) + + +healthcareapis_iot_connector = CliCommandType( + operations_tmpl='azext_healthcareapis.vendored_sdks.healthcareapis.operations._iot_connectors_operations#IotConnectorsOperations.{}', + client_factory=cf_iot_connector, +) + + +healthcareapis_fhir_destination = CliCommandType( + operations_tmpl='azext_healthcareapis.vendored_sdks.healthcareapis.operations._fhir_destinations_operations#FhirDestinationsOperations.{}', + client_factory=cf_fhir_destination, +) + + +healthcareapis_iot_connector_fhir_destination = CliCommandType( + operations_tmpl='azext_healthcareapis.vendored_sdks.healthcareapis.operations._iot_connector_fhir_destination_operations#IotConnectorFhirDestinationOperations.{}', + client_factory=cf_iot_connector_fhir_destination, +) + + +healthcareapis_workspace_private_endpoint_connection = CliCommandType( + operations_tmpl='azext_healthcareapis.vendored_sdks.healthcareapis.operations._workspace_private_endpoint_connections_operations#WorkspacePrivateEndpointConnectionsOperations.{}', + client_factory=cf_workspace_private_endpoint_connection, +) + + +healthcareapis_workspace_private_link_resource = CliCommandType( + operations_tmpl='azext_healthcareapis.vendored_sdks.healthcareapis.operations._workspace_private_link_resources_operations#WorkspacePrivateLinkResourcesOperations.{}', + client_factory=cf_workspace_private_link_resource, +) def load_command_table(self, _): - from azext_healthcareapis.generated._client_factory import cf_service - healthcareapis_service = CliCommandType( - operations_tmpl='azext_healthcareapis.vendored_sdks.healthcareapis.operations._service_operations#ServiceOperat' - 'ions.{}', - client_factory=cf_service) - with self.command_group('healthcareapis service', healthcareapis_service, client_factory=cf_service, - is_experimental=True) as g: + with self.command_group('healthcareapis service', healthcareapis_service, client_factory=cf_service) as g: g.custom_command('list', 'healthcareapis_service_list') g.custom_show_command('show', 'healthcareapis_service_show') g.custom_command('create', 'healthcareapis_service_create', supports_no_wait=True) @@ -29,29 +115,19 @@ def load_command_table(self, _): g.custom_command('delete', 'healthcareapis_service_delete', supports_no_wait=True, confirmation=True) g.custom_wait_command('wait', 'healthcareapis_service_show') - with self.command_group('healthcareapis acr', healthcareapis_service, client_factory=cf_service, - is_experimental=True) as g: + # save these commands for no breaking change + with self.command_group('healthcareapis acr', healthcareapis_service, client_factory=cf_service) as g: g.custom_command('list', 'healthcareapis_acr_list') g.custom_command('add', 'healthcareapis_acr_add', supports_no_wait=False) g.custom_command('reset', 'healthcareapis_acr_reset', supports_no_wait=False) g.custom_command('remove', 'healthcareapis_acr_remove', supports_no_wait=False) - from azext_healthcareapis.generated._client_factory import cf_operation_result - healthcareapis_operation_result = CliCommandType( - operations_tmpl='azext_healthcareapis.vendored_sdks.healthcareapis.operations._operation_result_operations#Oper' - 'ationResultOperations.{}', - client_factory=cf_operation_result) with self.command_group('healthcareapis operation-result', healthcareapis_operation_result, - client_factory=cf_operation_result, is_experimental=True) as g: + client_factory=cf_operation_result) as g: g.custom_show_command('show', 'healthcareapis_operation_result_show') - from azext_healthcareapis.generated._client_factory import cf_private_endpoint_connection - healthcareapis_private_endpoint_connection = CliCommandType( - operations_tmpl='azext_healthcareapis.vendored_sdks.healthcareapis.operations._private_endpoint_connection_oper' - 'ations#PrivateEndpointConnectionOperations.{}', - client_factory=cf_private_endpoint_connection) with self.command_group('healthcareapis private-endpoint-connection', healthcareapis_private_endpoint_connection, - client_factory=cf_private_endpoint_connection, is_experimental=True) as g: + client_factory=cf_private_endpoint_connection) as g: g.custom_command('list', 'healthcareapis_private_endpoint_connection_list') g.custom_show_command('show', 'healthcareapis_private_endpoint_connection_show') g.custom_command('create', 'healthcareapis_private_endpoint_connection_create', supports_no_wait=True) @@ -60,12 +136,81 @@ def load_command_table(self, _): confirmation=True) g.custom_wait_command('wait', 'healthcareapis_private_endpoint_connection_show') - from azext_healthcareapis.generated._client_factory import cf_private_link_resource - healthcareapis_private_link_resource = CliCommandType( - operations_tmpl='azext_healthcareapis.vendored_sdks.healthcareapis.operations._private_link_resource_operations' - '#PrivateLinkResourceOperations.{}', - client_factory=cf_private_link_resource) with self.command_group('healthcareapis private-link-resource', healthcareapis_private_link_resource, - client_factory=cf_private_link_resource, is_experimental=True) as g: + client_factory=cf_private_link_resource) as g: g.custom_command('list', 'healthcareapis_private_link_resource_list') g.custom_show_command('show', 'healthcareapis_private_link_resource_show') + + with self.command_group('healthcareapis workspace', healthcareapis_workspace, client_factory=cf_workspace) as g: + g.custom_command('list', 'healthcareapis_workspace_list') + g.custom_show_command('show', 'healthcareapis_workspace_show') + g.custom_command('create', 'healthcareapis_workspace_create', supports_no_wait=True) + g.custom_command('update', 'healthcareapis_workspace_update', supports_no_wait=True) + g.custom_command('delete', 'healthcareapis_workspace_delete', supports_no_wait=True, confirmation=True) + g.custom_wait_command('wait', 'healthcareapis_workspace_show') + + with self.command_group('healthcareapis workspace dicom-service', healthcareapis_dicom_service, + client_factory=cf_dicom_service) as g: + g.custom_command('list', 'healthcareapis_workspace_dicom_service_list') + g.custom_show_command('show', 'healthcareapis_workspace_dicom_service_show') + g.custom_command('create', 'healthcareapis_workspace_dicom_service_create', supports_no_wait=True) + g.custom_command('update', 'healthcareapis_workspace_dicom_service_update', supports_no_wait=True) + g.custom_command('delete', 'healthcareapis_workspace_dicom_service_delete', + supports_no_wait=True, confirmation=True) + g.custom_wait_command('wait', 'healthcareapis_workspace_dicom_service_show') + + with self.command_group('healthcareapis workspace fhir-service', healthcareapis_fhir_service, + client_factory=cf_fhir_service) as g: + g.custom_command('list', 'healthcareapis_workspace_fhir_service_list') + g.custom_show_command('show', 'healthcareapis_workspace_fhir_service_show') + g.custom_command('create', 'healthcareapis_workspace_fhir_service_create', supports_no_wait=True) + g.custom_command('update', 'healthcareapis_workspace_fhir_service_update', supports_no_wait=True) + g.custom_command('delete', 'healthcareapis_workspace_fhir_service_delete', supports_no_wait=True, + confirmation=True) + g.custom_wait_command('wait', 'healthcareapis_workspace_fhir_service_show') + + with self.command_group('healthcareapis workspace iot-connector', healthcareapis_iot_connector, + client_factory=cf_iot_connector) as g: + g.custom_command('list', 'healthcareapis_workspace_iot_connector_list') + g.custom_show_command('show', 'healthcareapis_workspace_iot_connector_show') + g.custom_command('create', 'healthcareapis_workspace_iot_connector_create', supports_no_wait=True) + g.custom_command('update', 'healthcareapis_workspace_iot_connector_update', supports_no_wait=True) + g.custom_command('delete', 'healthcareapis_workspace_iot_connector_delete', supports_no_wait=True, + confirmation=True) + g.custom_wait_command('wait', 'healthcareapis_workspace_iot_connector_show') + + with self.command_group('healthcareapis workspace iot-connector fhir-destination', healthcareapis_fhir_destination, + client_factory=cf_fhir_destination,) as g: + g.custom_command('list', 'healthcareapis_workspace_iot_connector_fhir_destination_list') + + with self.command_group('healthcareapis workspace iot-connector fhir-destination', + healthcareapis_iot_connector_fhir_destination, + client_factory=cf_iot_connector_fhir_destination,) as g: + g.custom_show_command('show', 'healthcareapis_workspace_iot_connector_fhir_destination_show') + g.custom_command('create', 'healthcareapis_workspace_iot_connector_fhir_destination_create', + supports_no_wait=True) + g.generic_update_command('update', supports_no_wait=True, + custom_func_name='healthcareapis_workspace_iot_connector_fhir_destination_update', + setter_arg_name='iot_fhir_destination', setter_name='begin_create_or_update') + g.custom_command('delete', 'healthcareapis_workspace_iot_connector_fhir_destination_delete', + supports_no_wait=True, confirmation=True) + g.custom_wait_command('wait', 'healthcareapis_workspace_iot_connector_fhir_destination_show') + + with self.command_group('healthcareapis workspace private-endpoint-connection', + healthcareapis_workspace_private_endpoint_connection, + client_factory=cf_workspace_private_endpoint_connection) as g: + g.custom_command('list', 'healthcareapis_workspace_private_endpoint_connection_list') + g.custom_show_command('show', 'healthcareapis_workspace_private_endpoint_connection_show') + g.custom_command('create', 'healthcareapis_workspace_private_endpoint_connection_create', supports_no_wait=True) + g.generic_update_command('update', supports_no_wait=True, + custom_func_name='healthcareapis_workspace_private_endpoint_connection_update', + setter_arg_name='properties', setter_name='begin_create_or_update') + g.custom_command('delete', 'healthcareapis_workspace_private_endpoint_connection_delete', supports_no_wait=True, + confirmation=True) + g.custom_wait_command('wait', 'healthcareapis_workspace_private_endpoint_connection_show') + + with self.command_group('healthcareapis workspace private-link-resource', + healthcareapis_workspace_private_link_resource, + client_factory=cf_workspace_private_link_resource) as g: + g.custom_command('list', 'healthcareapis_workspace_private_link_resource_list') + g.custom_show_command('show', 'healthcareapis_workspace_private_link_resource_show') diff --git a/src/healthcareapis/azext_healthcareapis/generated/custom.py b/src/healthcareapis/azext_healthcareapis/generated/custom.py index 3bd15bfb1c0..fcdc789ba8d 100644 --- a/src/healthcareapis/azext_healthcareapis/generated/custom.py +++ b/src/healthcareapis/azext_healthcareapis/generated/custom.py @@ -8,8 +8,78 @@ # regenerated. # -------------------------------------------------------------------------- # pylint: disable=too-many-lines +# pylint: disable=unused-argument from azure.cli.core.util import sdk_no_wait +from ..vendored_sdks.healthcareapis import models + + +def healthcareapis_acr_list(client, + resource_group_name, + resource_name): + return client.get(resource_group_name=resource_group_name, + resource_name=resource_name).properties.acr_configuration + + +def healthcareapis_acr_add(client, + resource_group_name, + resource_name, + login_servers=None, + no_wait=False): + service_description = client.get(resource_group_name=resource_group_name, + resource_name=resource_name) + if not login_servers: + return service_description + + new_login_servers = service_description.properties.acr_configuration.login_servers + for login_server in login_servers.split(): + if login_server not in new_login_servers: + new_login_servers.append(login_server) + + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + resource_name=resource_name, + service_description=service_description) + + +def healthcareapis_acr_remove(client, + resource_group_name, + resource_name, + login_servers=None, + no_wait=False): + service_description = client.get(resource_group_name=resource_group_name, + resource_name=resource_name) + if not login_servers: + return service_description + + new_login_servers = service_description.properties.acr_configuration.login_servers + for login_server in login_servers.split(): + if login_server in new_login_servers: + new_login_servers.remove(login_server) + + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + resource_name=resource_name, + service_description=service_description) + + +def healthcareapis_acr_reset(client, + resource_group_name, + resource_name, + login_servers=None, + no_wait=False): + service_description = client.get(resource_group_name=resource_group_name, + resource_name=resource_name) + login_servers = login_servers.split() if login_servers else [] + service_description.properties.acr_configuration.login_servers = login_servers + + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + resource_name=resource_name, + service_description=service_description) def healthcareapis_service_list(client, @@ -40,31 +110,49 @@ def healthcareapis_service_create(client, cors_configuration=None, private_endpoint_connections=None, public_network_access=None, + login_servers=None, + oci_artifacts=None, export_configuration_storage_account_name=None, no_wait=False): - - properties = { - 'access_policies': access_policies, - 'cosmos_db_configuration': cosmos_db_configuration, - 'authentication_configuration': authentication_configuration, - 'cors_configuration': cors_configuration, - 'private_endpoint_connections': private_endpoint_connections, - 'public_network_access': public_network_access, - 'export_configuration_storage_account_name': export_configuration_storage_account_name - } - - service_description = { - 'name': resource_name, - 'kind': kind, - 'location': location, - 'tags': tags, - 'etag': etag, - 'identity_type': identity_type, - 'properties': properties - } - - return sdk_no_wait(no_wait, - client.create_or_update, + service_description = {} + service_description['kind'] = kind + service_description['location'] = location + if tags is not None: + service_description['tags'] = tags + if etag is not None: + service_description['etag'] = etag + service_description['identity'] = {} + if identity_type is not None: + service_description['identity']['type'] = identity_type + if len(service_description['identity']) == 0: + del service_description['identity'] + service_description['properties'] = {} + if access_policies is not None: + service_description['properties']['access_policies'] = access_policies + if cosmos_db_configuration is not None: + service_description['properties']['cosmos_db_configuration'] = cosmos_db_configuration + if authentication_configuration is not None: + service_description['properties']['authentication_configuration'] = authentication_configuration + if cors_configuration is not None: + service_description['properties']['cors_configuration'] = cors_configuration + if private_endpoint_connections is not None: + service_description['properties']['private_endpoint_connections'] = private_endpoint_connections + if public_network_access is not None: + service_description['properties']['public_network_access'] = public_network_access + service_description['properties']['acr_configuration'] = {} + if login_servers is not None: + service_description['properties']['acr_configuration']['login_servers'] = login_servers + if oci_artifacts is not None: + service_description['properties']['acr_configuration']['oci_artifacts'] = oci_artifacts + if len(service_description['properties']['acr_configuration']) == 0: + del service_description['properties']['acr_configuration'] + service_description['properties']['export_configuration'] = {} + if export_configuration_storage_account_name is not None: + service_description['properties']['export_configuration']['storage_account_name'] = export_configuration_storage_account_name + if len(service_description['properties']['export_configuration']) == 0: + del service_description['properties']['export_configuration'] + return sdk_no_wait(no_wait, + client.begin_create_or_update, resource_group_name=resource_group_name, resource_name=resource_name, service_description=service_description) @@ -76,13 +164,16 @@ def healthcareapis_service_update(client, tags=None, public_network_access=None, no_wait=False): - + service_patch_description = {} + if tags is not None: + service_patch_description['tags'] = tags + if public_network_access is not None: + service_patch_description['public_network_access'] = public_network_access return sdk_no_wait(no_wait, - client.update, + client.begin_update, resource_group_name=resource_group_name, resource_name=resource_name, - tags=tags, - public_network_access=public_network_access) + service_patch_description=service_patch_description) def healthcareapis_service_delete(client, @@ -90,7 +181,7 @@ def healthcareapis_service_delete(client, resource_name, no_wait=False): return sdk_no_wait(no_wait, - client.delete, + client.begin_delete, resource_group_name=resource_group_name, resource_name=resource_name) @@ -122,36 +213,65 @@ def healthcareapis_private_endpoint_connection_create(client, resource_group_name, resource_name, private_endpoint_connection_name, + private_link_service_connection_state=None, private_link_service_connection_state_status=None, private_link_service_connection_state_description=None, private_link_service_connection_state_actions_required=None, no_wait=False): + properties = {} + if private_link_service_connection_state is not None: + properties['private_link_service_connection_state'] = private_link_service_connection_state + elif private_link_service_connection_state_status or \ + private_link_service_connection_state_description or \ + private_link_service_connection_state_actions_required: + properties['private_link_service_connection_state'] = {} + if private_link_service_connection_state_status: + properties['private_link_service_connection_state']['status'] = private_link_service_connection_state_status + if private_link_service_connection_state_description: + properties['private_link_service_connection_state'][ + 'description'] = private_link_service_connection_state_description + if private_link_service_connection_state_actions_required: + properties['private_link_service_connection_state'][ + 'actions_required'] = private_link_service_connection_state_actions_required + return sdk_no_wait(no_wait, client.begin_create_or_update, resource_group_name=resource_group_name, resource_name=resource_name, private_endpoint_connection_name=private_endpoint_connection_name, - status=private_link_service_connection_state_status, - description=private_link_service_connection_state_description, - actions_required=private_link_service_connection_state_actions_required) + properties=properties) def healthcareapis_private_endpoint_connection_update(client, resource_group_name, resource_name, private_endpoint_connection_name, + private_link_service_connection_state=None, private_link_service_connection_state_status=None, private_link_service_connection_state_description=None, private_link_service_connection_state_actions_required=None, no_wait=False): + properties = {} + if private_link_service_connection_state is not None: + properties['private_link_service_connection_state'] = private_link_service_connection_state + elif private_link_service_connection_state_status or \ + private_link_service_connection_state_description or \ + private_link_service_connection_state_actions_required: + properties['private_link_service_connection_state'] = {} + if private_link_service_connection_state_status: + properties['private_link_service_connection_state']['status'] = private_link_service_connection_state_status + if private_link_service_connection_state_description: + properties['private_link_service_connection_state'][ + 'description'] = private_link_service_connection_state_description + if private_link_service_connection_state_actions_required: + properties['private_link_service_connection_state'][ + 'actions_required'] = private_link_service_connection_state_actions_required return sdk_no_wait(no_wait, client.begin_create_or_update, resource_group_name=resource_group_name, resource_name=resource_name, private_endpoint_connection_name=private_endpoint_connection_name, - status=private_link_service_connection_state_status, - description=private_link_service_connection_state_description, - actions_required=private_link_service_connection_state_actions_required) + properties=properties) def healthcareapis_private_endpoint_connection_delete(client, @@ -182,69 +302,536 @@ def healthcareapis_private_link_resource_show(client, group_name=group_name) -def healthcareapis_acr_list(client, - resource_group_name, - resource_name): +def healthcareapis_workspace_list(client, + resource_group_name=None): + if resource_group_name: + return client.list_by_resource_group(resource_group_name=resource_group_name) + return client.list_by_subscription() + + +def healthcareapis_workspace_show(client, + resource_group_name, + workspace_name): return client.get(resource_group_name=resource_group_name, - resource_name=resource_name).properties.acr_configuration + workspace_name=workspace_name) + + +def healthcareapis_workspace_create(client, + resource_group_name, + workspace_name, + tags=None, + etag=None, + location=None, + public_network_access=None, + no_wait=False): + workspace = {} + if tags is not None: + workspace['tags'] = tags + if etag is not None: + workspace['etag'] = etag + if location is not None: + workspace['location'] = location + workspace['properties'] = {} + if public_network_access is not None: + workspace['properties']['public_network_access'] = public_network_access + if len(workspace['properties']) == 0: + del workspace['properties'] + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + workspace=workspace) + + +def healthcareapis_workspace_update(client, + resource_group_name, + workspace_name, + tags=None, + no_wait=False): + workspace_patch_resource = {} + if tags is not None: + workspace_patch_resource['tags'] = tags + return sdk_no_wait(no_wait, + client.begin_update, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + workspace_patch_resource=workspace_patch_resource) -def healthcareapis_acr_add(client, - resource_group_name, - resource_name, - login_servers=None, - no_wait=False): - service_description = client.get(resource_group_name=resource_group_name, - resource_name=resource_name) - if not login_servers: - return service_description +def healthcareapis_workspace_delete(client, + resource_group_name, + workspace_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + workspace_name=workspace_name) - new_login_servers = service_description.properties.acr_configuration.login_servers - for login_server in login_servers.split(): - if login_server not in new_login_servers: - new_login_servers.append(login_server) +def healthcareapis_workspace_dicom_service_list(client, + resource_group_name, + workspace_name): + return client.list_by_workspace(resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def healthcareapis_workspace_dicom_service_show(client, + resource_group_name, + workspace_name, + dicom_service_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + dicom_service_name=dicom_service_name) + + +def healthcareapis_workspace_dicom_service_create(client, + resource_group_name, + workspace_name, + dicom_service_name, + tags=None, + etag=None, + location=None, + identity_type=None, + user_assigned_identities=None, + public_network_access=None, + no_wait=False): + dicomservice = {} + if tags is not None: + dicomservice['tags'] = tags + if etag is not None: + dicomservice['etag'] = etag + if location is not None: + dicomservice['location'] = location + dicomservice['identity'] = {} + if identity_type is not None: + dicomservice['identity']['type'] = identity_type + if user_assigned_identities is not None: + dicomservice['identity']['user_assigned_identities'] = user_assigned_identities + if len(dicomservice['identity']) == 0: + del dicomservice['identity'] + if public_network_access is not None: + dicomservice['public_network_access'] = public_network_access return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, - resource_name=resource_name, - service_description=service_description) + workspace_name=workspace_name, + dicom_service_name=dicom_service_name, + dicomservice=dicomservice) + + +def healthcareapis_workspace_dicom_service_update(client, + resource_group_name, + dicom_service_name, + workspace_name, + tags=None, + identity_type=None, + user_assigned_identities=None, + no_wait=False): + dicomservice_patch_resource = {} + if tags is not None: + dicomservice_patch_resource['tags'] = tags + dicomservice_patch_resource['identity'] = {} + if identity_type is not None: + dicomservice_patch_resource['identity']['type'] = identity_type + if user_assigned_identities is not None: + dicomservice_patch_resource['identity']['user_assigned_identities'] = user_assigned_identities + if len(dicomservice_patch_resource['identity']) == 0: + del dicomservice_patch_resource['identity'] + return sdk_no_wait(no_wait, + client.begin_update, + resource_group_name=resource_group_name, + dicom_service_name=dicom_service_name, + workspace_name=workspace_name, + dicomservice_patch_resource=dicomservice_patch_resource) -def healthcareapis_acr_remove(client, - resource_group_name, - resource_name, - login_servers=None, - no_wait=False): - service_description = client.get(resource_group_name=resource_group_name, - resource_name=resource_name) - if not login_servers: - return service_description +def healthcareapis_workspace_dicom_service_delete(client, + resource_group_name, + dicom_service_name, + workspace_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + dicom_service_name=dicom_service_name, + workspace_name=workspace_name) - new_login_servers = service_description.properties.acr_configuration.login_servers - for login_server in login_servers.split(): - if login_server in new_login_servers: - new_login_servers.remove(login_server) +def healthcareapis_workspace_iot_connector_list(client, + resource_group_name, + workspace_name): + return client.list_by_workspace(resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def healthcareapis_workspace_iot_connector_show(client, + resource_group_name, + workspace_name, + iot_connector_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + iot_connector_name=iot_connector_name) + + +def healthcareapis_workspace_iot_connector_create(client, + resource_group_name, + workspace_name, + iot_connector_name, + tags=None, + etag=None, + location=None, + identity_type=None, + user_assigned_identities=None, + ingestion_endpoint_configuration=None, + content=None, + no_wait=False): + iot_connector = {} + if tags is not None: + iot_connector['tags'] = tags + if etag is not None: + iot_connector['etag'] = etag + if location is not None: + iot_connector['location'] = location + iot_connector['identity'] = {} + if identity_type is not None: + iot_connector['identity']['type'] = identity_type + if user_assigned_identities is not None: + iot_connector['identity']['user_assigned_identities'] = user_assigned_identities + if len(iot_connector['identity']) == 0: + del iot_connector['identity'] + if ingestion_endpoint_configuration is not None: + iot_connector['ingestion_endpoint_configuration'] = ingestion_endpoint_configuration + iot_connector['device_mapping'] = {} + if content is not None: + iot_connector['device_mapping']['content'] = content + if len(iot_connector['device_mapping']) == 0: + del iot_connector['device_mapping'] return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, - resource_name=resource_name, - service_description=service_description) + workspace_name=workspace_name, + iot_connector_name=iot_connector_name, + iot_connector=iot_connector) + + +def healthcareapis_workspace_iot_connector_update(client, + resource_group_name, + iot_connector_name, + workspace_name, + tags=None, + identity_type=None, + user_assigned_identities=None, + no_wait=False): + iot_connector_patch_resource = {} + if tags is not None: + iot_connector_patch_resource['tags'] = tags + iot_connector_patch_resource['identity'] = {} + if identity_type is not None: + iot_connector_patch_resource['identity']['type'] = identity_type + if user_assigned_identities is not None: + iot_connector_patch_resource['identity']['user_assigned_identities'] = user_assigned_identities + if len(iot_connector_patch_resource['identity']) == 0: + del iot_connector_patch_resource['identity'] + return sdk_no_wait(no_wait, + client.begin_update, + resource_group_name=resource_group_name, + iot_connector_name=iot_connector_name, + workspace_name=workspace_name, + iot_connector_patch_resource=iot_connector_patch_resource) -def healthcareapis_acr_reset(client, - resource_group_name, - resource_name, - login_servers=None, - no_wait=False): - service_description = client.get(resource_group_name=resource_group_name, - resource_name=resource_name) - login_servers = login_servers.split() if login_servers else [] - service_description.properties.acr_configuration.login_servers = login_servers +def healthcareapis_workspace_iot_connector_delete(client, + resource_group_name, + iot_connector_name, + workspace_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + iot_connector_name=iot_connector_name, + workspace_name=workspace_name) + + +def healthcareapis_workspace_iot_connector_fhir_destination_list(client, + resource_group_name, + workspace_name, + iot_connector_name): + return client.list_by_iot_connector(resource_group_name=resource_group_name, + workspace_name=workspace_name, + iot_connector_name=iot_connector_name) + +def healthcareapis_workspace_iot_connector_fhir_destination_show(client, + resource_group_name, + workspace_name, + iot_connector_name, + fhir_destination_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + iot_connector_name=iot_connector_name, + fhir_destination_name=fhir_destination_name) + + +def healthcareapis_workspace_iot_connector_fhir_destination_create(client, + resource_group_name, + workspace_name, + iot_connector_name, + fhir_destination_name, + resource_identity_resolution_type, + fhir_service_resource_id, + etag=None, + location=None, + content=None, + no_wait=False): + iot_fhir_destination = {} + if etag is not None: + iot_fhir_destination['etag'] = etag + if location is not None: + iot_fhir_destination['location'] = location + iot_fhir_destination['resource_identity_resolution_type'] = resource_identity_resolution_type + iot_fhir_destination['fhir_service_resource_id'] = fhir_service_resource_id + iot_fhir_destination['fhir_mapping'] = {} + if content is not None: + iot_fhir_destination['fhir_mapping']['content'] = content + if len(iot_fhir_destination['fhir_mapping']) == 0: + del iot_fhir_destination['fhir_mapping'] return sdk_no_wait(no_wait, - client.create_or_update, + client.begin_create_or_update, resource_group_name=resource_group_name, - resource_name=resource_name, - service_description=service_description) + workspace_name=workspace_name, + iot_connector_name=iot_connector_name, + fhir_destination_name=fhir_destination_name, + iot_fhir_destination=iot_fhir_destination) + + +def healthcareapis_workspace_iot_connector_fhir_destination_update(instance, + resource_group_name, + workspace_name, + iot_connector_name, + fhir_destination_name, + resource_identity_resolution_type, + fhir_service_resource_id, + etag=None, + location=None, + content=None, + no_wait=False): + if etag is not None: + instance.etag = etag + if location is not None: + instance.location = location + instance.resource_identity_resolution_type = resource_identity_resolution_type + instance.fhir_service_resource_id = fhir_service_resource_id + if content is not None: + instance.fhir_mapping.content = content + return instance + + +def healthcareapis_workspace_iot_connector_fhir_destination_delete(client, + resource_group_name, + workspace_name, + iot_connector_name, + fhir_destination_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + iot_connector_name=iot_connector_name, + fhir_destination_name=fhir_destination_name) + + +def healthcareapis_workspace_fhir_service_list(client, + resource_group_name, + workspace_name): + return client.list_by_workspace(resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def healthcareapis_workspace_fhir_service_show(client, + resource_group_name, + workspace_name, + fhir_service_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + fhir_service_name=fhir_service_name) + + +def healthcareapis_workspace_fhir_service_create(client, + resource_group_name, + workspace_name, + fhir_service_name, + tags=None, + etag=None, + location=None, + identity_type=None, + user_assigned_identities=None, + kind=None, + access_policies=None, + authentication_configuration=None, + cors_configuration=None, + public_network_access=None, + default=None, + resource_type_overrides=None, + export_configuration_storage_account_name=None, + login_servers=None, + oci_artifacts=None, + no_wait=False): + fhirservice = {} + if tags is not None: + fhirservice['tags'] = tags + if etag is not None: + fhirservice['etag'] = etag + if location is not None: + fhirservice['location'] = location + fhirservice['identity'] = {} + if identity_type is not None: + fhirservice['identity']['type'] = identity_type + if user_assigned_identities is not None: + fhirservice['identity']['user_assigned_identities'] = user_assigned_identities + if len(fhirservice['identity']) == 0: + del fhirservice['identity'] + if kind is not None: + fhirservice['kind'] = kind + if access_policies is not None: + fhirservice['access_policies'] = access_policies + if authentication_configuration is not None: + fhirservice['authentication_configuration'] = authentication_configuration + if cors_configuration is not None: + fhirservice['cors_configuration'] = cors_configuration + if public_network_access is not None: + fhirservice['public_network_access'] = public_network_access + fhirservice['resource_version_policy_configuration'] = {} + if default is not None: + fhirservice['resource_version_policy_configuration']['default'] = default + if resource_type_overrides is not None: + fhirservice['resource_version_policy_configuration']['resource_type_overrides'] = resource_type_overrides + if len(fhirservice['resource_version_policy_configuration']) == 0: + del fhirservice['resource_version_policy_configuration'] + fhirservice['export_configuration'] = {} + if export_configuration_storage_account_name is not None: + fhirservice['export_configuration']['storage_account_name'] = export_configuration_storage_account_name + if len(fhirservice['export_configuration']) == 0: + del fhirservice['export_configuration'] + fhirservice['acr_configuration'] = {} + if login_servers is not None: + fhirservice['acr_configuration']['login_servers'] = login_servers + if oci_artifacts is not None: + fhirservice['acr_configuration']['oci_artifacts'] = oci_artifacts + if len(fhirservice['acr_configuration']) == 0: + del fhirservice['acr_configuration'] + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + fhir_service_name=fhir_service_name, + fhirservice=fhirservice) + + +def healthcareapis_workspace_fhir_service_update(client, + resource_group_name, + fhir_service_name, + workspace_name, + tags=None, + identity_type=None, + user_assigned_identities=None, + no_wait=False): + fhirservice_patch_resource = {} + if tags is not None: + fhirservice_patch_resource['tags'] = tags + fhirservice_patch_resource['identity'] = {} + if identity_type is not None: + fhirservice_patch_resource['identity']['type'] = identity_type + if user_assigned_identities is not None: + fhirservice_patch_resource['identity']['user_assigned_identities'] = user_assigned_identities + if len(fhirservice_patch_resource['identity']) == 0: + del fhirservice_patch_resource['identity'] + return sdk_no_wait(no_wait, + client.begin_update, + resource_group_name=resource_group_name, + fhir_service_name=fhir_service_name, + workspace_name=workspace_name, + fhirservice_patch_resource=fhirservice_patch_resource) + + +def healthcareapis_workspace_fhir_service_delete(client, + resource_group_name, + fhir_service_name, + workspace_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + fhir_service_name=fhir_service_name, + workspace_name=workspace_name) + + +def healthcareapis_workspace_private_endpoint_connection_list(client, + resource_group_name, + workspace_name): + return client.list_by_workspace(resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def healthcareapis_workspace_private_endpoint_connection_show(client, + resource_group_name, + workspace_name, + private_endpoint_connection_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name) + + +def healthcareapis_workspace_private_endpoint_connection_create(client, + resource_group_name, + workspace_name, + private_endpoint_connection_name, + private_link_service_connection_state=None, + no_wait=False): + properties = {} + if private_link_service_connection_state is not None: + properties['private_link_service_connection_state'] = private_link_service_connection_state + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name, + properties=properties) + + +def healthcareapis_workspace_private_endpoint_connection_update(instance, + resource_group_name, + workspace_name, + private_endpoint_connection_name, + private_link_service_connection_state=None, + no_wait=False): + if private_link_service_connection_state is not None: + instance.private_link_service_connection_state = private_link_service_connection_state + return instance + + +def healthcareapis_workspace_private_endpoint_connection_delete(client, + resource_group_name, + workspace_name, + private_endpoint_connection_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name) + + +def healthcareapis_workspace_private_link_resource_list(client, + resource_group_name, + workspace_name): + return client.list_by_workspace(resource_group_name=resource_group_name, + workspace_name=workspace_name) + + +def healthcareapis_workspace_private_link_resource_show(client, + resource_group_name, + workspace_name, + group_name): + return client.get(resource_group_name=resource_group_name, + workspace_name=workspace_name, + group_name=group_name) diff --git a/src/healthcareapis/azext_healthcareapis/manual/custom.py b/src/healthcareapis/azext_healthcareapis/manual/custom.py deleted file mode 100644 index 7dbe7e6616c..00000000000 --- a/src/healthcareapis/azext_healthcareapis/manual/custom.py +++ /dev/null @@ -1,76 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -------------------------------------------------------------------------- -# pylint: disable=too-many-lines - -from azure.cli.core.util import sdk_no_wait - - -def healthcareapis_service_show(client, - resource_group_name, - resource_name): - return client.get(resource_group_name=resource_group_name, - resource_name=resource_name) - - -# we use this as a create or update -def healthcareapis_service_create(client, - resource_group_name, - resource_name, - kind, - location, - tags=None, - etag=None, - identity_type=None, - access_policies=None, - cosmos_db_configuration=None, - authentication_configuration=None, - cors_configuration=None, - private_endpoint_connections=None, - public_network_access=None, - export_configuration_storage_account_name=None, - no_wait=False): - - properties = { - 'access_policies': access_policies, - 'authentication_configuration': authentication_configuration, - 'cors_configuration': cors_configuration, - 'cosmos_db_configuration': cosmos_db_configuration, - 'private_endpoint_connections': private_endpoint_connections, - 'public_network_access': public_network_access - } - - if export_configuration_storage_account_name is not None: - properties['export_configuration'] = { - 'storage_account_name': export_configuration_storage_account_name - } - - service_description = { - 'name': resource_name, - 'kind': kind, - 'location': location, - 'etag': etag, - 'properties': properties, - 'tags': tags - } - - if identity_type is not None: - service_description['identity'] = { - 'principal_id': None, - 'tenant_id': None, - 'type': identity_type, - } - else: - service_description['identity'] = { - 'principal_id': None, - 'tenant_id': None, - 'type': "None", - } - - return sdk_no_wait(no_wait, - client.create_or_update, - resource_group_name=resource_group_name, - resource_name=resource_name, - service_description=service_description) diff --git a/src/healthcareapis/azext_healthcareapis/tests/__init__.py b/src/healthcareapis/azext_healthcareapis/tests/__init__.py index 50e0627daff..70488e93851 100644 --- a/src/healthcareapis/azext_healthcareapis/tests/__init__.py +++ b/src/healthcareapis/azext_healthcareapis/tests/__init__.py @@ -31,8 +31,8 @@ def try_manual(func): def import_manual_function(origin_func): from importlib import import_module - decorated_path = inspect.getfile(origin_func) - module_path = __path__[0] + decorated_path = inspect.getfile(origin_func).lower() + module_path = __path__[0].lower() if not decorated_path.startswith(module_path): raise Exception("Decorator can only be used in submodules!") manual_path = os.path.join( @@ -46,7 +46,6 @@ def import_manual_function(origin_func): def get_func_to_call(): func_to_call = func try: - func_to_call = import_manual_function(func) func_to_call = import_manual_function(func) logger.info("Found manual override for %s(...)", func.__name__) except (ImportError, AttributeError): @@ -66,6 +65,9 @@ def wrapper(*args, **kwargs): ret = func_to_call(*args, **kwargs) except (AssertionError, AzureError, CliTestError, CliExecutionError, SystemExit, JMESPathCheckAssertionError) as e: + use_exception_cache = os.getenv("TEST_EXCEPTION_CACHE") + if use_exception_cache is None or use_exception_cache.lower() != "true": + raise test_map[func.__name__]["end_dt"] = dt.datetime.utcnow() test_map[func.__name__]["result"] = FAILED test_map[func.__name__]["error_message"] = str(e).replace("\r\n", " ").replace("\n", " ")[:500] diff --git a/src/healthcareapis/azext_healthcareapis/tests/latest/example_steps.py b/src/healthcareapis/azext_healthcareapis/tests/latest/example_steps.py new file mode 100644 index 00000000000..8b4c78a83b0 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/tests/latest/example_steps.py @@ -0,0 +1,760 @@ +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + + +from .. import try_manual +from knack.log import get_logger + +logger = get_logger(__name__) + +@try_manual +def step_healthcareapis_acr_add(test): + test.cmd('az healthcareapis acr add ' + '--resource-group "{rg}" ' + '--resource-name "{service1}" ' + '--login-servers "test1.azurecr.io" ', + checks=[ + test.check("properties.acrConfiguration.loginServers[0]", "test1.azurecr.io"), + ]) + + +@try_manual +def step_healthcareapis_acr_list(test): + acr_list = test.cmd('az healthcareapis acr list ' + '--resource-group "{rg}" ' + '--resource-name "{service1}" ', + checks=[]).get_output_in_json() + assert len(acr_list['loginServers']) == 1 + + +@try_manual +def step_healthcareapis_acr_remove(test): + test.cmd('az healthcareapis acr remove ' + '--resource-group "{rg}" ' + '--resource-name "{service1}" ' + '--login-servers "test1.azurecr.io" ', + checks=[ + test.check("properties.acrConfiguration.loginServers", []), + ]) + + +@try_manual +def step_healthcareapis_acr_reset(test): + test.cmd('az healthcareapis acr reset ' + '--resource-group "{rg}" ' + '--resource-name "{service1}" ' + '--login-servers "test1.azurecr.io" ', + checks=[ + test.check("properties.acrConfiguration.loginServers[0]", "test1.azurecr.io"), + ]) + + +@try_manual +def step_healthcareapiscreateminimalparameters(test): + test.cmd('az healthcareapis service create ' + '--resource-group "{rg}" ' + '--resource-name "{minimalParams}" ' + '--kind "fhir-Stu3" ' + '--location "{testingLocation}" ', + checks=[ + test.check("name", "{minimalParams}", case_sensitive=False), + test.check("location", "{testingLocation}", case_sensitive=False), + test.check("kind", "fhir-Stu3", case_sensitive=False), + test.check("properties.authenticationConfiguration.smartProxyEnabled", False), + test.check("properties.corsConfiguration.allowCredentials", False), + test.check("properties.cosmosDbConfiguration.offerThroughput", 1000), + test.check("properties.provisioningState", "Succeeded"), + test.check("properties.publicNetworkAccess", "Enabled", case_sensitive=False), + ]) + + +@try_manual +def step_healthcareapiscreatemaximumparameters(test): + testFhir = test.cmd('az healthcareapis service create ' + '--resource-group "{rg}" ' + '--resource-name "{maximumParams}" ' + '--identity-type "SystemAssigned" ' + '--kind "{fhirr4}" ' + '--location "{testingLocation}" ' + '--authentication-configuration authority="https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891" audience="https://{maximumParams}.azurehealthcareapis.com" smart-proxy-enabled=false ' + '--cors-configuration allow-credentials=false headers="*" max-age=1440 methods="DELETE" methods="GET" methods="OPTIONS" methods="PATCH" methods="POST" methods="PUT" origins="*" ' + '--cosmos-db-configuration offer-throughput=1500 ' + '--export-configuration-storage-account-name "{sg}" ' + '--public-network-access "Disabled" ', + checks=[ + test.check("identity.type", "SystemAssigned", case_sensitive=False), + test.check("kind", "{fhirr4}"), + test.check("location", "{testingLocation}", case_sensitive=False), + test.check("name", "{maximumParams}", case_sensitive=False), + test.check("properties.authenticationConfiguration.smartProxyEnabled", False), + test.check("properties.corsConfiguration.allowCredentials", False), + test.check("properties.corsConfiguration.maxAge", 1440), + test.check("properties.cosmosDbConfiguration.offerThroughput", 1500), + test.check("properties.exportConfiguration.storageAccountName", "{sg}", + case_sensitive=False), + test.check("properties.provisioningState", "Succeeded"), + test.check("properties.publicNetworkAccess", "Disabled", case_sensitive=False), + ]).get_output_in_json() + + corsConfiguration = testFhir['properties']['corsConfiguration'] + assert len(corsConfiguration['headers']) == 1 + assert len(corsConfiguration['origins']) == 1 + assert corsConfiguration['headers'][0] == "*" + assert corsConfiguration['origins'][0] == "*" + assert len(corsConfiguration['methods']) == 6 + assert "DELETE" in corsConfiguration['methods'] + assert "GET" in corsConfiguration['methods'] + assert "OPTIONS" in corsConfiguration['methods'] + assert "PATCH" in corsConfiguration['methods'] + assert "POST" in corsConfiguration['methods'] + assert "PUT" in corsConfiguration['methods'] + + +@try_manual +def step_healthcareapisupdatemaximumparameters(test): + testFhir = test.cmd('az healthcareapis service create ' + '--resource-group "{rg}" ' + '--resource-name "{maximumParams}" ' + '--identity-type "None" ' + '--kind "{fhirr4}" ' + '--location "{testingLocation}" ', + checks=[ + test.check("identity.type", "None", case_sensitive=False), + test.check("kind", "{fhirr4}"), + test.check("location", "{testingLocation}", case_sensitive=False), + test.check("name", "{maximumParams}", case_sensitive=False), + test.check("properties.authenticationConfiguration.smartProxyEnabled", False), + test.check("properties.corsConfiguration.allowCredentials", False), + test.check("properties.corsConfiguration.maxAge", None), + test.check("properties.cosmosDbConfiguration.offerThroughput", 1000), + test.check("properties.exportConfiguration.storageAccountName", None), + test.check("properties.provisioningState", "Succeeded"), + test.check("properties.publicNetworkAccess", "Enabled", case_sensitive=False), + test.check("properties.secondaryLocations", None), + ]).get_output_in_json() + + corsConfiguration = testFhir['properties']['corsConfiguration'] + assert len(corsConfiguration['headers']) == 0 + assert len(corsConfiguration['origins']) == 0 + assert len(corsConfiguration['methods']) == 0 + + accessPolicies = testFhir['properties']['accessPolicies'] + assert len(accessPolicies) == 0 + + privateEndpointConnections = testFhir['properties']['accessPolicies'] + assert len(privateEndpointConnections) == 0 + + acrConfiguration = testFhir['properties']['acrConfiguration']['loginServers'] + assert len(acrConfiguration) == 0 + + testFhir = test.cmd('az healthcareapis service create ' + '--resource-group "{rg}" ' + '--resource-name "{maximumParams}" ' + '--public-network-access "Disabled" ' + '--kind "{fhirr4}" ' + '--location "{testingLocation}" ', + checks=[ + test.check("identity.type", "None", case_sensitive=False), + test.check("kind", "{fhirr4}"), + test.check("location", "{testingLocation}", case_sensitive=False), + test.check("name", "{maximumParams}", case_sensitive=False), + test.check("properties.authenticationConfiguration.smartProxyEnabled", False), + test.check("properties.corsConfiguration.allowCredentials", False), + test.check("properties.corsConfiguration.maxAge", None), + test.check("properties.cosmosDbConfiguration.offerThroughput", 1000), + test.check("properties.exportConfiguration.storageAccountName", None), + test.check("properties.provisioningState", "Succeeded"), + test.check("properties.publicNetworkAccess", "Disabled", case_sensitive=False), + test.check("properties.secondaryLocations", None), + ]).get_output_in_json() + + corsConfiguration = testFhir['properties']['corsConfiguration'] + assert len(corsConfiguration['headers']) == 0 + assert len(corsConfiguration['origins']) == 0 + assert len(corsConfiguration['methods']) == 0 + + accessPolicies = testFhir['properties']['accessPolicies'] + assert len(accessPolicies) == 0 + + privateEndpointConnections = testFhir['properties']['accessPolicies'] + assert len(privateEndpointConnections) == 0 + + acrConfiguration = testFhir['properties']['acrConfiguration']['loginServers'] + assert len(acrConfiguration) == 0 + + +@try_manual +def step_servicedelete(test): + test.cmd('az healthcareapis service delete ' + '--resource-group "{rg}" ' + '--resource-name "{minimalParams}" ' + '--yes ', + checks=[]) + test.cmd('az healthcareapis service delete ' + '--resource-group "{rg}" ' + '--resource-name "{maximumParams}" ' + '--yes ', + checks=[]) + + +# EXAMPLE: /DicomServices/put/Create or update a Dicom Service +@try_manual +def step_workspace_dicom_service_create(test): + ref = test.cmd('az healthcareapis workspace dicom-service create ' + '--name "{myDicomService}" ' + '--location "westus2" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[ + test.check("provisioningState", "Succeeded", case_sensitive=False), + test.check("location", "westus2", case_sensitive=False), + ]) + test.cmd('az healthcareapis workspace dicom-service wait --created ' + '--name "{myDicomService}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + return ref + + +# EXAMPLE: /DicomServices/get/Get a dicomservice +@try_manual +def step_workspace_dicom_service_show(test): + test.cmd('az healthcareapis workspace dicom-service show ' + '--name "{myDicomService}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[ + test.check("provisioningState", "Succeeded", case_sensitive=False), + ]) + + +# EXAMPLE: /DicomServices/get/List dicomservices +@try_manual +def step_workspace_dicom_service_list(test): + dicom_list = test.cmd('az healthcareapis workspace dicom-service list ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]).get_output_in_json() + assert len(dicom_list) == 1 + + +# EXAMPLE: /DicomServices/patch/Update a dicomservice +@try_manual +def step_workspace_dicom_service_update(test): + test.cmd('az healthcareapis workspace dicom-service update ' + '--name "{myDicomService}" ' + '--tags tagKey="tagValue" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[ + test.check("tags.tagKey", "tagValue", case_sensitive=False), + ]) + + +# EXAMPLE: /DicomServices/delete/Delete a dicomservice +@try_manual +def step_workspace_dicom_service_delete(test): + test.cmd('az healthcareapis workspace dicom-service delete -y ' + '--name "{myDicomService}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + + +# EXAMPLE: /FhirServices/put/Create or update a Fhir Service +@try_manual +def step_workspace_fhir_service_create(test): + ref = test.cmd('az healthcareapis workspace fhir-service create ' + '--name "{myFhirService2}" ' + '--identity-type "SystemAssigned" ' + '--kind "fhir-R4" ' + '--location "westus2" ' + '--authentication-configuration audience="https://azurehealthcareapis.com" authority="https://login.micros' + 'oftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc" smart-proxy-enabled=true ' + '--cors-configuration allow-credentials=false headers="*" max-age=1440 methods="DELETE" methods="GET" ' + 'methods="OPTIONS" methods="PATCH" methods="POST" methods="PUT" origins="*" ' + '--export-configuration-storage-account-name "{sg}" ' + '--tags additionalProp1="string" additionalProp2="string" additionalProp3="string" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[ + test.check("identity.type", "SystemAssigned", case_sensitive=False), + test.check("kind", "fhir-R4"), + test.check("location", "westus2", case_sensitive=False), + test.check("authenticationConfiguration.smartProxyEnabled", True), + test.check("corsConfiguration.allowCredentials", False), + test.check("corsConfiguration.maxAge", 1440), + test.check("exportConfiguration.storageAccountName", "{sg}", + case_sensitive=False), + test.check("provisioningState", "Succeeded"), + test.check("publicNetworkAccess", "Enabled", case_sensitive=False), + ]) + return ref + + +# EXAMPLE: /FhirServices/get/Get a Fhir Service +@try_manual +def step_workspace_fhir_service_show(test): + test.cmd('az healthcareapis workspace fhir-service show ' + '--name "{myFhirService2}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[ + test.check("provisioningState", "Succeeded"), + ]) + + +# EXAMPLE: /FhirServices/get/List fhirservices +@try_manual +def step_workspace_fhir_service_list(test): + fhir_list = test.cmd('az healthcareapis workspace fhir-service list ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]).get_output_in_json() + assert len(fhir_list) == 1 + + +# EXAMPLE: /FhirServices/patch/Update a Fhir Service +@try_manual +def step_workspace_fhir_service_update(test): + test.cmd('az healthcareapis workspace fhir-service update ' + '--name "{myFhirService2}" ' + '--tags tagKey="tagValue" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[ + test.check("provisioningState", "Succeeded"), + ]) + + +# EXAMPLE: /FhirServices/delete/Delete a Fhir Service +@try_manual +def step_workspace_fhir_service_delete(test): + test.cmd('az healthcareapis workspace fhir-service delete -y ' + '--name "{myFhirService2}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + + +# EXAMPLE: /IotConnectors/put/Create an IoT Connector +@try_manual +def step_workspace_iot_connector_create(test): + # Message: The deviceMapping property cannot be null or empty. (--content) TODO + test.cmd('az healthcareapis workspace iot-connector create ' + '--identity-type "SystemAssigned" ' + '--location "westus2" ' + '--content "{{\\"template\\":[{{\\"template\\":{{\\"deviceIdExpression\\":\\"$.deviceid\\",\\"timestampExp' + 'ression\\":\\"$.measurementdatetime\\",\\"typeMatchExpression\\":\\"$..[?(@heartrate)]\\",\\"typeName\\":' + '\\"heartrate\\",\\"values\\":[{{\\"required\\":\\"true\\",\\"valueExpression\\":\\"$.heartrate\\",\\"valu' + 'eName\\":\\"hr\\"}}]}},\\"templateType\\":\\"JsonPathContent\\"}}],\\"templateType\\":\\"CollectionConten' + 't\\"}}" ' + '--ingestion-endpoint-configuration consumer-group="ConsumerGroupA" event-hub-name="MyEventHubName" ' + 'fully-qualified-event-hub-namespace="myeventhub.servicesbus.windows.net" ' + '--tags additionalProp1="string" additionalProp2="string" additionalProp3="string" ' + '--name "{myIotConnector}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[ + test.check("identity.type", "SystemAssigned", case_sensitive=False), + test.check("location", "westus2", case_sensitive=False), + test.check("tags.additionalProp1", "string"), + test.check("provisioningState", "Succeeded"), + ]) + test.cmd('az healthcareapis workspace iot-connector wait --created ' + '--name "{myIotConnector}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + + +# EXAMPLE: /IotConnectors/get/Get an IoT Connector +@try_manual +def step_workspace_iot_connector_show(test): + test.cmd('az healthcareapis workspace iot-connector show ' + '--name "{myIotConnector}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[ + test.check("provisioningState", "Succeeded"), + ]) + + +# EXAMPLE: /IotConnectors/get/List iotconnectors +@try_manual +def step_workspace_iot_connector_list(test): + iot_list = test.cmd('az healthcareapis workspace iot-connector list ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]).get_output_in_json() + len(iot_list) == 1 + + +# EXAMPLE: /IotConnectors/patch/Patch an IoT Connector +@try_manual +def step_workspace_iot_connector_update(test): + test.cmd('az healthcareapis workspace iot-connector update ' + '--name "{myIotConnector}" ' + '--identity-type "SystemAssigned" ' + '--tags additionalProp1="string" additionalProp2="string" additionalProp3="string" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[ + test.check("provisioningState", "Succeeded"), + ]) + + +# EXAMPLE: /IotConnectorFhirDestination/put/Create or update an Iot Connector FHIR destination +@try_manual +def step_workspace_iot_connector_fhir_destination_create(test): + test.cmd('az healthcareapis workspace iot-connector fhir-destination create ' + '--fhir-destination-name "{myFhirDestination}" ' + '--iot-connector-name "{myIotConnector}" ' + '--location "westus2" ' + '--content "{{\\"template\\":[{{\\"template\\":{{\\"codes\\":[{{\\"code\\":\\"8867-4\\",\\"display\\":\\"H' + 'eart rate\\",\\"system\\":\\"http://loinc.org\\"}}],\\"periodInterval\\":60,\\"typeName\\":\\"heartrate\\' + '",\\"value\\":{{\\"defaultPeriod\\":5000,\\"unit\\":\\"count/min\\",\\"valueName\\":\\"hr\\",\\"valueType' + '\\":\\"SampledData\\"}}}},\\"templateType\\":\\"CodeValueFhir\\"}}],\\"templateType\\":\\"CollectionFhirT' + 'emplate\\"}}" ' + '--fhir-service-resource-id "{myFhirResourceID}" ' + '--resource-identity-resolution-type "Create" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[ + test.check("location", "westus2", case_sensitive=False), + test.check("provisioningState", "Succeeded"), + test.check("resourceIdentityResolutionType", "Create"), + ]) + + +# EXAMPLE: /FhirDestinations/get/List IoT Connectors +@try_manual +def step_workspace_iot_connector_fhir_destination_list(test): + destination_list = test.cmd('az healthcareapis workspace iot-connector fhir-destination list ' + '--iot-connector-name "{myIotConnector}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]).get_output_in_json() + len(destination_list) == 1 + + +# EXAMPLE: /IotConnectorFhirDestination/get/Get an IoT Connector destination +@try_manual +def step_workspace_iot_connector_fhir_destination_show(test): + test.cmd('az healthcareapis workspace iot-connector fhir-destination show ' + '--fhir-destination-name "{myFhirDestination}" ' + '--iot-connector-name "{myIotConnector}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[ + test.check("provisioningState", "Succeeded"), + ]) + + +# EXAMPLE: /IotConnectorFhirDestination/delete/Delete an IoT Connector destination +@try_manual +def step_workspace_iot_connector_fhir_destination_delete(test): + test.cmd('az healthcareapis workspace iot-connector fhir-destination delete -y ' + '--fhir-destination-name "{myFhirDestination}" ' + '--iot-connector-name "{myIotConnector}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + + +# EXAMPLE: /IotConnectors/delete/Delete an IoT Connector +@try_manual +def step_workspace_iot_connector_delete(test): + test.cmd('az healthcareapis workspace iot-connector delete -y ' + '--name "{myIotConnector}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + + +# EXAMPLE: /OperationResults/get/Get operation result +@try_manual +def step_operation_result_show(test): + test.cmd('az healthcareapis operation-result show ' + '--location-name "westus2" ' + '--operation-result-id "{operation_result_id}"', + checks=[ + test.check("provisioningState", "Succeeded"), + ]) + + +# EXAMPLE: /PrivateEndpointConnections/put/PrivateEndpointConnection_CreateOrUpdate +@try_manual +def step_private_endpoint_connection_create(test): + test.cmd('az healthcareapis private-endpoint-connection create ' + '--name "{myPrivateEndpointConnection}" ' + '--private-link-service-connection-state description="Auto-Approved" status="Approved" ' + '--resource-group "{rg}" ' + '--resource-name "{service1}"', + checks=[]) + + +# EXAMPLE: /PrivateEndpointConnections/get/PrivateEndpointConnection_GetConnection +@try_manual +def step_private_endpoint_connection_show(test): + test.cmd('az healthcareapis private-endpoint-connection show ' + '--name "{myPrivateEndpointConnection}" ' + '--resource-group "{rg}" ' + '--resource-name "{service1}"', + checks=[]) + + +# EXAMPLE: /PrivateEndpointConnections/get/PrivateEndpointConnection_List +@try_manual +def step_private_endpoint_connection_list(test): + test.cmd('az healthcareapis private-endpoint-connection list ' + '--resource-group "{rg}" ' + '--resource-name "{service1}"', + checks=[]) + + +# EXAMPLE: /PrivateEndpointConnections/delete/PrivateEndpointConnections_Delete +@try_manual +def step_private_endpoint_connection_delete(test): + test.cmd('az healthcareapis private-endpoint-connection delete -y ' + '--name "{myPrivateEndpointConnection}" ' + '--resource-group "{rg}" ' + '--resource-name "{service1}"', + checks=[]) + + +# EXAMPLE: /PrivateLinkResources/get/PrivateLinkResources_Get +@try_manual +def step_private_link_resource_show(test): + + test.cmd('az healthcareapis private-link-resource show ' + '--group-name "fhir" ' + '--resource-group "{rg}" ' + '--resource-name "{service1}"', + checks=[]) + + +# EXAMPLE: /PrivateLinkResources/get/PrivateLinkResources_ListGroupIds +@try_manual +def step_private_link_resource_list(test): + + test.cmd('az healthcareapis private-link-resource list ' + '--resource-group "{rg}" ' + '--resource-name "{service1}"', + checks=[]) + + +# EXAMPLE: /Services/put/Create or Update a service with all parameters +@try_manual +def step_service_create(test): + ref = test.cmd('az healthcareapis service create ' + '--resource-group "{rg}" ' + '--resource-name "{service1}" ' + '--kind "fhir-Stu3" ' + '--location "westus2" ', + checks=[ + test.check("name", "{service1}", case_sensitive=False), + test.check("location", "westus2", case_sensitive=False), + test.check("kind", "fhir-Stu3", case_sensitive=False), + ]) + return ref + + +# EXAMPLE: /Services/put/Create or Update a service with minimum parameters +@try_manual +def step_service_create2(test): + test.cmd('az healthcareapis service create ' + '--resource-group "{rg}" ' + '--resource-name "{service2}" ' + '--kind "fhir-R4" ' + '--location "westus2" ' + '--access-policies object-id="c487e7d1-3210-41a3-8ccc-e9372b78da47"', + checks=[ + test.check("name", "{service2}", case_sensitive=False), + test.check("location", "westus2", case_sensitive=False), + test.check("kind", "fhir-R4", case_sensitive=False), + ]) + + +# EXAMPLE: /Services/get/Get metadata +@try_manual +def step_service_show(test): + test.cmd('az healthcareapis service show ' + '--resource-group "{rg}" ' + '--resource-name "{service1}"', + checks=[ + test.check("name", "{service1}", case_sensitive=False), + ]) + + +# EXAMPLE: /Services/get/List all services in resource group +@try_manual +def step_service_list(test): + service_list = test.cmd('az healthcareapis service list ' + '--resource-group "{rg}"', + checks=[]).get_output_in_json() + assert len(service_list) == 2 + + +# EXAMPLE: /Services/get/List all services in subscription +@try_manual +def step_service_list2(test): + service_list = test.cmd('az healthcareapis service list ' + '-g ""', + checks=[]).get_output_in_json() + assert len(service_list) >= 2 + +# EXAMPLE: /Services/patch/Patch service +@try_manual +def step_service_update(test): + test.cmd('az healthcareapis service update ' + '--resource-group "{rg}" ' + '--resource-name "{service1}" ' + '--tags tag1="value1" tag2="value2"', + checks=[ + test.check("tags.tag1", "value1", case_sensitive=False), + ]) + + +# EXAMPLE: /Services/delete/Delete service +@try_manual +def step_service_delete(test): + test.cmd('az healthcareapis service delete -y ' + '--resource-group "{rg}" ' + '--resource-name "{service1}"', + checks=[]) + + +# EXAMPLE: /Workspaces/put/Create or update a workspace +@try_manual +def step_workspace_create(test): + test.cmd('az healthcareapis workspace create ' + '--resource-group "{rg}" ' + '--location "westus2" ' + '--name "{myWorkspace}"', + checks=[ + test.check("name", "{myWorkspace}", case_sensitive=False), + test.check("location", "westus2", case_sensitive=False), + ]) + test.cmd('az healthcareapis workspace wait --created ' + '--resource-group "{rg}" ' + '--name "{myWorkspace}"', + checks=[]) + + +# EXAMPLE: /Workspaces/get/Get workspace +@try_manual +def step_workspace_show(test): + test.cmd('az healthcareapis workspace show ' + '--resource-group "{rg}" ' + '--name "{myWorkspace}"', + checks=[ + test.check("name", "{myWorkspace}", case_sensitive=False), + ]) + + +# EXAMPLE: /Workspaces/get/Get workspaces by resource group +@try_manual +def step_workspace_list(test): + workspace_list = test.cmd('az healthcareapis workspace list ' + '--resource-group "{rg}"', + checks=[]).get_output_in_json() + len(workspace_list) == 1 + + +# EXAMPLE: /Workspaces/get/Get workspaces by subscription +@try_manual +def step_workspace_list2(test): + workspace_list = test.cmd('az healthcareapis workspace list ' + '-g ""', + checks=[]).get_output_in_json() + len(workspace_list) >= 1 + + +# EXAMPLE: /Workspaces/patch/Update a workspace +@try_manual +def step_workspace_update(test): + test.cmd('az healthcareapis workspace update ' + '--resource-group "{rg}" ' + '--name "{myWorkspace}" ' + '--tags tagKey="tagValue"', + checks=[ + test.check("name", "{myWorkspace}", case_sensitive=False), + test.check("tags.tagKey", "tagValue"), + ]) + + +# EXAMPLE: /WorkspacePrivateEndpointConnections/put/WorkspacePrivateEndpointConnection_CreateOrUpdate +@try_manual +def step_workspace_private_endpoint_connection_create(test): + test.cmd('az healthcareapis workspace private-endpoint-connection create ' + '--private-endpoint-connection-name "{myPrivateEndpointConnection}" ' + '--private-link-service-connection-state description="Auto-Approved" status="Approved" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + + +# EXAMPLE: /WorkspacePrivateEndpointConnections/get/WorkspacePrivateEndpointConnection_GetConnection +@try_manual +def step_workspace_private_endpoint_connection_show(test): + test.cmd('az healthcareapis workspace private-endpoint-connection show ' + '--private-endpoint-connection-name "{myPrivateEndpointConnection}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + + +# EXAMPLE: /WorkspacePrivateEndpointConnections/get/WorkspacePrivateEndpointConnection_List +@try_manual +def step_workspace_private_endpoint_connection_list(test): + test.cmd('az healthcareapis workspace private-endpoint-connection list ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + + +# EXAMPLE: /WorkspacePrivateEndpointConnections/delete/WorkspacePrivateEndpointConnections_Delete +@try_manual +def step_workspace_private_endpoint_connection_delete(test): + test.cmd('az healthcareapis workspace private-endpoint-connection delete -y ' + '--private-endpoint-connection-name "{myPrivateEndpointConnection}" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + + +# EXAMPLE: /WorkspacePrivateLinkResources/get/WorkspacePrivateLinkResources_Get +@try_manual +def step_workspace_private_link_resource_show(test): + test.cmd('az healthcareapis workspace private-link-resource show ' + '--group-name "healthcareworkspace" ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + + +# EXAMPLE: /WorkspacePrivateLinkResources/get/WorkspacePrivateLinkResources_ListGroupIds +@try_manual +def step_workspace_private_link_resource_list(test): + test.cmd('az healthcareapis workspace private-link-resource list ' + '--resource-group "{rg}" ' + '--workspace-name "{myWorkspace}"', + checks=[]) + + +# EXAMPLE: /Workspaces/delete/Delete a workspace +@try_manual +def step_workspace_delete(test): + test.cmd('az healthcareapis workspace delete -y ' + '--resource-group "{rg}" ' + '--name "{myWorkspace}"', + checks=[]) diff --git a/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_acr.yaml b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_acr.yaml new file mode 100644 index 00000000000..20281be63dc --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_acr.yaml @@ -0,0 +1,4658 @@ +interactions: +- request: + body: '{"kind": "fhir-Stu3", "location": "westus2", "properties": {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + Content-Length: + - '62' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"0701880b-0000-0400-0000-627b50110000\"","location":"westus2","kind":"fhir-Stu3","properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '805' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 05:56:33 GMT + etag: + - '"0701880b-0000-0400-0000-627b50110000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-request-id: + - 9cbd9594343b6c4bad10326c4ef6222e + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19","name":"fde521da-169b-4468-a5e8-3edaf6256e19","status":"Running","startTime":"2022-05-11T05:56:33.3735034Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 05:57:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - f19564eecad2cf4d99672b5f4dcd4cb3 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19","name":"fde521da-169b-4468-a5e8-3edaf6256e19","status":"Running","startTime":"2022-05-11T05:56:33.3735034Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 05:57:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 07502cbe4a871942aa6aecc13ed172cc + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19","name":"fde521da-169b-4468-a5e8-3edaf6256e19","status":"Running","startTime":"2022-05-11T05:56:33.3735034Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 05:58:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 8262ff385f77f043b10046412e3a9c05 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19","name":"fde521da-169b-4468-a5e8-3edaf6256e19","status":"Running","startTime":"2022-05-11T05:56:33.3735034Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 05:58:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - c9a035994179c24c947a9c2102a35e5f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19","name":"fde521da-169b-4468-a5e8-3edaf6256e19","status":"Running","startTime":"2022-05-11T05:56:33.3735034Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 05:59:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 03027e95f196d340b2f3865de9e81ef4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19","name":"fde521da-169b-4468-a5e8-3edaf6256e19","status":"Running","startTime":"2022-05-11T05:56:33.3735034Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 05:59:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - ea7526f57126414ca21b6a04c8a34b88 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19","name":"fde521da-169b-4468-a5e8-3edaf6256e19","status":"Running","startTime":"2022-05-11T05:56:33.3735034Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:00:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 0bcd55a36a277c40ade36f103a382b70 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19","name":"fde521da-169b-4468-a5e8-3edaf6256e19","status":"Running","startTime":"2022-05-11T05:56:33.3735034Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:00:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 8db238b200d7a840a03e6ded04b96aef + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19","name":"fde521da-169b-4468-a5e8-3edaf6256e19","status":"Running","startTime":"2022-05-11T05:56:33.3735034Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:01:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - f56191714769024690388f8d26c398dc + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19","name":"fde521da-169b-4468-a5e8-3edaf6256e19","status":"Running","startTime":"2022-05-11T05:56:33.3735034Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:01:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 9680c813aa97cd43a110f2432a2be16e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fde521da-169b-4468-a5e8-3edaf6256e19","name":"fde521da-169b-4468-a5e8-3edaf6256e19","status":"Succeeded","startTime":"2022-05-11T05:56:33.3735034Z"}' + headers: + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:02:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - e7a360479a821e469ab0d698f514e603 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"0701d231-0000-0400-0000-627b51460000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '848' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:02:08 GMT + etag: + - '"0701d231-0000-0400-0000-627b51460000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 5513d5eae1b96347bb699dc3551af214 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"0701d231-0000-0400-0000-627b51460000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '848' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:02:11 GMT + etag: + - '"0701d231-0000-0400-0000-627b51460000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a4dd5c72f601ce4da24c66fdf9713b57 + status: + code: 200 + message: OK +- request: + body: '{"kind": "fhir-Stu3", "location": "westus2", "tags": {}, "etag": "\"0701d231-0000-0400-0000-627b51460000\"", + "properties": {"accessPolicies": [], "cosmosDbConfiguration": {"offerThroughput": + 1000}, "authenticationConfiguration": {"authority": "https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "audience": "https://service1000006.azurehealthcareapis.com", "smartProxyEnabled": + false}, "corsConfiguration": {"origins": [], "headers": [], "methods": [], "allowCredentials": + false}, "exportConfiguration": {}, "privateEndpointConnections": [], "publicNetworkAccess": + "Enabled", "acrConfiguration": {"loginServers": ["test1.azurecr.io"]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + Content-Length: + - '658' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"07013d36-0000-0400-0000-627b51640000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","acrConfiguration":{"loginServers":["test1.azurecr.io"]},"provisioningState":"Accepted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '865' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:02:13 GMT + etag: + - '"07013d36-0000-0400-0000-627b51640000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-request-id: + - 62c39b52ab941842b73b79199f7df269 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:02:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 063bfa2eecaa9b4fb24c5d814db135c6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:03:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - aa658e785af03d4480adad322c0a0f58 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:03:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 5b3cea937c676545b965874c39d490e6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:04:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 179e98334eebf94cb063a822be404294 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:04:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 54cbe3b8980ece448020512d52aa829d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:05:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 24bf10a6fadcb541882261eb29ab46f3 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:05:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 361d1c95b53cff41976d8b2adf2cd11f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:06:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 40a5897b53cd6342af11530439d5fe1b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:06:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 6cb7090b2848a3478acd62a3131f5bf3 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:07:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 71e6fc41dac3fa4ea4ab0e04c5bd7dbc + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:07:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - e8fc7830bdb1794c81317c09f5f4e158 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:08:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 1e0fc0ff3c6c7e4a8ab65ac760b94f81 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:08:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 40fca39af638064c827081fe159f4648 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:09:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - adf023414e9a4840ab5322dad35e9fb7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:09:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a48c8797772b1a4eb4a05c20b863fa38 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:10:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 24925d70ca96fc43b92d35afbd1a9de7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:10:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - cc3d407d3e75234daaa5f085b9b15ceb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:11:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - e9f1cb565d8ea846981c90590348a20b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:11:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 726b3cf85c0ce6469fb4af69ddd345cb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Running","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:12:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 7c7fae7c4eb78f4fbf519f57029a1984 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/44356fd4-cbde-4c6f-ae7b-27a586d79613","name":"44356fd4-cbde-4c6f-ae7b-27a586d79613","status":"Succeeded","startTime":"2022-05-11T06:02:13.9409771Z"}' + headers: + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:12:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a233750079c7064cb6647deac43528d4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr add + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"0701f383-0000-0400-0000-627b53d10000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":["test1.azurecr.io"]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '866' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:12:51 GMT + etag: + - '"0701f383-0000-0400-0000-627b53d10000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 2998d6445cbe2d4483e3aa346bdc886d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"0701f383-0000-0400-0000-627b53d10000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":["test1.azurecr.io"]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '866' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:12:57 GMT + etag: + - '"0701f383-0000-0400-0000-627b53d10000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 93c32460d8cd584fafc0182263b86573 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"0701f383-0000-0400-0000-627b53d10000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":["test1.azurecr.io"]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '866' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:12:58 GMT + etag: + - '"0701f383-0000-0400-0000-627b53d10000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 990d512d9a849c4c9019836014926ad8 + status: + code: 200 + message: OK +- request: + body: '{"kind": "fhir-Stu3", "location": "westus2", "tags": {}, "etag": "\"0701f383-0000-0400-0000-627b53d10000\"", + "properties": {"accessPolicies": [], "cosmosDbConfiguration": {"offerThroughput": + 1000}, "authenticationConfiguration": {"authority": "https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "audience": "https://service1000006.azurehealthcareapis.com", "smartProxyEnabled": + false}, "corsConfiguration": {"origins": [], "headers": [], "methods": [], "allowCredentials": + false}, "exportConfiguration": {}, "privateEndpointConnections": [], "publicNetworkAccess": + "Enabled", "acrConfiguration": {"loginServers": []}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + Content-Length: + - '640' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"07019785-0000-0400-0000-627b53eb0000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","acrConfiguration":{"loginServers":[]},"provisioningState":"Accepted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '847' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:13:00 GMT + etag: + - '"07019785-0000-0400-0000-627b53eb0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-request-id: + - e0113cd3260dfe4887b97d72fc6fb8ca + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:13:32 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - d6ae1975539ede46ba3e85595b4b4f18 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:14:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 65a0fc52fa5a854ca085d8625415cbef + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:14:32 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 01788bc846641246917dc72da291ef84 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:15:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 83df2064f636d74394bc1fcc7e27eb4b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:15:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 54ad42ffd4d8984b901ed5e2ea749ccd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:16:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 7ac2ecdc2bdbec47a62bce7febee3049 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:16:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 84ed57fbdc8971469d1bd54b0285e135 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:17:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 28b4693dc72364418e67fa9fb7a49972 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:17:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 4e3160bd8358554f9ff918dde635a228 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:18:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - bead4933d2ed8445af8dd6b737fa3820 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:18:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - e6186d9f267bb440a0b95196caea4b05 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:19:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a02fc0acada91f4381c6b68684411ced + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:19:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 1bc2d27c2dd57f4ba7ac44d4c1bf2d53 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:20:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 811eb6a2518c1a40b22da7fdc3f7072f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:20:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 34e107da0fcf6e4498798c869ef80b84 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Running","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:21:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 0a5e7b74a603c349b42d819b622b3c45 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/267c56fd-c64a-4c7b-89f8-84c10357a1ff","name":"267c56fd-c64a-4c7b-89f8-84c10357a1ff","status":"Succeeded","startTime":"2022-05-11T06:13:01.3779296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:21:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 51e0056037eb9b4abf81ba0b94cb5ff8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr remove + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"07019fc8-0000-0400-0000-627b55e30000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '848' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:21:38 GMT + etag: + - '"07019fc8-0000-0400-0000-627b55e30000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 9e6b291f056c334eb5b1aa5a7f11bf12 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"07019fc8-0000-0400-0000-627b55e30000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '848' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:21:40 GMT + etag: + - '"07019fc8-0000-0400-0000-627b55e30000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 4025e7628eccbb4dab8df89f073c7ce7 + status: + code: 200 + message: OK +- request: + body: '{"kind": "fhir-Stu3", "location": "westus2", "tags": {}, "etag": "\"07019fc8-0000-0400-0000-627b55e30000\"", + "properties": {"accessPolicies": [], "cosmosDbConfiguration": {"offerThroughput": + 1000}, "authenticationConfiguration": {"authority": "https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "audience": "https://service1000006.azurehealthcareapis.com", "smartProxyEnabled": + false}, "corsConfiguration": {"origins": [], "headers": [], "methods": [], "allowCredentials": + false}, "exportConfiguration": {}, "privateEndpointConnections": [], "publicNetworkAccess": + "Enabled", "acrConfiguration": {"loginServers": ["test1.azurecr.io"]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + Content-Length: + - '658' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"0701a3c9-0000-0400-0000-627b55f50000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","acrConfiguration":{"loginServers":["test1.azurecr.io"]},"provisioningState":"Accepted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '865' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:21:42 GMT + etag: + - '"0701a3c9-0000-0400-0000-627b55f50000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-request-id: + - 1ae50695f78ecc47856bebbfd8b628e3 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:22:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 3c1dae7f2497914cb0dee2c4b9060375 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:22:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 427650f4e1cbc546bda8a9a873e9c571 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:23:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 16b0c0c47b45f94ab4cfbe57bc31e0ed + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:23:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 145cd3de0e757040bd8bba6dadf128ca + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:24:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 01a7d3ce166365438797fc2b72f0075f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:24:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - d1707297985de447b9d5567fc16de6c9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:25:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 83d24f2f4048c34f849142f68adde915 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:25:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 0522be77b9710e47a0ed042845b13a2e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:26:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - cc5a8661bf4221408bfe717df04d568b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:26:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 520476889ef76a4596ac24373a54b2fe + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:27:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - aa654211f5ffee4c9c07b062689a7ac7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:27:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 8ebae3d867688a4d9ac3b5e41a4bbd66 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:28:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 78f11cf0197ebe49877dd0c140351a5d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:28:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 6c0cb07c51522945a8e07553e5c10e54 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:29:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 38d11bb4edf58d42b8e9de9f62e06661 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Running","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:29:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 803fca821b9f374a87984367790ad274 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/0a8dba99-cf26-4940-8f75-131936ec5a58","name":"0a8dba99-cf26-4940-8f75-131936ec5a58","status":"Succeeded","startTime":"2022-05-11T06:21:42.5502196Z"}' + headers: + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:30:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 10e8f18d26e5cf4c802461ea83753505 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis acr reset + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --login-servers + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"08010e12-0000-0400-0000-627b57e90000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":["test1.azurecr.io"]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '866' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:30:19 GMT + etag: + - '"08010e12-0000-0400-0000-627b57e90000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - d506bad91e2b77439c98b054c5791708 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 11 May 2022 06:30:23 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01&operationResultResponseType=Location + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-request-id: + - ed8d9deb39c7694da5c4433234062932 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:30:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 4105e289ec70fe4b9c6ecc67ef20a39b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:31:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 1e1d1e4d25637a418345e9c293b7e84d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:31:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - db16fa309b7f5c44bf7dca2bf9fe7c2f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:32:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - fec8de421b1f5b46b1eb41ab25b6bff2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:32:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - b01aedd0b5c4374e857e6433f21d5cae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:33:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 4b5b92684b055b48b7efe95d896eec36 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:33:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - c3a77da547eb8c40be8f8b5738c9f15e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:34:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 8e50c965ad693a41aa4eeb332f334551 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:34:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - e0398651fd83a84cbe56ef8b5e9a377c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:35:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 154ae6cefd04e84289da770a0fc14d44 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:35:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - d21ab1968d11c740bcbe93156f2842a6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:36:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 76e0e87ea127d34ebc176b125288e656 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:36:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 05b651b1a63f354ab437c0198fba9931 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:37:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 966c8c833284eb47b343b067037dbe33 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:37:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 9172688581ea4f47a3f1d6f357c53578 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:38:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 2b19809751e2214ba58a6ccc3aa79f23 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Running","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:39:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 7f202759cad60a46917e6f39c3bb93de + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/8381fcf9-9d35-448f-8616-c747a34d9373","name":"8381fcf9-9d35-448f-8616-c747a34d9373","status":"Succeeded","startTime":"2022-05-11T06:30:23.4007757Z"}' + headers: + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 11 May 2022 06:39:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 3c6f80e4bd741c4093fc01b8160598fe + status: + code: 200 + message: OK +version: 1 diff --git a/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_parameter.yaml b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_parameter.yaml new file mode 100644 index 00000000000..66546499755 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_parameter.yaml @@ -0,0 +1,4643 @@ +interactions: +- request: + body: '{"kind": "fhir-Stu3", "location": "westus2", "properties": {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + Content-Length: + - '62' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climinparams000004?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climinparams000004","name":"climinparams000004","type":"Microsoft.HealthcareApis/services","etag":"\"e000c528-0000-0400-0000-627a16cb0000\"","location":"westus2","kind":"fhir-Stu3","properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://climinparams000004.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '817' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:39:56 GMT + etag: + - '"e000c528-0000-0400-0000-627a16cb0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-request-id: + - e3d1c9212be40c4593aa33485ab32768 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e","name":"231a139d-7ba9-4c87-9b09-cf439809b32e","status":"Running","startTime":"2022-05-10T07:39:55.3640263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:40:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 0fe50401a2809e428cbac454cfa4cf0f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e","name":"231a139d-7ba9-4c87-9b09-cf439809b32e","status":"Running","startTime":"2022-05-10T07:39:55.3640263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:40:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 47c14ffb52e77244b9bbb45ad71fc22e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e","name":"231a139d-7ba9-4c87-9b09-cf439809b32e","status":"Running","startTime":"2022-05-10T07:39:55.3640263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:41:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 211929e17ccbc749ae87e9441c454402 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e","name":"231a139d-7ba9-4c87-9b09-cf439809b32e","status":"Running","startTime":"2022-05-10T07:39:55.3640263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:41:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 15ad9d5f25fc3148af2a6c3bbe15b7ff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e","name":"231a139d-7ba9-4c87-9b09-cf439809b32e","status":"Running","startTime":"2022-05-10T07:39:55.3640263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:42:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 588f4fd45a076a4298e136aec510cadc + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e","name":"231a139d-7ba9-4c87-9b09-cf439809b32e","status":"Running","startTime":"2022-05-10T07:39:55.3640263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:42:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 20752d9ac46f0945a0a427a69bafa38c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e","name":"231a139d-7ba9-4c87-9b09-cf439809b32e","status":"Running","startTime":"2022-05-10T07:39:55.3640263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:43:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 5def2c72217d0c41b4779cc518ac4a3b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e","name":"231a139d-7ba9-4c87-9b09-cf439809b32e","status":"Running","startTime":"2022-05-10T07:39:55.3640263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:43:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 5a5555865ba4974a80850808ebee9125 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e","name":"231a139d-7ba9-4c87-9b09-cf439809b32e","status":"Running","startTime":"2022-05-10T07:39:55.3640263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:44:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a7ebf5e33ade6c4ba8ead18b2637700e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e","name":"231a139d-7ba9-4c87-9b09-cf439809b32e","status":"Running","startTime":"2022-05-10T07:39:55.3640263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:44:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - cade0d5aa729854797e0e1d693728e63 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e","name":"231a139d-7ba9-4c87-9b09-cf439809b32e","status":"Running","startTime":"2022-05-10T07:39:55.3640263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:45:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 4a99d7e00593fa4bb982ff82df3e9033 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/231a139d-7ba9-4c87-9b09-cf439809b32e","name":"231a139d-7ba9-4c87-9b09-cf439809b32e","status":"Succeeded","startTime":"2022-05-10T07:39:55.3640263Z"}' + headers: + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:46:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 442a9fb68bc15441900365ab2527a953 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climinparams000004?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climinparams000004","name":"climinparams000004","type":"Microsoft.HealthcareApis/services","etag":"\"e0001351-0000-0400-0000-627a18250000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://climinparams000004.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '860' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:46:01 GMT + etag: + - '"e0001351-0000-0400-0000-627a18250000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 8e0780589eed9b4f8516f91524294ef5 + status: + code: 200 + message: OK +- request: + body: '{"kind": "fhir-R4", "location": "westus2", "identity": {"type": "SystemAssigned"}, + "properties": {"cosmosDbConfiguration": {"offerThroughput": 1500}, "authenticationConfiguration": + {"authority": "https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891", + "audience": "https://climaxparams000005.azurehealthcareapis.com", "smartProxyEnabled": + false}, "corsConfiguration": {"origins": ["*"], "headers": ["*"], "methods": + ["DELETE", "GET", "OPTIONS", "PATCH", "POST", "PUT"], "maxAge": 1440, "allowCredentials": + false}, "exportConfiguration": {"storageAccountName": "clitest000002"}, "publicNetworkAccess": + "Disabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + Content-Length: + - '630' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location --authentication-configuration + --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name + --public-network-access + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005","name":"climaxparams000005","type":"Microsoft.HealthcareApis/services","etag":"\"e0004255-0000-0400-0000-627a18410000\"","location":"westus2","kind":"fhir-R4","properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1500},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","audience":"https://climaxparams000005.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":["*"],"headers":["*"],"methods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"maxAge":1440,"allowCredentials":false},"exportConfiguration":{"storageAccountName":"clitest000002"},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Disabled","provisioningState":"Creating"},"identity":{"principalId":"6c395ac9-c919-424b-83ba-7785050e05b6","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '1089' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:46:11 GMT + etag: + - '"e0004255-0000-0400-0000-627a18410000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-request-id: + - adf287314deddd49a9ca238c02175609 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location --authentication-configuration + --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name + --public-network-access + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78","name":"e1453c98-3269-46cc-a749-f0d428e75c78","status":"Running","startTime":"2022-05-10T07:46:10.2333668Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:46:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 120aa62bc878734f89c5cd0b72fea955 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location --authentication-configuration + --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name + --public-network-access + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78","name":"e1453c98-3269-46cc-a749-f0d428e75c78","status":"Running","startTime":"2022-05-10T07:46:10.2333668Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:47:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - bdd334a35f23024d89a089458d2894a0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location --authentication-configuration + --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name + --public-network-access + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78","name":"e1453c98-3269-46cc-a749-f0d428e75c78","status":"Running","startTime":"2022-05-10T07:46:10.2333668Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:47:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 31a89f18a1441141a7b97f8b882b9fbb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location --authentication-configuration + --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name + --public-network-access + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78","name":"e1453c98-3269-46cc-a749-f0d428e75c78","status":"Running","startTime":"2022-05-10T07:46:10.2333668Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:48:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - d96a228cd6c4fc41a6c13ca2258eb9f6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location --authentication-configuration + --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name + --public-network-access + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78","name":"e1453c98-3269-46cc-a749-f0d428e75c78","status":"Running","startTime":"2022-05-10T07:46:10.2333668Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:48:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - bb2e85f64d35e144ab635bc14a863bb2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location --authentication-configuration + --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name + --public-network-access + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78","name":"e1453c98-3269-46cc-a749-f0d428e75c78","status":"Running","startTime":"2022-05-10T07:46:10.2333668Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:49:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 6f03dbc629027a4ea53d541064969edf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location --authentication-configuration + --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name + --public-network-access + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78","name":"e1453c98-3269-46cc-a749-f0d428e75c78","status":"Running","startTime":"2022-05-10T07:46:10.2333668Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:49:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - d67602611f951347a52cbb99b9099ecd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location --authentication-configuration + --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name + --public-network-access + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78","name":"e1453c98-3269-46cc-a749-f0d428e75c78","status":"Running","startTime":"2022-05-10T07:46:10.2333668Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:50:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a3f0cd59fb5afd47850c30120f2bb587 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location --authentication-configuration + --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name + --public-network-access + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78","name":"e1453c98-3269-46cc-a749-f0d428e75c78","status":"Running","startTime":"2022-05-10T07:46:10.2333668Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:50:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 46fb784ac3e2da4cb171df3bf5b8362d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location --authentication-configuration + --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name + --public-network-access + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78","name":"e1453c98-3269-46cc-a749-f0d428e75c78","status":"Running","startTime":"2022-05-10T07:46:10.2333668Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:51:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 2e0ea13876bec0449972ed8f2b6d3ca6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location --authentication-configuration + --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name + --public-network-access + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78","name":"e1453c98-3269-46cc-a749-f0d428e75c78","status":"Running","startTime":"2022-05-10T07:46:10.2333668Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:51:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 917d7a6c46b2164e8eb2fd3a1a03ddc0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location --authentication-configuration + --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name + --public-network-access + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e1453c98-3269-46cc-a749-f0d428e75c78","name":"e1453c98-3269-46cc-a749-f0d428e75c78","status":"Succeeded","startTime":"2022-05-10T07:46:10.2333668Z"}' + headers: + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:52:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 646b16d67027b64c96ecd022f824eb4a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location --authentication-configuration + --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name + --public-network-access + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005","name":"climaxparams000005","type":"Microsoft.HealthcareApis/services","etag":"\"e0006c79-0000-0400-0000-627a19a10000\"","location":"westus2","kind":"fhir-R4","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1500},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","audience":"https://climaxparams000005.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":["*"],"headers":["*"],"methods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"maxAge":1440,"allowCredentials":false},"exportConfiguration":{"storageAccountName":"clitest000002"},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Disabled","provisioningState":"Succeeded"},"identity":{"principalId":"6c395ac9-c919-424b-83ba-7785050e05b6","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + cache-control: + - no-cache + content-length: + - '1100' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:52:16 GMT + etag: + - '"e0006c79-0000-0400-0000-627a19a10000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - c1e2c7729244ed4b9d3ed3c752bb72d7 + status: + code: 200 + message: OK +- request: + body: '{"kind": "fhir-R4", "location": "westus2", "identity": {"type": "None"}, + "properties": {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + Content-Length: + - '90' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005","name":"climaxparams000005","type":"Microsoft.HealthcareApis/services","etag":"\"e000a77e-0000-0400-0000-627a19b40000\"","location":"westus2","kind":"fhir-R4","properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://climaxparams000005.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"provisioningState":"Accepted"},"identity":{"type":"None"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '842' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:52:24 GMT + etag: + - '"e000a77e-0000-0400-0000-627a19b40000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-request-id: + - 19e97020b60d954bae3d606d0ab4e7d4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:52:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 7d13db97ece50d4ea46e92a0620457a1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:53:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 528d7698a4ba074fb1847ea4d44384e2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:53:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 341720cb7a62fe4ba9fb6e5d4ee88399 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:54:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 8d435cd8c83b7b4c846cdf8cfcd283fc + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:54:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 8227f4cca054a647bd84033383213af0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:55:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - e706a3eb5251c04e905410907e5b08c7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:55:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - affae200e0bd1a47abd6de6cd39b956d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:56:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 0c0b85d42d851447a0f05a4830f328aa + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:56:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - f1b6eaa2f67279478d5a393558aea5bd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:57:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - db4b00aa695c8e4995a9a631dcc5fa36 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:57:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - c891b067b632a049b7b68c6dba0a0df2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:58:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 03196433cb9042418c3c75c1ed8a6ad5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:58:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 76cc79088ca42d428165b9c95d0fa7f5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:59:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 6e7410132c5e1a4fba307be0c2cae4a6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:59:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 62080bc00bd6a04d926fe4a44eac75b1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:00:30 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - b3e7173644ff384ab83125816df205e6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:01:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - d165bc72ed0efd4a8aba7ac57cdee3ef + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:01:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 3b6a09e7e5e7ad4bb7f0d33ac3a7c1c0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Running","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:02:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a3e7bec37c3c6c4181d750c19048c77a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/800ca744-30a2-4d24-b7ac-2760f271d574","name":"800ca744-30a2-4d24-b7ac-2760f271d574","status":"Succeeded","startTime":"2022-05-10T07:52:21.6613296Z"}' + headers: + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:02:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 1d3012891e79e846bb642a21901ce5ee + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --identity-type --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005","name":"climaxparams000005","type":"Microsoft.HealthcareApis/services","etag":"\"e00049c3-0000-0400-0000-627a1bff0000\"","location":"westus2","kind":"fhir-R4","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://climaxparams000005.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"},"identity":{"principalId":"","tenantId":"","type":"None"}}' + headers: + cache-control: + - no-cache + content-length: + - '916' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:02:32 GMT + etag: + - '"e00049c3-0000-0400-0000-627a1bff0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 42dc55bae55ac74199bcbb2f8bc0c97a + status: + code: 200 + message: OK +- request: + body: '{"kind": "fhir-R4", "location": "westus2", "properties": {"publicNetworkAccess": + "Disabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + Content-Length: + - '93' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --resource-name --public-network-access --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005","name":"climaxparams000005","type":"Microsoft.HealthcareApis/services","etag":"\"e0006aca-0000-0400-0000-627a1c1b0000\"","location":"westus2","kind":"fhir-R4","properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://climaxparams000005.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Disabled","provisioningState":"Accepted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/73cefbb5-c04f-44ea-8dae-34b40051865d?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '848' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:02:39 GMT + etag: + - '"e0006aca-0000-0400-0000-627a1c1b0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-request-id: + - b2f9704ac9e55a448fd2c8498391c819 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --public-network-access --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/73cefbb5-c04f-44ea-8dae-34b40051865d?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/73cefbb5-c04f-44ea-8dae-34b40051865d","name":"73cefbb5-c04f-44ea-8dae-34b40051865d","status":"Running","startTime":"2022-05-10T08:02:37.0800826Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:03:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 266c7203768d9d498593ec0ccea88a87 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --public-network-access --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/73cefbb5-c04f-44ea-8dae-34b40051865d?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/73cefbb5-c04f-44ea-8dae-34b40051865d","name":"73cefbb5-c04f-44ea-8dae-34b40051865d","status":"Running","startTime":"2022-05-10T08:02:37.0800826Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:03:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a2baa3b8253dd146893b4665e97cf277 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --public-network-access --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/73cefbb5-c04f-44ea-8dae-34b40051865d?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/73cefbb5-c04f-44ea-8dae-34b40051865d","name":"73cefbb5-c04f-44ea-8dae-34b40051865d","status":"Running","startTime":"2022-05-10T08:02:37.0800826Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:04:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a676ac3f78216e44ba3d4c5eb52091d1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --public-network-access --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/73cefbb5-c04f-44ea-8dae-34b40051865d?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/73cefbb5-c04f-44ea-8dae-34b40051865d","name":"73cefbb5-c04f-44ea-8dae-34b40051865d","status":"Running","startTime":"2022-05-10T08:02:37.0800826Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:04:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 1c7b46284832584186e257ae8571b1cd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --public-network-access --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/73cefbb5-c04f-44ea-8dae-34b40051865d?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/73cefbb5-c04f-44ea-8dae-34b40051865d","name":"73cefbb5-c04f-44ea-8dae-34b40051865d","status":"Succeeded","startTime":"2022-05-10T08:02:37.0800826Z"}' + headers: + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:05:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 9b702759232ae94a93b483b9c36ba07a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --public-network-access --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005","name":"climaxparams000005","type":"Microsoft.HealthcareApis/services","etag":"\"e00016da-0000-0400-0000-627a1cae0000\"","location":"westus2","kind":"fhir-R4","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://climaxparams000005.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Disabled","provisioningState":"Succeeded"},"identity":{"principalId":"","tenantId":"","type":"None"}}' + headers: + cache-control: + - no-cache + content-length: + - '917' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:05:11 GMT + etag: + - '"e00016da-0000-0400-0000-627a1cae0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 987e2e64c5c365488119d1418d9f89ed + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climinparams000004?api-version=2021-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 10 May 2022 08:05:18 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01&operationResultResponseType=Location + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + x-request-id: + - a24ab3f3b92cc74a81b2992757c0873c + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:05:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - fa5cf9a5a868ec41a580ecab4b2e3474 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:06:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 4b986c1050f1914599511cead4726fde + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:06:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - b582933ecddd2e4f88499e4f02d093e7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:07:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 7327898d79b21d4e85b03252db887004 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:07:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - b3614be010a12641947dc94305038946 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:08:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - abf6f6bae9d0cc4597d428397e8fc49b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:08:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 1bb92054de487047ab9430fceb12296b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:09:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 59038c610b004f439991ab37fbb29b4f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:09:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 361949c235baad43ac694b7c0258dde0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:10:22 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - b710b53862701546aff355f58a3c9002 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:10:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 6c448eb6330ac94bac04cd01bc35b8cf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:11:22 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - fe15c9aecf18934eb8fb56e5afa7df02 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:11:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a4a7bdcc5b5ea640b7f885dcb356b1c9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:12:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a3ea7b6eb6611e439dff684d906abaae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:12:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 740b95eeea792e40a5c6c8c6b564d025 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:13:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 83eaad44dc2993488f3ec9871ef7656d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Running","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:13:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 580eb0c3ae2881428898c865c54aa606 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/de31578f-94b3-4431-8434-417d898711c4","name":"de31578f-94b3-4431-8434-417d898711c4","status":"Succeeded","startTime":"2022-05-10T08:05:18.1979717Z"}' + headers: + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:14:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 3b59795d6237f344b17ad618e2e81ab8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005?api-version=2021-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 10 May 2022 08:14:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01&operationResultResponseType=Location + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + x-request-id: + - d611d741689fdd4a946e255165c5f18a + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:14:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 278653bb89857e4a9e3f90c0cd3b9857 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:15:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - d409133ca2373f4a9f0277ef5365c9f1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:15:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - c5e6e35f8316f2499f5be20618b605ab + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:16:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 5fd914342418f44fa21bafb335b4c853 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:17:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - f00ded3d90cd054589b803a23a25d081 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:17:30 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 3f162542c24155438cdd0977ec42eb69 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:18:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - afe4952cfc648f4190d1fe664d311047 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:18:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a928f4c3ad5184488da502a000c8b17c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:19:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - e79ee6c36f03ad4eb80729978a8fc165 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:19:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - cc0353970ca2f54d825da5364d83feb2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:20:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 5d9663ba7793ee4f84638ac452febfa7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:20:32 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 0f4f23e824b9464e98600e1114939fd6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:21:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 20de31a74723694fa94330371ce64cbe + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:21:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 755722c0f7c15f44b1873599ff5eea92 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:22:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 1736959ce085c74aac3e3a84b59b8b4c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:22:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - e32789b36d78e14b9eab341bee63c815 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Running","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:23:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 0cce2f8287dcbf4d9d43fd2f86fd822e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --yes + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","name":"a74e0cc8-bdbc-4f3d-a212-255a01eda1d9","status":"Succeeded","startTime":"2022-05-10T08:14:28.5075102Z"}' + headers: + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:23:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 675562372b4890498034d23e38bd1b48 + status: + code: 200 + message: OK +version: 1 diff --git a/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_service.yaml b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_service.yaml new file mode 100644 index 00000000000..ff9c994c113 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_service.yaml @@ -0,0 +1,2479 @@ +interactions: +- request: + body: '{"kind": "fhir-Stu3", "location": "westus2", "properties": {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + Content-Length: + - '62' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"d600e8f4-0000-0400-0000-6279c6b90000\"","location":"westus2","kind":"fhir-Stu3","properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '805' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 01:58:19 GMT + etag: + - '"d600e8f4-0000-0400-0000-6279c6b90000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-request-id: + - 15821d7bebddb64bab3438e9c7cc312b + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58","name":"e962c3ad-ee20-4743-98b3-17892abbef58","status":"Running","startTime":"2022-05-10T01:58:17.4084661Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 01:58:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 0272cf4aa18f5444b22e42584f592a0a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58","name":"e962c3ad-ee20-4743-98b3-17892abbef58","status":"Running","startTime":"2022-05-10T01:58:17.4084661Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 01:59:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 48f88d0b1fab7443ab83cb85db78515d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58","name":"e962c3ad-ee20-4743-98b3-17892abbef58","status":"Running","startTime":"2022-05-10T01:58:17.4084661Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 01:59:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - d1f32270d7195d49a3de8c3d6e219af0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58","name":"e962c3ad-ee20-4743-98b3-17892abbef58","status":"Running","startTime":"2022-05-10T01:58:17.4084661Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:00:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 89dffc16994c3f45b17b8a19ec1564cf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58","name":"e962c3ad-ee20-4743-98b3-17892abbef58","status":"Running","startTime":"2022-05-10T01:58:17.4084661Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:00:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - c39f3c7882019945b40e5b5b367eef41 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58","name":"e962c3ad-ee20-4743-98b3-17892abbef58","status":"Running","startTime":"2022-05-10T01:58:17.4084661Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:01:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 13c39650309b084c96d55d376ca67fba + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58","name":"e962c3ad-ee20-4743-98b3-17892abbef58","status":"Running","startTime":"2022-05-10T01:58:17.4084661Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:01:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - fc355db5b1b33548b64adb8c47f617ba + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58","name":"e962c3ad-ee20-4743-98b3-17892abbef58","status":"Running","startTime":"2022-05-10T01:58:17.4084661Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:02:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 515b0f774027454199ff2f97b0276978 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58","name":"e962c3ad-ee20-4743-98b3-17892abbef58","status":"Running","startTime":"2022-05-10T01:58:17.4084661Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:02:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 89625f27abdffd42b82ae0ae4af05071 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58","name":"e962c3ad-ee20-4743-98b3-17892abbef58","status":"Running","startTime":"2022-05-10T01:58:17.4084661Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:03:22 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 07176dc872b5e84e837bc1fb49e75829 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58","name":"e962c3ad-ee20-4743-98b3-17892abbef58","status":"Running","startTime":"2022-05-10T01:58:17.4084661Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:03:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 75b56b307143074b871e2c2f970aac93 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58","name":"e962c3ad-ee20-4743-98b3-17892abbef58","status":"Running","startTime":"2022-05-10T01:58:17.4084661Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:04:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 0063cc32fc9a2b4ba7ce21dca35b2439 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e962c3ad-ee20-4743-98b3-17892abbef58","name":"e962c3ad-ee20-4743-98b3-17892abbef58","status":"Succeeded","startTime":"2022-05-10T01:58:17.4084661Z"}' + headers: + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:04:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 5044b985ac2fee478af706ebd69fb489 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"d700691f-0000-0400-0000-6279c8330000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '848' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:04:53 GMT + etag: + - '"d700691f-0000-0400-0000-6279c8330000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - c19efefaeb80bd4eb8aed162d868b455 + status: + code: 200 + message: OK +- request: + body: '{"kind": "fhir-R4", "location": "westus2", "properties": {"accessPolicies": + [{"objectId": "c487e7d1-3210-41a3-8ccc-e9372b78da47"}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + Content-Length: + - '132' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --resource-name --kind --location --access-policies + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service2000007?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service2000007","name":"service2000007","type":"Microsoft.HealthcareApis/services","etag":"\"d7002921-0000-0400-0000-6279c84d0000\"","location":"westus2","kind":"fhir-R4","properties":{"accessPolicies":[{"objectId":"c487e7d1-3210-41a3-8ccc-e9372b78da47"}],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service2000007.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '854' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:05:02 GMT + etag: + - '"d7002921-0000-0400-0000-6279c84d0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-request-id: + - 03060a503e1d48418ed7b05e2512db63 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location --access-policies + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e","name":"f1b20b7a-3797-456a-a1cf-76157e2d827e","status":"Running","startTime":"2022-05-10T02:05:01.6620036Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:05:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 03f755b85dd6624a8646e37d71eec1b7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location --access-policies + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e","name":"f1b20b7a-3797-456a-a1cf-76157e2d827e","status":"Running","startTime":"2022-05-10T02:05:01.6620036Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:06:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 1ab43c425d9ee9458cd2e4521cf87ff6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location --access-policies + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e","name":"f1b20b7a-3797-456a-a1cf-76157e2d827e","status":"Running","startTime":"2022-05-10T02:05:01.6620036Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:06:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 35c40d53057e7a40b72684220dac4d75 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location --access-policies + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e","name":"f1b20b7a-3797-456a-a1cf-76157e2d827e","status":"Running","startTime":"2022-05-10T02:05:01.6620036Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:07:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 748527f22a7a064a9d6f805a606009c9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location --access-policies + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e","name":"f1b20b7a-3797-456a-a1cf-76157e2d827e","status":"Running","startTime":"2022-05-10T02:05:01.6620036Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:07:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 58d327976e84a14189b7a16007c40c5d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location --access-policies + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e","name":"f1b20b7a-3797-456a-a1cf-76157e2d827e","status":"Running","startTime":"2022-05-10T02:05:01.6620036Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:08:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 5bfec7cd9e8dec49b9f8a1cf27234496 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location --access-policies + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e","name":"f1b20b7a-3797-456a-a1cf-76157e2d827e","status":"Running","startTime":"2022-05-10T02:05:01.6620036Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:08:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 7467f40445bb3943b3a45037b8fed2f0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location --access-policies + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e","name":"f1b20b7a-3797-456a-a1cf-76157e2d827e","status":"Running","startTime":"2022-05-10T02:05:01.6620036Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:09:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 8786b74718902d41b5d0bb892387912c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location --access-policies + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e","name":"f1b20b7a-3797-456a-a1cf-76157e2d827e","status":"Running","startTime":"2022-05-10T02:05:01.6620036Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:09:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 00667b6d9070b540a891fb376714fe35 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location --access-policies + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e","name":"f1b20b7a-3797-456a-a1cf-76157e2d827e","status":"Running","startTime":"2022-05-10T02:05:01.6620036Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:10:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 4f56528bd91a0f46a04a852b089bc48a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location --access-policies + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f1b20b7a-3797-456a-a1cf-76157e2d827e","name":"f1b20b7a-3797-456a-a1cf-76157e2d827e","status":"Succeeded","startTime":"2022-05-10T02:05:01.6620036Z"}' + headers: + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:10:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - b0354f146cceca46ae1a45fab227590e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service create + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name --kind --location --access-policies + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service2000007?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service2000007","name":"service2000007","type":"Microsoft.HealthcareApis/services","etag":"\"d700ef48-0000-0400-0000-6279c98e0000\"","location":"westus2","kind":"fhir-R4","tags":{},"properties":{"accessPolicies":[{"objectId":"c487e7d1-3210-41a3-8ccc-e9372b78da47"}],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service2000007.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '897' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:10:37 GMT + etag: + - '"d700ef48-0000-0400-0000-6279c98e0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 0acada380243f54e802e80e0fffb84fa + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"d700691f-0000-0400-0000-6279c8330000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '848' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:10:38 GMT + etag: + - '"d700691f-0000-0400-0000-6279c8330000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - adebcacf390c0c40b4e9e05bfe9ad087 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service list + Connection: + - keep-alive + ParameterSetName: + - --resource-group + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services?api-version=2021-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"d700691f-0000-0400-0000-6279c8330000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service2000007","name":"service2000007","type":"Microsoft.HealthcareApis/services","etag":"\"d700ef48-0000-0400-0000-6279c98e0000\"","location":"westus2","kind":"fhir-R4","tags":{},"properties":{"accessPolicies":[{"objectId":"c487e7d1-3210-41a3-8ccc-e9372b78da47"}],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service2000007.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1758' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:10:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 26096a77da013044b266b689e298ff00 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/services?api-version=2021-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"d700691f-0000-0400-0000-6279c8330000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service2000007","name":"service2000007","type":"Microsoft.HealthcareApis/services","etag":"\"d700ef48-0000-0400-0000-6279c98e0000\"","location":"westus2","kind":"fhir-R4","tags":{},"properties":{"accessPolicies":[{"objectId":"c487e7d1-3210-41a3-8ccc-e9372b78da47"}],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service2000007.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1758' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:10:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - fb8f86424de3e648b71bb39f053d761f + status: + code: 200 + message: OK +- request: + body: '{"tags": {"tag1": "value1", "tag2": "value2"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service update + Connection: + - keep-alive + Content-Length: + - '46' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --resource-name --tags + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006","name":"service1000006","type":"Microsoft.HealthcareApis/services","etag":"\"d700384a-0000-0400-0000-6279c9a50000\"","location":"westus2","kind":"fhir-Stu3","tags":{"tag1":"value1","tag2":"value2"},"properties":{"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","audience":"https://service1000006.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"allowCredentials":false},"exportConfiguration":{},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '879' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:10:47 GMT + etag: + - '"d700384a-0000-0400-0000-6279c9a50000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-request-id: + - d7f55f7eee7c1a4cbabf573163975354 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/service1000006?api-version=2021-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 10 May 2022 02:10:49 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01&operationResultResponseType=Location + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-request-id: + - 6b0f2224321e2940b3048c503c2a1a51 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:11:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 744d8ce5f0e5de4ab5e3a2cf13693af7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:11:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 5608dc42cba5c34c9f9fe9296413813c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:12:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 3ee821b7d88f294c87ccb46c88826ed4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:12:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 91841a5e0802564da2f88cc32ad7b335 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:13:22 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a50a7c796c99d040aaaebcc844f3921c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:13:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 3086a6cd9fd02247921ce682afe65a99 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:14:22 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - acb34bc5c7d779418f018d4d2f51c801 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:14:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - bade2e6087eb3848b3e5680653c256cb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:15:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 69546e87121bfd47a839c98b04a8abfd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:15:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - f3371f23762ea543b5f36cd27e6c5636 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:16:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a4e4c81a4728df45bc5a0831d551cc93 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:16:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 50f97e7794b7cd458e0a77c9680ba7d9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:17:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 41a552a86eeb904ca920458a790cebe7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:17:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 2c7cdc22bec7954196f8a697ed24e615 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:18:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - e1ee4b39e79dca4c86ee13ca78f2dc2f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:18:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - c253afd4770d914abfa4f057e2c5ebf9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Running","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '275' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:19:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - dff20cc14ccf9d498a86a047f24aa790 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis service delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --resource-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/9ea79db3-1854-445f-a47e-b543ce1221ef","name":"9ea79db3-1854-445f-a47e-b543ce1221ef","status":"Succeeded","startTime":"2022-05-10T02:10:50.4277497Z"}' + headers: + cache-control: + - no-cache + content-length: + - '277' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:19:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - a8b28d60ffaca64980061fcfcc48b234 + status: + code: 200 + message: OK +version: 1 diff --git a/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_workspace.yaml b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_workspace.yaml new file mode 100644 index 00000000000..be83a5ed3ea --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_workspace.yaml @@ -0,0 +1,404 @@ +interactions: +- request: + body: '{"location": "westus2"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace create + Connection: + - keep-alive + Content-Length: + - '23' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --location --name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003","name":"myworkspace000003","type":"Microsoft.HealthcareApis/workspaces","etag":"\"d70012a7-0000-0400-0000-6279ccce0000\"","location":"westus2","properties":{"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '407' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:24:15 GMT + etag: + - '"d70012a7-0000-0400-0000-6279ccce0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-request-id: + - b69d17ca08d8414dac00b18334f5edc8 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace wait + Connection: + - keep-alive + ParameterSetName: + - --created --resource-group --name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003","name":"myworkspace000003","type":"Microsoft.HealthcareApis/workspaces","etag":"\"d70012a7-0000-0400-0000-6279ccce0000\"","location":"westus2","properties":{"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '407' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:24:15 GMT + etag: + - '"d70012a7-0000-0400-0000-6279ccce0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 674c065334160948b48cfece8aec702c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace show + Connection: + - keep-alive + ParameterSetName: + - --resource-group --name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003","name":"myworkspace000003","type":"Microsoft.HealthcareApis/workspaces","etag":"\"d70012a7-0000-0400-0000-6279ccce0000\"","location":"westus2","properties":{"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '407' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:24:16 GMT + etag: + - '"d70012a7-0000-0400-0000-6279ccce0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - ad78521fa8114a4fb944bcff60de40cf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace list + Connection: + - keep-alive + ParameterSetName: + - --resource-group + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces?api-version=2021-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003","name":"myworkspace000003","type":"Microsoft.HealthcareApis/workspaces","etag":"\"d70012a7-0000-0400-0000-6279ccce0000\"","location":"westus2","properties":{"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '419' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:24:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 72f6b0d9a7fce64eb151f9fbc7bd839c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/workspaces?api-version=2021-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003","name":"myworkspace000003","type":"Microsoft.HealthcareApis/workspaces","etag":"\"d70012a7-0000-0400-0000-6279ccce0000\"","location":"westus2","properties":{"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '419' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:24:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - e665409def667a41b0ed0ef1104e7880 + status: + code: 200 + message: OK +- request: + body: '{"tags": {"tagKey": "tagValue"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace update + Connection: + - keep-alive + Content-Length: + - '32' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --name --tags + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003","name":"myworkspace000003","type":"Microsoft.HealthcareApis/workspaces","etag":"\"d7003ba9-0000-0400-0000-6279ccd40000\"","location":"westus2","tags":{"tagKey":"tagValue"},"properties":{"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '436' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:24:21 GMT + etag: + - '"d7003ba9-0000-0400-0000-6279ccd40000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-request-id: + - 61ad26db1598a14d894d204261684d19 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --resource-group --name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003?api-version=2021-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/60rtzudirrxv1lwgl4k8vy5nw?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 10 May 2022 02:24:22 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/60rtzudirrxv1lwgl4k8vy5nw?api-version=2021-11-01&operationResultResponseType=Location + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-request-id: + - 124b1aa70aff9e4a956815548fbb7698 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/60rtzudirrxv1lwgl4k8vy5nw?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/60rtzudirrxv1lwgl4k8vy5nw","name":"60rtzudirrxv1lwgl4k8vy5nw","status":"Succeeded","startTime":"2022-05-10T02:24:23.3113258Z"}' + headers: + cache-control: + - no-cache + content-length: + - '255' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 02:24:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 828d79b89e5a814487f3aac4bc13b98c + status: + code: 200 + message: OK +version: 1 diff --git a/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_workspace_dicom.yaml b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_workspace_dicom.yaml new file mode 100644 index 00000000000..291c0a03c7b --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_workspace_dicom.yaml @@ -0,0 +1,1808 @@ +interactions: +- request: + body: '{"location": "westus2"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace create + Connection: + - keep-alive + Content-Length: + - '23' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --location --name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003","name":"myworkspace000003","type":"Microsoft.HealthcareApis/workspaces","etag":"\"320196bf-0000-0400-0000-627c97de0000\"","location":"westus2","properties":{"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '407' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:15:10 GMT + etag: + - '"320196bf-0000-0400-0000-627c97de0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-request-id: + - 99ff3aef90ce32498db3082ec91e4cf2 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace wait + Connection: + - keep-alive + ParameterSetName: + - --created --resource-group --name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003","name":"myworkspace000003","type":"Microsoft.HealthcareApis/workspaces","etag":"\"320196bf-0000-0400-0000-627c97de0000\"","location":"westus2","properties":{"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '407' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:15:11 GMT + etag: + - '"320196bf-0000-0400-0000-627c97de0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 7228236c39fa0846b40d9599c50e9f6b + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + Content-Length: + - '23' + Content-Type: + - application/json + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/dicomservices/mydicom000004?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/dicomservices/mydicom000004","name":"myworkspace000003/mydicom000004","type":"Microsoft.HealthcareApis/workspaces/dicomservices","etag":"\"32012ac0-0000-0400-0000-627c97e40000\"","location":"westus2","properties":{"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/","audiences":["https://dicom.healthcareapis.azure.com/","https://dicom.healthcareapis.azure.com"]},"serviceUrl":"","privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '693' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:15:17 GMT + etag: + - '"32012ac0-0000-0400-0000-627c97e40000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-request-id: + - 30fbca06e2d7aa4b907873fa6d235fe5 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:15:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 2770f3197962e64082a0e2c8c92203ed + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:16:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 43016931d9924642a3469e3958d52f5a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:16:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - de8600e48414884382e2ff8233a84a37 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:17:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - b88bbeaa5712cd42b2d971b32b66236d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:17:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - aa084009efec5d4e851855fe471efe1e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:18:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 1753ef21228dac4fad76b6979b596c46 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:18:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 5c76f4302eae2a4191a3b33cb3b38966 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:19:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - d3d1be9d3dae394eb76c5e4d813ab057 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:19:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - d73d3bb2599582498f603e2c5055358b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:20:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - ed56c819f3fad94284780dfe13e85d4e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:20:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 18c734da8ba0634685a4c0803d5bfa84 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:21:22 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 2034b42653bbf64e94b50c384ecb32b2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:21:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 509200ae133602449d1ffda4873ea687 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:22:22 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - c7fa63211eeabe4bb78961550a69446b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:22:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - ca1fa2a580d1d3408c150c9f285e53cb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:23:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 8f3e960190c5cc4fbff8111d4ed3298d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:23:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 125bb0b7aebba34bbdd241907adcd3fd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:24:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 808420be3d7bd94daed3d2f737493275 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:24:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 0606097fe0cef94b883d8380a522377e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:25:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - cd9b05bcc368f04d8c68e005094d91fb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Running","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:25:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 680ee4dc39a2284d9152c3efc736bb1f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jvhrknpog4lj9mgrtj4s6ejvn","name":"jvhrknpog4lj9mgrtj4s6ejvn","status":"Succeeded","startTime":"2022-05-12T05:15:16.5222648Z"}' + headers: + cache-control: + - no-cache + content-length: + - '255' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:26:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - c14d2299b4ac94439c60547c61fd1f86 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service create + Connection: + - keep-alive + ParameterSetName: + - --name --location --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/dicomservices/mydicom000004?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/dicomservices/mydicom000004","name":"myworkspace000003/mydicom000004","type":"Microsoft.HealthcareApis/workspaces/dicomservices","etag":"\"33013720-0000-0400-0000-627c9a790000\"","location":"westus2","properties":{"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/","audiences":["https://dicom.healthcareapis.azure.com/","https://dicom.healthcareapis.azure.com"]},"serviceUrl":"https://myworkspace000003-mydicom000004.dicom.azurehealthcareapis.com","privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '763' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:26:26 GMT + etag: + - '"33013720-0000-0400-0000-627c9a790000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - f3c295a9a43a004bb819913a4411cd79 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service wait + Connection: + - keep-alive + ParameterSetName: + - --created --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/dicomservices/mydicom000004?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/dicomservices/mydicom000004","name":"myworkspace000003/mydicom000004","type":"Microsoft.HealthcareApis/workspaces/dicomservices","etag":"\"33013720-0000-0400-0000-627c9a790000\"","location":"westus2","properties":{"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/","audiences":["https://dicom.healthcareapis.azure.com/","https://dicom.healthcareapis.azure.com"]},"serviceUrl":"https://myworkspace000003-mydicom000004.dicom.azurehealthcareapis.com","privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '763' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:26:26 GMT + etag: + - '"33013720-0000-0400-0000-627c9a790000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 1d145ab63a39964cbda16e0c50a3add6 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service show + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/dicomservices/mydicom000004?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/dicomservices/mydicom000004","name":"myworkspace000003/mydicom000004","type":"Microsoft.HealthcareApis/workspaces/dicomservices","etag":"\"33013720-0000-0400-0000-627c9a790000\"","location":"westus2","properties":{"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/","audiences":["https://dicom.healthcareapis.azure.com/","https://dicom.healthcareapis.azure.com"]},"serviceUrl":"https://myworkspace000003-mydicom000004.dicom.azurehealthcareapis.com","privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '763' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:26:26 GMT + etag: + - '"33013720-0000-0400-0000-627c9a790000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 24899dedc65a7e44a9c675833b404cf7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/dicomservices?api-version=2021-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/dicomservices/mydicom000004","name":"myworkspace000003/mydicom000004","type":"Microsoft.HealthcareApis/workspaces/dicomservices","etag":"\"33013720-0000-0400-0000-627c9a790000\"","location":"westus2","properties":{"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/","audiences":["https://dicom.healthcareapis.azure.com/","https://dicom.healthcareapis.azure.com"]},"serviceUrl":"https://myworkspace000003-mydicom000004.dicom.azurehealthcareapis.com","privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '775' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:26:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - fa1d186a496a114cb1d974deda937574 + status: + code: 200 + message: OK +- request: + body: '{"tags": {"tagKey": "tagValue"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service update + Connection: + - keep-alive + Content-Length: + - '32' + Content-Type: + - application/json + ParameterSetName: + - --name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/dicomservices/mydicom000004?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/dicomservices/mydicom000004","name":"myworkspace000003/mydicom000004","type":"Microsoft.HealthcareApis/workspaces/dicomservices","etag":"\"3301fe20-0000-0400-0000-627c9a860000\"","location":"westus2","tags":{"tagKey":"tagValue"},"properties":{"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/","audiences":["https://dicom.healthcareapis.azure.com/","https://dicom.healthcareapis.azure.com"]},"serviceUrl":"https://myworkspace000003-mydicom000004.dicom.azurehealthcareapis.com","privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '792' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:26:32 GMT + etag: + - '"3301fe20-0000-0400-0000-627c9a860000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-request-id: + - d1c916cfccd087498654e23763b6ed70 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/dicomservices/mydicom000004?api-version=2021-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/247o7h5xg9e8owgbsn9exjho6?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 12 May 2022 05:26:34 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/247o7h5xg9e8owgbsn9exjho6?api-version=2021-11-01&operationResultResponseType=Location + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-request-id: + - 4d71419a4075b74b93f157398e396252 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/247o7h5xg9e8owgbsn9exjho6?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/247o7h5xg9e8owgbsn9exjho6","name":"247o7h5xg9e8owgbsn9exjho6","status":"Running","startTime":"2022-05-12T05:26:34.6267977Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:27:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - d6b0801e14cba74798a7e1ba53201009 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/247o7h5xg9e8owgbsn9exjho6?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/247o7h5xg9e8owgbsn9exjho6","name":"247o7h5xg9e8owgbsn9exjho6","status":"Running","startTime":"2022-05-12T05:26:34.6267977Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:27:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 13a4396bd0198241b59bc0dda36de101 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/247o7h5xg9e8owgbsn9exjho6?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/247o7h5xg9e8owgbsn9exjho6","name":"247o7h5xg9e8owgbsn9exjho6","status":"Running","startTime":"2022-05-12T05:26:34.6267977Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:28:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - afa9aad12c7cd948a4e983457ada9a2f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace dicom-service delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/247o7h5xg9e8owgbsn9exjho6?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/247o7h5xg9e8owgbsn9exjho6","name":"247o7h5xg9e8owgbsn9exjho6","status":"Succeeded","startTime":"2022-05-12T05:26:34.6267977Z"}' + headers: + cache-control: + - no-cache + content-length: + - '255' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:28:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 4c195d59993916469c3a8402950348b8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --resource-group --name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003?api-version=2021-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/lgyc7oend65dt5hbafzhuga1r?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 12 May 2022 05:28:38 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/lgyc7oend65dt5hbafzhuga1r?api-version=2021-11-01&operationResultResponseType=Location + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-request-id: + - c7d995d52b76a848bde255e574ffa420 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --name + User-Agent: + - AZURECLI/2.36.0 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/lgyc7oend65dt5hbafzhuga1r?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/lgyc7oend65dt5hbafzhuga1r","name":"lgyc7oend65dt5hbafzhuga1r","status":"Succeeded","startTime":"2022-05-12T05:28:38.2102042Z"}' + headers: + cache-control: + - no-cache + content-length: + - '255' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 12 May 2022 05:29:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - c7da1dec65f1ae48a2d81bd07cd599fb + status: + code: 200 + message: OK +version: 1 diff --git a/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_workspace_fhir.yaml b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_workspace_fhir.yaml new file mode 100644 index 00000000000..e3369c22188 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_workspace_fhir.yaml @@ -0,0 +1,1397 @@ +interactions: +- request: + body: '{"location": "westus2"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace create + Connection: + - keep-alive + Content-Length: + - '23' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --location --name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003","name":"myworkspace000003","type":"Microsoft.HealthcareApis/workspaces","etag":"\"df009b7b-0000-0400-0000-627a11850000\"","location":"westus2","properties":{"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '407' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:17:25 GMT + etag: + - '"df009b7b-0000-0400-0000-627a11850000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-request-id: + - a439d9df99248d458c02025b8b530428 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace wait + Connection: + - keep-alive + ParameterSetName: + - --created --resource-group --name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003","name":"myworkspace000003","type":"Microsoft.HealthcareApis/workspaces","etag":"\"df009b7b-0000-0400-0000-627a11850000\"","location":"westus2","properties":{"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '407' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:17:26 GMT + etag: + - '"df009b7b-0000-0400-0000-627a11850000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 40ae037717a67f4e95f1ee205b76c9b8 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned"}, "location": "westus2", "tags": + {"additionalProp1": "string", "additionalProp2": "string", "additionalProp3": + "string"}, "kind": "fhir-R4", "properties": {"authenticationConfiguration": + {"authority": "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc", + "audience": "https://azurehealthcareapis.com", "smartProxyEnabled": true}, "corsConfiguration": + {"origins": ["*"], "headers": ["*"], "methods": ["DELETE", "GET", "OPTIONS", + "PATCH", "POST", "PUT"], "maxAge": 1440, "allowCredentials": false}, "exportConfiguration": + {"storageAccountName": "clitest000002"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + Content-Length: + - '620' + Content-Type: + - application/json + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/fhirservices/myfhirservice2000009?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/fhirservices/myfhirservice2000009","name":"myworkspace000003/myfhirservice2000009","type":"Microsoft.HealthcareApis/workspaces/fhirservices","etag":"\"df00e67d-0000-0400-0000-627a118d0000\"","location":"westus2","kind":"fhir-R4","tags":{"additionalProp1":"string","additionalProp2":"string","additionalProp3":"string"},"properties":{"accessPolicies":[],"acrConfiguration":{"loginServers":[]},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","audience":"https://azurehealthcareapis.com","smartProxyEnabled":true},"corsConfiguration":{"origins":["*"],"headers":["*"],"methods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"maxAge":1440,"allowCredentials":false},"exportConfiguration":{"storageAccountName":"clitest000002"},"resourceVersionPolicyConfiguration":{"default":"versioned"},"eventState":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Creating"},"identity":{"principalId":"c1b45511-2797-4223-a174-c768861ada94","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '1264' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:17:34 GMT + etag: + - '"df00e67d-0000-0400-0000-627a118d0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-request-id: + - e730c4ec2f0ffa4698c443916a82e047 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399","name":"6uuqk5vvqa03l2xasj5bwb399","status":"Running","startTime":"2022-05-10T07:17:33.1785547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:18:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - f675f70014f06c4f9b9d33f69b0aedd5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399","name":"6uuqk5vvqa03l2xasj5bwb399","status":"Running","startTime":"2022-05-10T07:17:33.1785547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:18:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 04be452093da674fb1a37a1b13bd888e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399","name":"6uuqk5vvqa03l2xasj5bwb399","status":"Running","startTime":"2022-05-10T07:17:33.1785547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:19:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 7d31e0080985e44289dca8f20cfc7e85 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399","name":"6uuqk5vvqa03l2xasj5bwb399","status":"Running","startTime":"2022-05-10T07:17:33.1785547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:19:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 757f32d865e4194da8aa26aa4fa501d8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399","name":"6uuqk5vvqa03l2xasj5bwb399","status":"Running","startTime":"2022-05-10T07:17:33.1785547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:20:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 3760a3b4ba2a8846825ce33694c807be + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399","name":"6uuqk5vvqa03l2xasj5bwb399","status":"Running","startTime":"2022-05-10T07:17:33.1785547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:20:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - e650ed881fa26d418ab6d119d20b6001 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399","name":"6uuqk5vvqa03l2xasj5bwb399","status":"Running","startTime":"2022-05-10T07:17:33.1785547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:21:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - d6ff48cedecc064c88bf1f47c0cd3057 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399","name":"6uuqk5vvqa03l2xasj5bwb399","status":"Running","startTime":"2022-05-10T07:17:33.1785547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:21:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 398170b00a60bb4d9f72580ad11ae2b5 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399","name":"6uuqk5vvqa03l2xasj5bwb399","status":"Running","startTime":"2022-05-10T07:17:33.1785547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:22:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - e22f984c6107b144b66137c8e3a3ef62 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399","name":"6uuqk5vvqa03l2xasj5bwb399","status":"Running","startTime":"2022-05-10T07:17:33.1785547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:22:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 6332018780f05c46b3e407ac4565b93d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399","name":"6uuqk5vvqa03l2xasj5bwb399","status":"Running","startTime":"2022-05-10T07:17:33.1785547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:23:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - adc507e616428d4981ce29e5a7b37f93 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399","name":"6uuqk5vvqa03l2xasj5bwb399","status":"Running","startTime":"2022-05-10T07:17:33.1785547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:23:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - d820d170ee766b4ab943c0e15ccb82c9 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399","name":"6uuqk5vvqa03l2xasj5bwb399","status":"Running","startTime":"2022-05-10T07:17:33.1785547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:24:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - ac72a9a83f194942898276414aec5960 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6uuqk5vvqa03l2xasj5bwb399","name":"6uuqk5vvqa03l2xasj5bwb399","status":"Succeeded","startTime":"2022-05-10T07:17:33.1785547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '255' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:24:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - f915538d7bfaa6469c2de152c631d1c7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/fhirservices/myfhirservice2000009?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/fhirservices/myfhirservice2000009","name":"myworkspace000003/myfhirservice2000009","type":"Microsoft.HealthcareApis/workspaces/fhirservices","etag":"\"df0043b3-0000-0400-0000-627a13360000\"","location":"westus2","kind":"fhir-R4","tags":{"additionalProp1":"string","additionalProp2":"string","additionalProp3":"string"},"properties":{"accessPolicies":[],"acrConfiguration":{"loginServers":[]},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","audience":"https://azurehealthcareapis.com","smartProxyEnabled":true},"corsConfiguration":{"origins":["*"],"headers":["*"],"methods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"maxAge":1440,"allowCredentials":false},"exportConfiguration":{"storageAccountName":"clitest000002"},"resourceVersionPolicyConfiguration":{"default":"versioned"},"eventState":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"},"identity":{"principalId":"c1b45511-2797-4223-a174-c768861ada94","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + cache-control: + - no-cache + content-length: + - '1265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:24:39 GMT + etag: + - '"df0043b3-0000-0400-0000-627a13360000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - acc477786c060d458c33ba6ef55f2ca4 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service show + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/fhirservices/myfhirservice2000009?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/fhirservices/myfhirservice2000009","name":"myworkspace000003/myfhirservice2000009","type":"Microsoft.HealthcareApis/workspaces/fhirservices","etag":"\"df0043b3-0000-0400-0000-627a13360000\"","location":"westus2","kind":"fhir-R4","tags":{"additionalProp1":"string","additionalProp2":"string","additionalProp3":"string"},"properties":{"accessPolicies":[],"acrConfiguration":{"loginServers":[]},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","audience":"https://azurehealthcareapis.com","smartProxyEnabled":true},"corsConfiguration":{"origins":["*"],"headers":["*"],"methods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"maxAge":1440,"allowCredentials":false},"exportConfiguration":{"storageAccountName":"clitest000002"},"resourceVersionPolicyConfiguration":{"default":"versioned"},"eventState":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"},"identity":{"principalId":"c1b45511-2797-4223-a174-c768861ada94","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + cache-control: + - no-cache + content-length: + - '1265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:24:40 GMT + etag: + - '"df0043b3-0000-0400-0000-627a13360000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 8d1b164f4bffa94c838cd891fa9b6ad8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/fhirservices?api-version=2021-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/fhirservices/myfhirservice2000009","name":"myworkspace000003/myfhirservice2000009","type":"Microsoft.HealthcareApis/workspaces/fhirservices","etag":"\"df0043b3-0000-0400-0000-627a13360000\"","location":"westus2","kind":"fhir-R4","tags":{"additionalProp1":"string","additionalProp2":"string","additionalProp3":"string"},"properties":{"accessPolicies":[],"acrConfiguration":{"loginServers":[]},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","audience":"https://azurehealthcareapis.com","smartProxyEnabled":true},"corsConfiguration":{"origins":["*"],"headers":["*"],"methods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"maxAge":1440,"allowCredentials":false},"exportConfiguration":{"storageAccountName":"clitest000002"},"resourceVersionPolicyConfiguration":{"default":"versioned"},"eventState":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"},"identity":{"principalId":"c1b45511-2797-4223-a174-c768861ada94","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1277' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:24:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - e542e700c46c66438a04b61e6c68e474 + status: + code: 200 + message: OK +- request: + body: '{"tags": {"tagKey": "tagValue"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service update + Connection: + - keep-alive + Content-Length: + - '32' + Content-Type: + - application/json + ParameterSetName: + - --name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/fhirservices/myfhirservice2000009?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/fhirservices/myfhirservice2000009","name":"myworkspace000003/myfhirservice2000009","type":"Microsoft.HealthcareApis/workspaces/fhirservices","etag":"\"df0074b3-0000-0400-0000-627a133a0000\"","location":"westus2","kind":"fhir-R4","tags":{"tagKey":"tagValue"},"properties":{"accessPolicies":[],"acrConfiguration":{"loginServers":[]},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","audience":"https://azurehealthcareapis.com","smartProxyEnabled":true},"corsConfiguration":{"origins":["*"],"headers":["*"],"methods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"maxAge":1440,"allowCredentials":false},"exportConfiguration":{"storageAccountName":"clitest000002"},"resourceVersionPolicyConfiguration":{"default":"versioned"},"eventState":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"},"identity":{"principalId":"c1b45511-2797-4223-a174-c768861ada94","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + cache-control: + - no-cache + content-length: + - '1204' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:24:44 GMT + etag: + - '"df0074b3-0000-0400-0000-627a133a0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-request-id: + - e39f6209be41b149aec52edf58cc0369 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003/fhirservices/myfhirservice2000009?api-version=2021-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/2b01of76n7paa082irzvxt97r?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 10 May 2022 07:24:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/2b01of76n7paa082irzvxt97r?api-version=2021-11-01&operationResultResponseType=Location + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + x-request-id: + - e730e25c913bcb4e865797222449083d + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/2b01of76n7paa082irzvxt97r?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/2b01of76n7paa082irzvxt97r","name":"2b01of76n7paa082irzvxt97r","status":"Running","startTime":"2022-05-10T07:24:46.850589Z"}' + headers: + cache-control: + - no-cache + content-length: + - '252' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:25:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 3a4174a209907641894fe68bc64a01cb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/2b01of76n7paa082irzvxt97r?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/2b01of76n7paa082irzvxt97r","name":"2b01of76n7paa082irzvxt97r","status":"Running","startTime":"2022-05-10T07:24:46.850589Z"}' + headers: + cache-control: + - no-cache + content-length: + - '252' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:25:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 7aaaa4f15994cd479f9367df24cb57f0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/2b01of76n7paa082irzvxt97r?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/2b01of76n7paa082irzvxt97r","name":"2b01of76n7paa082irzvxt97r","status":"Running","startTime":"2022-05-10T07:24:46.850589Z"}' + headers: + cache-control: + - no-cache + content-length: + - '252' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:26:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 1716fae09e05fb4586e919fcc9013521 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/2b01of76n7paa082irzvxt97r?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/2b01of76n7paa082irzvxt97r","name":"2b01of76n7paa082irzvxt97r","status":"Succeeded","startTime":"2022-05-10T07:24:46.850589Z"}' + headers: + cache-control: + - no-cache + content-length: + - '254' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:26:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 99cd2d13fd61b742806cff7dd2955e26 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --resource-group --name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000003?api-version=2021-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/1ga02nm1qebe22yzyoaaw0pbc?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 10 May 2022 07:26:50 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/1ga02nm1qebe22yzyoaaw0pbc?api-version=2021-11-01&operationResultResponseType=Location + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-request-id: + - 1109723c8c43454b8bed431f3a4f69ac + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/1ga02nm1qebe22yzyoaaw0pbc?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/1ga02nm1qebe22yzyoaaw0pbc","name":"1ga02nm1qebe22yzyoaaw0pbc","status":"Succeeded","startTime":"2022-05-10T07:26:50.7372669Z"}' + headers: + cache-control: + - no-cache + content-length: + - '255' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:27:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 464ab97810bd0142ad002ff35e46208e + status: + code: 200 + message: OK +version: 1 diff --git a/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_workspace_iot_connector.yaml b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_workspace_iot_connector.yaml new file mode 100644 index 00000000000..6002476c2d0 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcare_workspace_iot_connector.yaml @@ -0,0 +1,2879 @@ +interactions: +- request: + body: '{"location": "westus2"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace create + Connection: + - keep-alive + Content-Length: + - '23' + Content-Type: + - application/json + ParameterSetName: + - --resource-group --location --name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004","name":"myworkspace000004","type":"Microsoft.HealthcareApis/workspaces","etag":"\"e000871b-0000-0400-0000-627a16780000\"","location":"westus2","properties":{"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '407' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:38:34 GMT + etag: + - '"e000871b-0000-0400-0000-627a16780000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-request-id: + - 9ed6aa29fb57d9498e01609b8e31b2c5 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace wait + Connection: + - keep-alive + ParameterSetName: + - --created --resource-group --name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004","name":"myworkspace000004","type":"Microsoft.HealthcareApis/workspaces","etag":"\"e000871b-0000-0400-0000-627a16780000\"","location":"westus2","properties":{"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '407' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:38:37 GMT + etag: + - '"e000871b-0000-0400-0000-627a16780000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 9daf88e45b6d8d4ca5023eab7bd145f1 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned"}, "location": "westus2", "tags": + {"additionalProp1": "string", "additionalProp2": "string", "additionalProp3": + "string"}, "properties": {"ingestionEndpointConfiguration": {"eventHubName": + "MyEventHubName", "consumerGroup": "ConsumerGroupA", "fullyQualifiedEventHubNamespace": + "myeventhub.servicesbus.windows.net"}, "deviceMapping": {"content": {"template": + [{"template": {"deviceIdExpression": "$.deviceid", "timestampExpression": "$.measurementdatetime", + "typeMatchExpression": "$..[?(@heartrate)]", "typeName": "heartrate", "values": + [{"required": "true", "valueExpression": "$.heartrate", "valueName": "hr"}]}, + "templateType": "JsonPathContent"}], "templateType": "CollectionContent"}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector create + Connection: + - keep-alive + Content-Length: + - '729' + Content-Type: + - application/json + ParameterSetName: + - --identity-type --location --content --ingestion-endpoint-configuration --tags + --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003","name":"myworkspace000004/myiot000003","type":"Microsoft.HealthcareApis/workspaces/iotconnectors","etag":"\"e000f21d-0000-0400-0000-627a16860000\"","location":"westus2","tags":{"additionalProp1":"string","additionalProp2":"string","additionalProp3":"string"},"properties":{"ingestionEndpointConfiguration":{"eventHubName":"MyEventHubName","consumerGroup":"ConsumerGroupA","fullyQualifiedEventHubNamespace":"myeventhub.servicesbus.windows.net"},"deviceMapping":{"content":{"template":[{"template":{"deviceIdExpression":"$.deviceid","timestampExpression":"$.measurementdatetime","typeMatchExpression":"$..[?(@heartrate)]","typeName":"heartrate","values":[{"required":"true","valueExpression":"$.heartrate","valueName":"hr"}]},"templateType":"JsonPathContent"}],"templateType":"CollectionContent"}},"provisioningState":"Creating"},"identity":{"principalId":"4c0fafd6-7cd9-4825-b8c5-de72f140ac92","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '1147' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:38:49 GMT + etag: + - '"e000f21d-0000-0400-0000-627a16860000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-request-id: + - 2dfa87663682f043ac8df939a28850cf + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector create + Connection: + - keep-alive + ParameterSetName: + - --identity-type --location --content --ingestion-endpoint-configuration --tags + --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd","name":"i56w6ng7yo05aikg5x4m1ybpd","status":"Running","startTime":"2022-05-10T07:38:46.1274444Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:39:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 8243f5f155cb974994db73d15787a2c1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector create + Connection: + - keep-alive + ParameterSetName: + - --identity-type --location --content --ingestion-endpoint-configuration --tags + --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd","name":"i56w6ng7yo05aikg5x4m1ybpd","status":"Running","startTime":"2022-05-10T07:38:46.1274444Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:39:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 172d727fe3717442aa7ac20de01d77fb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector create + Connection: + - keep-alive + ParameterSetName: + - --identity-type --location --content --ingestion-endpoint-configuration --tags + --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd","name":"i56w6ng7yo05aikg5x4m1ybpd","status":"Running","startTime":"2022-05-10T07:38:46.1274444Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:40:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 6be066eba36b5a44b937ffd4df29e930 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector create + Connection: + - keep-alive + ParameterSetName: + - --identity-type --location --content --ingestion-endpoint-configuration --tags + --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd","name":"i56w6ng7yo05aikg5x4m1ybpd","status":"Running","startTime":"2022-05-10T07:38:46.1274444Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:40:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 5bb58b81d6cf9f43803a3c59d55b277f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector create + Connection: + - keep-alive + ParameterSetName: + - --identity-type --location --content --ingestion-endpoint-configuration --tags + --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd","name":"i56w6ng7yo05aikg5x4m1ybpd","status":"Running","startTime":"2022-05-10T07:38:46.1274444Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:41:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - d046e22323c1c44488177d8a3156909c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector create + Connection: + - keep-alive + ParameterSetName: + - --identity-type --location --content --ingestion-endpoint-configuration --tags + --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd","name":"i56w6ng7yo05aikg5x4m1ybpd","status":"Running","startTime":"2022-05-10T07:38:46.1274444Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:41:57 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 12317a5b7cdaf5438be2048501c3c089 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector create + Connection: + - keep-alive + ParameterSetName: + - --identity-type --location --content --ingestion-endpoint-configuration --tags + --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd","name":"i56w6ng7yo05aikg5x4m1ybpd","status":"Running","startTime":"2022-05-10T07:38:46.1274444Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:42:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 4e2e0ad8ee26454e8a6282123df04920 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector create + Connection: + - keep-alive + ParameterSetName: + - --identity-type --location --content --ingestion-endpoint-configuration --tags + --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd","name":"i56w6ng7yo05aikg5x4m1ybpd","status":"Running","startTime":"2022-05-10T07:38:46.1274444Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:42:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 2a3bd061fbf0144591b4a601b1c00a6f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector create + Connection: + - keep-alive + ParameterSetName: + - --identity-type --location --content --ingestion-endpoint-configuration --tags + --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd","name":"i56w6ng7yo05aikg5x4m1ybpd","status":"Running","startTime":"2022-05-10T07:38:46.1274444Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:43:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 11f9f17ee420d745bb5a2b3f38d58c0a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector create + Connection: + - keep-alive + ParameterSetName: + - --identity-type --location --content --ingestion-endpoint-configuration --tags + --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/i56w6ng7yo05aikg5x4m1ybpd","name":"i56w6ng7yo05aikg5x4m1ybpd","status":"Succeeded","startTime":"2022-05-10T07:38:46.1274444Z"}' + headers: + cache-control: + - no-cache + content-length: + - '255' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:44:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 8916932c5b80dd46bbe4c8cc258b63a8 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector create + Connection: + - keep-alive + ParameterSetName: + - --identity-type --location --content --ingestion-endpoint-configuration --tags + --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003","name":"myworkspace000004/myiot000003","type":"Microsoft.HealthcareApis/workspaces/iotconnectors","etag":"\"e000d33c-0000-0400-0000-627a17a30000\"","location":"westus2","tags":{"additionalProp1":"string","additionalProp2":"string","additionalProp3":"string"},"properties":{"ingestionEndpointConfiguration":{"eventHubName":"MyEventHubName","consumerGroup":"ConsumerGroupA","fullyQualifiedEventHubNamespace":"myeventhub.servicesbus.windows.net"},"deviceMapping":{"content":{"template":[{"template":{"deviceIdExpression":"$.deviceid","timestampExpression":"$.measurementdatetime","typeMatchExpression":"$..[?(@heartrate)]","typeName":"heartrate","values":[{"required":"true","valueExpression":"$.heartrate","valueName":"hr"}]},"templateType":"JsonPathContent"}],"templateType":"CollectionContent"}},"provisioningState":"Succeeded"},"identity":{"principalId":"4c0fafd6-7cd9-4825-b8c5-de72f140ac92","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + cache-control: + - no-cache + content-length: + - '1148' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:44:01 GMT + etag: + - '"e000d33c-0000-0400-0000-627a17a30000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - ce339a1bcdafb148a139dc6a8369c967 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector wait + Connection: + - keep-alive + ParameterSetName: + - --created --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003","name":"myworkspace000004/myiot000003","type":"Microsoft.HealthcareApis/workspaces/iotconnectors","etag":"\"e000d33c-0000-0400-0000-627a17a30000\"","location":"westus2","tags":{"additionalProp1":"string","additionalProp2":"string","additionalProp3":"string"},"properties":{"ingestionEndpointConfiguration":{"eventHubName":"MyEventHubName","consumerGroup":"ConsumerGroupA","fullyQualifiedEventHubNamespace":"myeventhub.servicesbus.windows.net"},"deviceMapping":{"content":{"template":[{"template":{"deviceIdExpression":"$.deviceid","timestampExpression":"$.measurementdatetime","typeMatchExpression":"$..[?(@heartrate)]","typeName":"heartrate","values":[{"required":"true","valueExpression":"$.heartrate","valueName":"hr"}]},"templateType":"JsonPathContent"}],"templateType":"CollectionContent"}},"provisioningState":"Succeeded"},"identity":{"principalId":"4c0fafd6-7cd9-4825-b8c5-de72f140ac92","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + cache-control: + - no-cache + content-length: + - '1148' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:44:02 GMT + etag: + - '"e000d33c-0000-0400-0000-627a17a30000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 8bf221854c9e274f98d1ee9e967769bd + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector show + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003","name":"myworkspace000004/myiot000003","type":"Microsoft.HealthcareApis/workspaces/iotconnectors","etag":"\"e000d33c-0000-0400-0000-627a17a30000\"","location":"westus2","tags":{"additionalProp1":"string","additionalProp2":"string","additionalProp3":"string"},"properties":{"ingestionEndpointConfiguration":{"eventHubName":"MyEventHubName","consumerGroup":"ConsumerGroupA","fullyQualifiedEventHubNamespace":"myeventhub.servicesbus.windows.net"},"deviceMapping":{"content":{"template":[{"template":{"deviceIdExpression":"$.deviceid","timestampExpression":"$.measurementdatetime","typeMatchExpression":"$..[?(@heartrate)]","typeName":"heartrate","values":[{"required":"true","valueExpression":"$.heartrate","valueName":"hr"}]},"templateType":"JsonPathContent"}],"templateType":"CollectionContent"}},"provisioningState":"Succeeded"},"identity":{"principalId":"4c0fafd6-7cd9-4825-b8c5-de72f140ac92","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + cache-control: + - no-cache + content-length: + - '1148' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:44:03 GMT + etag: + - '"e000d33c-0000-0400-0000-627a17a30000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - aed54ae39432234583af1d4c2ed54812 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector list + Connection: + - keep-alive + ParameterSetName: + - --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors?api-version=2021-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003","name":"myworkspace000004/myiot000003","type":"Microsoft.HealthcareApis/workspaces/iotconnectors","etag":"\"e000d33c-0000-0400-0000-627a17a30000\"","location":"westus2","tags":{"additionalProp1":"string","additionalProp2":"string","additionalProp3":"string"},"properties":{"ingestionEndpointConfiguration":{"eventHubName":"MyEventHubName","consumerGroup":"ConsumerGroupA","fullyQualifiedEventHubNamespace":"myeventhub.servicesbus.windows.net"},"deviceMapping":{"content":{"template":[{"template":{"deviceIdExpression":"$.deviceid","timestampExpression":"$.measurementdatetime","typeMatchExpression":"$..[?(@heartrate)]","typeName":"heartrate","values":[{"required":"true","valueExpression":"$.heartrate","valueName":"hr"}]},"templateType":"JsonPathContent"}],"templateType":"CollectionContent"}},"provisioningState":"Succeeded"},"identity":{"principalId":"4c0fafd6-7cd9-4825-b8c5-de72f140ac92","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1160' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:44:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 1cef072fc48c4d4ba07737ce1afb7ca2 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned"}, "tags": {"additionalProp1": "string", + "additionalProp2": "string", "additionalProp3": "string"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector update + Connection: + - keep-alive + Content-Length: + - '137' + Content-Type: + - application/json + ParameterSetName: + - --name --identity-type --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003","name":"myworkspace000004/myiot000003","type":"Microsoft.HealthcareApis/workspaces/iotconnectors","etag":"\"e000c63e-0000-0400-0000-627a17c70000\"","location":"westus2","tags":{"additionalProp1":"string","additionalProp2":"string","additionalProp3":"string"},"properties":{"ingestionEndpointConfiguration":{"eventHubName":"MyEventHubName","consumerGroup":"ConsumerGroupA","fullyQualifiedEventHubNamespace":"myeventhub.servicesbus.windows.net"},"deviceMapping":{"content":{"template":[{"template":{"deviceIdExpression":"$.deviceid","timestampExpression":"$.measurementdatetime","typeMatchExpression":"$..[?(@heartrate)]","typeName":"heartrate","values":[{"required":"true","valueExpression":"$.heartrate","valueName":"hr"}]},"templateType":"JsonPathContent"}],"templateType":"CollectionContent"}},"provisioningState":"Accepted"},"identity":{"principalId":"4c0fafd6-7cd9-4825-b8c5-de72f140ac92","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/krefs3ucteqsxqjpj0aji6skb?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '1147' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:44:06 GMT + etag: + - '"e000c63e-0000-0400-0000-627a17c70000"' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/krefs3ucteqsxqjpj0aji6skb?api-version=2021-11-01&operationResultResponseType=Location + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-request-id: + - 4a9bf4520e04944f95848d36137635c3 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector update + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/krefs3ucteqsxqjpj0aji6skb?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/krefs3ucteqsxqjpj0aji6skb","name":"krefs3ucteqsxqjpj0aji6skb","status":"Running","startTime":"2022-05-10T07:44:07.1627839Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:44:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 4b6b5e384e1aa34694c78a51830cf7cc + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector update + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/krefs3ucteqsxqjpj0aji6skb?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/krefs3ucteqsxqjpj0aji6skb","name":"krefs3ucteqsxqjpj0aji6skb","status":"Succeeded","startTime":"2022-05-10T07:44:07.1627839Z"}' + headers: + cache-control: + - no-cache + content-length: + - '255' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:45:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 01828a2c56b8674fb2bdefb6b059ec33 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector update + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003","name":"myworkspace000004/myiot000003","type":"Microsoft.HealthcareApis/workspaces/iotconnectors","etag":"\"e0005448-0000-0400-0000-627a17f30000\"","location":"westus2","tags":{"additionalProp1":"string","additionalProp2":"string","additionalProp3":"string"},"properties":{"ingestionEndpointConfiguration":{"eventHubName":"MyEventHubName","consumerGroup":"ConsumerGroupA","fullyQualifiedEventHubNamespace":"myeventhub.servicesbus.windows.net"},"deviceMapping":{"content":{"template":[{"template":{"deviceIdExpression":"$.deviceid","timestampExpression":"$.measurementdatetime","typeMatchExpression":"$..[?(@heartrate)]","typeName":"heartrate","values":[{"required":"true","valueExpression":"$.heartrate","valueName":"hr"}]},"templateType":"JsonPathContent"}],"templateType":"CollectionContent"}},"provisioningState":"Succeeded"},"identity":{"principalId":"4c0fafd6-7cd9-4825-b8c5-de72f140ac92","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + cache-control: + - no-cache + content-length: + - '1148' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:45:07 GMT + etag: + - '"e0005448-0000-0400-0000-627a17f30000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 5f6c3f2893f9bb4b9866b07d6acf52c8 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned"}, "location": "westus2", "tags": + {"additionalProp1": "string", "additionalProp2": "string", "additionalProp3": + "string"}, "kind": "fhir-R4", "properties": {"authenticationConfiguration": + {"authority": "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc", + "audience": "https://azurehealthcareapis.com", "smartProxyEnabled": true}, "corsConfiguration": + {"origins": ["*"], "headers": ["*"], "methods": ["DELETE", "GET", "OPTIONS", + "PATCH", "POST", "PUT"], "maxAge": 1440, "allowCredentials": false}, "exportConfiguration": + {"storageAccountName": "clitest000002"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + Content-Length: + - '620' + Content-Type: + - application/json + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/fhirservices/myfhirservice2000011?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/fhirservices/myfhirservice2000011","name":"myworkspace000004/myfhirservice2000011","type":"Microsoft.HealthcareApis/workspaces/fhirservices","etag":"\"e0005e4a-0000-0400-0000-627a180b0000\"","location":"westus2","kind":"fhir-R4","tags":{"additionalProp1":"string","additionalProp2":"string","additionalProp3":"string"},"properties":{"accessPolicies":[],"acrConfiguration":{"loginServers":[]},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","audience":"https://azurehealthcareapis.com","smartProxyEnabled":true},"corsConfiguration":{"origins":["*"],"headers":["*"],"methods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"maxAge":1440,"allowCredentials":false},"exportConfiguration":{"storageAccountName":"clitest000002"},"resourceVersionPolicyConfiguration":{"default":"versioned"},"eventState":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Creating"},"identity":{"principalId":"bd1b7ee9-8b8e-4981-ad37-3cb33ac7b2f0","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '1264' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:45:16 GMT + etag: + - '"e0005e4a-0000-0400-0000-627a180b0000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-request-id: + - 84ddc5535e8a97449771adec07fbad02 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:45:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - ba4b8c65ee4dc745a090f6414aa8d233 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:46:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - d676fe7bc4fff94cb30be3629112a425 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:46:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 63d820ce856afb4aa51488cc0031c90e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:47:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 5f920a02b0d2ce419d14fc03b4e38671 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:47:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - c6674e7010c0014ba74d82136b13f6ec + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:48:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 13121ecef78b4149a29ed42ab300547b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:48:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - a8729c8706dc3f428d389ee79165cdbc + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:49:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 41851bf726237c44b7937e29001f5bec + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:49:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - e398a319d1e2ed4b92d712849e0d5a26 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:50:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 384f0dbec59c1942a1997205f4316576 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:50:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 6471cacb8ac98e4381a4a45a2a3dc08f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:51:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 27ad5b1321bc664a8153c6dd9186319e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:51:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 23992a75d819bc45b6406ab8d475d197 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:52:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 9fde9c421fff5b4a8c99a40b13a26bd1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Running","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:52:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 771e668be6b55f44b4f336bad7540bce + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/3lql2mzknlx6xcvyq3ai86jyz","name":"3lql2mzknlx6xcvyq3ai86jyz","status":"Succeeded","startTime":"2022-05-10T07:45:15.1615446Z"}' + headers: + cache-control: + - no-cache + content-length: + - '255' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:53:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 9dac67ba9ba30f4fa985eeb5f33fd726 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service create + Connection: + - keep-alive + ParameterSetName: + - --name --identity-type --kind --location --authentication-configuration --cors-configuration + --export-configuration-storage-account-name --tags --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/fhirservices/myfhirservice2000011?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/fhirservices/myfhirservice2000011","name":"myworkspace000004/myfhirservice2000011","type":"Microsoft.HealthcareApis/workspaces/fhirservices","etag":"\"e000a584-0000-0400-0000-627a19e70000\"","location":"westus2","kind":"fhir-R4","tags":{"additionalProp1":"string","additionalProp2":"string","additionalProp3":"string"},"properties":{"accessPolicies":[],"acrConfiguration":{"loginServers":[]},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","audience":"https://azurehealthcareapis.com","smartProxyEnabled":true},"corsConfiguration":{"origins":["*"],"headers":["*"],"methods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"maxAge":1440,"allowCredentials":false},"exportConfiguration":{"storageAccountName":"clitest000002"},"resourceVersionPolicyConfiguration":{"default":"versioned"},"eventState":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"},"identity":{"principalId":"bd1b7ee9-8b8e-4981-ad37-3cb33ac7b2f0","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + cache-control: + - no-cache + content-length: + - '1265' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:53:21 GMT + etag: + - '"e000a584-0000-0400-0000-627a19e70000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-request-id: + - 27bced19a6032a46bb303d6f836d2edf + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2", "properties": {"resourceIdentityResolutionType": + "Create", "fhirServiceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/fhirservices/myfhirservice2000011", + "fhirMapping": {"content": {"template": [{"template": {"codes": [{"code": "8867-4", + "display": "Heart rate", "system": "http://loinc.org"}], "periodInterval": 60, + "typeName": "heartrate", "value": {"defaultPeriod": 5000, "unit": "count/min", + "valueName": "hr", "valueType": "SampledData"}}, "templateType": "CodeValueFhir"}], + "templateType": "CollectionFhirTemplate"}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector fhir-destination create + Connection: + - keep-alive + Content-Length: + - '660' + Content-Type: + - application/json + ParameterSetName: + - --fhir-destination-name --iot-connector-name --location --content --fhir-service-resource-id + --resource-identity-resolution-type --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003/fhirdestinations/myfhirdest000005?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003/fhirdestinations/myfhirdest000005","name":"myworkspace000004/myiot000003/myfhirdest000005","type":"Microsoft.HealthcareApis/workspaces/iotconnectors/fhirdestinations","etag":"\"e0002486-0000-0400-0000-627a19f30000\"","location":"westus2","properties":{"resourceIdentityResolutionType":"Create","fhirServiceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/fhirservices/myfhirservice2000011","fhirMapping":{"content":{"template":[{"template":{"codes":[{"code":"8867-4","display":"Heart + rate","system":"http://loinc.org"}],"periodInterval":60,"typeName":"heartrate","value":{"defaultPeriod":5000,"unit":"count/min","valueName":"hr","valueType":"SampledData"}},"templateType":"CodeValueFhir"}],"templateType":"CollectionFhirTemplate"}},"provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jdrq8kggzp0m1gqbx9xx7ctxo?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '1051' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:53:23 GMT + etag: + - '"e0002486-0000-0400-0000-627a19f30000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-request-id: + - 93712248b4d4884d934a3e677a4b452c + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector fhir-destination create + Connection: + - keep-alive + ParameterSetName: + - --fhir-destination-name --iot-connector-name --location --content --fhir-service-resource-id + --resource-identity-resolution-type --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jdrq8kggzp0m1gqbx9xx7ctxo?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/jdrq8kggzp0m1gqbx9xx7ctxo","name":"jdrq8kggzp0m1gqbx9xx7ctxo","status":"Succeeded","startTime":"2022-05-10T07:53:23.9647614Z"}' + headers: + cache-control: + - no-cache + content-length: + - '255' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:53:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 912e4b7ac94f314fbd51f1d50d4e2a6a + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector fhir-destination create + Connection: + - keep-alive + ParameterSetName: + - --fhir-destination-name --iot-connector-name --location --content --fhir-service-resource-id + --resource-identity-resolution-type --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003/fhirdestinations/myfhirdest000005?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003/fhirdestinations/myfhirdest000005","name":"myworkspace000004/myiot000003/myfhirdest000005","type":"Microsoft.HealthcareApis/workspaces/iotconnectors/fhirdestinations","etag":"\"e000c988-0000-0400-0000-627a1a090000\"","location":"westus2","properties":{"resourceIdentityResolutionType":"Create","fhirServiceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/fhirservices/myfhirservice2000011","fhirMapping":{"content":{"template":[{"template":{"codes":[{"code":"8867-4","display":"Heart + rate","system":"http://loinc.org"}],"periodInterval":60,"typeName":"heartrate","value":{"defaultPeriod":5000,"unit":"count/min","valueName":"hr","valueType":"SampledData"}},"templateType":"CodeValueFhir"}],"templateType":"CollectionFhirTemplate"}},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1052' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:53:53 GMT + etag: + - '"e000c988-0000-0400-0000-627a1a090000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - d7f045bc31ef2d449d4052cab5686518 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector fhir-destination show + Connection: + - keep-alive + ParameterSetName: + - --fhir-destination-name --iot-connector-name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003/fhirdestinations/myfhirdest000005?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003/fhirdestinations/myfhirdest000005","name":"myworkspace000004/myiot000003/myfhirdest000005","type":"Microsoft.HealthcareApis/workspaces/iotconnectors/fhirdestinations","etag":"\"e000c988-0000-0400-0000-627a1a090000\"","location":"westus2","properties":{"resourceIdentityResolutionType":"Create","fhirServiceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/fhirservices/myfhirservice2000011","fhirMapping":{"content":{"template":[{"template":{"codes":[{"code":"8867-4","display":"Heart + rate","system":"http://loinc.org"}],"periodInterval":60,"typeName":"heartrate","value":{"defaultPeriod":5000,"unit":"count/min","valueName":"hr","valueType":"SampledData"}},"templateType":"CodeValueFhir"}],"templateType":"CollectionFhirTemplate"}},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1052' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:53:55 GMT + etag: + - '"e000c988-0000-0400-0000-627a1a090000"' + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 2f6ce19dd4c2744bba197532e36a1299 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector fhir-destination list + Connection: + - keep-alive + ParameterSetName: + - --iot-connector-name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003/fhirdestinations?api-version=2021-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003/fhirdestinations/myfhirdest000005","name":"myworkspace000004/myiot000003/myfhirdest000005","type":"Microsoft.HealthcareApis/workspaces/iotconnectors/fhirdestinations","etag":"\"e000c988-0000-0400-0000-627a1a090000\"","location":"westus2","properties":{"resourceIdentityResolutionType":"Create","fhirServiceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/fhirservices/myfhirservice2000011","fhirMapping":{"content":{"template":[{"template":{"codes":[{"code":"8867-4","display":"Heart + rate","system":"http://loinc.org"}],"periodInterval":60,"typeName":"heartrate","value":{"defaultPeriod":5000,"unit":"count/min","valueName":"hr","valueType":"SampledData"}},"templateType":"CodeValueFhir"}],"templateType":"CollectionFhirTemplate"}},"provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1064' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:53:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 0aea18b08f9f51489b8684d5b6ea3819 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector fhir-destination delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --fhir-destination-name --iot-connector-name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003/fhirdestinations/myfhirdest000005?api-version=2021-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/m15t8anii6rn9kbf6aow3qnp0?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 10 May 2022 07:53:56 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/m15t8anii6rn9kbf6aow3qnp0?api-version=2021-11-01&operationResultResponseType=Location + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + x-request-id: + - 9dd0ad31798a48478ddbe0e162e7aca6 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector fhir-destination delete + Connection: + - keep-alive + ParameterSetName: + - -y --fhir-destination-name --iot-connector-name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/m15t8anii6rn9kbf6aow3qnp0?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/m15t8anii6rn9kbf6aow3qnp0","name":"m15t8anii6rn9kbf6aow3qnp0","status":"Succeeded","startTime":"2022-05-10T07:53:56.7564547Z"}' + headers: + cache-control: + - no-cache + content-length: + - '255' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:54:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 2c3efbccbfc3d64da4529e9c20fc11f0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/iotconnectors/myiot000003?api-version=2021-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/482tn5e1z5vx08pml83lp3nru?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 10 May 2022 07:54:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/482tn5e1z5vx08pml83lp3nru?api-version=2021-11-01&operationResultResponseType=Location + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-request-id: + - 8f5f9077f8d8df4aac1c6f403718064c + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/482tn5e1z5vx08pml83lp3nru?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/482tn5e1z5vx08pml83lp3nru","name":"482tn5e1z5vx08pml83lp3nru","status":"Running","startTime":"2022-05-10T07:54:28.8194071Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:54:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 0a94f8a5bc738a42b74e36d6fca9c72b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/482tn5e1z5vx08pml83lp3nru?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/482tn5e1z5vx08pml83lp3nru","name":"482tn5e1z5vx08pml83lp3nru","status":"Running","startTime":"2022-05-10T07:54:28.8194071Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:55:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - cdb394fd10ae8e4baa0570544749facb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/482tn5e1z5vx08pml83lp3nru?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/482tn5e1z5vx08pml83lp3nru","name":"482tn5e1z5vx08pml83lp3nru","status":"Running","startTime":"2022-05-10T07:54:28.8194071Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:55:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - b81bbc950f479c43a7bd01a27141bc21 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/482tn5e1z5vx08pml83lp3nru?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/482tn5e1z5vx08pml83lp3nru","name":"482tn5e1z5vx08pml83lp3nru","status":"Running","startTime":"2022-05-10T07:54:28.8194071Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:56:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - f8fbc88861d0c740968bb1a535213a11 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/482tn5e1z5vx08pml83lp3nru?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/482tn5e1z5vx08pml83lp3nru","name":"482tn5e1z5vx08pml83lp3nru","status":"Running","startTime":"2022-05-10T07:54:28.8194071Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:57:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - b3dcd371b93c574880237789fa4a1a0d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace iot-connector delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/482tn5e1z5vx08pml83lp3nru?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/482tn5e1z5vx08pml83lp3nru","name":"482tn5e1z5vx08pml83lp3nru","status":"Succeeded","startTime":"2022-05-10T07:54:28.8194071Z"}' + headers: + cache-control: + - no-cache + content-length: + - '255' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:57:30 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - df33b4a68d7b7f409d19e9265e744a2c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004/fhirservices/myfhirservice2000011?api-version=2021-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/1b7vrxi168pl1qzfnm473noi7?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 10 May 2022 07:57:32 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/1b7vrxi168pl1qzfnm473noi7?api-version=2021-11-01&operationResultResponseType=Location + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + x-request-id: + - e28c70a17b83e94ba6f3701a6d8f4ae3 + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/1b7vrxi168pl1qzfnm473noi7?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/1b7vrxi168pl1qzfnm473noi7","name":"1b7vrxi168pl1qzfnm473noi7","status":"Running","startTime":"2022-05-10T07:57:32.9618262Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:58:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 300b7f7674ca3c47968485fcd9d7acf2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/1b7vrxi168pl1qzfnm473noi7?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/1b7vrxi168pl1qzfnm473noi7","name":"1b7vrxi168pl1qzfnm473noi7","status":"Running","startTime":"2022-05-10T07:57:32.9618262Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:58:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - ea57265af4d63a449ef62767dd3f021b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/1b7vrxi168pl1qzfnm473noi7?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/1b7vrxi168pl1qzfnm473noi7","name":"1b7vrxi168pl1qzfnm473noi7","status":"Running","startTime":"2022-05-10T07:57:32.9618262Z"}' + headers: + cache-control: + - no-cache + content-length: + - '253' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:59:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - cb756e6934dc5a4cbe76e0611340405b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace fhir-service delete + Connection: + - keep-alive + ParameterSetName: + - -y --name --resource-group --workspace-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/1b7vrxi168pl1qzfnm473noi7?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/1b7vrxi168pl1qzfnm473noi7","name":"1b7vrxi168pl1qzfnm473noi7","status":"Succeeded","startTime":"2022-05-10T07:57:32.9618262Z"}' + headers: + cache-control: + - no-cache + content-length: + - '255' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 07:59:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 8c93917fe50f864ab0ee626afe83a580 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --resource-group --name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/workspaces/myworkspace000004?api-version=2021-11-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6qldr3orktqjdqunhh64vznqy?api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 10 May 2022 07:59:36 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6qldr3orktqjdqunhh64vznqy?api-version=2021-11-01&operationResultResponseType=Location + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14997' + x-request-id: + - 4c4a58a0723e824e891f5ec0a37b7d5f + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - healthcareapis workspace delete + Connection: + - keep-alive + ParameterSetName: + - -y --resource-group --name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-mgmt-healthcareapis/1.0.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6qldr3orktqjdqunhh64vznqy?api-version=2021-11-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/6qldr3orktqjdqunhh64vznqy","name":"6qldr3orktqjdqunhh64vznqy","status":"Succeeded","startTime":"2022-05-10T07:59:36.776118Z"}' + headers: + cache-control: + - no-cache + content-length: + - '254' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 10 May 2022 08:00:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-request-id: + - 47ed32de5028424dae9ebf68c0de4f8e + status: + code: 200 + message: OK +version: 1 diff --git a/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcareapis.yaml b/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcareapis.yaml deleted file mode 100644 index 625a7ff3194..00000000000 --- a/src/healthcareapis/azext_healthcareapis/tests/latest/recordings/test_healthcareapis.yaml +++ /dev/null @@ -1,3507 +0,0 @@ -interactions: -- request: - body: '{"kind": "fhir-Stu3", "location": "westus2", "identity": {"type": "None"}, - "properties": {}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - Content-Length: - - '92' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --resource-group --resource-name --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climinparams000004?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climinparams000004","name":"climinparams000004","type":"Microsoft.HealthcareApis/services","etag":"\"30002fe9-0000-0400-0000-608c4e880000\"","location":"westus2","kind":"fhir-Stu3","properties":{"secondaryLocations":null,"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","audience":"https://climinparams000004.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"maxAge":null,"allowCredentials":false},"exportConfiguration":{"storageAccountName":null},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":null,"provisioningState":"Creating"},"identity":{"principalId":"","tenantId":"","type":"None"}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737?api-version=2020-03-30 - cache-control: - - no-cache - content-length: - - '1029' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:38:01 GMT - etag: - - '"30002fe9-0000-0400-0000-608c4e880000"' - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-request-id: - - ce2fe07a00967345bd6b79ebf1c39179 - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737","name":"e11d766f-0d0e-4980-82c6-248ab0a8c737","status":"Running","startTime":"2021-04-30T18:38:00.764425Z"}' - headers: - cache-control: - - no-cache - content-length: - - '274' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:38:31 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 9a356761f112da4db87a4839bd7f0a19 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737","name":"e11d766f-0d0e-4980-82c6-248ab0a8c737","status":"Running","startTime":"2021-04-30T18:38:00.764425Z"}' - headers: - cache-control: - - no-cache - content-length: - - '274' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:39:01 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 08dc5ffc76ac0b4e8a695aa690a29a9c - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737","name":"e11d766f-0d0e-4980-82c6-248ab0a8c737","status":"Running","startTime":"2021-04-30T18:38:00.764425Z"}' - headers: - cache-control: - - no-cache - content-length: - - '274' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:39:32 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 5ceabc15f203434fa73b763226084407 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737","name":"e11d766f-0d0e-4980-82c6-248ab0a8c737","status":"Running","startTime":"2021-04-30T18:38:00.764425Z"}' - headers: - cache-control: - - no-cache - content-length: - - '274' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:40:02 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 93faad2de3729848a7218702817f2390 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737","name":"e11d766f-0d0e-4980-82c6-248ab0a8c737","status":"Running","startTime":"2021-04-30T18:38:00.764425Z"}' - headers: - cache-control: - - no-cache - content-length: - - '274' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:40:32 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - b2fa9fde65fcfb40b72be6cd5ba4a73f - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737","name":"e11d766f-0d0e-4980-82c6-248ab0a8c737","status":"Running","startTime":"2021-04-30T18:38:00.764425Z"}' - headers: - cache-control: - - no-cache - content-length: - - '274' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:41:02 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - a60ab46db6ff6147a7794f229316b7af - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737","name":"e11d766f-0d0e-4980-82c6-248ab0a8c737","status":"Running","startTime":"2021-04-30T18:38:00.764425Z"}' - headers: - cache-control: - - no-cache - content-length: - - '274' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:41:32 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 2fcca28e93b414419a7f20f711c3b9de - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737","name":"e11d766f-0d0e-4980-82c6-248ab0a8c737","status":"Running","startTime":"2021-04-30T18:38:00.764425Z"}' - headers: - cache-control: - - no-cache - content-length: - - '274' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:42:02 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - cfc0338609724241829516c34e08b3d4 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/e11d766f-0d0e-4980-82c6-248ab0a8c737","name":"e11d766f-0d0e-4980-82c6-248ab0a8c737","status":"Succeeded","startTime":"2021-04-30T18:38:00.764425Z"}' - headers: - cache-control: - - no-cache - content-length: - - '276' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:42:31 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - d97e725f13fff74a8c2de3afa15bb917 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climinparams000004?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climinparams000004","name":"climinparams000004","type":"Microsoft.HealthcareApis/services","etag":"\"3100c632-0000-0400-0000-608c4f820000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"secondaryLocations":null,"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","audience":"https://climinparams000004.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"maxAge":null,"allowCredentials":false},"exportConfiguration":{"storageAccountName":null},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"},"identity":{"principalId":"","tenantId":"","type":"None"}}' - headers: - cache-control: - - no-cache - content-length: - - '1045' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:42:32 GMT - etag: - - '"3100c632-0000-0400-0000-608c4f820000"' - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - fd26b32b5f83f44ba3c2255827aac24b - status: - code: 200 - message: OK -- request: - body: '{"kind": "fhir-R4", "location": "westus2", "identity": {"type": "SystemAssigned"}, - "properties": {"cosmosDbConfiguration": {"offerThroughput": 1500}, "authenticationConfiguration": - {"authority": "https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891", - "audience": "https://climaxparams000005.azurehealthcareapis.com", "smartProxyEnabled": - false}, "corsConfiguration": {"origins": ["*"], "headers": ["*"], "methods": - ["DELETE", "GET", "OPTIONS", "PATCH", "POST", "PUT"], "maxAge": 1440, "allowCredentials": - false}, "exportConfiguration": {"storageAccountName": "clitest000002"}, "publicNetworkAccess": - "Disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - Content-Length: - - '647' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location --authentication-configuration - --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name - --public-network-access - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005","name":"climaxparams000005","type":"Microsoft.HealthcareApis/services","etag":"\"31004a3b-0000-0400-0000-608c4f9f0000\"","location":"westus2","kind":"fhir-R4","properties":{"secondaryLocations":null,"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1500},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","audience":"https://climaxparams000005.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":["*"],"headers":["*"],"methods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"maxAge":1440,"allowCredentials":false},"exportConfiguration":{"storageAccountName":"clitest000002"},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Disabled","provisioningState":"Creating"},"identity":{"principalId":"229f90a2-28d1-4e27-91e1-22245afa2e43","tenantId":"6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","type":"SystemAssigned"}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c?api-version=2020-03-30 - cache-control: - - no-cache - content-length: - - '1206' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:42:39 GMT - etag: - - '"31004a3b-0000-0400-0000-608c4f9f0000"' - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-request-id: - - eaceba2391e1804ea6b322a442345a51 - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location --authentication-configuration - --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name - --public-network-access - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c","name":"f64da96d-9462-4b21-8627-45a69871ac9c","status":"Running","startTime":"2021-04-30T18:42:39.8341123Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:43:10 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 789d6db259535a44ac123a268b0306b2 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location --authentication-configuration - --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name - --public-network-access - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c","name":"f64da96d-9462-4b21-8627-45a69871ac9c","status":"Running","startTime":"2021-04-30T18:42:39.8341123Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:43:40 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 050e5e112c2dab43b543b81cbcf08b9a - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location --authentication-configuration - --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name - --public-network-access - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c","name":"f64da96d-9462-4b21-8627-45a69871ac9c","status":"Running","startTime":"2021-04-30T18:42:39.8341123Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:44:10 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - cacf14a9492c0c4babaead376b1088b7 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location --authentication-configuration - --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name - --public-network-access - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c","name":"f64da96d-9462-4b21-8627-45a69871ac9c","status":"Running","startTime":"2021-04-30T18:42:39.8341123Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:44:41 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - c177f08eac14ca48862521e3a60088dd - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location --authentication-configuration - --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name - --public-network-access - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c","name":"f64da96d-9462-4b21-8627-45a69871ac9c","status":"Running","startTime":"2021-04-30T18:42:39.8341123Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:45:11 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 5d0ffa9750993841886969a81966f365 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location --authentication-configuration - --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name - --public-network-access - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c","name":"f64da96d-9462-4b21-8627-45a69871ac9c","status":"Running","startTime":"2021-04-30T18:42:39.8341123Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:45:41 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 9edd8a482ea0fd40b191462eaee9c202 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location --authentication-configuration - --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name - --public-network-access - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c","name":"f64da96d-9462-4b21-8627-45a69871ac9c","status":"Running","startTime":"2021-04-30T18:42:39.8341123Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:46:10 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 5419bb3157d3204dbfa9d3e5d28914c2 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location --authentication-configuration - --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name - --public-network-access - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f64da96d-9462-4b21-8627-45a69871ac9c","name":"f64da96d-9462-4b21-8627-45a69871ac9c","status":"Succeeded","startTime":"2021-04-30T18:42:39.8341123Z"}' - headers: - cache-control: - - no-cache - content-length: - - '277' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:46:40 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 929119f393f02445a7da3f25668bea4c - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location --authentication-configuration - --cors-configuration --cosmos-db-configuration --export-configuration-storage-account-name - --public-network-access - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005","name":"climaxparams000005","type":"Microsoft.HealthcareApis/services","etag":"\"3100047c-0000-0400-0000-608c507e0000\"","location":"westus2","kind":"fhir-R4","tags":{},"properties":{"secondaryLocations":null,"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1500},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","audience":"https://climaxparams000005.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":["*"],"headers":["*"],"methods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"maxAge":1440,"allowCredentials":false},"exportConfiguration":{"storageAccountName":"clitest000002"},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Disabled","provisioningState":"Succeeded"},"identity":{"principalId":"229f90a2-28d1-4e27-91e1-22245afa2e43","tenantId":"6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","type":"SystemAssigned"}}' - headers: - cache-control: - - no-cache - content-length: - - '1217' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:46:42 GMT - etag: - - '"3100047c-0000-0400-0000-608c507e0000"' - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - e23a798dfa2f2444acadc33af07a8c81 - status: - code: 200 - message: OK -- request: - body: '{"kind": "fhir-R4", "location": "westus2", "identity": {"type": "None"}, - "properties": {}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - Content-Length: - - '90' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005","name":"climaxparams000005","type":"Microsoft.HealthcareApis/services","etag":"\"3100fa82-0000-0400-0000-608c50950000\"","location":"westus2","kind":"fhir-R4","properties":{"secondaryLocations":null,"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","audience":"https://climaxparams000005.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"maxAge":null,"allowCredentials":false},"exportConfiguration":{"storageAccountName":null},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":null,"provisioningState":"Accepted"},"identity":{"type":"None"}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - cache-control: - - no-cache - content-length: - - '1014' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:46:47 GMT - etag: - - '"3100fa82-0000-0400-0000-608c50950000"' - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-request-id: - - 3cd5e719c7da69468f9208904e1f0b7b - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:47:18 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 91db8ad15a470b4fb8da54a07f7e0463 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:47:48 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 8fb336d9d38e6c4b97d3bd3f41ec5cfb - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:48:18 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 98f45ec73b97a94e81642d005e71351a - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:48:49 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - f24362d441ca7940b742fc0e48764c43 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:49:19 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - eb43e379149b5e43b8659ce7317da4a5 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:49:49 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 0732735ceb163247a00c36ff1014a402 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:50:18 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 75defbb0e292a44fb637fa98689f4150 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:50:48 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - e46b9621b885764286ecb9138da1b399 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:51:19 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - cd6d7264d869b14fa538b8dcc1e59e97 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:51:49 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 690bf13b03c2414ea1d761e0848acbf8 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:52:19 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 8d96d4f530b7f6429b23f1359f609ce6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:52:49 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 666e4e0ab9340e499f63e40cd07287ff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:53:19 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 32dbd45ea70a2847bc5e0d640adc006b - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:53:49 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - e6ea2a1d4b54f24da6e0a775bbc01e1e - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:54:20 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 46a24b4486245a449ec404fdf18227d6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:54:50 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - eb69964724c5784aa34b4fa0314a916e - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:55:20 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - cb29f8a820ad304da4b003c38d1dd987 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Running","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:55:51 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 32a0a655a62d09478dc155eaf17d0487 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/fbda9d93-590a-40fb-a813-0c709a3bbb22","name":"fbda9d93-590a-40fb-a813-0c709a3bbb22","status":"Succeeded","startTime":"2021-04-30T18:46:47.0949102Z"}' - headers: - cache-control: - - no-cache - content-length: - - '277' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:56:21 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 49f05bd6b2989a4688a445ac3a093118 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --identity-type --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005","name":"climaxparams000005","type":"Microsoft.HealthcareApis/services","etag":"\"32007927-0000-0400-0000-608c52c60000\"","location":"westus2","kind":"fhir-R4","tags":{},"properties":{"secondaryLocations":null,"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","audience":"https://climaxparams000005.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"maxAge":null,"allowCredentials":false},"exportConfiguration":{"storageAccountName":null},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"},"identity":{"principalId":"","tenantId":"","type":"None"}}' - headers: - cache-control: - - no-cache - content-length: - - '1061' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:56:22 GMT - etag: - - '"32007927-0000-0400-0000-608c52c60000"' - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - b669df01efa3b94386d558431236672f - status: - code: 200 - message: OK -- request: - body: '{"kind": "fhir-R4", "location": "westus2", "identity": {"type": "None"}, - "properties": {"publicNetworkAccess": "Disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - Content-Length: - - '123' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --resource-group --resource-name --public-network-access --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005","name":"climaxparams000005","type":"Microsoft.HealthcareApis/services","etag":"\"32004c2d-0000-0400-0000-608c52d80000\"","location":"westus2","kind":"fhir-R4","properties":{"secondaryLocations":null,"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","audience":"https://climaxparams000005.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"maxAge":null,"allowCredentials":false},"exportConfiguration":{"storageAccountName":null},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Disabled","provisioningState":"Accepted"},"identity":{"type":"None"}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/7413b617-9266-4e98-992d-1acc3a740528?api-version=2020-03-30 - cache-control: - - no-cache - content-length: - - '1020' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:56:26 GMT - etag: - - '"32004c2d-0000-0400-0000-608c52d80000"' - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-request-id: - - 66496c25cd7d364ebb60cb73149a97ee - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --public-network-access --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/7413b617-9266-4e98-992d-1acc3a740528?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/7413b617-9266-4e98-992d-1acc3a740528","name":"7413b617-9266-4e98-992d-1acc3a740528","status":"Running","startTime":"2021-04-30T18:56:25.3433523Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:56:56 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 8edfab1fa468ba46b667e5cd7482c1e0 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --public-network-access --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/7413b617-9266-4e98-992d-1acc3a740528?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/7413b617-9266-4e98-992d-1acc3a740528","name":"7413b617-9266-4e98-992d-1acc3a740528","status":"Succeeded","startTime":"2021-04-30T18:56:25.3433523Z"}' - headers: - cache-control: - - no-cache - content-length: - - '277' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:57:26 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - b603a6a5764a96419b9dc3af87bf6d81 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service create - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --public-network-access --kind --location - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005","name":"climaxparams000005","type":"Microsoft.HealthcareApis/services","etag":"\"3200ca3e-0000-0400-0000-608c53100000\"","location":"westus2","kind":"fhir-R4","tags":{},"properties":{"secondaryLocations":null,"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","audience":"https://climaxparams000005.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"maxAge":null,"allowCredentials":false},"exportConfiguration":{"storageAccountName":null},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Disabled","provisioningState":"Succeeded"},"identity":{"principalId":"","tenantId":"","type":"None"}}' - headers: - cache-control: - - no-cache - content-length: - - '1062' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:57:27 GMT - etag: - - '"3200ca3e-0000-0400-0000-608c53100000"' - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - c6f69529e49b734eb7dfed27b08e57a8 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service show - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005","name":"climaxparams000005","type":"Microsoft.HealthcareApis/services","etag":"\"3200ca3e-0000-0400-0000-608c53100000\"","location":"westus2","kind":"fhir-R4","tags":{},"properties":{"secondaryLocations":null,"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","audience":"https://climaxparams000005.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"maxAge":null,"allowCredentials":false},"exportConfiguration":{"storageAccountName":null},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Disabled","provisioningState":"Succeeded"},"identity":{"principalId":"","tenantId":"","type":"None"}}' - headers: - cache-control: - - no-cache - content-length: - - '1062' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:57:28 GMT - etag: - - '"3200ca3e-0000-0400-0000-608c53100000"' - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 16516b2c1cc2dd4ea188022e729c81f9 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service list - Connection: - - keep-alive - ParameterSetName: - - --resource-group - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services?api-version=2020-03-30 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climinparams000004","name":"climinparams000004","type":"Microsoft.HealthcareApis/services","etag":"\"3100c632-0000-0400-0000-608c4f820000\"","location":"westus2","kind":"fhir-Stu3","tags":{},"properties":{"secondaryLocations":null,"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","audience":"https://climinparams000004.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"maxAge":null,"allowCredentials":false},"exportConfiguration":{"storageAccountName":null},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Enabled","provisioningState":"Succeeded"},"identity":{"principalId":"","tenantId":"","type":"None"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climaxparams000005","name":"climaxparams000005","type":"Microsoft.HealthcareApis/services","etag":"\"3200ca3e-0000-0400-0000-608c53100000\"","location":"westus2","kind":"fhir-R4","tags":{},"properties":{"secondaryLocations":null,"accessPolicies":[],"cosmosDbConfiguration":{"offerThroughput":1000},"authenticationConfiguration":{"authority":"https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891","audience":"https://climaxparams000005.azurehealthcareapis.com","smartProxyEnabled":false},"corsConfiguration":{"origins":[],"headers":[],"methods":[],"maxAge":null,"allowCredentials":false},"exportConfiguration":{"storageAccountName":null},"acrConfiguration":{"loginServers":[]},"privateEndpointConnections":[],"publicNetworkAccess":"Disabled","provisioningState":"Succeeded"},"identity":{"principalId":"","tenantId":"","type":"None"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '2120' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:57:30 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 5101babd8cc4614faf803b2dbc3db206 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - Content-Length: - - '0' - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.HealthcareApis/services/climinparams000004?api-version=2020-03-30 - response: - body: - string: '' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - cache-control: - - no-cache - content-length: - - '0' - date: - - Fri, 30 Apr 2021 18:57:32 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30&operationResultResponseType=Location - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' - x-request-id: - - 4d009442148e3747aa1ba5eb2dc1c076 - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:58:02 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 58a756890050394ab1053cd99f6d0d9f - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:58:32 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 1ccfda9079c44f4fa007ae30fe04356b - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:59:03 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 9597623c8e417145a1eb5caace846ca8 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 18:59:33 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 2cd13a2c40318a46a6375d83f1789c4e - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 19:00:03 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 5b5ffa46649d1f45a478dee4ab570ebe - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 19:00:33 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 4f4f41eb6904774fae95ed9f44af7037 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 19:01:03 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 98b27d4c36991a479197d864367e153b - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 19:01:33 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 1b318d249f0dac468372d6b74a6d83b6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 19:02:04 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 1e28d2b33d507d43b9c8c311f35604d9 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 19:02:34 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - d15b298db613c84aa0fcee21e5305941 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 19:03:04 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 83429f92eea75e4f9d0970b55677bd89 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 19:03:34 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 94d4c7d8a42ae149b173eaa098b457b0 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 19:04:04 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - db3fe5a9ff5d5842b8f6b76d9d2c885d - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 19:04:34 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 5ee7db5cf8acd446a4725ea65f9617e8 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 19:05:04 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 520b6cc8cc69be45af169b1ad4990491 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 19:05:34 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 2c8372a37814a247857cf124bfe66ae2 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Running","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '275' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 19:06:05 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 024033600b951f40a65004054f9c4a87 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - healthcareapis service delete - Connection: - - keep-alive - ParameterSetName: - - --resource-group --resource-name --yes - User-Agent: - - python/3.7.9 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.3 - azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python AZURECLI/2.22.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1?api-version=2020-03-30 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/d5dfa698-a6e9-4fac-a01f-8625d475c1e1","name":"d5dfa698-a6e9-4fac-a01f-8625d475c1e1","status":"Succeeded","startTime":"2021-04-30T18:57:33.1017781Z"}' - headers: - cache-control: - - no-cache - content-length: - - '277' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 30 Apr 2021 19:06:35 GMT - expires: - - '-1' - pragma: - - no-cache - request-context: - - appId=cid-v1:3de0b58a-5b02-4f39-a0b3-83315651f823 - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-request-id: - - 21c2dced15d98c4f8a4c3518955d57f0 - status: - code: 200 - message: OK -version: 1 diff --git a/src/healthcareapis/azext_healthcareapis/tests/latest/test_healthcareapis_scenario.py b/src/healthcareapis/azext_healthcareapis/tests/latest/test_healthcareapis_scenario.py index 80c588432e9..126338c35ad 100644 --- a/src/healthcareapis/azext_healthcareapis/tests/latest/test_healthcareapis_scenario.py +++ b/src/healthcareapis/azext_healthcareapis/tests/latest/test_healthcareapis_scenario.py @@ -2,257 +2,302 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. # -------------------------------------------------------------------------- import os +import unittest from azure.cli.testsdk import ScenarioTest -from .. import try_manual, raise_if, calc_coverage from azure.cli.testsdk import ResourceGroupPreparer from azure.cli.testsdk import StorageAccountPreparer +from .example_steps import step_healthcareapis_acr_add +from .example_steps import step_healthcareapis_acr_list +from .example_steps import step_healthcareapis_acr_remove +from .example_steps import step_healthcareapis_acr_reset +from .example_steps import step_healthcareapiscreateminimalparameters +from .example_steps import step_healthcareapiscreatemaximumparameters +from .example_steps import step_healthcareapisupdatemaximumparameters +from .example_steps import step_servicedelete +from .example_steps import step_workspace_dicom_service_create +from .example_steps import step_workspace_dicom_service_show +from .example_steps import step_workspace_dicom_service_list +from .example_steps import step_workspace_dicom_service_update +from .example_steps import step_workspace_dicom_service_delete +from .example_steps import step_workspace_fhir_service_create +from .example_steps import step_workspace_fhir_service_show +from .example_steps import step_workspace_fhir_service_list +from .example_steps import step_workspace_fhir_service_update +from .example_steps import step_workspace_fhir_service_delete +from .example_steps import step_workspace_iot_connector_create +from .example_steps import step_workspace_iot_connector_show +from .example_steps import step_workspace_iot_connector_list +from .example_steps import step_workspace_iot_connector_update +from .example_steps import step_workspace_iot_connector_fhir_destination_create +from .example_steps import step_workspace_iot_connector_fhir_destination_show +from .example_steps import step_workspace_iot_connector_fhir_destination_list +from .example_steps import step_workspace_iot_connector_fhir_destination_delete +from .example_steps import step_workspace_iot_connector_delete +from .example_steps import step_operation_result_show +from .example_steps import step_private_endpoint_connection_create +from .example_steps import step_private_endpoint_connection_show +from .example_steps import step_private_endpoint_connection_list +from .example_steps import step_private_endpoint_connection_delete +from .example_steps import step_private_link_resource_show +from .example_steps import step_private_link_resource_list +from .example_steps import step_service_create +from .example_steps import step_service_create2 +from .example_steps import step_service_show +from .example_steps import step_service_list +from .example_steps import step_service_list2 +from .example_steps import step_service_update +from .example_steps import step_service_delete +from .example_steps import step_workspace_create +from .example_steps import step_workspace_show +from .example_steps import step_workspace_list +from .example_steps import step_workspace_list2 +from .example_steps import step_workspace_update +from .example_steps import step_workspace_private_endpoint_connection_create +from .example_steps import step_workspace_private_endpoint_connection_show +from .example_steps import step_workspace_private_endpoint_connection_list +from .example_steps import step_workspace_private_endpoint_connection_delete +from .example_steps import step_workspace_private_link_resource_show +from .example_steps import step_workspace_private_link_resource_list +from .example_steps import step_workspace_delete +from .. import ( + try_manual, + raise_if, + calc_coverage +) -TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) - - -# Env setup -@try_manual -def setup(test, rg): - pass - - -@try_manual -def step_healthcareapiscreateminimalparameters(test, rg): - test.cmd('az healthcareapis service create ' - '--resource-group "{rg}" ' - '--resource-name "{minimalParams}" ' - '--kind "fhir-Stu3" ' - '--location "{testingLocation}" ', - checks=[ - test.check("name", "{minimalParams}", case_sensitive=False), - test.check("location", "{testingLocation}", case_sensitive=False), - test.check("kind", "fhir-Stu3", case_sensitive=False), - test.check("properties.authenticationConfiguration.smartProxyEnabled", False), - test.check("properties.corsConfiguration.allowCredentials", False), - test.check("properties.cosmosDbConfiguration.offerThroughput", 1000), - test.check("properties.provisioningState", "Succeeded"), - test.check("properties.publicNetworkAccess", "Enabled", case_sensitive=False), - ]) - - -@try_manual -def step_healthcareapiscreatemaximumparameters(test, rg): - testFhir = test.cmd('az healthcareapis service create ' - '--resource-group "{rg}" ' - '--resource-name "{maximumParams}" ' - '--identity-type "SystemAssigned" ' - '--kind "{fhirr4}" ' - '--location "{testingLocation}" ' - '--authentication-configuration authority="https://login.microsoftonline.com/6c4a34fb-44bb-4cc7-bf56-9b4e264f1891" audience="https://{maximumParams}.azurehealthcareapis.com" smart-proxy-enabled=false ' - '--cors-configuration allow-credentials=false headers="*" max-age=1440 methods="DELETE" methods="GET" methods="OPTIONS" methods="PATCH" methods="POST" methods="PUT" origins="*" ' - '--cosmos-db-configuration offer-throughput=1500 ' - '--export-configuration-storage-account-name "{sg}" ' - '--public-network-access "Disabled" ', - checks=[ - test.check("identity.type", "SystemAssigned", case_sensitive=False), - test.check("kind", "{fhirr4}"), - test.check("location", "{testingLocation}", case_sensitive=False), - test.check("name", "{maximumParams}", case_sensitive=False), - test.check("properties.authenticationConfiguration.smartProxyEnabled", False), - test.check("properties.corsConfiguration.allowCredentials", False), - test.check("properties.corsConfiguration.maxAge", 1440), - test.check("properties.cosmosDbConfiguration.offerThroughput", 1500), - test.check("properties.exportConfiguration.storageAccountName", "{sg}", case_sensitive=False), - test.check("properties.provisioningState", "Succeeded"), - test.check("properties.publicNetworkAccess", "Disabled", case_sensitive=False), - ]).get_output_in_json() - - corsConfiguration = testFhir['properties']['corsConfiguration'] - assert len(corsConfiguration['headers']) == 1 - assert len(corsConfiguration['origins']) == 1 - assert corsConfiguration['headers'][0] == "*" - assert corsConfiguration['origins'][0] == "*" - assert len(corsConfiguration['methods']) == 6 - assert "DELETE" in corsConfiguration['methods'] - assert "GET" in corsConfiguration['methods'] - assert "OPTIONS" in corsConfiguration['methods'] - assert "PATCH" in corsConfiguration['methods'] - assert "POST" in corsConfiguration['methods'] - assert "PUT" in corsConfiguration['methods'] - - -@try_manual -def step_healthcareapisupdatemaximumparameters(test, rg): - - testFhir = test.cmd('az healthcareapis service create ' - '--resource-group "{rg}" ' - '--resource-name "{maximumParams}" ' - '--identity-type "None" ' - '--kind "{fhirr4}" ' - '--location "{testingLocation}" ', - checks=[ - test.check("identity.type", "None", case_sensitive=False), - test.check("kind", "{fhirr4}"), - test.check("location", "{testingLocation}", case_sensitive=False), - test.check("name", "{maximumParams}", case_sensitive=False), - test.check("properties.authenticationConfiguration.smartProxyEnabled", False), - test.check("properties.corsConfiguration.allowCredentials", False), - test.check("properties.corsConfiguration.maxAge", None), - test.check("properties.cosmosDbConfiguration.offerThroughput", 1000), - test.check("properties.exportConfiguration.storageAccountName", None), - test.check("properties.provisioningState", "Succeeded"), - test.check("properties.publicNetworkAccess", "Enabled", case_sensitive=False), - test.check("properties.secondaryLocations", None), - ]).get_output_in_json() - - corsConfiguration = testFhir['properties']['corsConfiguration'] - assert len(corsConfiguration['headers']) == 0 - assert len(corsConfiguration['origins']) == 0 - assert len(corsConfiguration['methods']) == 0 - - accessPolicies = testFhir['properties']['accessPolicies'] - assert len(accessPolicies) == 0 - - privateEndpointConnections = testFhir['properties']['accessPolicies'] - assert len(privateEndpointConnections) == 0 - - acrConfiguration = testFhir['properties']['acrConfiguration']['loginServers'] - assert len(acrConfiguration) == 0 - - testFhir = test.cmd('az healthcareapis service create ' - '--resource-group "{rg}" ' - '--resource-name "{maximumParams}" ' - '--public-network-access "Disabled" ' - '--kind "{fhirr4}" ' - '--location "{testingLocation}" ', - checks=[ - test.check("identity.type", "None", case_sensitive=False), - test.check("kind", "{fhirr4}"), - test.check("location", "{testingLocation}", case_sensitive=False), - test.check("name", "{maximumParams}", case_sensitive=False), - test.check("properties.authenticationConfiguration.smartProxyEnabled", False), - test.check("properties.corsConfiguration.allowCredentials", False), - test.check("properties.corsConfiguration.maxAge", None), - test.check("properties.cosmosDbConfiguration.offerThroughput", 1000), - test.check("properties.exportConfiguration.storageAccountName", None), - test.check("properties.provisioningState", "Succeeded"), - test.check("properties.publicNetworkAccess", "Disabled", case_sensitive=False), - test.check("properties.secondaryLocations", None), - ]).get_output_in_json() - - corsConfiguration = testFhir['properties']['corsConfiguration'] - assert len(corsConfiguration['headers']) == 0 - assert len(corsConfiguration['origins']) == 0 - assert len(corsConfiguration['methods']) == 0 - - accessPolicies = testFhir['properties']['accessPolicies'] - assert len(accessPolicies) == 0 - - privateEndpointConnections = testFhir['properties']['accessPolicies'] - assert len(privateEndpointConnections) == 0 - - acrConfiguration = testFhir['properties']['acrConfiguration']['loginServers'] - assert len(acrConfiguration) == 0 - - -@try_manual -def step_servicelist(test, rg): - test.cmd('az healthcareapis service list ', - checks=[]) - pass - - -@try_manual -def step_serviceget(test, rg): - test.cmd('az healthcareapis service show ' - '--resource-group "{rg}" ' - '--resource-name "{maximumParams}"', - checks=[ - test.check("name", "{maximumParams}", case_sensitive=False), - test.check("location", "{testingLocation}", case_sensitive=False), - test.check("kind", "{fhirr4}"), - test.check("properties.corsConfiguration.allowCredentials", False), - ]) - pass - - -@try_manual -def step_servicelistbyresourcegroup(test, rg): - test.cmd('az healthcareapis service list ' - '--resource-group "{rg}"', - checks=[]) - pass - - -@try_manual -def step_servicedelete(test, rg): - test.cmd('az healthcareapis service delete ' - '--resource-group "{rg}" ' - '--resource-name "{minimalParams}" ' - '--yes ', - checks=[]) - pass - - -# EXAMPLE: OperationsList -@try_manual -def step_operationslist(test, rg): - # EXAMPLE NOT FOUND! - pass - - -# EXAMPLE: OperationResultsGet -@try_manual -def step_operationresultsget(test, rg): - # EXAMPLE NOT FOUND! - pass +TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) -# Env cleanup -@try_manual -def cleanup(test, rg): - pass +class HealthcareApisScenarioTest(ScenarioTest): -# Testcase -@try_manual -def call_scenario(test, rg): - setup(test, rg) - step_healthcareapiscreateminimalparameters(test, rg) - step_healthcareapiscreatemaximumparameters(test, rg) - step_healthcareapisupdatemaximumparameters(test, rg) - step_operationresultsget(test, rg) - step_serviceget(test, rg) - step_servicelistbyresourcegroup(test, rg) - # for the subscription that I was testing under there was too many instances - # this caused the script to crash - # step_servicelist(test, rg) - step_operationslist(test, rg) - step_servicedelete(test, rg) - cleanup(test, rg) + @ResourceGroupPreparer(name_prefix='clitesthealthcareapis_rgname'[:7], key='rg', parameter_name='rg') + @StorageAccountPreparer(name_prefix='clitesthealthcareapis_existingStorageAccount'[:7], key='sg', + resource_group_parameter_name='rg', parameter_name='sg') + def test_healthcare_acr(self): + self.kwargs.update({ + 'keyvaultname': self.create_random_name(prefix='clikv', length=10), + 'myAttachedDatabaseConfiguration3': 'default', + 'fhirr4': 'fhir-R4', + 'testingLocation': 'westus2', + 'minimalParams': self.create_random_name(prefix='climinparams', length=18), + 'maximumParams': self.create_random_name(prefix='climaxparams', length=24), + 'service1': self.create_random_name(prefix='service1', length=18), + 'service2': self.create_random_name(prefix='service2', length=18), + 'myFhirService2': self.create_random_name(prefix='myfhirservice2', length=18), + }) + step_service_create(self) + step_healthcareapis_acr_add(self) + step_healthcareapis_acr_list(self) + step_healthcareapis_acr_remove(self) + step_healthcareapis_acr_reset(self) + step_service_delete(self) + @ResourceGroupPreparer(name_prefix='clitesthealthcareapis_rgname'[:7], key='rg', parameter_name='rg') + @StorageAccountPreparer(name_prefix='clitesthealthcareapis_existingStorageAccount'[:7], key='sg', + resource_group_parameter_name='rg', parameter_name='sg') + def test_healthcare_parameter(self): + self.kwargs.update({ + 'keyvaultname': self.create_random_name(prefix='clikv', length=10), + 'myAttachedDatabaseConfiguration3': 'default', + 'fhirr4': 'fhir-R4', + 'testingLocation': 'westus2', + 'minimalParams': self.create_random_name(prefix='climinparams', length=18), + 'maximumParams': self.create_random_name(prefix='climaxparams', length=24), + 'service1': self.create_random_name(prefix='service1', length=18), + 'service2': self.create_random_name(prefix='service2', length=18), + 'myFhirService2': self.create_random_name(prefix='myfhirservice2', length=18), + }) + step_healthcareapiscreateminimalparameters(self) + step_healthcareapiscreatemaximumparameters(self) + step_healthcareapisupdatemaximumparameters(self) + step_servicedelete(self) -@try_manual -class HealthcareApisManagementClientScenarioTest(ScenarioTest): + @ResourceGroupPreparer(name_prefix='clitesthealthcareapis_rgname'[:7], key='rg', parameter_name='rg') + @StorageAccountPreparer(name_prefix='clitesthealthcareapis_existingStorageAccount'[:7], key='sg', + resource_group_parameter_name='rg', parameter_name='sg') + def test_healthcare_service(self): + self.kwargs.update({ + 'keyvaultname': self.create_random_name(prefix='clikv', length=10), + 'myAttachedDatabaseConfiguration3': 'default', + 'fhirr4': 'fhir-R4', + 'testingLocation': 'westus2', + 'minimalParams': self.create_random_name(prefix='climinparams', length=18), + 'maximumParams': self.create_random_name(prefix='climaxparams', length=24), + 'service1': self.create_random_name(prefix='service1', length=18), + 'service2': self.create_random_name(prefix='service2', length=18), + 'myFhirService2': self.create_random_name(prefix='myfhirservice2', length=18), + }) + step_service_create(self) + step_service_create2(self) + step_service_show(self) + step_service_list(self) + step_service_list2(self) + step_service_update(self) + step_service_delete(self) + + @unittest.skip('need create pending private endpoint through portal') + @ResourceGroupPreparer(name_prefix='clitesthealthcareapis_rgname'[:7], key='rg', parameter_name='rg') + @StorageAccountPreparer(name_prefix='clitesthealthcareapis_existingStorageAccount'[:7], key='sg', + resource_group_parameter_name='rg', parameter_name='sg') + def test_healthcare_private(self): + self.kwargs.update({ + 'keyvaultname': self.create_random_name(prefix='clikv', length=10), + 'myPrivateEndpointConnection': self.create_random_name(prefix='myconnection', length=18), + 'myAttachedDatabaseConfiguration3': 'default', + 'fhirr4': 'fhir-R4', + 'testingLocation': 'westus2', + 'minimalParams': self.create_random_name(prefix='climinparams', length=18), + 'maximumParams': self.create_random_name(prefix='climaxparams', length=24), + 'service1': self.create_random_name(prefix='service1', length=18), + 'service2': self.create_random_name(prefix='service2', length=18), + 'myFhirService2': self.create_random_name(prefix='myfhirservice2', length=18), + }) + self.kwargs['operation_result_id'] = step_service_create(self).get_output_in_json()['id'] + # first have to create the private endpoint in pending state through portal. + step_private_endpoint_connection_create(self) + step_private_endpoint_connection_show(self) + step_private_endpoint_connection_list(self) + step_private_endpoint_connection_delete(self) + step_private_link_resource_show(self) + step_private_link_resource_list(self) + step_service_delete(self) @ResourceGroupPreparer(name_prefix='clitesthealthcareapis_rgname'[:7], key='rg', parameter_name='rg') - @StorageAccountPreparer(name_prefix='clitesthealthcareapis_existingStorageAccount'[:7], key='sa', + @StorageAccountPreparer(name_prefix='clitesthealthcareapis_existingStorageAccount'[:7], key='sg', resource_group_parameter_name='rg', parameter_name='sg') - def test_healthcareapis(self, rg, sg): + def test_healthcare_workspace(self): + self.kwargs.update({ + 'myWorkspace': self.create_random_name(prefix='myworkspace', length=18), + 'keyvaultname': self.create_random_name(prefix='clikv', length=10), + 'myAttachedDatabaseConfiguration3': 'default', + 'fhirr4': 'fhir-R4', + 'testingLocation': 'westus2', + 'minimalParams': self.create_random_name(prefix='climinparams', length=18), + 'maximumParams': self.create_random_name(prefix='climaxparams', length=24), + 'service1': self.create_random_name(prefix='service1', length=18), + 'service2': self.create_random_name(prefix='service2', length=18), + 'myFhirService2': self.create_random_name(prefix='myfhirservice2', length=18), + }) + step_workspace_create(self) + step_workspace_show(self) + step_workspace_list(self) + step_workspace_list2(self) + step_workspace_update(self) + step_workspace_delete(self) + @ResourceGroupPreparer(name_prefix='clitesthealthcareapis_rgname'[:7], key='rg', parameter_name='rg') + @StorageAccountPreparer(name_prefix='clitesthealthcareapis_existingStorageAccount'[:7], key='sg', + resource_group_parameter_name='rg', parameter_name='sg') + def test_healthcare_workspace_dicom(self): self.kwargs.update({ - 'subscription_id': self.get_subscription_id() + 'myWorkspace': self.create_random_name(prefix='myworkspace', length=18), + 'myDicomService': self.create_random_name(prefix='mydicom', length=12), + 'keyvaultname': self.create_random_name(prefix='clikv', length=10), + 'myAttachedDatabaseConfiguration3': 'default', + 'fhirr4': 'fhir-R4', + 'testingLocation': 'westus2', + 'minimalParams': self.create_random_name(prefix='climinparams', length=18), + 'maximumParams': self.create_random_name(prefix='climaxparams', length=24), + 'service1': self.create_random_name(prefix='service1', length=18), + 'service2': self.create_random_name(prefix='service2', length=18), + 'myFhirService2': self.create_random_name(prefix='myfhirservice2', length=18), }) + step_workspace_create(self) + step_workspace_dicom_service_create(self) + step_workspace_dicom_service_show(self) + step_workspace_dicom_service_list(self) + step_workspace_dicom_service_update(self) + step_workspace_dicom_service_delete(self) + step_workspace_delete(self) + @ResourceGroupPreparer(name_prefix='clitesthealthcareapis_rgname'[:7], key='rg', parameter_name='rg') + @StorageAccountPreparer(name_prefix='clitesthealthcareapis_existingStorageAccount'[:7], key='sg', + resource_group_parameter_name='rg', parameter_name='sg') + def test_healthcare_workspace_fhir(self): self.kwargs.update({ + 'myWorkspace': self.create_random_name(prefix='myworkspace', length=18), 'keyvaultname': self.create_random_name(prefix='clikv', length=10), - 'myPrivateEndpointConnection': 'myConnection', 'myAttachedDatabaseConfiguration3': 'default', 'fhirr4': 'fhir-R4', 'testingLocation': 'westus2', 'minimalParams': self.create_random_name(prefix='climinparams', length=18), 'maximumParams': self.create_random_name(prefix='climaxparams', length=24), - 'sg': sg, + 'service1': self.create_random_name(prefix='service1', length=18), + 'service2': self.create_random_name(prefix='service2', length=18), + 'myFhirService2': self.create_random_name(prefix='myfhirservice2', length=18), }) + step_workspace_create(self) + step_workspace_fhir_service_create(self) + step_workspace_fhir_service_show(self) + step_workspace_fhir_service_list(self) + step_workspace_fhir_service_update(self) + step_workspace_fhir_service_delete(self) + step_workspace_delete(self) - call_scenario(self, rg) - calc_coverage(__file__) - raise_if() + @ResourceGroupPreparer(name_prefix='clitesthealthcareapis_rgname'[:7], key='rg', parameter_name='rg') + @StorageAccountPreparer(name_prefix='clitesthealthcareapis_existingStorageAccount'[:7], key='sg', + resource_group_parameter_name='rg', parameter_name='sg') + def test_healthcare_workspace_iot_connector(self): + self.kwargs.update({ + 'myIotConnector': self.create_random_name(prefix='myiot', length=10), + 'myWorkspace': self.create_random_name(prefix='myworkspace', length=18), + 'myFhirDestination': self.create_random_name(prefix='myfhirdest', length=18), + 'keyvaultname': self.create_random_name(prefix='clikv', length=10), + 'myAttachedDatabaseConfiguration3': 'default', + 'fhirr4': 'fhir-R4', + 'testingLocation': 'westus2', + 'minimalParams': self.create_random_name(prefix='climinparams', length=18), + 'maximumParams': self.create_random_name(prefix='climaxparams', length=24), + 'service1': self.create_random_name(prefix='service1', length=18), + 'service2': self.create_random_name(prefix='service2', length=18), + 'myFhirService2': self.create_random_name(prefix='myfhirservice2', length=18), + }) + step_workspace_create(self) + step_workspace_iot_connector_create(self) + step_workspace_iot_connector_show(self) + step_workspace_iot_connector_list(self) + step_workspace_iot_connector_update(self) + self.kwargs['myFhirResourceID'] = step_workspace_fhir_service_create(self).get_output_in_json()['id'] + step_workspace_iot_connector_fhir_destination_create(self) + step_workspace_iot_connector_fhir_destination_show(self) + step_workspace_iot_connector_fhir_destination_list(self) + step_workspace_iot_connector_fhir_destination_delete(self) + step_workspace_iot_connector_delete(self) + step_workspace_fhir_service_delete(self) + step_workspace_delete(self) + + @unittest.skip('need create pending private endpoint through portal') + @ResourceGroupPreparer(name_prefix='clitesthealthcareapis_rgname'[:7], key='rg', parameter_name='rg') + @StorageAccountPreparer(name_prefix='clitesthealthcareapis_existingStorageAccount'[:7], key='sg', + resource_group_parameter_name='rg', parameter_name='sg') + def test_healthcare_workspace_private(self): + self.kwargs.update({ + 'myWorkspace': self.create_random_name(prefix='myworkspace', length=18), + 'keyvaultname': self.create_random_name(prefix='clikv', length=10), + 'myPrivateEndpointConnection': self.create_random_name(prefix='myconnection', length=18), + 'myAttachedDatabaseConfiguration3': 'default', + 'fhirr4': 'fhir-R4', + 'testingLocation': 'westus2', + 'minimalParams': self.create_random_name(prefix='climinparams', length=18), + 'maximumParams': self.create_random_name(prefix='climaxparams', length=24), + 'service1': self.create_random_name(prefix='service1', length=18), + 'service2': self.create_random_name(prefix='service2', length=18), + 'myFhirService2': self.create_random_name(prefix='myfhirservice2', length=18), + }) + step_workspace_create(self) + # first have to create the private endpoint in pending state through portal. + step_workspace_private_endpoint_connection_create(self) + step_workspace_private_endpoint_connection_show(self) + step_workspace_private_endpoint_connection_list(self) + step_workspace_private_endpoint_connection_delete(self) + step_workspace_private_link_resource_show(self) + step_workspace_private_link_resource_list(self) + step_workspace_delete(self) diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/__init__.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/__init__.py index 74676ff31aa..e290db30af1 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/__init__.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/__init__.py @@ -1,19 +1,19 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._configuration import HealthcareApisManagementClientConfiguration from ._healthcare_apis_management_client import HealthcareApisManagementClient -__all__ = ['HealthcareApisManagementClient', 'HealthcareApisManagementClientConfiguration'] - -from .version import VERSION +from ._version import VERSION __version__ = VERSION +__all__ = ['HealthcareApisManagementClient'] +try: + from ._patch import patch_sdk # type: ignore + patch_sdk() +except ImportError: + pass diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/_configuration.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/_configuration.py index 351baa8a13f..64bf0e00042 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/_configuration.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/_configuration.py @@ -1,48 +1,71 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from msrestazure import AzureConfiguration -from .version import VERSION +from typing import TYPE_CHECKING +from azure.core.configuration import Configuration +from azure.core.pipeline import policies +from azure.mgmt.core.policies import ARMHttpLoggingPolicy + +from ._version import VERSION + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + from azure.core.credentials import TokenCredential + + +class HealthcareApisManagementClientConfiguration(Configuration): + """Configuration for HealthcareApisManagementClient. -class HealthcareApisManagementClientConfiguration(AzureConfiguration): - """Configuration for HealthcareApisManagementClient Note that all parameters used to create this instance are saved as instance attributes. - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The subscription identifier. :type subscription_id: str - :param str base_url: Service URL """ def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") if subscription_id is None: raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(HealthcareApisManagementClientConfiguration, self).__init__(base_url) - - # Starting Autorest.Python 4.0.64, make connection pool activated by default - self.keep_alive = True + super(HealthcareApisManagementClientConfiguration, self).__init__(**kwargs) - self.add_user_agent('azure-mgmt-healthcareapis/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials + self.credential = credential self.subscription_id = subscription_id + self.api_version = "2021-11-01" + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'mgmt-healthcareapis/{}'.format(VERSION)) + self._configure(**kwargs) + + def _configure( + self, + **kwargs # type: Any + ): + # type: (...) -> None + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/_healthcare_apis_management_client.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/_healthcare_apis_management_client.py index 19bb1ab7c1d..4df07d132a4 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/_healthcare_apis_management_client.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/_healthcare_apis_management_client.py @@ -1,69 +1,130 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from msrest.service_client import SDKClient -from msrest import Serializer, Deserializer +from typing import TYPE_CHECKING + +from azure.mgmt.core import ARMPipelineClient +from msrest import Deserializer, Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Optional + + from azure.core.credentials import TokenCredential 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 WorkspacePrivateEndpointConnectionsOperations +from .operations import WorkspacePrivateLinkResourcesOperations +from .operations import Operations +from .operations import OperationResultsOperations from . import models -class HealthcareApisManagementClient(SDKClient): - """Azure Healthcare APIs Client - - :ivar config: Configuration for client. - :vartype config: HealthcareApisManagementClientConfiguration +class HealthcareApisManagementClient(object): + """Azure Healthcare APIs Client. - :ivar services: Services operations + :ivar services: ServicesOperations operations :vartype services: azure.mgmt.healthcareapis.operations.ServicesOperations + :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 workspace_private_endpoint_connections: WorkspacePrivateEndpointConnectionsOperations operations + :vartype workspace_private_endpoint_connections: azure.mgmt.healthcareapis.operations.WorkspacePrivateEndpointConnectionsOperations + :ivar workspace_private_link_resources: WorkspacePrivateLinkResourcesOperations operations + :vartype workspace_private_link_resources: azure.mgmt.healthcareapis.operations.WorkspacePrivateLinkResourcesOperations :ivar operations: Operations operations :vartype operations: azure.mgmt.healthcareapis.operations.Operations - :ivar operation_results: OperationResults operations + :ivar operation_results: OperationResultsOperations operations :vartype operation_results: azure.mgmt.healthcareapis.operations.OperationResultsOperations - :ivar private_endpoint_connections: PrivateEndpointConnections operations - :vartype private_endpoint_connections: azure.mgmt.healthcareapis.operations.PrivateEndpointConnectionsOperations - :ivar private_link_resources: PrivateLinkResources operations - :vartype private_link_resources: azure.mgmt.healthcareapis.operations.PrivateLinkResourcesOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The subscription identifier. :type subscription_id: str :param str base_url: Service URL + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( - self, credentials, subscription_id, base_url=None): - - self.config = HealthcareApisManagementClientConfiguration(credentials, subscription_id, base_url) - super(HealthcareApisManagementClient, self).__init__(self.config.credentials, self.config) + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + base_url=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> None + if not base_url: + base_url = 'https://management.azure.com' + self._config = HealthcareApisManagementClientConfiguration(credential, subscription_id, **kwargs) + self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2020-03-30' self._serialize = Serializer(client_models) + self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) 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._client, self._config, self._serialize, self._deserialize) self.private_endpoint_connections = PrivateEndpointConnectionsOperations( - self._client, self.config, self._serialize, self._deserialize) + self._client, self._config, self._serialize, self._deserialize) self.private_link_resources = PrivateLinkResourcesOperations( - self._client, self.config, self._serialize, self._deserialize) + 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.workspace_private_endpoint_connections = WorkspacePrivateEndpointConnectionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workspace_private_link_resources = WorkspacePrivateLinkResourcesOperations( + 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 close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> HealthcareApisManagementClient + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/version.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/_version.py similarity index 84% rename from src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/version.py rename to src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/_version.py index fb0159ed93d..e5754a47ce6 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/version.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/_version.py @@ -1,12 +1,9 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.0" +VERSION = "1.0.0b1" diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/__init__.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/__init__.py similarity index 100% rename from src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/__init__.py rename to src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/__init__.py diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/_configuration.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/_configuration.py similarity index 95% rename from src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/_configuration.py rename to src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/_configuration.py index 07593611cbc..277801d9136 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/_configuration.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class HealthcareApisManagementClientConfiguration(Configuration): """Configuration for HealthcareApisManagementClient. @@ -44,9 +45,9 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-03-30" + self.api_version = "2021-11-01" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) - kwargs.setdefault('sdk_moniker', 'healthcareapismanagementclient/{}'.format(VERSION)) + kwargs.setdefault('sdk_moniker', 'mgmt-healthcareapis/{}'.format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/_healthcare_apis_management_client.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/_healthcare_apis_management_client.py new file mode 100644 index 00000000000..c909bbfd815 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/_healthcare_apis_management_client.py @@ -0,0 +1,124 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import Any, Optional, TYPE_CHECKING + +from azure.mgmt.core import AsyncARMPipelineClient +from msrest import Deserializer, Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + +from ._configuration import HealthcareApisManagementClientConfiguration +from .operations import ServicesOperations +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 WorkspacePrivateEndpointConnectionsOperations +from .operations import WorkspacePrivateLinkResourcesOperations +from .operations import Operations +from .operations import OperationResultsOperations +from .. import models + + +class HealthcareApisManagementClient(object): + """Azure Healthcare APIs Client. + + :ivar services: ServicesOperations operations + :vartype services: azure.mgmt.healthcareapis.aio.operations.ServicesOperations + :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 workspace_private_endpoint_connections: WorkspacePrivateEndpointConnectionsOperations operations + :vartype workspace_private_endpoint_connections: azure.mgmt.healthcareapis.aio.operations.WorkspacePrivateEndpointConnectionsOperations + :ivar workspace_private_link_resources: WorkspacePrivateLinkResourcesOperations operations + :vartype workspace_private_link_resources: azure.mgmt.healthcareapis.aio.operations.WorkspacePrivateLinkResourcesOperations + :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. + :type subscription_id: str + :param str base_url: Service URL + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + """ + + def __init__( + self, + credential: "AsyncTokenCredential", + subscription_id: str, + base_url: Optional[str] = None, + **kwargs: Any + ) -> None: + if not base_url: + base_url = 'https://management.azure.com' + self._config = HealthcareApisManagementClientConfiguration(credential, subscription_id, **kwargs) + self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._serialize.client_side_validation = False + self._deserialize = Deserializer(client_models) + + self.services = ServicesOperations( + 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.workspace_private_endpoint_connections = WorkspacePrivateEndpointConnectionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.workspace_private_link_resources = WorkspacePrivateLinkResourcesOperations( + 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 close(self) -> None: + await self._client.close() + + async def __aenter__(self) -> "HealthcareApisManagementClient": + await self._client.__aenter__() + return self + + async def __aexit__(self, *exc_details) -> None: + await self._client.__aexit__(*exc_details) diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/__init__.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/__init__.py new file mode 100644 index 00000000000..baf70b0f274 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/__init__.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._services_operations import ServicesOperations +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 ._workspace_private_endpoint_connections_operations import WorkspacePrivateEndpointConnectionsOperations +from ._workspace_private_link_resources_operations import WorkspacePrivateLinkResourcesOperations +from ._operations import Operations +from ._operation_results_operations import OperationResultsOperations + +__all__ = [ + 'ServicesOperations', + 'PrivateEndpointConnectionsOperations', + 'PrivateLinkResourcesOperations', + 'WorkspacesOperations', + 'DicomServicesOperations', + 'IotConnectorsOperations', + 'FhirDestinationsOperations', + 'IotConnectorFhirDestinationOperations', + 'FhirServicesOperations', + 'WorkspacePrivateEndpointConnectionsOperations', + 'WorkspacePrivateLinkResourcesOperations', + 'Operations', + 'OperationResultsOperations', +] diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_dicom_services_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_dicom_services_operations.py new file mode 100644 index 00000000000..7f5cfb61b38 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_dicom_services_operations.py @@ -0,0 +1,573 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class DicomServicesOperations: + """DicomServicesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_workspace( + self, + resource_group_name: str, + workspace_name: str, + **kwargs + ) -> AsyncIterable["models.DicomServiceCollection"]: + """Lists all DICOM Services for the given workspace. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either DicomServiceCollection or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.healthcareapis.models.DicomServiceCollection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.DicomServiceCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_workspace.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('DicomServiceCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_workspace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices'} # type: ignore + + async def get( + self, + resource_group_name: str, + workspace_name: str, + dicom_service_name: str, + **kwargs + ) -> "models.DicomService": + """Gets the properties of the specified DICOM Service. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param dicom_service_name: The name of DICOM Service resource. + :type dicom_service_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DicomService, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.DicomService + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.DicomService"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'dicomServiceName': self._serialize.url("dicom_service_name", dicom_service_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('DicomService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + workspace_name: str, + dicom_service_name: str, + dicomservice: "models.DicomService", + **kwargs + ) -> "models.DicomService": + cls = kwargs.pop('cls', None) # type: ClsType["models.DicomService"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'dicomServiceName': self._serialize.url("dicom_service_name", dicom_service_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(dicomservice, 'DicomService') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('DicomService', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('DicomService', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('DicomService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + workspace_name: str, + dicom_service_name: str, + dicomservice: "models.DicomService", + **kwargs + ) -> AsyncLROPoller["models.DicomService"]: + """Creates or updates a DICOM Service resource with the specified parameters. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param dicom_service_name: The name of DICOM Service resource. + :type dicom_service_name: str + :param dicomservice: The parameters for creating or updating a Dicom Service resource. + :type dicomservice: ~azure.mgmt.healthcareapis.models.DicomService + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either DicomService or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.healthcareapis.models.DicomService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.DicomService"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + dicom_service_name=dicom_service_name, + dicomservice=dicomservice, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('DicomService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'dicomServiceName': self._serialize.url("dicom_service_name", dicom_service_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + dicom_service_name: str, + workspace_name: str, + dicomservice_patch_resource: "models.DicomServicePatchResource", + **kwargs + ) -> "models.DicomService": + cls = kwargs.pop('cls', None) # type: ClsType["models.DicomService"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'dicomServiceName': self._serialize.url("dicom_service_name", dicom_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(dicomservice_patch_resource, 'DicomServicePatchResource') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('DicomService', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('DicomService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + dicom_service_name: str, + workspace_name: str, + dicomservice_patch_resource: "models.DicomServicePatchResource", + **kwargs + ) -> AsyncLROPoller["models.DicomService"]: + """Patch DICOM Service details. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param dicom_service_name: The name of DICOM Service resource. + :type dicom_service_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param dicomservice_patch_resource: The parameters for updating a Dicom Service. + :type dicomservice_patch_resource: ~azure.mgmt.healthcareapis.models.DicomServicePatchResource + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either DicomService or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.healthcareapis.models.DicomService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.DicomService"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + dicom_service_name=dicom_service_name, + workspace_name=workspace_name, + dicomservice_patch_resource=dicomservice_patch_resource, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('DicomService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'dicomServiceName': self._serialize.url("dicom_service_name", dicom_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + dicom_service_name: str, + workspace_name: str, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'dicomServiceName': self._serialize.url("dicom_service_name", dicom_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.Error, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + dicom_service_name: str, + workspace_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Deletes a DICOM Service. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param dicom_service_name: The name of DICOM Service resource. + :type dicom_service_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + dicom_service_name=dicom_service_name, + workspace_name=workspace_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'dicomServiceName': self._serialize.url("dicom_service_name", dicom_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_fhir_destinations_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_fhir_destinations_operations.py new file mode 100644 index 00000000000..0d060d012a2 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_fhir_destinations_operations.py @@ -0,0 +1,121 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class FhirDestinationsOperations: + """FhirDestinationsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_iot_connector( + self, + resource_group_name: str, + workspace_name: str, + iot_connector_name: str, + **kwargs + ) -> AsyncIterable["models.IotFhirDestinationCollection"]: + """Lists all FHIR destinations for the given IoT Connector. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either IotFhirDestinationCollection or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.healthcareapis.models.IotFhirDestinationCollection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.IotFhirDestinationCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_iot_connector.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('IotFhirDestinationCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_iot_connector.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_fhir_services_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_fhir_services_operations.py new file mode 100644 index 00000000000..2247dc2c3c0 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_fhir_services_operations.py @@ -0,0 +1,573 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class FhirServicesOperations: + """FhirServicesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_workspace( + self, + resource_group_name: str, + workspace_name: str, + **kwargs + ) -> AsyncIterable["models.FhirServiceCollection"]: + """Lists all FHIR Services for the given workspace. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either FhirServiceCollection or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.healthcareapis.models.FhirServiceCollection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.FhirServiceCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_workspace.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('FhirServiceCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_workspace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices'} # type: ignore + + async def get( + self, + resource_group_name: str, + workspace_name: str, + fhir_service_name: str, + **kwargs + ) -> "models.FhirService": + """Gets the properties of the specified FHIR Service. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param fhir_service_name: The name of FHIR Service resource. + :type fhir_service_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: FhirService, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.FhirService + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.FhirService"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'fhirServiceName': self._serialize.url("fhir_service_name", fhir_service_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('FhirService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + workspace_name: str, + fhir_service_name: str, + fhirservice: "models.FhirService", + **kwargs + ) -> "models.FhirService": + cls = kwargs.pop('cls', None) # type: ClsType["models.FhirService"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'fhirServiceName': self._serialize.url("fhir_service_name", fhir_service_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(fhirservice, 'FhirService') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('FhirService', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('FhirService', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('FhirService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + workspace_name: str, + fhir_service_name: str, + fhirservice: "models.FhirService", + **kwargs + ) -> AsyncLROPoller["models.FhirService"]: + """Creates or updates a FHIR Service resource with the specified parameters. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param fhir_service_name: The name of FHIR Service resource. + :type fhir_service_name: str + :param fhirservice: The parameters for creating or updating a Fhir Service resource. + :type fhirservice: ~azure.mgmt.healthcareapis.models.FhirService + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either FhirService or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.healthcareapis.models.FhirService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.FhirService"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + fhir_service_name=fhir_service_name, + fhirservice=fhirservice, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('FhirService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'fhirServiceName': self._serialize.url("fhir_service_name", fhir_service_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + fhir_service_name: str, + workspace_name: str, + fhirservice_patch_resource: "models.FhirServicePatchResource", + **kwargs + ) -> "models.FhirService": + cls = kwargs.pop('cls', None) # type: ClsType["models.FhirService"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'fhirServiceName': self._serialize.url("fhir_service_name", fhir_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(fhirservice_patch_resource, 'FhirServicePatchResource') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('FhirService', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('FhirService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + fhir_service_name: str, + workspace_name: str, + fhirservice_patch_resource: "models.FhirServicePatchResource", + **kwargs + ) -> AsyncLROPoller["models.FhirService"]: + """Patch FHIR Service details. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param fhir_service_name: The name of FHIR Service resource. + :type fhir_service_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param fhirservice_patch_resource: The parameters for updating a Fhir Service. + :type fhirservice_patch_resource: ~azure.mgmt.healthcareapis.models.FhirServicePatchResource + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either FhirService or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.healthcareapis.models.FhirService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.FhirService"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + fhir_service_name=fhir_service_name, + workspace_name=workspace_name, + fhirservice_patch_resource=fhirservice_patch_resource, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('FhirService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'fhirServiceName': self._serialize.url("fhir_service_name", fhir_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + fhir_service_name: str, + workspace_name: str, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'fhirServiceName': self._serialize.url("fhir_service_name", fhir_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.Error, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + fhir_service_name: str, + workspace_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Deletes a FHIR Service. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param fhir_service_name: The name of FHIR Service resource. + :type fhir_service_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + fhir_service_name=fhir_service_name, + workspace_name=workspace_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'fhirServiceName': self._serialize.url("fhir_service_name", fhir_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_iot_connector_fhir_destination_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_iot_connector_fhir_destination_operations.py new file mode 100644 index 00000000000..6b1574d1844 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_iot_connector_fhir_destination_operations.py @@ -0,0 +1,380 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IotConnectorFhirDestinationOperations: + """IotConnectorFhirDestinationOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get( + self, + resource_group_name: str, + workspace_name: str, + iot_connector_name: str, + fhir_destination_name: str, + **kwargs + ) -> "models.IotFhirDestination": + """Gets the properties of the specified Iot Connector FHIR destination. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :param fhir_destination_name: The name of IoT Connector FHIR destination resource. + :type fhir_destination_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IotFhirDestination, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.IotFhirDestination + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.IotFhirDestination"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'fhirDestinationName': self._serialize.url("fhir_destination_name", fhir_destination_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('IotFhirDestination', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + workspace_name: str, + iot_connector_name: str, + fhir_destination_name: str, + iot_fhir_destination: "models.IotFhirDestination", + **kwargs + ) -> "models.IotFhirDestination": + cls = kwargs.pop('cls', None) # type: ClsType["models.IotFhirDestination"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'fhirDestinationName': self._serialize.url("fhir_destination_name", fhir_destination_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(iot_fhir_destination, 'IotFhirDestination') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('IotFhirDestination', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IotFhirDestination', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('IotFhirDestination', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + workspace_name: str, + iot_connector_name: str, + fhir_destination_name: str, + iot_fhir_destination: "models.IotFhirDestination", + **kwargs + ) -> AsyncLROPoller["models.IotFhirDestination"]: + """Creates or updates an IoT Connector FHIR destination resource with the specified parameters. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :param fhir_destination_name: The name of IoT Connector FHIR destination resource. + :type fhir_destination_name: str + :param iot_fhir_destination: The parameters for creating or updating an IoT Connector FHIR + destination resource. + :type iot_fhir_destination: ~azure.mgmt.healthcareapis.models.IotFhirDestination + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either IotFhirDestination or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.healthcareapis.models.IotFhirDestination] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.IotFhirDestination"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + iot_connector_name=iot_connector_name, + fhir_destination_name=fhir_destination_name, + iot_fhir_destination=iot_fhir_destination, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('IotFhirDestination', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'fhirDestinationName': self._serialize.url("fhir_destination_name", fhir_destination_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + workspace_name: str, + iot_connector_name: str, + fhir_destination_name: str, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'fhirDestinationName': self._serialize.url("fhir_destination_name", fhir_destination_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.Error, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + workspace_name: str, + iot_connector_name: str, + fhir_destination_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Deletes an IoT Connector FHIR destination. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :param fhir_destination_name: The name of IoT Connector FHIR destination resource. + :type fhir_destination_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + iot_connector_name=iot_connector_name, + fhir_destination_name=fhir_destination_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'fhirDestinationName': self._serialize.url("fhir_destination_name", fhir_destination_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_iot_connectors_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_iot_connectors_operations.py new file mode 100644 index 00000000000..aa783e41694 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_iot_connectors_operations.py @@ -0,0 +1,573 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class IotConnectorsOperations: + """IotConnectorsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_workspace( + self, + resource_group_name: str, + workspace_name: str, + **kwargs + ) -> AsyncIterable["models.IotConnectorCollection"]: + """Lists all IoT Connectors for the given workspace. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either IotConnectorCollection or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.healthcareapis.models.IotConnectorCollection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.IotConnectorCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_workspace.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('IotConnectorCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_workspace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors'} # type: ignore + + async def get( + self, + resource_group_name: str, + workspace_name: str, + iot_connector_name: str, + **kwargs + ) -> "models.IotConnector": + """Gets the properties of the specified IoT Connector. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IotConnector, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.IotConnector + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.IotConnector"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('IotConnector', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + workspace_name: str, + iot_connector_name: str, + iot_connector: "models.IotConnector", + **kwargs + ) -> "models.IotConnector": + cls = kwargs.pop('cls', None) # type: ClsType["models.IotConnector"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(iot_connector, 'IotConnector') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('IotConnector', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IotConnector', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('IotConnector', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + workspace_name: str, + iot_connector_name: str, + iot_connector: "models.IotConnector", + **kwargs + ) -> AsyncLROPoller["models.IotConnector"]: + """Creates or updates an IoT Connector resource with the specified parameters. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :param iot_connector: The parameters for creating or updating an IoT Connectors resource. + :type iot_connector: ~azure.mgmt.healthcareapis.models.IotConnector + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either IotConnector or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.healthcareapis.models.IotConnector] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.IotConnector"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + iot_connector_name=iot_connector_name, + iot_connector=iot_connector, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('IotConnector', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + iot_connector_name: str, + workspace_name: str, + iot_connector_patch_resource: "models.IotConnectorPatchResource", + **kwargs + ) -> "models.IotConnector": + cls = kwargs.pop('cls', None) # type: ClsType["models.IotConnector"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(iot_connector_patch_resource, 'IotConnectorPatchResource') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('IotConnector', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('IotConnector', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + iot_connector_name: str, + workspace_name: str, + iot_connector_patch_resource: "models.IotConnectorPatchResource", + **kwargs + ) -> AsyncLROPoller["models.IotConnector"]: + """Patch an IoT Connector. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param iot_connector_patch_resource: The parameters for updating an IoT Connector. + :type iot_connector_patch_resource: ~azure.mgmt.healthcareapis.models.IotConnectorPatchResource + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either IotConnector or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.healthcareapis.models.IotConnector] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.IotConnector"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + iot_connector_name=iot_connector_name, + workspace_name=workspace_name, + iot_connector_patch_resource=iot_connector_patch_resource, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('IotConnector', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + iot_connector_name: str, + workspace_name: str, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.Error, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + iot_connector_name: str, + workspace_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Deletes an IoT Connector. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + iot_connector_name=iot_connector_name, + workspace_name=workspace_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_operation_result_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_operation_results_operations.py similarity index 81% rename from src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_operation_result_operations.py rename to src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_operation_results_operations.py index 029df58fdd9..43387214cfe 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_operation_result_operations.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_operation_results_operations.py @@ -5,7 +5,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error @@ -18,14 +18,14 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class OperationResultOperations: - """OperationResultOperations async operations. +class OperationResultsOperations: + """OperationResultsOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~healthcare_apis_management_client.models + :type models: ~azure.mgmt.healthcareapis.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -45,7 +45,7 @@ async def get( location_name: str, operation_result_id: str, **kwargs - ) -> Union["models.OperationResultsDescription", "models.ErrorDetails"]: + ) -> "models.OperationResultsDescription": """Get the operation result for a long running operation. :param location_name: The location of the operation. @@ -53,16 +53,16 @@ async def get( :param operation_result_id: The ID of the operation result to get. :type operation_result_id: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: OperationResultsDescription or ErrorDetails, or the result of cls(response) - :rtype: ~healthcare_apis_management_client.models.OperationResultsDescription or ~healthcare_apis_management_client.models.ErrorDetails + :return: OperationResultsDescription, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.OperationResultsDescription :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Union["models.OperationResultsDescription", "models.ErrorDetails"]] + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResultsDescription"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" # Construct URL @@ -86,16 +86,12 @@ async def get( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 404]: + if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(models.ErrorDetails, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if response.status_code == 200: - deserialized = self._deserialize('OperationResultsDescription', pipeline_response) - - if response.status_code == 404: - deserialized = self._deserialize('ErrorDetails', pipeline_response) + deserialized = self._deserialize('OperationResultsDescription', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_operation_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_operations.py similarity index 85% rename from src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_operation_operations.py rename to src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_operations.py index ceb6459381b..0fd488a64b4 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_operation_operations.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_operations.py @@ -19,14 +19,14 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class OperationOperations: - """OperationOperations async operations. +class Operations: + """Operations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~healthcare_apis_management_client.models + :type models: ~azure.mgmt.healthcareapis.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -44,20 +44,20 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, **kwargs - ) -> AsyncIterable["models.OperationListResult"]: - """Lists all of the available Healthcare service REST API operations. + ) -> AsyncIterable["models.ListOperations"]: + """Lists all of the available operations supported by Microsoft Healthcare resource provider. :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either OperationListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~healthcare_apis_management_client.models.OperationListResult] + :return: An iterator like instance of either ListOperations or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.healthcareapis.models.ListOperations] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["models.ListOperations"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" def prepare_request(next_link=None): @@ -80,7 +80,7 @@ def prepare_request(next_link=None): return request async def extract_data(pipeline_response): - deserialized = self._deserialize('OperationListResult', pipeline_response) + deserialized = self._deserialize('ListOperations', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_private_endpoint_connection_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_private_endpoint_connections_operations.py similarity index 90% rename from src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_private_endpoint_connection_operations.py rename to src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_private_endpoint_connections_operations.py index ef3023bce1e..644c6ab8190 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_private_endpoint_connection_operations.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_private_endpoint_connections_operations.py @@ -21,14 +21,14 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class PrivateEndpointConnectionOperations: - """PrivateEndpointConnectionOperations async operations. +class PrivateEndpointConnectionsOperations: + """PrivateEndpointConnectionsOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~healthcare_apis_management_client.models + :type models: ~azure.mgmt.healthcareapis.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -48,7 +48,7 @@ def list_by_service( resource_group_name: str, resource_name: str, **kwargs - ) -> AsyncIterable["models.PrivateEndpointConnectionListResult"]: + ) -> AsyncIterable["models.PrivateEndpointConnectionListResultDescription"]: """Lists all private endpoint connections for a service. :param resource_group_name: The name of the resource group that contains the service instance. @@ -56,16 +56,16 @@ def list_by_service( :param resource_name: The name of the service instance. :type resource_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either PrivateEndpointConnectionListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~healthcare_apis_management_client.models.PrivateEndpointConnectionListResult] + :return: An iterator like instance of either PrivateEndpointConnectionListResultDescription or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionListResultDescription] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionListResultDescription"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" def prepare_request(next_link=None): @@ -94,7 +94,7 @@ def prepare_request(next_link=None): return request async def extract_data(pipeline_response): - deserialized = self._deserialize('PrivateEndpointConnectionListResult', pipeline_response) + deserialized = self._deserialize('PrivateEndpointConnectionListResultDescription', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -124,7 +124,7 @@ async def get( resource_name: str, private_endpoint_connection_name: str, **kwargs - ) -> "models.PrivateEndpointConnection": + ) -> "models.PrivateEndpointConnectionDescription": """Gets the specified private endpoint connection associated with the service. :param resource_group_name: The name of the resource group that contains the service instance. @@ -135,16 +135,16 @@ async def get( with the Azure resource. :type private_endpoint_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: PrivateEndpointConnection, or the result of cls(response) - :rtype: ~healthcare_apis_management_client.models.PrivateEndpointConnection + :return: PrivateEndpointConnectionDescription, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionDescription"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" # Construct URL @@ -174,7 +174,7 @@ async def get( error = self._deserialize(models.ErrorDetails, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) + deserialized = self._deserialize('PrivateEndpointConnectionDescription', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -187,19 +187,15 @@ async def _create_or_update_initial( resource_group_name: str, resource_name: str, private_endpoint_connection_name: str, - status: Optional[Union[str, "models.PrivateEndpointServiceConnectionStatus"]] = None, - description: Optional[str] = None, - actions_required: Optional[str] = None, + properties: "models.PrivateEndpointConnection", **kwargs - ) -> "models.PrivateEndpointConnection": - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + ) -> "models.PrivateEndpointConnectionDescription": + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionDescription"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - properties = models.PrivateEndpointConnection(status=status, description=description, actions_required=actions_required) - api_version = "2020-03-30" + api_version = "2021-11-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -234,7 +230,7 @@ async def _create_or_update_initial( error = self._deserialize(models.ErrorDetails, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) + deserialized = self._deserialize('PrivateEndpointConnectionDescription', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -247,11 +243,9 @@ async def begin_create_or_update( resource_group_name: str, resource_name: str, private_endpoint_connection_name: str, - status: Optional[Union[str, "models.PrivateEndpointServiceConnectionStatus"]] = None, - description: Optional[str] = None, - actions_required: Optional[str] = None, + properties: "models.PrivateEndpointConnection", **kwargs - ) -> AsyncLROPoller["models.PrivateEndpointConnection"]: + ) -> AsyncLROPoller["models.PrivateEndpointConnectionDescription"]: """Update the state of the specified private endpoint connection associated with the service. :param resource_group_name: The name of the resource group that contains the service instance. @@ -261,26 +255,20 @@ async def begin_create_or_update( :param private_endpoint_connection_name: The name of the private endpoint connection associated with the Azure resource. :type private_endpoint_connection_name: str - :param status: Indicates whether the connection has been Approved/Rejected/Removed by the owner - of the service. - :type status: str or ~healthcare_apis_management_client.models.PrivateEndpointServiceConnectionStatus - :param description: The reason for approval/rejection of the connection. - :type description: str - :param actions_required: A message indicating if changes on the service provider require any - updates on the consumer. - :type actions_required: str + :param properties: The private endpoint connection properties. + :type properties: ~azure.mgmt.healthcareapis.models.PrivateEndpointConnection :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~healthcare_apis_management_client.models.PrivateEndpointConnection] + :return: An instance of AsyncLROPoller that returns either PrivateEndpointConnectionDescription or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionDescription"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -291,9 +279,7 @@ async def begin_create_or_update( resource_group_name=resource_group_name, resource_name=resource_name, private_endpoint_connection_name=private_endpoint_connection_name, - status=status, - description=description, - actions_required=actions_required, + properties=properties, cls=lambda x,y,z: x, **kwargs ) @@ -302,7 +288,7 @@ async def begin_create_or_update( kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): - deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) + deserialized = self._deserialize('PrivateEndpointConnectionDescription', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -341,7 +327,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" # Construct URL diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_private_link_resource_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_private_link_resources_operations.py similarity index 89% rename from src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_private_link_resource_operations.py rename to src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_private_link_resources_operations.py index b329ca5e78a..2eaf266c937 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_private_link_resource_operations.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_private_link_resources_operations.py @@ -18,14 +18,14 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class PrivateLinkResourceOperations: - """PrivateLinkResourceOperations async operations. +class PrivateLinkResourcesOperations: + """PrivateLinkResourcesOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~healthcare_apis_management_client.models + :type models: ~azure.mgmt.healthcareapis.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -45,7 +45,7 @@ async def list_by_service( resource_group_name: str, resource_name: str, **kwargs - ) -> "models.PrivateLinkResourceListResult": + ) -> "models.PrivateLinkResourceListResultDescription": """Gets the private link resources that need to be created for a service. :param resource_group_name: The name of the resource group that contains the service instance. @@ -53,16 +53,16 @@ async def list_by_service( :param resource_name: The name of the service instance. :type resource_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: PrivateLinkResourceListResult, or the result of cls(response) - :rtype: ~healthcare_apis_management_client.models.PrivateLinkResourceListResult + :return: PrivateLinkResourceListResultDescription, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.PrivateLinkResourceListResultDescription :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceListResultDescription"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" # Construct URL @@ -91,7 +91,7 @@ async def list_by_service( error = self._deserialize(models.ErrorDetails, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('PrivateLinkResourceListResult', pipeline_response) + deserialized = self._deserialize('PrivateLinkResourceListResultDescription', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -105,7 +105,7 @@ async def get( resource_name: str, group_name: str, **kwargs - ) -> "models.PrivateLinkResource": + ) -> "models.PrivateLinkResourceDescription": """Gets a private link resource that need to be created for a service. :param resource_group_name: The name of the resource group that contains the service instance. @@ -115,16 +115,16 @@ async def get( :param group_name: The name of the private link resource group. :type group_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: PrivateLinkResource, or the result of cls(response) - :rtype: ~healthcare_apis_management_client.models.PrivateLinkResource + :return: PrivateLinkResourceDescription, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.PrivateLinkResourceDescription :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResource"] + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceDescription"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" # Construct URL @@ -154,7 +154,7 @@ async def get( error = self._deserialize(models.ErrorDetails, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('PrivateLinkResource', pipeline_response) + deserialized = self._deserialize('PrivateLinkResourceDescription', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_service_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_services_operations.py similarity index 82% rename from src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_service_operations.py rename to src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_services_operations.py index c76ec746873..230d6a087a8 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/_service_operations.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_services_operations.py @@ -5,7 +5,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Generic, List, Optional, TypeVar, Union +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -21,14 +21,14 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class ServiceOperations: - """ServiceOperations async operations. +class ServicesOperations: + """ServicesOperations async operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~healthcare_apis_management_client.models + :type models: ~azure.mgmt.healthcareapis.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -57,7 +57,7 @@ async def get( :type resource_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ServicesDescription, or the result of cls(response) - :rtype: ~healthcare_apis_management_client.models.ServicesDescription + :rtype: ~azure.mgmt.healthcareapis.models.ServicesDescription :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescription"] @@ -65,7 +65,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" # Construct URL @@ -106,18 +106,7 @@ async def _create_or_update_initial( self, resource_group_name: str, resource_name: str, - kind: Union[str, "models.Kind"], - location: str, - tags: Optional[Dict[str, str]] = None, - etag: Optional[str] = None, - type: Optional[Union[str, "models.ManagedServiceIdentityType"]] = None, - access_policies: Optional[List["models.ServiceAccessPolicyEntry"]] = None, - cosmos_db_configuration: Optional["models.ServiceCosmosDBConfigurationInfo"] = None, - authentication_configuration: Optional["models.ServiceAuthenticationConfigurationInfo"] = None, - cors_configuration: Optional["models.ServiceCorsConfigurationInfo"] = None, - private_endpoint_connections: Optional[List["models.PrivateEndpointConnection"]] = None, - public_network_access: Optional[Union[str, "models.PublicNetworkAccess"]] = None, - storage_account_name: Optional[str] = None, + service_description: "models.ServicesDescription", **kwargs ) -> "models.ServicesDescription": cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescription"] @@ -125,9 +114,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - service_description = models.ServicesDescription(kind=kind, location=location, tags=tags, etag=etag, type_identity_type=type, access_policies=access_policies, cosmos_db_configuration=cosmos_db_configuration, authentication_configuration=authentication_configuration, cors_configuration=cors_configuration, private_endpoint_connections=private_endpoint_connections, public_network_access=public_network_access, storage_account_name=storage_account_name) - api_version = "2020-03-30" + api_version = "2021-11-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -152,7 +139,6 @@ async def _create_or_update_initial( body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(service_description, 'ServicesDescription') body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -178,18 +164,7 @@ async def begin_create_or_update( self, resource_group_name: str, resource_name: str, - kind: Union[str, "models.Kind"], - location: str, - tags: Optional[Dict[str, str]] = None, - etag: Optional[str] = None, - type: Optional[Union[str, "models.ManagedServiceIdentityType"]] = None, - access_policies: Optional[List["models.ServiceAccessPolicyEntry"]] = None, - cosmos_db_configuration: Optional["models.ServiceCosmosDBConfigurationInfo"] = None, - authentication_configuration: Optional["models.ServiceAuthenticationConfigurationInfo"] = None, - cors_configuration: Optional["models.ServiceCorsConfigurationInfo"] = None, - private_endpoint_connections: Optional[List["models.PrivateEndpointConnection"]] = None, - public_network_access: Optional[Union[str, "models.PublicNetworkAccess"]] = None, - storage_account_name: Optional[str] = None, + service_description: "models.ServicesDescription", **kwargs ) -> AsyncLROPoller["models.ServicesDescription"]: """Create or update the metadata of a service instance. @@ -198,33 +173,8 @@ async def begin_create_or_update( :type resource_group_name: str :param resource_name: The name of the service instance. :type resource_name: str - :param kind: The kind of the service. - :type kind: str or ~healthcare_apis_management_client.models.Kind - :param location: The resource location. - :type location: str - :param tags: The resource tags. - :type tags: dict[str, str] - :param etag: An etag associated with the resource, used for optimistic concurrency when editing - it. - :type etag: str - :param type: Type of identity being specified, currently SystemAssigned and None are allowed. - :type type: str or ~healthcare_apis_management_client.models.ManagedServiceIdentityType - :param access_policies: The access policies of the service instance. - :type access_policies: list[~healthcare_apis_management_client.models.ServiceAccessPolicyEntry] - :param cosmos_db_configuration: The settings for the Cosmos DB database backing the service. - :type cosmos_db_configuration: ~healthcare_apis_management_client.models.ServiceCosmosDBConfigurationInfo - :param authentication_configuration: The authentication configuration for the service instance. - :type authentication_configuration: ~healthcare_apis_management_client.models.ServiceAuthenticationConfigurationInfo - :param cors_configuration: The settings for the CORS configuration of the service instance. - :type cors_configuration: ~healthcare_apis_management_client.models.ServiceCorsConfigurationInfo - :param private_endpoint_connections: The list of private endpoint connections that are set up - for this resource. - :type private_endpoint_connections: list[~healthcare_apis_management_client.models.PrivateEndpointConnection] - :param public_network_access: Control permission for data plane traffic coming from public - networks while private endpoint is enabled. - :type public_network_access: str or ~healthcare_apis_management_client.models.PublicNetworkAccess - :param storage_account_name: The name of the default export storage account. - :type storage_account_name: str + :param service_description: The service instance metadata. + :type service_description: ~azure.mgmt.healthcareapis.models.ServicesDescription :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -232,7 +182,7 @@ async def begin_create_or_update( :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either ServicesDescription or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~healthcare_apis_management_client.models.ServicesDescription] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.healthcareapis.models.ServicesDescription] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -246,18 +196,7 @@ async def begin_create_or_update( raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, resource_name=resource_name, - kind=kind, - location=location, - tags=tags, - etag=etag, - type=type, - access_policies=access_policies, - cosmos_db_configuration=cosmos_db_configuration, - authentication_configuration=authentication_configuration, - cors_configuration=cors_configuration, - private_endpoint_connections=private_endpoint_connections, - public_network_access=public_network_access, - storage_account_name=storage_account_name, + service_description=service_description, cls=lambda x,y,z: x, **kwargs ) @@ -296,8 +235,7 @@ async def _update_initial( self, resource_group_name: str, resource_name: str, - tags: Optional[Dict[str, str]] = None, - public_network_access: Optional[Union[str, "models.PublicNetworkAccess"]] = None, + service_patch_description: "models.ServicesPatchDescription", **kwargs ) -> "models.ServicesDescription": cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescription"] @@ -305,9 +243,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - service_patch_description = models.ServicesPatchDescription(tags=tags, public_network_access=public_network_access) - api_version = "2020-03-30" + api_version = "2021-11-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -353,8 +289,7 @@ async def begin_update( self, resource_group_name: str, resource_name: str, - tags: Optional[Dict[str, str]] = None, - public_network_access: Optional[Union[str, "models.PublicNetworkAccess"]] = None, + service_patch_description: "models.ServicesPatchDescription", **kwargs ) -> AsyncLROPoller["models.ServicesDescription"]: """Update the metadata of a service instance. @@ -363,11 +298,8 @@ async def begin_update( :type resource_group_name: str :param resource_name: The name of the service instance. :type resource_name: str - :param tags: Instance tags. - :type tags: dict[str, str] - :param public_network_access: Control permission for data plane traffic coming from public - networks while private endpoint is enabled. - :type public_network_access: str or ~healthcare_apis_management_client.models.PublicNetworkAccess + :param service_patch_description: The service instance metadata and security metadata. + :type service_patch_description: ~azure.mgmt.healthcareapis.models.ServicesPatchDescription :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -375,7 +307,7 @@ async def begin_update( :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either ServicesDescription or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[~healthcare_apis_management_client.models.ServicesDescription] + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.healthcareapis.models.ServicesDescription] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -389,8 +321,7 @@ async def begin_update( raw_result = await self._update_initial( resource_group_name=resource_group_name, resource_name=resource_name, - tags=tags, - public_network_access=public_network_access, + service_patch_description=service_patch_description, cls=lambda x,y,z: x, **kwargs ) @@ -436,7 +367,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" # Construct URL @@ -542,7 +473,7 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ServicesDescriptionListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~healthcare_apis_management_client.models.ServicesDescriptionListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.healthcareapis.models.ServicesDescriptionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescriptionListResult"] @@ -550,7 +481,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" def prepare_request(next_link=None): @@ -612,7 +543,7 @@ def list_by_resource_group( :type resource_group_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ServicesDescriptionListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~healthcare_apis_management_client.models.ServicesDescriptionListResult] + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.healthcareapis.models.ServicesDescriptionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescriptionListResult"] @@ -620,7 +551,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" def prepare_request(next_link=None): @@ -674,19 +605,17 @@ async def get_next(next_link=None): async def check_name_availability( self, - name: str, - type: str, + check_name_availability_inputs: "models.CheckNameAvailabilityParameters", **kwargs ) -> "models.ServicesNameAvailabilityInfo": """Check if a service instance name is available. - :param name: The name of the service instance to check. - :type name: str - :param type: The fully qualified resource type which includes provider namespace. - :type type: str + :param check_name_availability_inputs: Set the name parameter in the + CheckNameAvailabilityParameters structure to the name of the service instance to check. + :type check_name_availability_inputs: ~azure.mgmt.healthcareapis.models.CheckNameAvailabilityParameters :keyword callable cls: A custom type or function that will be passed the direct response :return: ServicesNameAvailabilityInfo, or the result of cls(response) - :rtype: ~healthcare_apis_management_client.models.ServicesNameAvailabilityInfo + :rtype: ~azure.mgmt.healthcareapis.models.ServicesNameAvailabilityInfo :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesNameAvailabilityInfo"] @@ -694,9 +623,7 @@ async def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - check_name_availability_inputs = models.CheckNameAvailabilityParameters(name=name, type=type) - api_version = "2020-03-30" + api_version = "2021-11-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_workspace_private_endpoint_connections_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_workspace_private_endpoint_connections_operations.py new file mode 100644 index 00000000000..76c99011105 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_workspace_private_endpoint_connections_operations.py @@ -0,0 +1,433 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkspacePrivateEndpointConnectionsOperations: + """WorkspacePrivateEndpointConnectionsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_workspace( + self, + resource_group_name: str, + workspace_name: str, + **kwargs + ) -> AsyncIterable["models.PrivateEndpointConnectionListResultDescription"]: + """Lists all private endpoint connections for a workspace. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either PrivateEndpointConnectionListResultDescription or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionListResultDescription] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionListResultDescription"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_workspace.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('PrivateEndpointConnectionListResultDescription', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_workspace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections'} # type: ignore + + async def get( + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + **kwargs + ) -> "models.PrivateEndpointConnectionDescription": + """Gets the specified private endpoint connection associated with the workspace. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param private_endpoint_connection_name: The name of the private endpoint connection associated + with the Azure resource. + :type private_endpoint_connection_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: PrivateEndpointConnectionDescription, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionDescription"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('PrivateEndpointConnectionDescription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + properties: "models.PrivateEndpointConnectionDescription", + **kwargs + ) -> "models.PrivateEndpointConnectionDescription": + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionDescription"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(properties, 'PrivateEndpointConnectionDescription') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('PrivateEndpointConnectionDescription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + properties: "models.PrivateEndpointConnectionDescription", + **kwargs + ) -> AsyncLROPoller["models.PrivateEndpointConnectionDescription"]: + """Update the state of the specified private endpoint connection associated with the workspace. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param private_endpoint_connection_name: The name of the private endpoint connection associated + with the Azure resource. + :type private_endpoint_connection_name: str + :param properties: The private endpoint connection properties. + :type properties: ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either PrivateEndpointConnectionDescription or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionDescription"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name, + properties=properties, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('PrivateEndpointConnectionDescription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + workspace_name: str, + private_endpoint_connection_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Deletes a private endpoint connection. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param private_endpoint_connection_name: The name of the private endpoint connection associated + with the Azure resource. + :type private_endpoint_connection_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + private_endpoint_connection_name=private_endpoint_connection_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_workspace_private_link_resources_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_workspace_private_link_resources_operations.py new file mode 100644 index 00000000000..7925f8c6eae --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_workspace_private_link_resources_operations.py @@ -0,0 +1,180 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkspacePrivateLinkResourcesOperations: + """WorkspacePrivateLinkResourcesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_workspace( + self, + resource_group_name: str, + workspace_name: str, + **kwargs + ) -> AsyncIterable["models.PrivateLinkResourceListResultDescription"]: + """Gets the private link resources that need to be created for a workspace. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either PrivateLinkResourceListResultDescription or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.healthcareapis.models.PrivateLinkResourceListResultDescription] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceListResultDescription"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_workspace.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('PrivateLinkResourceListResultDescription', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_workspace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources'} # type: ignore + + async def get( + self, + resource_group_name: str, + workspace_name: str, + group_name: str, + **kwargs + ) -> "models.PrivateLinkResourceDescription": + """Gets a private link resource that need to be created for a workspace. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param group_name: The name of the private link resource group. + :type group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: PrivateLinkResourceDescription, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.PrivateLinkResourceDescription + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceDescription"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'groupName': self._serialize.url("group_name", group_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('PrivateLinkResourceDescription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources/{groupName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_workspaces_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_workspaces_operations.py new file mode 100644 index 00000000000..a43da9f270d --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/aio/operations/_workspaces_operations.py @@ -0,0 +1,611 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class WorkspacesOperations: + """WorkspacesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_subscription( + self, + **kwargs + ) -> AsyncIterable["models.WorkspaceList"]: + """Lists all the available workspaces under the specified subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either WorkspaceList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.healthcareapis.models.WorkspaceList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.WorkspaceList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('WorkspaceList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/workspaces'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name: str, + **kwargs + ) -> AsyncIterable["models.WorkspaceList"]: + """Lists all the available workspaces under the specified resource group. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either WorkspaceList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.healthcareapis.models.WorkspaceList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.WorkspaceList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('WorkspaceList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces'} # type: ignore + + async def get( + self, + resource_group_name: str, + workspace_name: str, + **kwargs + ) -> "models.Workspace": + """Gets the properties of the specified workspace. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Workspace, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.Workspace + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.Workspace"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Workspace', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}'} # type: ignore + + async def _create_or_update_initial( + self, + resource_group_name: str, + workspace_name: str, + workspace: "models.Workspace", + **kwargs + ) -> "models.Workspace": + cls = kwargs.pop('cls', None) # type: ClsType["models.Workspace"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(workspace, 'Workspace') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Workspace', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Workspace', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('Workspace', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}'} # type: ignore + + async def begin_create_or_update( + self, + resource_group_name: str, + workspace_name: str, + workspace: "models.Workspace", + **kwargs + ) -> AsyncLROPoller["models.Workspace"]: + """Creates or updates a workspace resource with the specified parameters. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param workspace: The parameters for creating or updating a healthcare workspace. + :type workspace: ~azure.mgmt.healthcareapis.models.Workspace + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either Workspace or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.healthcareapis.models.Workspace] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.Workspace"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_or_update_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + workspace=workspace, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Workspace', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + workspace_name: str, + workspace_patch_resource: "models.ResourceTags", + **kwargs + ) -> "models.Workspace": + cls = kwargs.pop('cls', None) # type: ClsType["models.Workspace"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(workspace_patch_resource, 'ResourceTags') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Workspace', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('Workspace', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + workspace_name: str, + workspace_patch_resource: "models.ResourceTags", + **kwargs + ) -> AsyncLROPoller["models.Workspace"]: + """Patch workspace details. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param workspace_patch_resource: The parameters for updating a specified workspace. + :type workspace_patch_resource: ~azure.mgmt.healthcareapis.models.ResourceTags + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either Workspace or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.healthcareapis.models.Workspace] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.Workspace"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + workspace_patch_resource=workspace_patch_resource, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Workspace', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + workspace_name: str, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.Error, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + workspace_name: str, + **kwargs + ) -> AsyncLROPoller[None]: + """Deletes a specified workspace. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/__init__.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/__init__.py index e2945a35ecc..fdbaabf0276 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/__init__.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/__init__.py @@ -1,121 +1,259 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- try: - from ._models_py3 import AzureEntityResource from ._models_py3 import CheckNameAvailabilityParameters - from ._models_py3 import ErrorDetails, ErrorDetailsException + from ._models_py3 import DicomService + from ._models_py3 import DicomServiceAuthenticationConfiguration + from ._models_py3 import DicomServiceCollection + from ._models_py3 import DicomServicePatchResource + from ._models_py3 import Error + from ._models_py3 import ErrorDetails from ._models_py3 import ErrorDetailsInternal - from ._models_py3 import Operation + from ._models_py3 import FhirService + from ._models_py3 import FhirServiceAccessPolicyEntry + from ._models_py3 import FhirServiceAcrConfiguration + from ._models_py3 import FhirServiceAuthenticationConfiguration + from ._models_py3 import FhirServiceCollection + from ._models_py3 import FhirServiceCorsConfiguration + from ._models_py3 import FhirServiceExportConfiguration + from ._models_py3 import FhirServicePatchResource + from ._models_py3 import IotConnector + from ._models_py3 import IotConnectorCollection + from ._models_py3 import IotConnectorPatchResource + from ._models_py3 import IotDestinationProperties + from ._models_py3 import IotEventHubIngestionEndpointConfiguration + from ._models_py3 import IotFhirDestination + from ._models_py3 import IotFhirDestinationCollection + from ._models_py3 import IotFhirDestinationProperties + from ._models_py3 import IotMappingProperties + from ._models_py3 import ListOperations + from ._models_py3 import LocationBasedResource + from ._models_py3 import LogSpecification + from ._models_py3 import MetricDimension + from ._models_py3 import MetricSpecification + from ._models_py3 import OperationDetail from ._models_py3 import OperationDisplay + from ._models_py3 import OperationProperties from ._models_py3 import OperationResultsDescription from ._models_py3 import PrivateEndpoint from ._models_py3 import PrivateEndpointConnection + from ._models_py3 import PrivateEndpointConnectionDescription + from ._models_py3 import PrivateEndpointConnectionListResult + from ._models_py3 import PrivateEndpointConnectionListResultDescription 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 ResourceCore + from ._models_py3 import ResourceTags + from ._models_py3 import ResourceVersionPolicyConfiguration 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 from ._models_py3 import ServiceExportConfigurationInfo - from ._models_py3 import ServiceAcrConfigurationInfo + from ._models_py3 import ServiceManagedIdentity + from ._models_py3 import ServiceManagedIdentityautogenerated + from ._models_py3 import ServiceOciArtifactEntry + from ._models_py3 import ServiceSpecification from ._models_py3 import ServicesDescription + from ._models_py3 import ServicesDescriptionListResult from ._models_py3 import ServicesNameAvailabilityInfo from ._models_py3 import ServicesPatchDescription from ._models_py3 import ServicesProperties from ._models_py3 import ServicesResource from ._models_py3 import ServicesResourceIdentity - from ._models_py3 import TrackedResource + from ._models_py3 import SystemData + from ._models_py3 import TaggedResource + from ._models_py3 import UserAssignedIdentity + from ._models_py3 import Workspace + from ._models_py3 import WorkspaceList + from ._models_py3 import WorkspacePatchResource + from ._models_py3 import WorkspaceProperties except (SyntaxError, ImportError): - from ._models import AzureEntityResource - from ._models import CheckNameAvailabilityParameters - from ._models import ErrorDetails, ErrorDetailsException - from ._models import ErrorDetailsInternal - from ._models import Operation - from ._models import OperationDisplay - from ._models import OperationResultsDescription - from ._models import PrivateEndpoint - from ._models import PrivateEndpointConnection - from ._models import PrivateLinkResource - from ._models import PrivateLinkResourceListResult - from ._models import PrivateLinkServiceConnectionState - from ._models import ProxyResource - from ._models import Resource - from ._models import ServiceAccessPolicyEntry - from ._models import ServiceAuthenticationConfigurationInfo - from ._models import ServiceCorsConfigurationInfo - from ._models import ServiceCosmosDbConfigurationInfo - from ._models import ServiceExportConfigurationInfo - from ._models import ServiceAcrConfigurationInfo - from ._models import ServicesDescription - from ._models import ServicesNameAvailabilityInfo - from ._models import ServicesPatchDescription - from ._models import ServicesProperties - from ._models import ServicesResource - from ._models import ServicesResourceIdentity - from ._models import TrackedResource -from ._paged_models import OperationPaged -from ._paged_models import PrivateEndpointConnectionPaged -from ._paged_models import ServicesDescriptionPaged + from ._models import CheckNameAvailabilityParameters # type: ignore + from ._models import DicomService # type: ignore + from ._models import DicomServiceAuthenticationConfiguration # type: ignore + from ._models import DicomServiceCollection # type: ignore + from ._models import DicomServicePatchResource # type: ignore + from ._models import Error # type: ignore + from ._models import ErrorDetails # type: ignore + from ._models import ErrorDetailsInternal # type: ignore + from ._models import FhirService # type: ignore + from ._models import FhirServiceAccessPolicyEntry # type: ignore + from ._models import FhirServiceAcrConfiguration # type: ignore + from ._models import FhirServiceAuthenticationConfiguration # type: ignore + from ._models import FhirServiceCollection # type: ignore + from ._models import FhirServiceCorsConfiguration # type: ignore + from ._models import FhirServiceExportConfiguration # type: ignore + from ._models import FhirServicePatchResource # type: ignore + from ._models import IotConnector # type: ignore + from ._models import IotConnectorCollection # type: ignore + from ._models import IotConnectorPatchResource # type: ignore + from ._models import IotDestinationProperties # type: ignore + from ._models import IotEventHubIngestionEndpointConfiguration # type: ignore + from ._models import IotFhirDestination # type: ignore + from ._models import IotFhirDestinationCollection # type: ignore + from ._models import IotFhirDestinationProperties # type: ignore + from ._models import IotMappingProperties # type: ignore + from ._models import ListOperations # type: ignore + from ._models import LocationBasedResource # type: ignore + from ._models import LogSpecification # type: ignore + from ._models import MetricDimension # type: ignore + from ._models import MetricSpecification # type: ignore + from ._models import OperationDetail # type: ignore + from ._models import OperationDisplay # type: ignore + from ._models import OperationProperties # type: ignore + from ._models import OperationResultsDescription # type: ignore + from ._models import PrivateEndpoint # type: ignore + from ._models import PrivateEndpointConnection # type: ignore + from ._models import PrivateEndpointConnectionDescription # type: ignore + from ._models import PrivateEndpointConnectionListResult # type: ignore + from ._models import PrivateEndpointConnectionListResultDescription # type: ignore + from ._models import PrivateLinkResource # type: ignore + from ._models import PrivateLinkResourceDescription # type: ignore + from ._models import PrivateLinkResourceListResultDescription # type: ignore + from ._models import PrivateLinkServiceConnectionState # type: ignore + from ._models import Resource # type: ignore + from ._models import ResourceCore # type: ignore + from ._models import ResourceTags # type: ignore + from ._models import ResourceVersionPolicyConfiguration # type: ignore + from ._models import ServiceAccessPolicyEntry # type: ignore + from ._models import ServiceAcrConfigurationInfo # type: ignore + from ._models import ServiceAuthenticationConfigurationInfo # type: ignore + from ._models import ServiceCorsConfigurationInfo # type: ignore + from ._models import ServiceCosmosDbConfigurationInfo # type: ignore + from ._models import ServiceExportConfigurationInfo # type: ignore + from ._models import ServiceManagedIdentity # type: ignore + from ._models import ServiceManagedIdentityautogenerated # type: ignore + from ._models import ServiceOciArtifactEntry # type: ignore + from ._models import ServiceSpecification # type: ignore + from ._models import ServicesDescription # type: ignore + from ._models import ServicesDescriptionListResult # type: ignore + from ._models import ServicesNameAvailabilityInfo # type: ignore + from ._models import ServicesPatchDescription # type: ignore + from ._models import ServicesProperties # type: ignore + from ._models import ServicesResource # type: ignore + from ._models import ServicesResourceIdentity # type: ignore + from ._models import SystemData # type: ignore + from ._models import TaggedResource # type: ignore + from ._models import UserAssignedIdentity # type: ignore + from ._models import Workspace # type: ignore + from ._models import WorkspaceList # type: ignore + from ._models import WorkspacePatchResource # type: ignore + from ._models import WorkspaceProperties # type: ignore + from ._healthcare_apis_management_client_enums import ( - ProvisioningState, - PrivateEndpointServiceConnectionStatus, - PrivateEndpointConnectionProvisioningState, - PublicNetworkAccess, + ActionType, + CreatedByType, + FhirResourceVersionPolicy, + FhirServiceKind, + IotIdentityResolutionType, Kind, ManagedServiceIdentityType, - ServiceNameUnavailabilityReason, OperationResultStatus, + PrivateEndpointConnectionProvisioningState, + PrivateEndpointServiceConnectionStatus, + ProvisioningState, + PublicNetworkAccess, + ServiceEventState, + ServiceManagedIdentityType, + ServiceNameUnavailabilityReason, ) __all__ = [ - 'AzureEntityResource', 'CheckNameAvailabilityParameters', - 'ErrorDetails', 'ErrorDetailsException', + 'DicomService', + 'DicomServiceAuthenticationConfiguration', + 'DicomServiceCollection', + 'DicomServicePatchResource', + 'Error', + 'ErrorDetails', 'ErrorDetailsInternal', - 'Operation', + 'FhirService', + 'FhirServiceAccessPolicyEntry', + 'FhirServiceAcrConfiguration', + 'FhirServiceAuthenticationConfiguration', + 'FhirServiceCollection', + 'FhirServiceCorsConfiguration', + 'FhirServiceExportConfiguration', + 'FhirServicePatchResource', + 'IotConnector', + 'IotConnectorCollection', + 'IotConnectorPatchResource', + 'IotDestinationProperties', + 'IotEventHubIngestionEndpointConfiguration', + 'IotFhirDestination', + 'IotFhirDestinationCollection', + 'IotFhirDestinationProperties', + 'IotMappingProperties', + 'ListOperations', + 'LocationBasedResource', + 'LogSpecification', + 'MetricDimension', + 'MetricSpecification', + 'OperationDetail', 'OperationDisplay', + 'OperationProperties', 'OperationResultsDescription', 'PrivateEndpoint', 'PrivateEndpointConnection', + 'PrivateEndpointConnectionDescription', + 'PrivateEndpointConnectionListResult', + 'PrivateEndpointConnectionListResultDescription', 'PrivateLinkResource', - 'PrivateLinkResourceListResult', + 'PrivateLinkResourceDescription', + 'PrivateLinkResourceListResultDescription', 'PrivateLinkServiceConnectionState', - 'ProxyResource', 'Resource', + 'ResourceCore', + 'ResourceTags', + 'ResourceVersionPolicyConfiguration', 'ServiceAccessPolicyEntry', + 'ServiceAcrConfigurationInfo', 'ServiceAuthenticationConfigurationInfo', 'ServiceCorsConfigurationInfo', 'ServiceCosmosDbConfigurationInfo', 'ServiceExportConfigurationInfo', - 'ServiceAcrConfigurationInfo', + 'ServiceManagedIdentity', + 'ServiceManagedIdentityautogenerated', + 'ServiceOciArtifactEntry', + 'ServiceSpecification', 'ServicesDescription', + 'ServicesDescriptionListResult', 'ServicesNameAvailabilityInfo', 'ServicesPatchDescription', 'ServicesProperties', 'ServicesResource', 'ServicesResourceIdentity', - 'TrackedResource', - 'ServicesDescriptionPaged', - 'OperationPaged', - 'PrivateEndpointConnectionPaged', - 'ProvisioningState', - 'PrivateEndpointServiceConnectionStatus', - 'PrivateEndpointConnectionProvisioningState', - 'PublicNetworkAccess', + 'SystemData', + 'TaggedResource', + 'UserAssignedIdentity', + 'Workspace', + 'WorkspaceList', + 'WorkspacePatchResource', + 'WorkspaceProperties', + 'ActionType', + 'CreatedByType', + 'FhirResourceVersionPolicy', + 'FhirServiceKind', + 'IotIdentityResolutionType', 'Kind', 'ManagedServiceIdentityType', - 'ServiceNameUnavailabilityReason', 'OperationResultStatus', + 'PrivateEndpointConnectionProvisioningState', + 'PrivateEndpointServiceConnectionStatus', + 'ProvisioningState', + 'PublicNetworkAccess', + 'ServiceEventState', + 'ServiceManagedIdentityType', + 'ServiceNameUnavailabilityReason', ] diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_healthcare_apis_management_client_enums.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_healthcare_apis_management_client_enums.py index 8732899f1fa..dda738e1036 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_healthcare_apis_management_client_enums.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_healthcare_apis_management_client_enums.py @@ -1,74 +1,156 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from enum import Enum +from enum import Enum, EnumMeta +from six import with_metaclass - -class ProvisioningState(str, Enum): - - deleting = "Deleting" - succeeded = "Succeeded" - creating = "Creating" - accepted = "Accepted" - verifying = "Verifying" - updating = "Updating" - failed = "Failed" - canceled = "Canceled" - deprovisioned = "Deprovisioned" - - -class PrivateEndpointServiceConnectionStatus(str, Enum): - - pending = "Pending" - approved = "Approved" - rejected = "Rejected" - - -class PrivateEndpointConnectionProvisioningState(str, Enum): - - succeeded = "Succeeded" - creating = "Creating" - deleting = "Deleting" - failed = "Failed" - - -class PublicNetworkAccess(str, Enum): - - enabled = "Enabled" - disabled = "Disabled" - - -class Kind(str, Enum): - - fhir = "fhir" - fhir_stu3 = "fhir-Stu3" - fhir_r4 = "fhir-R4" - - -class ManagedServiceIdentityType(str, Enum): - - system_assigned = "SystemAssigned" - none = "None" - - -class ServiceNameUnavailabilityReason(str, Enum): - - invalid = "Invalid" - already_exists = "AlreadyExists" - - -class OperationResultStatus(str, Enum): - - canceled = "Canceled" - succeeded = "Succeeded" - failed = "Failed" - requested = "Requested" - running = "Running" +class _CaseInsensitiveEnumMeta(EnumMeta): + def __getitem__(self, name): + return super().__getitem__(name.upper()) + + def __getattr__(cls, name): + """Return the enum member matching `name` + We use __getattr__ instead of descriptors or inserting into the enum + class' __dict__ in order to support `name` and `value` being both + properties for enum members (which live in the class' __dict__) and + enum members themselves. + """ + try: + return cls._member_map_[name.upper()] + except KeyError: + raise AttributeError(name) + + +class ActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + """ + + INTERNAL = "Internal" + +class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity that created the resource. + """ + + USER = "User" + APPLICATION = "Application" + MANAGED_IDENTITY = "ManagedIdentity" + KEY = "Key" + +class FhirResourceVersionPolicy(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Controls how resources are versioned on the FHIR service + """ + + NO_VERSION = "no-version" + VERSIONED = "versioned" + VERSIONED_UPDATE = "versioned-update" + +class FhirServiceKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The kind of the service. + """ + + FHIR_STU3 = "fhir-Stu3" + FHIR_R4 = "fhir-R4" + +class IotIdentityResolutionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of IoT identity resolution to use with the destination. + """ + + CREATE = "Create" + LOOKUP = "Lookup" + +class Kind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The kind of the service. + """ + + FHIR = "fhir" + FHIR_STU3 = "fhir-Stu3" + FHIR_R4 = "fhir-R4" + +class ManagedServiceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Type of identity being specified, currently SystemAssigned and None are allowed. + """ + + SYSTEM_ASSIGNED = "SystemAssigned" + NONE = "None" + +class OperationResultStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The status of the operation being performed. + """ + + CANCELED = "Canceled" + SUCCEEDED = "Succeeded" + FAILED = "Failed" + REQUESTED = "Requested" + RUNNING = "Running" + +class PrivateEndpointConnectionProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The current provisioning state. + """ + + SUCCEEDED = "Succeeded" + CREATING = "Creating" + DELETING = "Deleting" + FAILED = "Failed" + +class PrivateEndpointServiceConnectionStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The private endpoint connection status. + """ + + PENDING = "Pending" + APPROVED = "Approved" + REJECTED = "Rejected" + +class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The provisioning state. + """ + + DELETING = "Deleting" + SUCCEEDED = "Succeeded" + CREATING = "Creating" + ACCEPTED = "Accepted" + VERIFYING = "Verifying" + UPDATING = "Updating" + FAILED = "Failed" + CANCELED = "Canceled" + DEPROVISIONED = "Deprovisioned" + MOVING = "Moving" + SUSPENDED = "Suspended" + WARNED = "Warned" + SYSTEM_MAINTENANCE = "SystemMaintenance" + +class PublicNetworkAccess(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Control permission for data plane traffic coming from public networks while private endpoint is + enabled. + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class ServiceEventState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Indicates the current status of event support for the resource. + """ + + DISABLED = "Disabled" + ENABLED = "Enabled" + UPDATING = "Updating" + +class ServiceManagedIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Type of identity being specified, currently SystemAssigned and None are allowed. + """ + + NONE = "None" + SYSTEM_ASSIGNED = "SystemAssigned" + USER_ASSIGNED = "UserAssigned" + SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" + +class ServiceNameUnavailabilityReason(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The reason for unavailability. + """ + + INVALID = "Invalid" + ALREADY_EXISTS = "AlreadyExists" diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_models.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_models.py index 023a30fa59b..599339d6777 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_models.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_models.py @@ -1,82 +1,985 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError +from azure.core.exceptions import HttpResponseError +import msrest.serialization -class Resource(Model): - """Resource. +class CheckNameAvailabilityParameters(msrest.serialization.Model): + """Input values. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the service instance to check. + :type name: str + :param type: Required. The fully qualified resource type which includes provider namespace. + :type type: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(CheckNameAvailabilityParameters, self).__init__(**kwargs) + self.name = kwargs['name'] + self.type = kwargs['type'] + + +class ServiceManagedIdentity(msrest.serialization.Model): + """Managed service identity (system assigned and/or user assigned identities). + + :param identity: Setting indicating whether the service has a managed identity associated with + it. + :type identity: ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityautogenerated + """ + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ServiceManagedIdentityautogenerated'}, + } + + def __init__( + self, + **kwargs + ): + super(ServiceManagedIdentity, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + + +class ResourceCore(msrest.serialization.Model): + """The common properties for any resource, tracked or proxy. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ResourceCore, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.etag = kwargs.get('etag', None) + + +class LocationBasedResource(ResourceCore): + """The common properties for any location based resource, tracked or proxy. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + :param location: The resource location. + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(LocationBasedResource, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + + +class ResourceTags(msrest.serialization.Model): + """List of key value pairs that describe the resource. This will overwrite the existing tags. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + **kwargs + ): + super(ResourceTags, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + + +class TaggedResource(ResourceTags, LocationBasedResource): + """The common properties of tracked resources in the service. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + **kwargs + ): + super(TaggedResource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.etag = kwargs.get('etag', None) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + + +class DicomService(TaggedResource, ServiceManagedIdentity): + """The description of Dicom Service. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param identity: Setting indicating whether the service has a managed identity associated with + it. + :type identity: ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityautogenerated + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.healthcareapis.models.SystemData + :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", + "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", + "Deprovisioned", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState + :param authentication_configuration: Dicom Service authentication configuration. + :type authentication_configuration: + ~azure.mgmt.healthcareapis.models.DicomServiceAuthenticationConfiguration + :ivar service_url: The url of the Dicom Services. + :vartype service_url: str + :ivar private_endpoint_connections: The list of private endpoint connections that are set up + for this resource. + :vartype private_endpoint_connections: + list[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection] + :param public_network_access: Control permission for data plane traffic coming from public + networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.healthcareapis.models.PublicNetworkAccess + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, + 'type': {'readonly': True}, + 'system_data': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'service_url': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, + } + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ServiceManagedIdentityautogenerated'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'authentication_configuration': {'key': 'properties.authenticationConfiguration', 'type': 'DicomServiceAuthenticationConfiguration'}, + 'service_url': {'key': 'properties.serviceUrl', 'type': 'str'}, + 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(DicomService, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + self.system_data = None + self.provisioning_state = None + self.authentication_configuration = kwargs.get('authentication_configuration', None) + self.service_url = None + self.private_endpoint_connections = None + self.public_network_access = kwargs.get('public_network_access', None) + self.id = None + self.name = None + self.type = None + self.etag = kwargs.get('etag', None) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + self.system_data = None + self.provisioning_state = None + self.authentication_configuration = kwargs.get('authentication_configuration', None) + self.service_url = None + self.private_endpoint_connections = None + self.public_network_access = kwargs.get('public_network_access', None) + + +class DicomServiceAuthenticationConfiguration(msrest.serialization.Model): + """Authentication configuration information. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar authority: The authority url for the service. + :vartype authority: str + :ivar audiences: The audiences for the service. + :vartype audiences: list[str] + """ + + _validation = { + 'authority': {'readonly': True}, + 'audiences': {'readonly': True}, + } + + _attribute_map = { + 'authority': {'key': 'authority', 'type': 'str'}, + 'audiences': {'key': 'audiences', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(DicomServiceAuthenticationConfiguration, self).__init__(**kwargs) + self.authority = None + self.audiences = None + + +class DicomServiceCollection(msrest.serialization.Model): + """The collection of Dicom Services. + + :param next_link: The link used to get the next page of Dicom Services. + :type next_link: str + :param value: The list of Dicom Services. + :type value: list[~azure.mgmt.healthcareapis.models.DicomService] + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[DicomService]'}, + } + + def __init__( + self, + **kwargs + ): + super(DicomServiceCollection, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class DicomServicePatchResource(ResourceTags, ServiceManagedIdentity): + """Dicom Service patch properties. + + :param identity: Setting indicating whether the service has a managed identity associated with + it. + :type identity: ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityautogenerated + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ServiceManagedIdentityautogenerated'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + **kwargs + ): + super(DicomServicePatchResource, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + self.tags = kwargs.get('tags', None) + + +class Error(msrest.serialization.Model): + """Error details. + + :param error: Error details. + :type error: ~azure.mgmt.healthcareapis.models.ErrorDetailsInternal + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetailsInternal'}, + } + + def __init__( + self, + **kwargs + ): + super(Error, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + + +class ErrorDetails(msrest.serialization.Model): + """Error details. + + :param error: Error details. + :type error: ~azure.mgmt.healthcareapis.models.ErrorDetailsInternal + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetailsInternal'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorDetails, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + + +class ErrorDetailsInternal(msrest.serialization.Model): + """Error details. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar target: The target of the particular error. + :vartype target: str + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'target': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorDetailsInternal, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = None + + +class FhirService(TaggedResource, ServiceManagedIdentity): + """The description of Fhir Service. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param identity: Setting indicating whether the service has a managed identity associated with + it. + :type identity: ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityautogenerated + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param kind: The kind of the service. Possible values include: "fhir-Stu3", "fhir-R4". + :type kind: str or ~azure.mgmt.healthcareapis.models.FhirServiceKind + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.healthcareapis.models.SystemData + :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", + "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", + "Deprovisioned", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState + :param access_policies: Fhir Service access policies. + :type access_policies: list[~azure.mgmt.healthcareapis.models.FhirServiceAccessPolicyEntry] + :param acr_configuration: Fhir Service Azure container registry configuration. + :type acr_configuration: ~azure.mgmt.healthcareapis.models.FhirServiceAcrConfiguration + :param authentication_configuration: Fhir Service authentication configuration. + :type authentication_configuration: + ~azure.mgmt.healthcareapis.models.FhirServiceAuthenticationConfiguration + :param cors_configuration: Fhir Service Cors configuration. + :type cors_configuration: ~azure.mgmt.healthcareapis.models.FhirServiceCorsConfiguration + :param export_configuration: Fhir Service export configuration. + :type export_configuration: ~azure.mgmt.healthcareapis.models.FhirServiceExportConfiguration + :ivar private_endpoint_connections: The list of private endpoint connections that are set up + for this resource. + :vartype private_endpoint_connections: + list[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection] + :param public_network_access: Control permission for data plane traffic coming from public + networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.healthcareapis.models.PublicNetworkAccess + :ivar event_state: Fhir Service event support status. Possible values include: "Disabled", + "Enabled", "Updating". + :vartype event_state: str or ~azure.mgmt.healthcareapis.models.ServiceEventState + :param resource_version_policy_configuration: Determines tracking of history for resources. + :type resource_version_policy_configuration: + ~azure.mgmt.healthcareapis.models.ResourceVersionPolicyConfiguration + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, + 'type': {'readonly': True}, + 'system_data': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, + 'event_state': {'readonly': True}, + } + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ServiceManagedIdentityautogenerated'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'access_policies': {'key': 'properties.accessPolicies', 'type': '[FhirServiceAccessPolicyEntry]'}, + 'acr_configuration': {'key': 'properties.acrConfiguration', 'type': 'FhirServiceAcrConfiguration'}, + 'authentication_configuration': {'key': 'properties.authenticationConfiguration', 'type': 'FhirServiceAuthenticationConfiguration'}, + 'cors_configuration': {'key': 'properties.corsConfiguration', 'type': 'FhirServiceCorsConfiguration'}, + 'export_configuration': {'key': 'properties.exportConfiguration', 'type': 'FhirServiceExportConfiguration'}, + 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'event_state': {'key': 'properties.eventState', 'type': 'str'}, + 'resource_version_policy_configuration': {'key': 'properties.resourceVersionPolicyConfiguration', 'type': 'ResourceVersionPolicyConfiguration'}, + } + + def __init__( + self, + **kwargs + ): + super(FhirService, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + self.kind = kwargs.get('kind', None) + self.system_data = None + self.provisioning_state = None + self.access_policies = kwargs.get('access_policies', None) + self.acr_configuration = kwargs.get('acr_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) + self.private_endpoint_connections = None + self.public_network_access = kwargs.get('public_network_access', None) + self.event_state = None + self.resource_version_policy_configuration = kwargs.get('resource_version_policy_configuration', None) + self.id = None + self.name = None + self.type = None + self.etag = kwargs.get('etag', None) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + self.kind = kwargs.get('kind', None) + self.system_data = None + self.provisioning_state = None + self.access_policies = kwargs.get('access_policies', None) + self.acr_configuration = kwargs.get('acr_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) + self.private_endpoint_connections = None + self.public_network_access = kwargs.get('public_network_access', None) + self.event_state = None + self.resource_version_policy_configuration = kwargs.get('resource_version_policy_configuration', None) + + +class FhirServiceAccessPolicyEntry(msrest.serialization.Model): + """An access policy entry. + + All required parameters must be populated in order to send to Azure. + + :param object_id: Required. An Azure AD object ID (User or Apps) that is allowed access to the + FHIR service. + :type object_id: str + """ + + _validation = { + 'object_id': {'required': True, 'pattern': r'^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$'}, + } + + _attribute_map = { + 'object_id': {'key': 'objectId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(FhirServiceAccessPolicyEntry, self).__init__(**kwargs) + self.object_id = kwargs['object_id'] + + +class FhirServiceAcrConfiguration(msrest.serialization.Model): + """Azure container registry configuration information. + + :param login_servers: The list of the Azure container registry login servers. + :type login_servers: list[str] + :param oci_artifacts: The list of Open Container Initiative (OCI) artifacts. + :type oci_artifacts: list[~azure.mgmt.healthcareapis.models.ServiceOciArtifactEntry] + """ - Common fields that are returned in the response for all Azure Resource - Manager resources. + _attribute_map = { + 'login_servers': {'key': 'loginServers', 'type': '[str]'}, + 'oci_artifacts': {'key': 'ociArtifacts', 'type': '[ServiceOciArtifactEntry]'}, + } + + def __init__( + self, + **kwargs + ): + super(FhirServiceAcrConfiguration, self).__init__(**kwargs) + self.login_servers = kwargs.get('login_servers', None) + self.oci_artifacts = kwargs.get('oci_artifacts', None) - 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} +class FhirServiceAuthenticationConfiguration(msrest.serialization.Model): + """Authentication configuration information. + + :param authority: The authority url for the service. + :type authority: str + :param audience: The audience url for the service. + :type audience: str + :param smart_proxy_enabled: If the SMART on FHIR proxy is enabled. + :type smart_proxy_enabled: bool + """ + + _attribute_map = { + 'authority': {'key': 'authority', 'type': 'str'}, + 'audience': {'key': 'audience', 'type': 'str'}, + 'smart_proxy_enabled': {'key': 'smartProxyEnabled', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(FhirServiceAuthenticationConfiguration, self).__init__(**kwargs) + self.authority = kwargs.get('authority', None) + self.audience = kwargs.get('audience', None) + self.smart_proxy_enabled = kwargs.get('smart_proxy_enabled', None) + + +class FhirServiceCollection(msrest.serialization.Model): + """A collection of Fhir services. + + :param next_link: The link used to get the next page of Fhir Services. + :type next_link: str + :param value: The list of Fhir Services. + :type value: list[~azure.mgmt.healthcareapis.models.FhirService] + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[FhirService]'}, + } + + def __init__( + self, + **kwargs + ): + super(FhirServiceCollection, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class FhirServiceCorsConfiguration(msrest.serialization.Model): + """The settings for the CORS configuration of the service instance. + + :param origins: The origins to be allowed via CORS. + :type origins: list[str] + :param headers: The headers to be allowed via CORS. + :type headers: list[str] + :param methods: The methods to be allowed via CORS. + :type methods: list[str] + :param max_age: The max age to be allowed via CORS. + :type max_age: int + :param allow_credentials: If credentials are allowed via CORS. + :type allow_credentials: bool + """ + + _validation = { + 'max_age': {'maximum': 99999, 'minimum': 0}, + } + + _attribute_map = { + 'origins': {'key': 'origins', 'type': '[str]'}, + 'headers': {'key': 'headers', 'type': '[str]'}, + 'methods': {'key': 'methods', 'type': '[str]'}, + 'max_age': {'key': 'maxAge', 'type': 'int'}, + 'allow_credentials': {'key': 'allowCredentials', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(FhirServiceCorsConfiguration, self).__init__(**kwargs) + self.origins = kwargs.get('origins', None) + self.headers = kwargs.get('headers', None) + self.methods = kwargs.get('methods', None) + self.max_age = kwargs.get('max_age', None) + self.allow_credentials = kwargs.get('allow_credentials', None) + + +class FhirServiceExportConfiguration(msrest.serialization.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(FhirServiceExportConfiguration, self).__init__(**kwargs) + self.storage_account_name = kwargs.get('storage_account_name', None) + + +class FhirServicePatchResource(ResourceTags, ServiceManagedIdentity): + """FhirService patch properties. + + :param identity: Setting indicating whether the service has a managed identity associated with + it. + :type identity: ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityautogenerated + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ServiceManagedIdentityautogenerated'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + **kwargs + ): + super(FhirServicePatchResource, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + self.tags = kwargs.get('tags', None) + + +class IotConnector(TaggedResource, ServiceManagedIdentity): + """IoT Connector definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param identity: Setting indicating whether the service has a managed identity associated with + it. + :type identity: ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityautogenerated + :ivar id: The resource identifier. :vartype id: str - :ivar name: The name of the resource + :ivar name: The resource name. :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :ivar type: The resource type. :vartype type: str + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.healthcareapis.models.SystemData + :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", + "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", + "Deprovisioned", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState + :param ingestion_endpoint_configuration: Source configuration. + :type ingestion_endpoint_configuration: + ~azure.mgmt.healthcareapis.models.IotEventHubIngestionEndpointConfiguration + :param device_mapping: Device Mappings. + :type device_mapping: ~azure.mgmt.healthcareapis.models.IotMappingProperties """ _validation = { 'id': {'readonly': True}, - 'name': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, + 'provisioning_state': {'readonly': True}, } _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ServiceManagedIdentityautogenerated'}, 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'ingestion_endpoint_configuration': {'key': 'properties.ingestionEndpointConfiguration', 'type': 'IotEventHubIngestionEndpointConfiguration'}, + 'device_mapping': {'key': 'properties.deviceMapping', 'type': 'IotMappingProperties'}, } - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) + def __init__( + self, + **kwargs + ): + super(IotConnector, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + self.system_data = None + self.provisioning_state = None + self.ingestion_endpoint_configuration = kwargs.get('ingestion_endpoint_configuration', None) + self.device_mapping = kwargs.get('device_mapping', None) self.id = None self.name = None self.type = None + self.etag = kwargs.get('etag', None) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + self.system_data = None + self.provisioning_state = None + self.ingestion_endpoint_configuration = kwargs.get('ingestion_endpoint_configuration', None) + self.device_mapping = kwargs.get('device_mapping', None) -class AzureEntityResource(Resource): - """Entity Resource. +class IotConnectorCollection(msrest.serialization.Model): + """A collection of IoT Connectors. - The resource model definition for an Azure Resource Manager resource with - an etag. + :param next_link: The link used to get the next page of IoT Connectors. + :type next_link: str + :param value: The list of IoT Connectors. + :type value: list[~azure.mgmt.healthcareapis.models.IotConnector] + """ - Variables are only populated by the server, and will be ignored when - sending a request. + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[IotConnector]'}, + } - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + def __init__( + self, + **kwargs + ): + super(IotConnectorCollection, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class IotConnectorPatchResource(ResourceTags, ServiceManagedIdentity): + """Iot Connector patch properties. + + :param identity: Setting indicating whether the service has a managed identity associated with + it. + :type identity: ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityautogenerated + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ServiceManagedIdentityautogenerated'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + **kwargs + ): + super(IotConnectorPatchResource, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + self.tags = kwargs.get('tags', None) + + +class IotDestinationProperties(msrest.serialization.Model): + """Common IoT Connector destination properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", + "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", + "Deprovisioned", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IotDestinationProperties, self).__init__(**kwargs) + self.provisioning_state = None + + +class IotEventHubIngestionEndpointConfiguration(msrest.serialization.Model): + """Event Hub ingestion endpoint configuration. + + :param event_hub_name: Event Hub name to connect to. + :type event_hub_name: str + :param consumer_group: Consumer group of the event hub to connected to. + :type consumer_group: str + :param fully_qualified_event_hub_namespace: Fully qualified namespace of the Event Hub to + connect to. + :type fully_qualified_event_hub_namespace: str + """ + + _attribute_map = { + 'event_hub_name': {'key': 'eventHubName', 'type': 'str'}, + 'consumer_group': {'key': 'consumerGroup', 'type': 'str'}, + 'fully_qualified_event_hub_namespace': {'key': 'fullyQualifiedEventHubNamespace', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IotEventHubIngestionEndpointConfiguration, self).__init__(**kwargs) + self.event_hub_name = kwargs.get('event_hub_name', None) + self.consumer_group = kwargs.get('consumer_group', None) + self.fully_qualified_event_hub_namespace = kwargs.get('fully_qualified_event_hub_namespace', None) + + +class IotFhirDestination(LocationBasedResource): + """IoT Connector FHIR destination definition. + + 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: The resource identifier. :vartype id: str - :ivar name: The name of the resource + :ivar name: The resource name. :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :ivar type: The resource type. :vartype type: str - :ivar etag: Resource Etag. - :vartype etag: str + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + :param location: The resource location. + :type location: str + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.healthcareapis.models.SystemData + :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", + "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", + "Deprovisioned", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState + :param resource_identity_resolution_type: Required. Determines how resource identity is + resolved on the destination. Possible values include: "Create", "Lookup". + :type resource_identity_resolution_type: str or + ~azure.mgmt.healthcareapis.models.IotIdentityResolutionType + :param fhir_service_resource_id: Required. Fully qualified resource id of the FHIR service to + connect to. + :type fhir_service_resource_id: str + :param fhir_mapping: Required. FHIR Mappings. + :type fhir_mapping: ~azure.mgmt.healthcareapis.models.IotMappingProperties """ _validation = { 'id': {'readonly': True}, - 'name': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, 'type': {'readonly': True}, - 'etag': {'readonly': True}, + 'system_data': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'resource_identity_resolution_type': {'required': True}, + 'fhir_service_resource_id': {'required': True}, + 'fhir_mapping': {'required': True}, } _attribute_map = { @@ -84,156 +987,323 @@ class AzureEntityResource(Resource): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_identity_resolution_type': {'key': 'properties.resourceIdentityResolutionType', 'type': 'str'}, + 'fhir_service_resource_id': {'key': 'properties.fhirServiceResourceId', 'type': 'str'}, + 'fhir_mapping': {'key': 'properties.fhirMapping', 'type': 'IotMappingProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(IotFhirDestination, self).__init__(**kwargs) + self.system_data = None + self.provisioning_state = None + self.resource_identity_resolution_type = kwargs['resource_identity_resolution_type'] + self.fhir_service_resource_id = kwargs['fhir_service_resource_id'] + self.fhir_mapping = kwargs['fhir_mapping'] + + +class IotFhirDestinationCollection(msrest.serialization.Model): + """A collection of IoT Connector FHIR destinations. + + :param next_link: The link used to get the next page of IoT FHIR destinations. + :type next_link: str + :param value: The list of IoT Connector FHIR destinations. + :type value: list[~azure.mgmt.healthcareapis.models.IotFhirDestination] + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[IotFhirDestination]'}, + } + + def __init__( + self, + **kwargs + ): + super(IotFhirDestinationCollection, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class IotFhirDestinationProperties(IotDestinationProperties): + """IoT Connector destination properties for an Azure FHIR service. + + 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", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState + :param resource_identity_resolution_type: Required. Determines how resource identity is + resolved on the destination. Possible values include: "Create", "Lookup". + :type resource_identity_resolution_type: str or + ~azure.mgmt.healthcareapis.models.IotIdentityResolutionType + :param fhir_service_resource_id: Required. Fully qualified resource id of the FHIR service to + connect to. + :type fhir_service_resource_id: str + :param fhir_mapping: Required. FHIR Mappings. + :type fhir_mapping: ~azure.mgmt.healthcareapis.models.IotMappingProperties + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'resource_identity_resolution_type': {'required': True}, + 'fhir_service_resource_id': {'required': True}, + 'fhir_mapping': {'required': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'resource_identity_resolution_type': {'key': 'resourceIdentityResolutionType', 'type': 'str'}, + 'fhir_service_resource_id': {'key': 'fhirServiceResourceId', 'type': 'str'}, + 'fhir_mapping': {'key': 'fhirMapping', 'type': 'IotMappingProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(IotFhirDestinationProperties, self).__init__(**kwargs) + self.resource_identity_resolution_type = kwargs['resource_identity_resolution_type'] + self.fhir_service_resource_id = kwargs['fhir_service_resource_id'] + self.fhir_mapping = kwargs['fhir_mapping'] + + +class IotMappingProperties(msrest.serialization.Model): + """The mapping content. + + :param content: The mapping. + :type content: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'object'}, } - def __init__(self, **kwargs): - super(AzureEntityResource, self).__init__(**kwargs) - self.etag = None + def __init__( + self, + **kwargs + ): + super(IotMappingProperties, self).__init__(**kwargs) + self.content = kwargs.get('content', None) -class CheckNameAvailabilityParameters(Model): - """Input values. +class ListOperations(msrest.serialization.Model): + """Available operations of the service. - All required parameters must be populated in order to send to Azure. + Variables are only populated by the server, and will be ignored when sending a request. - :param name: Required. The name of the service instance to check. - :type name: str - :param type: Required. The fully qualified resource type which includes - provider namespace. - :type type: str + :ivar value: Collection of available operation details. + :vartype value: list[~azure.mgmt.healthcareapis.models.OperationDetail] + :param next_link: URL client should use to fetch the next page (per server side paging). + It's null for now, added for future use. + :type next_link: str """ _validation = { - 'name': {'required': True}, - 'type': {'required': True}, + 'value': {'readonly': True}, } _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[OperationDetail]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, } - def __init__(self, **kwargs): - super(CheckNameAvailabilityParameters, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.type = kwargs.get('type', None) - - -class CloudError(Model): - """CloudError. - """ - - _attribute_map = { - } + def __init__( + self, + **kwargs + ): + super(ListOperations, self).__init__(**kwargs) + self.value = None + self.next_link = kwargs.get('next_link', None) -class ErrorDetails(Model): - """Error details. +class LogSpecification(msrest.serialization.Model): + """Specifications of the Log for Azure Monitoring. - :param error: Object containing error details. - :type error: ~azure.mgmt.healthcareapis.models.ErrorDetailsInternal + :param name: Name of the log. + :type name: str + :param display_name: Localized friendly display name of the log. + :type display_name: str + :param blob_duration: Blob duration of the log. + :type blob_duration: str """ _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorDetailsInternal'}, + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, } - def __init__(self, **kwargs): - super(ErrorDetails, self).__init__(**kwargs) - self.error = kwargs.get('error', None) + def __init__( + self, + **kwargs + ): + super(LogSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.blob_duration = kwargs.get('blob_duration', None) -class ErrorDetailsException(HttpOperationError): - """Server responsed with exception of type: 'ErrorDetails'. +class MetricDimension(msrest.serialization.Model): + """Specifications of the Dimension of metrics. - :param deserialize: A deserializer - :param response: Server response to be deserialized. + :param name: Name of the dimension. + :type name: str + :param display_name: Localized friendly display name of the dimension. + :type display_name: str + :param to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox + export scenario. + :type to_be_exported_for_shoebox: bool """ - def __init__(self, deserialize, response, *args): - - super(ErrorDetailsException, self).__init__(deserialize, response, 'ErrorDetails', *args) + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'to_be_exported_for_shoebox': {'key': 'toBeExportedForShoebox', 'type': 'bool'}, + } + def __init__( + self, + **kwargs + ): + super(MetricDimension, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.to_be_exported_for_shoebox = kwargs.get('to_be_exported_for_shoebox', None) -class ErrorDetailsInternal(Model): - """Error details. - Variables are only populated by the server, and will be ignored when - sending a request. +class MetricSpecification(msrest.serialization.Model): + """Specifications of the Metrics for Azure Monitoring. - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The target of the particular error. - :vartype target: str + :param name: Name of the metric. + :type name: str + :param display_name: Localized friendly display name of the metric. + :type display_name: str + :param display_description: Localized friendly description of the metric. + :type display_description: str + :param unit: Unit that makes sense for the metric. + :type unit: str + :param category: Name of the metric category that the metric belongs to. A metric can only + belong to a single category. + :type category: str + :param aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, + Maximum, Total, Count. + :type aggregation_type: str + :param supported_aggregation_types: Supported aggregation types. + :type supported_aggregation_types: list[str] + :param supported_time_grain_types: Supported time grain types. + :type supported_time_grain_types: list[str] + :param fill_gap_with_zero: Optional. If set to true, then zero will be returned for time + duration where no metric is emitted/published. + :type fill_gap_with_zero: bool + :param dimensions: Dimensions of the metric. + :type dimensions: list[~azure.mgmt.healthcareapis.models.MetricDimension] + :param source_mdm_namespace: Name of the MDM namespace. Optional. + :type source_mdm_namespace: str """ - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - } - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'supported_aggregation_types': {'key': 'supportedAggregationTypes', 'type': '[str]'}, + 'supported_time_grain_types': {'key': 'supportedTimeGrainTypes', 'type': '[str]'}, + 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, + 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, + 'source_mdm_namespace': {'key': 'sourceMdmNamespace', 'type': 'str'}, } - def __init__(self, **kwargs): - super(ErrorDetailsInternal, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - - -class Operation(Model): + def __init__( + self, + **kwargs + ): + super(MetricSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.display_description = kwargs.get('display_description', None) + self.unit = kwargs.get('unit', None) + self.category = kwargs.get('category', None) + self.aggregation_type = kwargs.get('aggregation_type', None) + self.supported_aggregation_types = kwargs.get('supported_aggregation_types', None) + self.supported_time_grain_types = kwargs.get('supported_time_grain_types', None) + self.fill_gap_with_zero = kwargs.get('fill_gap_with_zero', None) + self.dimensions = kwargs.get('dimensions', None) + self.source_mdm_namespace = kwargs.get('source_mdm_namespace', None) + + +class OperationDetail(msrest.serialization.Model): """Service REST API operation. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: Operation name: {provider}/{resource}/{read | write | action | - delete} + :ivar name: Name of the operation. :vartype name: str + :ivar is_data_action: Whether the operation applies to data-plane. This is "true" for data- + plane operations and "false" for ARM/control-plane operations. + :vartype is_data_action: bool + :param display: Display of the operation. + :type display: ~azure.mgmt.healthcareapis.models.OperationDisplay :ivar origin: Default value is 'user,system'. :vartype origin: str - :param display: The information displayed about the operation. - :type display: ~azure.mgmt.healthcareapis.models.OperationDisplay + :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for + internal only APIs. Possible values include: "Internal". + :vartype action_type: str or ~azure.mgmt.healthcareapis.models.ActionType + :param properties: Properties of the operation. + :type properties: ~azure.mgmt.healthcareapis.models.OperationProperties """ _validation = { 'name': {'readonly': True}, + 'is_data_action': {'readonly': True}, 'origin': {'readonly': True}, + 'action_type': {'readonly': True}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'OperationProperties'}, } - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) + def __init__( + self, + **kwargs + ): + super(OperationDetail, self).__init__(**kwargs) self.name = None - self.origin = None + self.is_data_action = None self.display = kwargs.get('display', None) + self.origin = None + self.action_type = None + self.properties = kwargs.get('properties', None) -class OperationDisplay(Model): +class OperationDisplay(msrest.serialization.Model): """The object that represents the operation. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar provider: Service provider: Microsoft.HealthcareApis + :ivar provider: Service provider: Microsoft.HealthcareApis. :vartype provider: str - :ivar resource: Resource Type: Services + :ivar resource: Resource Type: Services. :vartype resource: str - :ivar operation: Name of the operation + :ivar operation: Name of the operation. :vartype operation: str - :ivar description: Friendly description for the operation, + :ivar description: Friendly description for the operation,. :vartype description: str """ @@ -251,7 +1321,10 @@ class OperationDisplay(Model): 'description': {'key': 'description', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(OperationDisplay, self).__init__(**kwargs) self.provider = None self.resource = None @@ -259,23 +1332,41 @@ def __init__(self, **kwargs): self.description = None -class OperationResultsDescription(Model): - """The properties indicating the operation result of an operation on a - service. +class OperationProperties(msrest.serialization.Model): + """Extra Operation properties. + + :param service_specification: Service specifications of the operation. + :type service_specification: ~azure.mgmt.healthcareapis.models.ServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationProperties, self).__init__(**kwargs) + self.service_specification = kwargs.get('service_specification', None) + + +class OperationResultsDescription(msrest.serialization.Model): + """The properties indicating the operation result of an operation on a service. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar id: The ID of the operation returned. :vartype id: str :ivar name: The name of the operation result. :vartype name: str - :ivar status: The status of the operation being performed. Possible values - include: 'Canceled', 'Succeeded', 'Failed', 'Requested', 'Running' - :vartype status: str or - ~azure.mgmt.healthcareapis.models.OperationResultStatus + :ivar status: The status of the operation being performed. Possible values include: "Canceled", + "Succeeded", "Failed", "Requested", "Running". + :vartype status: str or ~azure.mgmt.healthcareapis.models.OperationResultStatus :ivar start_time: The time that the operation was started. :vartype start_time: str + :ivar end_time: The time that the operation finished. + :vartype end_time: str :param properties: Additional properties of the operation result. :type properties: object """ @@ -285,6 +1376,7 @@ class OperationResultsDescription(Model): 'name': {'readonly': True}, 'status': {'readonly': True}, 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, } _attribute_map = { @@ -292,25 +1384,29 @@ class OperationResultsDescription(Model): 'name': {'key': 'name', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, 'start_time': {'key': 'startTime', 'type': 'str'}, + 'end_time': {'key': 'endTime', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'object'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(OperationResultsDescription, self).__init__(**kwargs) self.id = None self.name = None self.status = None self.start_time = None + self.end_time = None self.properties = kwargs.get('properties', None) -class PrivateEndpoint(Model): +class PrivateEndpoint(msrest.serialization.Model): """The Private Endpoint resource. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: The ARM identifier for Private Endpoint + :ivar id: The ARM identifier for Private Endpoint. :vartype id: str """ @@ -322,38 +1418,73 @@ class PrivateEndpoint(Model): 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(PrivateEndpoint, self).__init__(**kwargs) self.id = None +class Resource(msrest.serialization.Model): + """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 - + /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 + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + class PrivateEndpointConnection(Resource): """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. + 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} + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str - :ivar name: The name of the resource + :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" + :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. + :param private_link_service_connection_state: 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 + :ivar provisioning_state: The provisioning state of the private endpoint connection resource. + Possible values include: "Succeeded", "Creating", "Deleting", "Failed". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionProvisioningState """ @@ -361,7 +1492,7 @@ class PrivateEndpointConnection(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'private_link_service_connection_state': {'required': True}, + 'provisioning_state': {'readonly': True}, } _attribute_map = { @@ -373,33 +1504,125 @@ class PrivateEndpointConnection(Resource): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(PrivateEndpointConnection, self).__init__(**kwargs) self.private_endpoint = kwargs.get('private_endpoint', None) self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None) - self.provisioning_state = kwargs.get('provisioning_state', None) + self.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. + + :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: 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 + :ivar provisioning_state: The provisioning state of the private endpoint connection resource. + Possible values include: "Succeeded", "Creating", "Deleting", "Failed". + :vartype provisioning_state: str or + ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionProvisioningState + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.healthcareapis.models.SystemData + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'system_data': {'readonly': 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 = None + + +class PrivateEndpointConnectionListResult(msrest.serialization.Model): + """List of private endpoint connection associated with the specified storage account. + + :param value: Array of private endpoint connections. + :type value: list[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateEndpointConnection]'}, + } + + def __init__( + self, + **kwargs + ): + super(PrivateEndpointConnectionListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class PrivateEndpointConnectionListResultDescription(msrest.serialization.Model): + """List of private endpoint connection associated with the specified storage account. + + :param value: Array of private endpoint connections. + :type value: list[~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateEndpointConnectionDescription]'}, + } + + def __init__( + self, + **kwargs + ): + super(PrivateEndpointConnectionListResultDescription, self).__init__(**kwargs) + self.value = kwargs.get('value', None) class PrivateLinkResource(Resource): """A private link resource. - Variables are only populated by the server, and will be ignored when - sending a request. + 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} + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str - :ivar name: The name of the resource + :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" + :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. + :param required_zone_names: The private link resource Private link DNS zone name. :type required_zone_names: list[str] """ @@ -420,42 +1643,95 @@ class PrivateLinkResource(Resource): 'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(PrivateLinkResource, self).__init__(**kwargs) self.group_id = None self.required_members = None 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] + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype 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}, + 'system_data': {'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 = None + + +class PrivateLinkResourceListResultDescription(msrest.serialization.Model): """A list of private link resources. - :param value: Array of private link resources - :type value: list[~azure.mgmt.healthcareapis.models.PrivateLinkResource] + :param value: Array of private link resources. + :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) + def __init__( + self, + **kwargs + ): + super(PrivateLinkResourceListResultDescription, self).__init__(**kwargs) self.value = kwargs.get('value', None) -class PrivateLinkServiceConnectionState(Model): - """A collection of information about the state of the connection between - service consumer and provider. +class PrivateLinkServiceConnectionState(msrest.serialization.Model): + """A collection of information about the state of the connection between service consumer and provider. - :param status: Indicates whether the connection has been - Approved/Rejected/Removed by the owner of the service. Possible values - include: 'Pending', 'Approved', 'Rejected' - :type status: str or - ~azure.mgmt.healthcareapis.models.PrivateEndpointServiceConnectionStatus + :param status: Indicates whether the connection has been Approved/Rejected/Removed by the owner + of the service. Possible values include: "Pending", "Approved", "Rejected". + :type status: str or ~azure.mgmt.healthcareapis.models.PrivateEndpointServiceConnectionStatus :param description: The reason for approval/rejection of the connection. :type description: str - :param actions_required: A message indicating if changes on the service - provider require any updates on the consumer. + :param actions_required: A message indicating if changes on the service provider require any + updates on the consumer. :type actions_required: str """ @@ -465,62 +1741,48 @@ class PrivateLinkServiceConnectionState(Model): 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) self.status = kwargs.get('status', None) self.description = kwargs.get('description', None) self.actions_required = kwargs.get('actions_required', None) -class ProxyResource(Resource): - """Proxy Resource. - - The resource model definition for a Azure Resource Manager proxy resource. - It will not have tags and a location. +class ResourceVersionPolicyConfiguration(msrest.serialization.Model): + """The settings for history tracking for FHIR 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 - - /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 default: The default value for tracking history across all resources. Possible values + include: "no-version", "versioned", "versioned-update". + :type default: str or ~azure.mgmt.healthcareapis.models.FhirResourceVersionPolicy + :param resource_type_overrides: A list of FHIR Resources and their version policy overrides. + :type resource_type_overrides: dict[str, str or + ~azure.mgmt.healthcareapis.models.FhirResourceVersionPolicy] """ - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, + 'default': {'key': 'default', 'type': 'str'}, + 'resource_type_overrides': {'key': 'resourceTypeOverrides', 'type': '{str}'}, } - def __init__(self, **kwargs): - super(ProxyResource, self).__init__(**kwargs) - - _attribute_map = { - 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, - } + def __init__( + self, + **kwargs + ): + super(ResourceVersionPolicyConfiguration, self).__init__(**kwargs) + self.default = kwargs.get('default', None) + self.resource_type_overrides = kwargs.get('resource_type_overrides', None) - def __init__(self, **kwargs): - super(PrivateLinkResourceListResult, self).__init__(**kwargs) - self.value = kwargs.get('value', None) -class ServiceAccessPolicyEntry(Model): +class ServiceAccessPolicyEntry(msrest.serialization.Model): """An access policy entry. All required parameters must be populated in order to send to Azure. - :param object_id: Required. An Azure AD object ID (User or Apps) 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 """ @@ -532,19 +1794,45 @@ class ServiceAccessPolicyEntry(Model): 'object_id': {'key': 'objectId', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ServiceAccessPolicyEntry, self).__init__(**kwargs) - self.object_id = kwargs.get('object_id', None) + self.object_id = kwargs['object_id'] + + +class ServiceAcrConfigurationInfo(msrest.serialization.Model): + """Azure container registry configuration information. + + :param login_servers: The list of the ACR login servers. + :type login_servers: list[str] + :param oci_artifacts: The list of Open Container Initiative (OCI) artifacts. + :type oci_artifacts: list[~azure.mgmt.healthcareapis.models.ServiceOciArtifactEntry] + """ + + _attribute_map = { + 'login_servers': {'key': 'loginServers', 'type': '[str]'}, + 'oci_artifacts': {'key': 'ociArtifacts', 'type': '[ServiceOciArtifactEntry]'}, + } + + def __init__( + self, + **kwargs + ): + super(ServiceAcrConfigurationInfo, self).__init__(**kwargs) + self.login_servers = kwargs.get('login_servers', None) + self.oci_artifacts = kwargs.get('oci_artifacts', None) -class ServiceAuthenticationConfigurationInfo(Model): +class ServiceAuthenticationConfigurationInfo(msrest.serialization.Model): """Authentication configuration information. - :param authority: The authority url for the service + :param authority: The authority url for the service. :type authority: str - :param audience: The audience url for the service + :param audience: The audience url for the service. :type audience: str - :param smart_proxy_enabled: If the SMART on FHIR proxy is enabled + :param smart_proxy_enabled: If the SMART on FHIR proxy is enabled. :type smart_proxy_enabled: bool """ @@ -554,14 +1842,17 @@ class ServiceAuthenticationConfigurationInfo(Model): 'smart_proxy_enabled': {'key': 'smartProxyEnabled', 'type': 'bool'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ServiceAuthenticationConfigurationInfo, self).__init__(**kwargs) self.authority = kwargs.get('authority', None) self.audience = kwargs.get('audience', None) self.smart_proxy_enabled = kwargs.get('smart_proxy_enabled', None) -class ServiceCorsConfigurationInfo(Model): +class ServiceCorsConfigurationInfo(msrest.serialization.Model): """The settings for the CORS configuration of the service instance. :param origins: The origins to be allowed via CORS. @@ -588,7 +1879,10 @@ class ServiceCorsConfigurationInfo(Model): 'allow_credentials': {'key': 'allowCredentials', 'type': 'bool'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ServiceCorsConfigurationInfo, self).__init__(**kwargs) self.origins = kwargs.get('origins', None) self.headers = kwargs.get('headers', None) @@ -597,14 +1891,12 @@ def __init__(self, **kwargs): self.allow_credentials = kwargs.get('allow_credentials', None) -class ServiceCosmosDbConfigurationInfo(Model): +class ServiceCosmosDbConfigurationInfo(msrest.serialization.Model): """The settings for the Cosmos DB database backing the service. - :param offer_throughput: The provisioned throughput for the backing - database. + :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. + :param key_vault_key_uri: The URI of the customer-managed key for the backing database. :type key_vault_key_uri: str """ @@ -617,17 +1909,19 @@ class ServiceCosmosDbConfigurationInfo(Model): 'key_vault_key_uri': {'key': 'keyVaultKeyUri', 'type': 'str'}, } - def __init__(self, **kwargs): + 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): +class ServiceExportConfigurationInfo(msrest.serialization.Model): """Export operation configuration information. - :param storage_account_name: The name of the default export storage - account. + :param storage_account_name: The name of the default export storage account. :type storage_account_name: str """ @@ -635,35 +1929,94 @@ class ServiceExportConfigurationInfo(Model): 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ServiceExportConfigurationInfo, self).__init__(**kwargs) self.storage_account_name = kwargs.get('storage_account_name', None) -class ServiceAcrConfigurationInfo(Model): - """Acr operation configuration information. +class ServiceManagedIdentityautogenerated(msrest.serialization.Model): + """Setting indicating whether the service has a managed identity associated with it. - :param login_servers: The list of the login servers. - :type login_servers: list[str] + 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. + + :param type: Required. Type of identity being specified, currently SystemAssigned and None are + allowed. Possible values include: "None", "SystemAssigned", "UserAssigned", + "SystemAssigned,UserAssigned". + :type type: str or ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityType + :ivar principal_id: The service principal ID of the system assigned identity. This property + will only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be + provided for a system assigned identity. + :vartype tenant_id: str + :param user_assigned_identities: The set of user assigned identities associated with the + resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + The dictionary values can be empty objects ({}) in requests. + :type user_assigned_identities: dict[str, + ~azure.mgmt.healthcareapis.models.UserAssignedIdentity] """ + _validation = { + 'type': {'required': True}, + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + _attribute_map = { - 'login_servers': {'key': 'loginServers', 'type': '[str]'}, + 'type': {'key': 'type', 'type': 'str'}, + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserAssignedIdentity}'}, } def __init__( self, **kwargs ): - super(ServiceAcrConfigurationInfo, self).__init__(**kwargs) - self.login_servers = kwargs.get('login_servers', None) + super(ServiceManagedIdentityautogenerated, self).__init__(**kwargs) + self.type = kwargs['type'] + self.principal_id = None + self.tenant_id = None + self.user_assigned_identities = kwargs.get('user_assigned_identities', None) + + +class ServiceOciArtifactEntry(msrest.serialization.Model): + """An Open Container Initiative (OCI) artifact. + + :param login_server: The Azure Container Registry login server. + :type login_server: str + :param image_name: The artifact name. + :type image_name: str + :param digest: The artifact digest. + :type digest: str + """ + + _attribute_map = { + 'login_server': {'key': 'loginServer', 'type': 'str'}, + 'image_name': {'key': 'imageName', 'type': 'str'}, + 'digest': {'key': 'digest', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ServiceOciArtifactEntry, self).__init__(**kwargs) + self.login_server = kwargs.get('login_server', None) + self.image_name = kwargs.get('image_name', None) + self.digest = kwargs.get('digest', None) -class ServicesResource(Model): +class ServicesResource(msrest.serialization.Model): """The common properties of a service. - Variables are only populated by the server, and will be ignored when - sending a request. + 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. @@ -673,18 +2026,18 @@ class ServicesResource(Model): :vartype name: str :ivar type: The resource type. :vartype type: str - :param kind: Required. The kind of the service. 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 - :param tags: The resource tags. + :param tags: A set of tags. The resource tags. :type tags: dict[str, str] - :param etag: An etag associated with the resource, used for optimistic - concurrency when editing it. + :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. + :param identity: Setting indicating whether the service has a managed identity associated with + it. :type identity: ~azure.mgmt.healthcareapis.models.ServicesResourceIdentity """ @@ -700,20 +2053,23 @@ class ServicesResource(Model): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'Kind'}, + 'kind': {'key': 'kind', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'etag': {'key': 'etag', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'ServicesResourceIdentity'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ServicesResource, self).__init__(**kwargs) self.id = None self.name = None self.type = None - self.kind = kwargs.get('kind', None) - self.location = kwargs.get('location', None) + self.kind = kwargs['kind'] + self.location = kwargs['location'] self.tags = kwargs.get('tags', None) self.etag = kwargs.get('etag', None) self.identity = kwargs.get('identity', None) @@ -722,8 +2078,7 @@ def __init__(self, **kwargs): class ServicesDescription(ServicesResource): """The description of the service. - Variables are only populated by the server, and will be ignored when - sending a request. + 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. @@ -733,21 +2088,23 @@ class ServicesDescription(ServicesResource): :vartype name: str :ivar type: The resource type. :vartype type: str - :param kind: Required. The kind of the service. 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 - :param tags: The resource tags. + :param tags: A set of tags. The resource tags. :type tags: dict[str, str] - :param etag: An etag associated with the resource, used for optimistic - concurrency when editing it. + :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. + :param identity: Setting indicating whether the service has a managed identity associated with + it. :type identity: ~azure.mgmt.healthcareapis.models.ServicesResourceIdentity :param properties: The common properties of a service. :type properties: ~azure.mgmt.healthcareapis.models.ServicesProperties + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.healthcareapis.models.SystemData """ _validation = { @@ -756,38 +2113,64 @@ class ServicesDescription(ServicesResource): 'type': {'readonly': True}, 'kind': {'required': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'Kind'}, + 'kind': {'key': 'kind', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, '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): + def __init__( + self, + **kwargs + ): super(ServicesDescription, self).__init__(**kwargs) self.properties = kwargs.get('properties', None) + self.system_data = None + + +class ServicesDescriptionListResult(msrest.serialization.Model): + """A list of service description objects with a next link. + :param next_link: The link used to get the next page of service description objects. + :type next_link: str + :param value: A list of service description objects. + :type value: list[~azure.mgmt.healthcareapis.models.ServicesDescription] + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ServicesDescription]'}, + } + + def __init__( + self, + **kwargs + ): + super(ServicesDescriptionListResult, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) -class ServicesNameAvailabilityInfo(Model): + +class ServicesNameAvailabilityInfo(msrest.serialization.Model): """The properties indicating whether a given service name is available. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar name_available: The value which indicates whether the provided name - is available. + :ivar name_available: The value which indicates whether the provided name is available. :vartype name_available: bool - :ivar reason: The reason for unavailability. Possible values include: - 'Invalid', 'AlreadyExists' - :vartype reason: str or - ~azure.mgmt.healthcareapis.models.ServiceNameUnavailabilityReason + :ivar reason: The reason for unavailability. Possible values include: "Invalid", + "AlreadyExists". + :vartype reason: str or ~azure.mgmt.healthcareapis.models.ServiceNameUnavailabilityReason :param message: The detailed reason message. :type message: str """ @@ -799,27 +2182,28 @@ class ServicesNameAvailabilityInfo(Model): _attribute_map = { 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'ServiceNameUnavailabilityReason'}, + 'reason': {'key': 'reason', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ServicesNameAvailabilityInfo, self).__init__(**kwargs) self.name_available = None self.reason = None self.message = kwargs.get('message', None) -class ServicesPatchDescription(Model): +class ServicesPatchDescription(msrest.serialization.Model): """The description of the service. - :param tags: Instance tags + :param tags: A set of tags. Instance tags. :type tags: dict[str, str] - :param public_network_access: Control permission for data plane traffic - coming from public networks while private endpoint is enabled. Possible - values include: 'Enabled', 'Disabled' - :type public_network_access: str or - ~azure.mgmt.healthcareapis.models.PublicNetworkAccess + :param public_network_access: Control permission for data plane traffic coming from public + networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.healthcareapis.models.PublicNetworkAccess """ _attribute_map = { @@ -827,55 +2211,69 @@ class ServicesPatchDescription(Model): 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ServicesPatchDescription, self).__init__(**kwargs) self.tags = kwargs.get('tags', None) self.public_network_access = kwargs.get('public_network_access', None) -class ServicesProperties(Model): +class ServiceSpecification(msrest.serialization.Model): + """Service specification payload. + + :param log_specifications: Specifications of the Log for Azure Monitoring. + :type log_specifications: list[~azure.mgmt.healthcareapis.models.LogSpecification] + :param metric_specifications: Specifications of the Metrics for Azure Monitoring. + :type metric_specifications: list[~azure.mgmt.healthcareapis.models.MetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__( + self, + **kwargs + ): + super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = kwargs.get('log_specifications', None) + self.metric_specifications = kwargs.get('metric_specifications', None) + + +class ServicesProperties(msrest.serialization.Model): """The properties of a service instance. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :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 + :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", + "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", + "Deprovisioned", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState :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 - backing the service. + :type access_policies: list[~azure.mgmt.healthcareapis.models.ServiceAccessPolicyEntry] + :param cosmos_db_configuration: The settings for the Cosmos DB database backing the service. :type cosmos_db_configuration: ~azure.mgmt.healthcareapis.models.ServiceCosmosDbConfigurationInfo - :param authentication_configuration: The authentication configuration for - the service instance. + :param authentication_configuration: The authentication configuration for the service instance. :type authentication_configuration: ~azure.mgmt.healthcareapis.models.ServiceAuthenticationConfigurationInfo - :param cors_configuration: The settings for the CORS configuration of the - 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 - :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 - :param private_endpoint_connections: The list of private endpoint - connections that are set up for this resource. + :param cors_configuration: The settings for the CORS configuration of the 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 + :param private_endpoint_connections: The list of private endpoint connections that are set up + for this resource. :type private_endpoint_connections: list[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection] - :param public_network_access: Control permission for data plane traffic - coming from public networks while private endpoint is enabled. Possible - values include: 'Enabled', 'Disabled' - :type public_network_access: str or - ~azure.mgmt.healthcareapis.models.PublicNetworkAccess + :param public_network_access: Control permission for data plane traffic coming from public + networks while private endpoint is enabled. Possible 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 = { @@ -889,12 +2287,15 @@ class ServicesProperties(Model): 'authentication_configuration': {'key': 'authenticationConfiguration', 'type': 'ServiceAuthenticationConfigurationInfo'}, 'cors_configuration': {'key': 'corsConfiguration', 'type': 'ServiceCorsConfigurationInfo'}, 'export_configuration': {'key': 'exportConfiguration', 'type': 'ServiceExportConfigurationInfo'}, - 'acr_configuration': {'key': 'acrConfiguration', 'type': 'ServiceAcrConfigurationInfo'}, 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'acr_configuration': {'key': 'acrConfiguration', 'type': 'ServiceAcrConfigurationInfo'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ServicesProperties, self).__init__(**kwargs) self.provisioning_state = None self.access_policies = kwargs.get('access_policies', None) @@ -902,26 +2303,23 @@ def __init__(self, **kwargs): self.authentication_configuration = kwargs.get('authentication_configuration', None) self.cors_configuration = kwargs.get('cors_configuration', None) self.export_configuration = kwargs.get('export_configuration', None) - self.acr_configuration = kwargs.get('acr_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): - """Setting indicating whether the service has a managed identity associated - with it. +class ServicesResourceIdentity(msrest.serialization.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. + 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 + :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 = { @@ -935,54 +2333,213 @@ class ServicesResourceIdentity(Model): 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, **kwargs): + def __init__( + self, + **kwargs + ): super(ServicesResourceIdentity, self).__init__(**kwargs) self.principal_id = None self.tenant_id = None self.type = kwargs.get('type', None) -class TrackedResource(Resource): - """Tracked Resource. +class SystemData(msrest.serialization.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.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.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) + - The resource model definition for an Azure Resource Manager tracked top - level resource which has 'tags' and a 'location'. +class UserAssignedIdentity(msrest.serialization.Model): + """User assigned identity properties. - Variables are only populated by the server, and will be ignored when - sending a request. + 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 principal_id: The principal ID of the assigned identity. + :vartype principal_id: str + :ivar client_id: The client ID of the assigned identity. + :vartype client_id: str + """ - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UserAssignedIdentity, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + +class Workspace(TaggedResource): + """Workspace resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource identifier. :vartype id: str - :ivar name: The name of the resource + :ivar name: The resource name. :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :ivar type: The resource type. :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + :param location: The resource location. :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param properties: Workspaces resource specific properties. + :type properties: ~azure.mgmt.healthcareapis.models.WorkspaceProperties + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.healthcareapis.models.SystemData """ _validation = { 'id': {'readonly': True}, - 'name': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, 'type': {'readonly': True}, - 'location': {'required': True}, + 'system_data': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'WorkspaceProperties'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } - def __init__(self, **kwargs): - super(TrackedResource, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.location = kwargs.get('location', None) + def __init__( + self, + **kwargs + ): + super(Workspace, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.system_data = None + + +class WorkspaceList(msrest.serialization.Model): + """Collection of workspace object with a next link. + + :param next_link: The link used to get the next page. + :type next_link: str + :param value: Collection of resources. + :type value: list[~azure.mgmt.healthcareapis.models.Workspace] + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Workspace]'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkspaceList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class WorkspacePatchResource(ResourceTags): + """Workspace patch properties. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkspacePatchResource, self).__init__(**kwargs) + + +class WorkspaceProperties(msrest.serialization.Model): + """Workspaces resource specific properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", + "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", + "Deprovisioned", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState + :ivar private_endpoint_connections: The list of private endpoint connections that are set up + for this resource. + :vartype private_endpoint_connections: + list[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection] + :param public_network_access: Control permission for data plane traffic coming from public + networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.healthcareapis.models.PublicNetworkAccess + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(WorkspaceProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.private_endpoint_connections = None + self.public_network_access = kwargs.get('public_network_access', None) diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_models_py3.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_models_py3.py index b1c541e77f7..fe74ab6afa5 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_models_py3.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_models_py3.py @@ -1,40 +1,94 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError +import datetime +from typing import Dict, List, Optional, Union +from azure.core.exceptions import HttpResponseError +import msrest.serialization -class Resource(Model): - """Resource. +from ._healthcare_apis_management_client_enums import * - 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. +class CheckNameAvailabilityParameters(msrest.serialization.Model): + """Input values. - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the service instance to check. + :type name: str + :param type: Required. The fully qualified resource type which includes provider namespace. + :type type: str + """ + + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + *, + name: str, + type: str, + **kwargs + ): + super(CheckNameAvailabilityParameters, self).__init__(**kwargs) + self.name = name + self.type = type + + +class ServiceManagedIdentity(msrest.serialization.Model): + """Managed service identity (system assigned and/or user assigned identities). + + :param identity: Setting indicating whether the service has a managed identity associated with + it. + :type identity: ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityautogenerated + """ + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ServiceManagedIdentityautogenerated'}, + } + + def __init__( + self, + *, + identity: Optional["ServiceManagedIdentityautogenerated"] = None, + **kwargs + ): + super(ServiceManagedIdentity, self).__init__(**kwargs) + self.identity = identity + + +class ResourceCore(msrest.serialization.Model): + """The common properties for any resource, tracked or proxy. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource identifier. :vartype id: str - :ivar name: The name of the resource + :ivar name: The resource name. :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :ivar type: The resource type. :vartype type: str + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str """ _validation = { 'id': {'readonly': True}, - 'name': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, 'type': {'readonly': True}, } @@ -42,41 +96,110 @@ class Resource(Model): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, } - def __init__(self, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) + def __init__( + self, + *, + etag: Optional[str] = None, + **kwargs + ): + super(ResourceCore, self).__init__(**kwargs) self.id = None self.name = None self.type = None + self.etag = etag -class AzureEntityResource(Resource): - """Entity Resource. +class LocationBasedResource(ResourceCore): + """The common properties for any location based resource, tracked or proxy. - 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: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + :param location: The resource location. + :type location: str + """ - Variables are only populated by the server, and will be ignored when - sending a request. + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, + 'type': {'readonly': True}, + } - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + *, + etag: Optional[str] = None, + location: Optional[str] = None, + **kwargs + ): + super(LocationBasedResource, self).__init__(etag=etag, **kwargs) + self.location = location + + +class ResourceTags(msrest.serialization.Model): + """List of key value pairs that describe the resource. This will overwrite the existing tags. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(ResourceTags, self).__init__(**kwargs) + self.tags = tags + + +class TaggedResource(ResourceTags, LocationBasedResource): + """The common properties of tracked resources in the service. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource identifier. :vartype id: str - :ivar name: The name of the resource + :ivar name: The resource name. :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :ivar type: The resource type. :vartype type: str - :ivar etag: Resource Etag. - :vartype etag: str + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] """ _validation = { 'id': {'readonly': True}, - 'name': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, 'type': {'readonly': True}, - 'etag': {'readonly': True}, } _attribute_map = { @@ -84,53 +207,214 @@ class AzureEntityResource(Resource): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, **kwargs) -> None: - super(AzureEntityResource, self).__init__(**kwargs) - self.etag = None + def __init__( + self, + *, + etag: Optional[str] = None, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(TaggedResource, self).__init__(tags=tags, etag=etag, location=location, **kwargs) + self.id = None + self.name = None + self.type = None + self.etag = etag + self.location = location + self.tags = tags -class CheckNameAvailabilityParameters(Model): - """Input values. +class DicomService(TaggedResource, ServiceManagedIdentity): + """The description of Dicom Service. - All required parameters must be populated in order to send to Azure. + Variables are only populated by the server, and will be ignored when sending a request. - :param name: Required. The name of the service instance to check. - :type name: str - :param type: Required. The fully qualified resource type which includes - provider namespace. - :type type: str + :param identity: Setting indicating whether the service has a managed identity associated with + it. + :type identity: ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityautogenerated + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.healthcareapis.models.SystemData + :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", + "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", + "Deprovisioned", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState + :param authentication_configuration: Dicom Service authentication configuration. + :type authentication_configuration: + ~azure.mgmt.healthcareapis.models.DicomServiceAuthenticationConfiguration + :ivar service_url: The url of the Dicom Services. + :vartype service_url: str + :ivar private_endpoint_connections: The list of private endpoint connections that are set up + for this resource. + :vartype private_endpoint_connections: + list[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection] + :param public_network_access: Control permission for data plane traffic coming from public + networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.healthcareapis.models.PublicNetworkAccess """ _validation = { - 'name': {'required': True}, - 'type': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, + 'type': {'readonly': True}, + 'system_data': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'service_url': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, } _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ServiceManagedIdentityautogenerated'}, + 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'authentication_configuration': {'key': 'properties.authenticationConfiguration', 'type': 'DicomServiceAuthenticationConfiguration'}, + 'service_url': {'key': 'properties.serviceUrl', 'type': 'str'}, + 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, } - def __init__(self, *, name: str, type: str, **kwargs) -> None: - super(CheckNameAvailabilityParameters, self).__init__(**kwargs) - self.name = name - self.type = type + def __init__( + self, + *, + identity: Optional["ServiceManagedIdentityautogenerated"] = None, + etag: Optional[str] = None, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + authentication_configuration: Optional["DicomServiceAuthenticationConfiguration"] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, + **kwargs + ): + super(DicomService, self).__init__(etag=etag, location=location, tags=tags, identity=identity, **kwargs) + self.identity = identity + self.system_data = None + self.provisioning_state = None + self.authentication_configuration = authentication_configuration + self.service_url = None + self.private_endpoint_connections = None + self.public_network_access = public_network_access + self.id = None + self.name = None + self.type = None + self.etag = etag + self.location = location + self.tags = tags + self.system_data = None + self.provisioning_state = None + self.authentication_configuration = authentication_configuration + self.service_url = None + self.private_endpoint_connections = None + self.public_network_access = public_network_access + + +class DicomServiceAuthenticationConfiguration(msrest.serialization.Model): + """Authentication configuration information. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar authority: The authority url for the service. + :vartype authority: str + :ivar audiences: The audiences for the service. + :vartype audiences: list[str] + """ + + _validation = { + 'authority': {'readonly': True}, + 'audiences': {'readonly': True}, + } + + _attribute_map = { + 'authority': {'key': 'authority', 'type': 'str'}, + 'audiences': {'key': 'audiences', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(DicomServiceAuthenticationConfiguration, self).__init__(**kwargs) + self.authority = None + self.audiences = None + + +class DicomServiceCollection(msrest.serialization.Model): + """The collection of Dicom Services. + :param next_link: The link used to get the next page of Dicom Services. + :type next_link: str + :param value: The list of Dicom Services. + :type value: list[~azure.mgmt.healthcareapis.models.DicomService] + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[DicomService]'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + value: Optional[List["DicomService"]] = None, + **kwargs + ): + super(DicomServiceCollection, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class DicomServicePatchResource(ResourceTags, ServiceManagedIdentity): + """Dicom Service patch properties. -class CloudError(Model): - """CloudError. + :param identity: Setting indicating whether the service has a managed identity associated with + it. + :type identity: ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityautogenerated + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] """ _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ServiceManagedIdentityautogenerated'}, + 'tags': {'key': 'tags', 'type': '{str}'}, } + def __init__( + self, + *, + identity: Optional["ServiceManagedIdentityautogenerated"] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(DicomServicePatchResource, self).__init__(tags=tags, identity=identity, **kwargs) + self.identity = identity + self.tags = tags + -class ErrorDetails(Model): +class Error(msrest.serialization.Model): """Error details. - :param error: Object containing error details. + :param error: Error details. :type error: ~azure.mgmt.healthcareapis.models.ErrorDetailsInternal """ @@ -138,28 +422,41 @@ class ErrorDetails(Model): 'error': {'key': 'error', 'type': 'ErrorDetailsInternal'}, } - def __init__(self, *, error=None, **kwargs) -> None: - super(ErrorDetails, self).__init__(**kwargs) + def __init__( + self, + *, + error: Optional["ErrorDetailsInternal"] = None, + **kwargs + ): + super(Error, self).__init__(**kwargs) self.error = error -class ErrorDetailsException(HttpOperationError): - """Server responsed with exception of type: 'ErrorDetails'. +class ErrorDetails(msrest.serialization.Model): + """Error details. - :param deserialize: A deserializer - :param response: Server response to be deserialized. + :param error: Error details. + :type error: ~azure.mgmt.healthcareapis.models.ErrorDetailsInternal """ - def __init__(self, deserialize, response, *args): + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetailsInternal'}, + } - super(ErrorDetailsException, self).__init__(deserialize, response, 'ErrorDetails', *args) + def __init__( + self, + *, + error: Optional["ErrorDetailsInternal"] = None, + **kwargs + ): + super(ErrorDetails, self).__init__(**kwargs) + self.error = error -class ErrorDetailsInternal(Model): +class ErrorDetailsInternal(msrest.serialization.Model): """Error details. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. :ivar code: The error code. :vartype code: str @@ -181,187 +478,1213 @@ class ErrorDetailsInternal(Model): 'target': {'key': 'target', 'type': 'str'}, } - def __init__(self, **kwargs) -> None: + def __init__( + self, + **kwargs + ): super(ErrorDetailsInternal, self).__init__(**kwargs) self.code = None self.message = None self.target = None -class Operation(Model): - """Service REST API operation. +class FhirService(TaggedResource, ServiceManagedIdentity): + """The description of Fhir Service. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: Operation name: {provider}/{resource}/{read | write | action | - delete} + :param identity: Setting indicating whether the service has a managed identity associated with + it. + :type identity: ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityautogenerated + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. :vartype name: str - :ivar origin: Default value is 'user,system'. - :vartype origin: str - :param display: The information displayed about the operation. - :type display: ~azure.mgmt.healthcareapis.models.OperationDisplay + :ivar type: The resource type. + :vartype type: str + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param kind: The kind of the service. Possible values include: "fhir-Stu3", "fhir-R4". + :type kind: str or ~azure.mgmt.healthcareapis.models.FhirServiceKind + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.healthcareapis.models.SystemData + :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", + "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", + "Deprovisioned", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState + :param access_policies: Fhir Service access policies. + :type access_policies: list[~azure.mgmt.healthcareapis.models.FhirServiceAccessPolicyEntry] + :param acr_configuration: Fhir Service Azure container registry configuration. + :type acr_configuration: ~azure.mgmt.healthcareapis.models.FhirServiceAcrConfiguration + :param authentication_configuration: Fhir Service authentication configuration. + :type authentication_configuration: + ~azure.mgmt.healthcareapis.models.FhirServiceAuthenticationConfiguration + :param cors_configuration: Fhir Service Cors configuration. + :type cors_configuration: ~azure.mgmt.healthcareapis.models.FhirServiceCorsConfiguration + :param export_configuration: Fhir Service export configuration. + :type export_configuration: ~azure.mgmt.healthcareapis.models.FhirServiceExportConfiguration + :ivar private_endpoint_connections: The list of private endpoint connections that are set up + for this resource. + :vartype private_endpoint_connections: + list[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection] + :param public_network_access: Control permission for data plane traffic coming from public + networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.healthcareapis.models.PublicNetworkAccess + :ivar event_state: Fhir Service event support status. Possible values include: "Disabled", + "Enabled", "Updating". + :vartype event_state: str or ~azure.mgmt.healthcareapis.models.ServiceEventState + :param resource_version_policy_configuration: Determines tracking of history for resources. + :type resource_version_policy_configuration: + ~azure.mgmt.healthcareapis.models.ResourceVersionPolicyConfiguration """ _validation = { - 'name': {'readonly': True}, - 'origin': {'readonly': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, + 'type': {'readonly': True}, + 'system_data': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, + 'event_state': {'readonly': True}, } _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ServiceManagedIdentityautogenerated'}, + 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'access_policies': {'key': 'properties.accessPolicies', 'type': '[FhirServiceAccessPolicyEntry]'}, + 'acr_configuration': {'key': 'properties.acrConfiguration', 'type': 'FhirServiceAcrConfiguration'}, + 'authentication_configuration': {'key': 'properties.authenticationConfiguration', 'type': 'FhirServiceAuthenticationConfiguration'}, + 'cors_configuration': {'key': 'properties.corsConfiguration', 'type': 'FhirServiceCorsConfiguration'}, + 'export_configuration': {'key': 'properties.exportConfiguration', 'type': 'FhirServiceExportConfiguration'}, + 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'event_state': {'key': 'properties.eventState', 'type': 'str'}, + 'resource_version_policy_configuration': {'key': 'properties.resourceVersionPolicyConfiguration', 'type': 'ResourceVersionPolicyConfiguration'}, } - def __init__(self, *, display=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) + def __init__( + self, + *, + identity: Optional["ServiceManagedIdentityautogenerated"] = None, + etag: Optional[str] = None, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + kind: Optional[Union[str, "FhirServiceKind"]] = None, + access_policies: Optional[List["FhirServiceAccessPolicyEntry"]] = None, + acr_configuration: Optional["FhirServiceAcrConfiguration"] = None, + authentication_configuration: Optional["FhirServiceAuthenticationConfiguration"] = None, + cors_configuration: Optional["FhirServiceCorsConfiguration"] = None, + export_configuration: Optional["FhirServiceExportConfiguration"] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, + resource_version_policy_configuration: Optional["ResourceVersionPolicyConfiguration"] = None, + **kwargs + ): + super(FhirService, self).__init__(etag=etag, location=location, tags=tags, identity=identity, **kwargs) + self.identity = identity + self.kind = kind + self.system_data = None + self.provisioning_state = None + self.access_policies = access_policies + self.acr_configuration = acr_configuration + self.authentication_configuration = authentication_configuration + self.cors_configuration = cors_configuration + self.export_configuration = export_configuration + self.private_endpoint_connections = None + self.public_network_access = public_network_access + self.event_state = None + self.resource_version_policy_configuration = resource_version_policy_configuration + self.id = None self.name = None - self.origin = None - self.display = display + self.type = None + self.etag = etag + self.location = location + self.tags = tags + self.kind = kind + self.system_data = None + self.provisioning_state = None + self.access_policies = access_policies + self.acr_configuration = acr_configuration + self.authentication_configuration = authentication_configuration + self.cors_configuration = cors_configuration + self.export_configuration = export_configuration + self.private_endpoint_connections = None + self.public_network_access = public_network_access + self.event_state = None + self.resource_version_policy_configuration = resource_version_policy_configuration -class OperationDisplay(Model): - """The object that represents the operation. +class FhirServiceAccessPolicyEntry(msrest.serialization.Model): + """An access policy entry. - 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 provider: Service provider: Microsoft.HealthcareApis - :vartype provider: str - :ivar resource: Resource Type: Services - :vartype resource: str - :ivar operation: Name of the operation - :vartype operation: str - :ivar description: Friendly description for the operation, - :vartype description: str + :param object_id: Required. An Azure AD object ID (User or Apps) that is allowed access to the + FHIR service. + :type object_id: str """ _validation = { - 'provider': {'readonly': True}, - 'resource': {'readonly': True}, - 'operation': {'readonly': True}, - 'description': {'readonly': True}, + 'object_id': {'required': True, 'pattern': r'^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$'}, } _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, + 'object_id': {'key': 'objectId', 'type': 'str'}, + } + + def __init__( + self, + *, + object_id: str, + **kwargs + ): + super(FhirServiceAccessPolicyEntry, self).__init__(**kwargs) + self.object_id = object_id + + +class FhirServiceAcrConfiguration(msrest.serialization.Model): + """Azure container registry configuration information. + + :param login_servers: The list of the Azure container registry login servers. + :type login_servers: list[str] + :param oci_artifacts: The list of Open Container Initiative (OCI) artifacts. + :type oci_artifacts: list[~azure.mgmt.healthcareapis.models.ServiceOciArtifactEntry] + """ + + _attribute_map = { + 'login_servers': {'key': 'loginServers', 'type': '[str]'}, + 'oci_artifacts': {'key': 'ociArtifacts', 'type': '[ServiceOciArtifactEntry]'}, + } + + def __init__( + self, + *, + login_servers: Optional[List[str]] = None, + oci_artifacts: Optional[List["ServiceOciArtifactEntry"]] = None, + **kwargs + ): + super(FhirServiceAcrConfiguration, self).__init__(**kwargs) + self.login_servers = login_servers + self.oci_artifacts = oci_artifacts + + +class FhirServiceAuthenticationConfiguration(msrest.serialization.Model): + """Authentication configuration information. + + :param authority: The authority url for the service. + :type authority: str + :param audience: The audience url for the service. + :type audience: str + :param smart_proxy_enabled: If the SMART on FHIR proxy is enabled. + :type smart_proxy_enabled: bool + """ + + _attribute_map = { + 'authority': {'key': 'authority', 'type': 'str'}, + 'audience': {'key': 'audience', 'type': 'str'}, + 'smart_proxy_enabled': {'key': 'smartProxyEnabled', 'type': 'bool'}, + } + + def __init__( + self, + *, + authority: Optional[str] = None, + audience: Optional[str] = None, + smart_proxy_enabled: Optional[bool] = None, + **kwargs + ): + super(FhirServiceAuthenticationConfiguration, self).__init__(**kwargs) + self.authority = authority + self.audience = audience + self.smart_proxy_enabled = smart_proxy_enabled + + +class FhirServiceCollection(msrest.serialization.Model): + """A collection of Fhir services. + + :param next_link: The link used to get the next page of Fhir Services. + :type next_link: str + :param value: The list of Fhir Services. + :type value: list[~azure.mgmt.healthcareapis.models.FhirService] + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[FhirService]'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + value: Optional[List["FhirService"]] = None, + **kwargs + ): + super(FhirServiceCollection, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class FhirServiceCorsConfiguration(msrest.serialization.Model): + """The settings for the CORS configuration of the service instance. + + :param origins: The origins to be allowed via CORS. + :type origins: list[str] + :param headers: The headers to be allowed via CORS. + :type headers: list[str] + :param methods: The methods to be allowed via CORS. + :type methods: list[str] + :param max_age: The max age to be allowed via CORS. + :type max_age: int + :param allow_credentials: If credentials are allowed via CORS. + :type allow_credentials: bool + """ + + _validation = { + 'max_age': {'maximum': 99999, 'minimum': 0}, + } + + _attribute_map = { + 'origins': {'key': 'origins', 'type': '[str]'}, + 'headers': {'key': 'headers', 'type': '[str]'}, + 'methods': {'key': 'methods', 'type': '[str]'}, + 'max_age': {'key': 'maxAge', 'type': 'int'}, + 'allow_credentials': {'key': 'allowCredentials', 'type': 'bool'}, + } + + def __init__( + self, + *, + origins: Optional[List[str]] = None, + headers: Optional[List[str]] = None, + methods: Optional[List[str]] = None, + max_age: Optional[int] = None, + allow_credentials: Optional[bool] = None, + **kwargs + ): + super(FhirServiceCorsConfiguration, self).__init__(**kwargs) + self.origins = origins + self.headers = headers + self.methods = methods + self.max_age = max_age + self.allow_credentials = allow_credentials + + +class FhirServiceExportConfiguration(msrest.serialization.Model): + """Export operation configuration information. + + :param storage_account_name: The name of the default export storage account. + :type storage_account_name: str + """ + + _attribute_map = { + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + } + + def __init__( + self, + *, + storage_account_name: Optional[str] = None, + **kwargs + ): + super(FhirServiceExportConfiguration, self).__init__(**kwargs) + self.storage_account_name = storage_account_name + + +class FhirServicePatchResource(ResourceTags, ServiceManagedIdentity): + """FhirService patch properties. + + :param identity: Setting indicating whether the service has a managed identity associated with + it. + :type identity: ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityautogenerated + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ServiceManagedIdentityautogenerated'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + *, + identity: Optional["ServiceManagedIdentityautogenerated"] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(FhirServicePatchResource, self).__init__(tags=tags, identity=identity, **kwargs) + self.identity = identity + self.tags = tags + + +class IotConnector(TaggedResource, ServiceManagedIdentity): + """IoT Connector definition. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param identity: Setting indicating whether the service has a managed identity associated with + it. + :type identity: ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityautogenerated + :ivar id: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + :param location: The resource location. + :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.healthcareapis.models.SystemData + :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", + "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", + "Deprovisioned", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState + :param ingestion_endpoint_configuration: Source configuration. + :type ingestion_endpoint_configuration: + ~azure.mgmt.healthcareapis.models.IotEventHubIngestionEndpointConfiguration + :param device_mapping: Device Mappings. + :type device_mapping: ~azure.mgmt.healthcareapis.models.IotMappingProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, + 'type': {'readonly': True}, + 'system_data': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ServiceManagedIdentityautogenerated'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'ingestion_endpoint_configuration': {'key': 'properties.ingestionEndpointConfiguration', 'type': 'IotEventHubIngestionEndpointConfiguration'}, + 'device_mapping': {'key': 'properties.deviceMapping', 'type': 'IotMappingProperties'}, + } + + def __init__( + self, + *, + identity: Optional["ServiceManagedIdentityautogenerated"] = None, + etag: Optional[str] = None, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + ingestion_endpoint_configuration: Optional["IotEventHubIngestionEndpointConfiguration"] = None, + device_mapping: Optional["IotMappingProperties"] = None, + **kwargs + ): + super(IotConnector, self).__init__(etag=etag, location=location, tags=tags, identity=identity, **kwargs) + self.identity = identity + self.system_data = None + self.provisioning_state = None + self.ingestion_endpoint_configuration = ingestion_endpoint_configuration + self.device_mapping = device_mapping + self.id = None + self.name = None + self.type = None + self.etag = etag + self.location = location + self.tags = tags + self.system_data = None + self.provisioning_state = None + self.ingestion_endpoint_configuration = ingestion_endpoint_configuration + self.device_mapping = device_mapping + + +class IotConnectorCollection(msrest.serialization.Model): + """A collection of IoT Connectors. + + :param next_link: The link used to get the next page of IoT Connectors. + :type next_link: str + :param value: The list of IoT Connectors. + :type value: list[~azure.mgmt.healthcareapis.models.IotConnector] + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[IotConnector]'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + value: Optional[List["IotConnector"]] = None, + **kwargs + ): + super(IotConnectorCollection, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class IotConnectorPatchResource(ResourceTags, ServiceManagedIdentity): + """Iot Connector patch properties. + + :param identity: Setting indicating whether the service has a managed identity associated with + it. + :type identity: ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityautogenerated + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ServiceManagedIdentityautogenerated'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + *, + identity: Optional["ServiceManagedIdentityautogenerated"] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(IotConnectorPatchResource, self).__init__(tags=tags, identity=identity, **kwargs) + self.identity = identity + self.tags = tags + + +class IotDestinationProperties(msrest.serialization.Model): + """Common IoT Connector destination properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", + "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", + "Deprovisioned", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(IotDestinationProperties, self).__init__(**kwargs) + self.provisioning_state = None + + +class IotEventHubIngestionEndpointConfiguration(msrest.serialization.Model): + """Event Hub ingestion endpoint configuration. + + :param event_hub_name: Event Hub name to connect to. + :type event_hub_name: str + :param consumer_group: Consumer group of the event hub to connected to. + :type consumer_group: str + :param fully_qualified_event_hub_namespace: Fully qualified namespace of the Event Hub to + connect to. + :type fully_qualified_event_hub_namespace: str + """ + + _attribute_map = { + 'event_hub_name': {'key': 'eventHubName', 'type': 'str'}, + 'consumer_group': {'key': 'consumerGroup', 'type': 'str'}, + 'fully_qualified_event_hub_namespace': {'key': 'fullyQualifiedEventHubNamespace', 'type': 'str'}, + } + + def __init__( + self, + *, + event_hub_name: Optional[str] = None, + consumer_group: Optional[str] = None, + fully_qualified_event_hub_namespace: Optional[str] = None, + **kwargs + ): + super(IotEventHubIngestionEndpointConfiguration, self).__init__(**kwargs) + self.event_hub_name = event_hub_name + self.consumer_group = consumer_group + self.fully_qualified_event_hub_namespace = fully_qualified_event_hub_namespace + + +class IotFhirDestination(LocationBasedResource): + """IoT Connector FHIR destination definition. + + 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: The resource identifier. + :vartype id: str + :ivar name: The resource name. + :vartype name: str + :ivar type: The resource type. + :vartype type: str + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + :param location: The resource location. + :type location: str + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.healthcareapis.models.SystemData + :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", + "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", + "Deprovisioned", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState + :param resource_identity_resolution_type: Required. Determines how resource identity is + resolved on the destination. Possible values include: "Create", "Lookup". + :type resource_identity_resolution_type: str or + ~azure.mgmt.healthcareapis.models.IotIdentityResolutionType + :param fhir_service_resource_id: Required. Fully qualified resource id of the FHIR service to + connect to. + :type fhir_service_resource_id: str + :param fhir_mapping: Required. FHIR Mappings. + :type fhir_mapping: ~azure.mgmt.healthcareapis.models.IotMappingProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, + 'type': {'readonly': True}, + 'system_data': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'resource_identity_resolution_type': {'required': True}, + 'fhir_service_resource_id': {'required': True}, + 'fhir_mapping': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_identity_resolution_type': {'key': 'properties.resourceIdentityResolutionType', 'type': 'str'}, + 'fhir_service_resource_id': {'key': 'properties.fhirServiceResourceId', 'type': 'str'}, + 'fhir_mapping': {'key': 'properties.fhirMapping', 'type': 'IotMappingProperties'}, + } + + def __init__( + self, + *, + resource_identity_resolution_type: Union[str, "IotIdentityResolutionType"], + fhir_service_resource_id: str, + fhir_mapping: "IotMappingProperties", + etag: Optional[str] = None, + location: Optional[str] = None, + **kwargs + ): + super(IotFhirDestination, self).__init__(etag=etag, location=location, **kwargs) + self.system_data = None + self.provisioning_state = None + self.resource_identity_resolution_type = resource_identity_resolution_type + self.fhir_service_resource_id = fhir_service_resource_id + self.fhir_mapping = fhir_mapping + + +class IotFhirDestinationCollection(msrest.serialization.Model): + """A collection of IoT Connector FHIR destinations. + + :param next_link: The link used to get the next page of IoT FHIR destinations. + :type next_link: str + :param value: The list of IoT Connector FHIR destinations. + :type value: list[~azure.mgmt.healthcareapis.models.IotFhirDestination] + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[IotFhirDestination]'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + value: Optional[List["IotFhirDestination"]] = None, + **kwargs + ): + super(IotFhirDestinationCollection, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class IotFhirDestinationProperties(IotDestinationProperties): + """IoT Connector destination properties for an Azure FHIR service. + + 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", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState + :param resource_identity_resolution_type: Required. Determines how resource identity is + resolved on the destination. Possible values include: "Create", "Lookup". + :type resource_identity_resolution_type: str or + ~azure.mgmt.healthcareapis.models.IotIdentityResolutionType + :param fhir_service_resource_id: Required. Fully qualified resource id of the FHIR service to + connect to. + :type fhir_service_resource_id: str + :param fhir_mapping: Required. FHIR Mappings. + :type fhir_mapping: ~azure.mgmt.healthcareapis.models.IotMappingProperties + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'resource_identity_resolution_type': {'required': True}, + 'fhir_service_resource_id': {'required': True}, + 'fhir_mapping': {'required': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'resource_identity_resolution_type': {'key': 'resourceIdentityResolutionType', 'type': 'str'}, + 'fhir_service_resource_id': {'key': 'fhirServiceResourceId', 'type': 'str'}, + 'fhir_mapping': {'key': 'fhirMapping', 'type': 'IotMappingProperties'}, + } + + def __init__( + self, + *, + resource_identity_resolution_type: Union[str, "IotIdentityResolutionType"], + fhir_service_resource_id: str, + fhir_mapping: "IotMappingProperties", + **kwargs + ): + super(IotFhirDestinationProperties, self).__init__(**kwargs) + self.resource_identity_resolution_type = resource_identity_resolution_type + self.fhir_service_resource_id = fhir_service_resource_id + self.fhir_mapping = fhir_mapping + + +class IotMappingProperties(msrest.serialization.Model): + """The mapping content. + + :param content: The mapping. + :type content: object + """ + + _attribute_map = { + 'content': {'key': 'content', 'type': 'object'}, + } + + def __init__( + self, + *, + content: Optional[object] = None, + **kwargs + ): + super(IotMappingProperties, self).__init__(**kwargs) + self.content = content + + +class ListOperations(msrest.serialization.Model): + """Available operations of the service. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: Collection of available operation details. + :vartype value: list[~azure.mgmt.healthcareapis.models.OperationDetail] + :param next_link: URL client should use to fetch the next page (per server side paging). + It's null for now, added for future use. + :type next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[OperationDetail]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + **kwargs + ): + super(ListOperations, self).__init__(**kwargs) + self.value = None + self.next_link = next_link + + +class LogSpecification(msrest.serialization.Model): + """Specifications of the Log for Azure Monitoring. + + :param name: Name of the log. + :type name: str + :param display_name: Localized friendly display name of the log. + :type display_name: str + :param blob_duration: Blob duration of the log. + :type blob_duration: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + display_name: Optional[str] = None, + blob_duration: Optional[str] = None, + **kwargs + ): + super(LogSpecification, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.blob_duration = blob_duration + + +class MetricDimension(msrest.serialization.Model): + """Specifications of the Dimension of metrics. + + :param name: Name of the dimension. + :type name: str + :param display_name: Localized friendly display name of the dimension. + :type display_name: str + :param to_be_exported_for_shoebox: Whether this dimension should be included for the Shoebox + export scenario. + :type to_be_exported_for_shoebox: bool + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'to_be_exported_for_shoebox': {'key': 'toBeExportedForShoebox', 'type': 'bool'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + display_name: Optional[str] = None, + to_be_exported_for_shoebox: Optional[bool] = None, + **kwargs + ): + super(MetricDimension, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.to_be_exported_for_shoebox = to_be_exported_for_shoebox + + +class MetricSpecification(msrest.serialization.Model): + """Specifications of the Metrics for Azure Monitoring. + + :param name: Name of the metric. + :type name: str + :param display_name: Localized friendly display name of the metric. + :type display_name: str + :param display_description: Localized friendly description of the metric. + :type display_description: str + :param unit: Unit that makes sense for the metric. + :type unit: str + :param category: Name of the metric category that the metric belongs to. A metric can only + belong to a single category. + :type category: str + :param aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, + Maximum, Total, Count. + :type aggregation_type: str + :param supported_aggregation_types: Supported aggregation types. + :type supported_aggregation_types: list[str] + :param supported_time_grain_types: Supported time grain types. + :type supported_time_grain_types: list[str] + :param fill_gap_with_zero: Optional. If set to true, then zero will be returned for time + duration where no metric is emitted/published. + :type fill_gap_with_zero: bool + :param dimensions: Dimensions of the metric. + :type dimensions: list[~azure.mgmt.healthcareapis.models.MetricDimension] + :param source_mdm_namespace: Name of the MDM namespace. Optional. + :type source_mdm_namespace: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'supported_aggregation_types': {'key': 'supportedAggregationTypes', 'type': '[str]'}, + 'supported_time_grain_types': {'key': 'supportedTimeGrainTypes', 'type': '[str]'}, + 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, + 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, + 'source_mdm_namespace': {'key': 'sourceMdmNamespace', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + display_name: Optional[str] = None, + display_description: Optional[str] = None, + unit: Optional[str] = None, + category: Optional[str] = None, + aggregation_type: Optional[str] = None, + supported_aggregation_types: Optional[List[str]] = None, + supported_time_grain_types: Optional[List[str]] = None, + fill_gap_with_zero: Optional[bool] = None, + dimensions: Optional[List["MetricDimension"]] = None, + source_mdm_namespace: Optional[str] = None, + **kwargs + ): + super(MetricSpecification, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.display_description = display_description + self.unit = unit + self.category = category + self.aggregation_type = aggregation_type + self.supported_aggregation_types = supported_aggregation_types + self.supported_time_grain_types = supported_time_grain_types + self.fill_gap_with_zero = fill_gap_with_zero + self.dimensions = dimensions + self.source_mdm_namespace = source_mdm_namespace + + +class OperationDetail(msrest.serialization.Model): + """Service REST API operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: Name of the operation. + :vartype name: str + :ivar is_data_action: Whether the operation applies to data-plane. This is "true" for data- + plane operations and "false" for ARM/control-plane operations. + :vartype is_data_action: bool + :param display: Display of the operation. + :type display: ~azure.mgmt.healthcareapis.models.OperationDisplay + :ivar origin: Default value is 'user,system'. + :vartype origin: str + :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for + internal only APIs. Possible values include: "Internal". + :vartype action_type: str or ~azure.mgmt.healthcareapis.models.ActionType + :param properties: Properties of the operation. + :type properties: ~azure.mgmt.healthcareapis.models.OperationProperties + """ + + _validation = { + 'name': {'readonly': True}, + 'is_data_action': {'readonly': True}, + 'origin': {'readonly': True}, + 'action_type': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'OperationProperties'}, + } + + def __init__( + self, + *, + display: Optional["OperationDisplay"] = None, + properties: Optional["OperationProperties"] = None, + **kwargs + ): + super(OperationDetail, self).__init__(**kwargs) + self.name = None + self.is_data_action = None + self.display = display + self.origin = None + self.action_type = None + self.properties = properties + + +class OperationDisplay(msrest.serialization.Model): + """The object that represents the operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar provider: Service provider: Microsoft.HealthcareApis. + :vartype provider: str + :ivar resource: Resource Type: Services. + :vartype resource: str + :ivar operation: Name of the operation. + :vartype operation: str + :ivar description: Friendly description for the operation,. + :vartype description: str + """ + + _validation = { + 'provider': {'readonly': True}, + 'resource': {'readonly': True}, + 'operation': {'readonly': True}, + 'description': {'readonly': True}, + } + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = None + self.resource = None + self.operation = None + self.description = None + + +class OperationProperties(msrest.serialization.Model): + """Extra Operation properties. + + :param service_specification: Service specifications of the operation. + :type service_specification: ~azure.mgmt.healthcareapis.models.ServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, + } + + def __init__( + self, + *, + service_specification: Optional["ServiceSpecification"] = None, + **kwargs + ): + super(OperationProperties, self).__init__(**kwargs) + self.service_specification = service_specification + + +class OperationResultsDescription(msrest.serialization.Model): + """The properties indicating the operation result of an operation on a service. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The ID of the operation returned. + :vartype id: str + :ivar name: The name of the operation result. + :vartype name: str + :ivar status: The status of the operation being performed. Possible values include: "Canceled", + "Succeeded", "Failed", "Requested", "Running". + :vartype status: str or ~azure.mgmt.healthcareapis.models.OperationResultStatus + :ivar start_time: The time that the operation was started. + :vartype start_time: str + :ivar end_time: The time that the operation finished. + :vartype end_time: str + :param properties: Additional properties of the operation result. + :type properties: object + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'status': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'str'}, + 'end_time': {'key': 'endTime', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__( + self, + *, + properties: Optional[object] = None, + **kwargs + ): + super(OperationResultsDescription, self).__init__(**kwargs) + self.id = None + self.name = None + self.status = None + self.start_time = None + self.end_time = None + self.properties = properties + + +class PrivateEndpoint(msrest.serialization.Model): + """The Private Endpoint resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The ARM identifier for Private Endpoint. + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, } - def __init__(self, **kwargs) -> None: - super(OperationDisplay, self).__init__(**kwargs) - self.provider = None - self.resource = None - self.operation = None - self.description = None + def __init__( + self, + **kwargs + ): + super(PrivateEndpoint, self).__init__(**kwargs) + self.id = None -class OperationResultsDescription(Model): - """The properties indicating the operation result of an operation on a - service. +class Resource(msrest.serialization.Model): + """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. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: The ID of the operation returned. + :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 operation result. + :ivar name: The name of the resource. :vartype name: str - :ivar status: The status of the operation being performed. Possible values - include: 'Canceled', 'Succeeded', 'Failed', 'Requested', 'Running' - :vartype status: str or - ~azure.mgmt.healthcareapis.models.OperationResultStatus - :ivar start_time: The time that the operation was started. - :vartype start_time: str - :param properties: Additional properties of the operation result. - :type properties: object + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, - 'status': {'readonly': True}, - 'start_time': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, + 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, *, properties=None, **kwargs) -> None: - super(OperationResultsDescription, self).__init__(**kwargs) + def __init__( + self, + **kwargs + ): + super(Resource, self).__init__(**kwargs) self.id = None self.name = None - self.status = None - self.start_time = None - self.properties = properties + self.type = None -class PrivateEndpoint(Model): - """The Private Endpoint resource. +class PrivateEndpointConnection(Resource): + """The Private Endpoint Connection resource. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: The ARM identifier for Private Endpoint + :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: 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 + :ivar provisioning_state: The provisioning state of the private endpoint connection resource. + Possible values include: "Succeeded", "Creating", "Deleting", "Failed". + :vartype provisioning_state: str or + ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionProvisioningState """ _validation = { 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': 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'}, } - def __init__(self, **kwargs) -> None: - super(PrivateEndpoint, self).__init__(**kwargs) - self.id = None + def __init__( + self, + *, + private_endpoint: Optional["PrivateEndpoint"] = None, + private_link_service_connection_state: Optional["PrivateLinkServiceConnectionState"] = None, + **kwargs + ): + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.private_endpoint = private_endpoint + self.private_link_service_connection_state = private_link_service_connection_state + self.provisioning_state = None -class PrivateEndpointConnection(Resource): +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. + 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} + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str - :ivar name: The name of the resource + :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" + :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. + :param private_link_service_connection_state: 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 + :ivar provisioning_state: The provisioning state of the private endpoint connection resource. + Possible values include: "Succeeded", "Creating", "Deleting", "Failed". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionProvisioningState + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.healthcareapis.models.SystemData """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'private_link_service_connection_state': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'system_data': {'readonly': True}, } _attribute_map = { @@ -371,41 +1694,80 @@ class PrivateEndpointConnection(Resource): '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, **kwargs) -> None: - super(PrivateEndpointConnection, self).__init__(**kwargs) - self.private_endpoint = private_endpoint - self.private_link_service_connection_state = private_link_service_connection_state - self.provisioning_state = provisioning_state + def __init__( + self, + *, + private_endpoint: Optional["PrivateEndpoint"] = None, + private_link_service_connection_state: Optional["PrivateLinkServiceConnectionState"] = None, + **kwargs + ): + super(PrivateEndpointConnectionDescription, self).__init__(private_endpoint=private_endpoint, private_link_service_connection_state=private_link_service_connection_state, **kwargs) + self.system_data = None + + +class PrivateEndpointConnectionListResult(msrest.serialization.Model): + """List of private endpoint connection associated with the specified storage account. + + :param value: Array of private endpoint connections. + :type value: list[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateEndpointConnection]'}, + } + + def __init__( + self, + *, + value: Optional[List["PrivateEndpointConnection"]] = None, + **kwargs + ): + super(PrivateEndpointConnectionListResult, self).__init__(**kwargs) + self.value = value + + +class PrivateEndpointConnectionListResultDescription(msrest.serialization.Model): + """List of private endpoint connection associated with the specified storage account. + + :param value: Array of private endpoint connections. + :type value: list[~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateEndpointConnectionDescription]'}, + } + + def __init__( + self, + *, + value: Optional[List["PrivateEndpointConnectionDescription"]] = None, + **kwargs + ): + super(PrivateEndpointConnectionListResultDescription, self).__init__(**kwargs) + self.value = value - def __init__(self, *, private_link_service_connection_state, private_endpoint=None, provisioning_state=None, system_data=None, **kwargs) -> None: - super(PrivateEndpointConnection, self).__init__(**kwargs) - self.private_endpoint = private_endpoint - self.private_link_service_connection_state = private_link_service_connection_state - self.provisioning_state = provisioning_state - 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. + 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} + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str - :ivar name: The name of the resource + :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" + :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. + :param required_zone_names: The private link resource Private link DNS zone name. :type required_zone_names: list[str] """ @@ -426,42 +1788,101 @@ class PrivateLinkResource(Resource): 'required_zone_names': {'key': 'properties.requiredZoneNames', 'type': '[str]'}, } - def __init__(self, *, required_zone_names=None, **kwargs) -> None: + def __init__( + self, + *, + required_zone_names: Optional[List[str]] = None, + **kwargs + ): super(PrivateLinkResource, self).__init__(**kwargs) self.group_id = None self.required_members = 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] + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype 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}, + 'system_data': {'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: Optional[List[str]] = None, + **kwargs + ): + super(PrivateLinkResourceDescription, self).__init__(required_zone_names=required_zone_names, **kwargs) + self.system_data = None + + +class PrivateLinkResourceListResultDescription(msrest.serialization.Model): """A list of private link resources. - :param value: Array of private link resources - :type value: list[~azure.mgmt.healthcareapis.models.PrivateLinkResource] + :param value: Array of private link resources. + :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) + def __init__( + self, + *, + value: Optional[List["PrivateLinkResourceDescription"]] = None, + **kwargs + ): + super(PrivateLinkResourceListResultDescription, self).__init__(**kwargs) self.value = value -class PrivateLinkServiceConnectionState(Model): - """A collection of information about the state of the connection between - service consumer and provider. +class PrivateLinkServiceConnectionState(msrest.serialization.Model): + """A collection of information about the state of the connection between service consumer and provider. - :param status: Indicates whether the connection has been - Approved/Rejected/Removed by the owner of the service. Possible values - include: 'Pending', 'Approved', 'Rejected' - :type status: str or - ~azure.mgmt.healthcareapis.models.PrivateEndpointServiceConnectionStatus + :param status: Indicates whether the connection has been Approved/Rejected/Removed by the owner + of the service. Possible values include: "Pending", "Approved", "Rejected". + :type status: str or ~azure.mgmt.healthcareapis.models.PrivateEndpointServiceConnectionStatus :param description: The reason for approval/rejection of the connection. :type description: str - :param actions_required: A message indicating if changes on the service - provider require any updates on the consumer. + :param actions_required: A message indicating if changes on the service provider require any + updates on the consumer. :type actions_required: str """ @@ -471,55 +1892,55 @@ class PrivateLinkServiceConnectionState(Model): 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, } - def __init__(self, *, status=None, description: str=None, actions_required: str=None, **kwargs) -> None: + def __init__( + self, + *, + status: Optional[Union[str, "PrivateEndpointServiceConnectionStatus"]] = None, + description: Optional[str] = None, + actions_required: Optional[str] = None, + **kwargs + ): super(PrivateLinkServiceConnectionState, self).__init__(**kwargs) self.status = status self.description = description self.actions_required = actions_required -class ProxyResource(Resource): - """Proxy Resource. +class ResourceVersionPolicyConfiguration(msrest.serialization.Model): + """The settings for history tracking for FHIR resources. - 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 - - /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 default: The default value for tracking history across all resources. Possible values + include: "no-version", "versioned", "versioned-update". + :type default: str or ~azure.mgmt.healthcareapis.models.FhirResourceVersionPolicy + :param resource_type_overrides: A list of FHIR Resources and their version policy overrides. + :type resource_type_overrides: dict[str, str or + ~azure.mgmt.healthcareapis.models.FhirResourceVersionPolicy] """ - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, + 'default': {'key': 'default', 'type': 'str'}, + 'resource_type_overrides': {'key': 'resourceTypeOverrides', 'type': '{str}'}, } - def __init__(self, **kwargs) -> None: - super(ProxyResource, self).__init__(**kwargs) + def __init__( + self, + *, + default: Optional[Union[str, "FhirResourceVersionPolicy"]] = None, + resource_type_overrides: Optional[Dict[str, Union[str, "FhirResourceVersionPolicy"]]] = None, + **kwargs + ): + super(ResourceVersionPolicyConfiguration, self).__init__(**kwargs) + self.default = default + self.resource_type_overrides = resource_type_overrides -class ServiceAccessPolicyEntry(Model): +class ServiceAccessPolicyEntry(msrest.serialization.Model): """An access policy entry. All required parameters must be populated in order to send to Azure. - :param object_id: Required. An Azure AD object ID (User or Apps) 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 """ @@ -531,35 +1952,50 @@ class ServiceAccessPolicyEntry(Model): 'object_id': {'key': 'objectId', 'type': 'str'}, } - def __init__(self, *, object_id: str, **kwargs) -> None: + def __init__( + self, + *, + object_id: str, + **kwargs + ): super(ServiceAccessPolicyEntry, self).__init__(**kwargs) self.object_id = object_id -class ServiceAcrConfigurationInfo(Model): +class ServiceAcrConfigurationInfo(msrest.serialization.Model): """Azure container registry configuration information. :param login_servers: The list of the ACR login servers. :type login_servers: list[str] + :param oci_artifacts: The list of Open Container Initiative (OCI) artifacts. + :type oci_artifacts: list[~azure.mgmt.healthcareapis.models.ServiceOciArtifactEntry] """ _attribute_map = { 'login_servers': {'key': 'loginServers', 'type': '[str]'}, + 'oci_artifacts': {'key': 'ociArtifacts', 'type': '[ServiceOciArtifactEntry]'}, } - def __init__(self, *, login_servers=None, **kwargs) -> None: + def __init__( + self, + *, + login_servers: Optional[List[str]] = None, + oci_artifacts: Optional[List["ServiceOciArtifactEntry"]] = None, + **kwargs + ): super(ServiceAcrConfigurationInfo, self).__init__(**kwargs) self.login_servers = login_servers + self.oci_artifacts = oci_artifacts -class ServiceAuthenticationConfigurationInfo(Model): +class ServiceAuthenticationConfigurationInfo(msrest.serialization.Model): """Authentication configuration information. - :param authority: The authority url for the service + :param authority: The authority url for the service. :type authority: str - :param audience: The audience url for the service + :param audience: The audience url for the service. :type audience: str - :param smart_proxy_enabled: If the SMART on FHIR proxy is enabled + :param smart_proxy_enabled: If the SMART on FHIR proxy is enabled. :type smart_proxy_enabled: bool """ @@ -569,14 +2005,21 @@ class ServiceAuthenticationConfigurationInfo(Model): 'smart_proxy_enabled': {'key': 'smartProxyEnabled', 'type': 'bool'}, } - def __init__(self, *, authority: str=None, audience: str=None, smart_proxy_enabled: bool=None, **kwargs) -> None: + def __init__( + self, + *, + authority: Optional[str] = None, + audience: Optional[str] = None, + smart_proxy_enabled: Optional[bool] = None, + **kwargs + ): super(ServiceAuthenticationConfigurationInfo, self).__init__(**kwargs) self.authority = authority self.audience = audience self.smart_proxy_enabled = smart_proxy_enabled -class ServiceCorsConfigurationInfo(Model): +class ServiceCorsConfigurationInfo(msrest.serialization.Model): """The settings for the CORS configuration of the service instance. :param origins: The origins to be allowed via CORS. @@ -603,7 +2046,16 @@ class ServiceCorsConfigurationInfo(Model): 'allow_credentials': {'key': 'allowCredentials', 'type': 'bool'}, } - def __init__(self, *, origins=None, headers=None, methods=None, max_age: int=None, allow_credentials: bool=None, **kwargs) -> None: + def __init__( + self, + *, + origins: Optional[List[str]] = None, + headers: Optional[List[str]] = None, + methods: Optional[List[str]] = None, + max_age: Optional[int] = None, + allow_credentials: Optional[bool] = None, + **kwargs + ): super(ServiceCorsConfigurationInfo, self).__init__(**kwargs) self.origins = origins self.headers = headers @@ -612,14 +2064,12 @@ def __init__(self, *, origins=None, headers=None, methods=None, max_age: int=Non self.allow_credentials = allow_credentials -class ServiceCosmosDbConfigurationInfo(Model): +class ServiceCosmosDbConfigurationInfo(msrest.serialization.Model): """The settings for the Cosmos DB database backing the service. - :param offer_throughput: The provisioned throughput for the backing - database. + :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. + :param key_vault_key_uri: The URI of the customer-managed key for the backing database. :type key_vault_key_uri: str """ @@ -632,17 +2082,22 @@ class ServiceCosmosDbConfigurationInfo(Model): 'key_vault_key_uri': {'key': 'keyVaultKeyUri', 'type': 'str'}, } - def __init__(self, *, offer_throughput: int=None, key_vault_key_uri: str=None, **kwargs) -> None: + def __init__( + self, + *, + offer_throughput: Optional[int] = None, + key_vault_key_uri: Optional[str] = None, + **kwargs + ): super(ServiceCosmosDbConfigurationInfo, self).__init__(**kwargs) self.offer_throughput = offer_throughput self.key_vault_key_uri = key_vault_key_uri -class ServiceExportConfigurationInfo(Model): +class ServiceExportConfigurationInfo(msrest.serialization.Model): """Export operation configuration information. - :param storage_account_name: The name of the default export storage - account. + :param storage_account_name: The name of the default export storage account. :type storage_account_name: str """ @@ -650,16 +2105,103 @@ class ServiceExportConfigurationInfo(Model): 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, } - def __init__(self, *, storage_account_name: str=None, **kwargs) -> None: + def __init__( + self, + *, + storage_account_name: Optional[str] = None, + **kwargs + ): super(ServiceExportConfigurationInfo, self).__init__(**kwargs) self.storage_account_name = storage_account_name -class ServicesResource(Model): +class ServiceManagedIdentityautogenerated(msrest.serialization.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. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. Type of identity being specified, currently SystemAssigned and None are + allowed. Possible values include: "None", "SystemAssigned", "UserAssigned", + "SystemAssigned,UserAssigned". + :type type: str or ~azure.mgmt.healthcareapis.models.ServiceManagedIdentityType + :ivar principal_id: The service principal ID of the system assigned identity. This property + will only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of the system assigned identity. This property will only be + provided for a system assigned identity. + :vartype tenant_id: str + :param user_assigned_identities: The set of user assigned identities associated with the + resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + The dictionary values can be empty objects ({}) in requests. + :type user_assigned_identities: dict[str, + ~azure.mgmt.healthcareapis.models.UserAssignedIdentity] + """ + + _validation = { + 'type': {'required': True}, + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{UserAssignedIdentity}'}, + } + + def __init__( + self, + *, + type: Union[str, "ServiceManagedIdentityType"], + user_assigned_identities: Optional[Dict[str, "UserAssignedIdentity"]] = None, + **kwargs + ): + super(ServiceManagedIdentityautogenerated, self).__init__(**kwargs) + self.type = type + self.principal_id = None + self.tenant_id = None + self.user_assigned_identities = user_assigned_identities + + +class ServiceOciArtifactEntry(msrest.serialization.Model): + """An Open Container Initiative (OCI) artifact. + + :param login_server: The Azure Container Registry login server. + :type login_server: str + :param image_name: The artifact name. + :type image_name: str + :param digest: The artifact digest. + :type digest: str + """ + + _attribute_map = { + 'login_server': {'key': 'loginServer', 'type': 'str'}, + 'image_name': {'key': 'imageName', 'type': 'str'}, + 'digest': {'key': 'digest', 'type': 'str'}, + } + + def __init__( + self, + *, + login_server: Optional[str] = None, + image_name: Optional[str] = None, + digest: Optional[str] = None, + **kwargs + ): + super(ServiceOciArtifactEntry, self).__init__(**kwargs) + self.login_server = login_server + self.image_name = image_name + self.digest = digest + + +class ServicesResource(msrest.serialization.Model): """The common properties of a service. - Variables are only populated by the server, and will be ignored when - sending a request. + 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. @@ -669,18 +2211,18 @@ class ServicesResource(Model): :vartype name: str :ivar type: The resource type. :vartype type: str - :param kind: Required. The kind of the service. 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 - :param tags: The resource tags. + :param tags: A set of tags. The resource tags. :type tags: dict[str, str] - :param etag: An etag associated with the resource, used for optimistic - concurrency when editing it. + :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. + :param identity: Setting indicating whether the service has a managed identity associated with + it. :type identity: ~azure.mgmt.healthcareapis.models.ServicesResourceIdentity """ @@ -696,14 +2238,23 @@ class ServicesResource(Model): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'Kind'}, + 'kind': {'key': 'kind', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'etag': {'key': 'etag', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'ServicesResourceIdentity'}, } - def __init__(self, *, kind, location: str, tags=None, etag: str=None, identity=None, **kwargs) -> None: + def __init__( + self, + *, + kind: Union[str, "Kind"], + location: str, + tags: Optional[Dict[str, str]] = None, + etag: Optional[str] = None, + identity: Optional["ServicesResourceIdentity"] = None, + **kwargs + ): super(ServicesResource, self).__init__(**kwargs) self.id = None self.name = None @@ -718,8 +2269,7 @@ def __init__(self, *, kind, location: str, tags=None, etag: str=None, identity=N class ServicesDescription(ServicesResource): """The description of the service. - Variables are only populated by the server, and will be ignored when - sending a request. + 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. @@ -729,21 +2279,23 @@ class ServicesDescription(ServicesResource): :vartype name: str :ivar type: The resource type. :vartype type: str - :param kind: Required. The kind of the service. 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 - :param tags: The resource tags. + :param tags: A set of tags. The resource tags. :type tags: dict[str, str] - :param etag: An etag associated with the resource, used for optimistic - concurrency when editing it. + :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. + :param identity: Setting indicating whether the service has a managed identity associated with + it. :type identity: ~azure.mgmt.healthcareapis.models.ServicesResourceIdentity :param properties: The common properties of a service. :type properties: ~azure.mgmt.healthcareapis.models.ServicesProperties + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.healthcareapis.models.SystemData """ _validation = { @@ -752,38 +2304,74 @@ class ServicesDescription(ServicesResource): 'type': {'readonly': True}, 'kind': {'required': True}, 'location': {'required': True}, + 'system_data': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'Kind'}, + 'kind': {'key': 'kind', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, '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: Union[str, "Kind"], + location: str, + tags: Optional[Dict[str, str]] = None, + etag: Optional[str] = None, + identity: Optional["ServicesResourceIdentity"] = None, + properties: Optional["ServicesProperties"] = None, + **kwargs + ): super(ServicesDescription, self).__init__(kind=kind, location=location, tags=tags, etag=etag, identity=identity, **kwargs) self.properties = properties + self.system_data = None + + +class ServicesDescriptionListResult(msrest.serialization.Model): + """A list of service description objects with a next link. + + :param next_link: The link used to get the next page of service description objects. + :type next_link: str + :param value: A list of service description objects. + :type value: list[~azure.mgmt.healthcareapis.models.ServicesDescription] + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ServicesDescription]'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + value: Optional[List["ServicesDescription"]] = None, + **kwargs + ): + super(ServicesDescriptionListResult, self).__init__(**kwargs) + self.next_link = next_link + self.value = value -class ServicesNameAvailabilityInfo(Model): +class ServicesNameAvailabilityInfo(msrest.serialization.Model): """The properties indicating whether a given service name is available. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :ivar name_available: The value which indicates whether the provided name - is available. + :ivar name_available: The value which indicates whether the provided name is available. :vartype name_available: bool - :ivar reason: The reason for unavailability. Possible values include: - 'Invalid', 'AlreadyExists' - :vartype reason: str or - ~azure.mgmt.healthcareapis.models.ServiceNameUnavailabilityReason + :ivar reason: The reason for unavailability. Possible values include: "Invalid", + "AlreadyExists". + :vartype reason: str or ~azure.mgmt.healthcareapis.models.ServiceNameUnavailabilityReason :param message: The detailed reason message. :type message: str """ @@ -795,27 +2383,30 @@ class ServicesNameAvailabilityInfo(Model): _attribute_map = { 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'ServiceNameUnavailabilityReason'}, + 'reason': {'key': 'reason', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, } - def __init__(self, *, message: str=None, **kwargs) -> None: + def __init__( + self, + *, + message: Optional[str] = None, + **kwargs + ): super(ServicesNameAvailabilityInfo, self).__init__(**kwargs) self.name_available = None self.reason = None self.message = message -class ServicesPatchDescription(Model): +class ServicesPatchDescription(msrest.serialization.Model): """The description of the service. - :param tags: Instance tags + :param tags: A set of tags. Instance tags. :type tags: dict[str, str] - :param public_network_access: Control permission for data plane traffic - coming from public networks while private endpoint is enabled. Possible - values include: 'Enabled', 'Disabled' - :type public_network_access: str or - ~azure.mgmt.healthcareapis.models.PublicNetworkAccess + :param public_network_access: Control permission for data plane traffic coming from public + networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.healthcareapis.models.PublicNetworkAccess """ _attribute_map = { @@ -823,55 +2414,75 @@ class ServicesPatchDescription(Model): 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, } - def __init__(self, *, tags=None, public_network_access=None, **kwargs) -> None: + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, + **kwargs + ): super(ServicesPatchDescription, self).__init__(**kwargs) self.tags = tags self.public_network_access = public_network_access -class ServicesProperties(Model): +class ServiceSpecification(msrest.serialization.Model): + """Service specification payload. + + :param log_specifications: Specifications of the Log for Azure Monitoring. + :type log_specifications: list[~azure.mgmt.healthcareapis.models.LogSpecification] + :param metric_specifications: Specifications of the Metrics for Azure Monitoring. + :type metric_specifications: list[~azure.mgmt.healthcareapis.models.MetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__( + self, + *, + log_specifications: Optional[List["LogSpecification"]] = None, + metric_specifications: Optional[List["MetricSpecification"]] = None, + **kwargs + ): + super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = log_specifications + self.metric_specifications = metric_specifications + + +class ServicesProperties(msrest.serialization.Model): """The properties of a service instance. - Variables are only populated by the server, and will be ignored when - sending a request. + Variables are only populated by the server, and will be ignored when sending a request. - :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 + :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", + "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", + "Deprovisioned", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState :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 - backing the service. + :type access_policies: list[~azure.mgmt.healthcareapis.models.ServiceAccessPolicyEntry] + :param cosmos_db_configuration: The settings for the Cosmos DB database backing the service. :type cosmos_db_configuration: ~azure.mgmt.healthcareapis.models.ServiceCosmosDbConfigurationInfo - :param authentication_configuration: The authentication configuration for - the service instance. + :param authentication_configuration: The authentication configuration for the service instance. :type authentication_configuration: ~azure.mgmt.healthcareapis.models.ServiceAuthenticationConfigurationInfo - :param cors_configuration: The settings for the CORS configuration of the - 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 - :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 - :param private_endpoint_connections: The list of private endpoint - connections that are set up for this resource. + :param cors_configuration: The settings for the CORS configuration of the 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 + :param private_endpoint_connections: The list of private endpoint connections that are set up + for this resource. :type private_endpoint_connections: list[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection] - :param public_network_access: Control permission for data plane traffic - coming from public networks while private endpoint is enabled. Possible - values include: 'Enabled', 'Disabled' - :type public_network_access: str or - ~azure.mgmt.healthcareapis.models.PublicNetworkAccess + :param public_network_access: Control permission for data plane traffic coming from public + networks while private endpoint is enabled. Possible 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 = { @@ -885,12 +2496,24 @@ class ServicesProperties(Model): 'authentication_configuration': {'key': 'authenticationConfiguration', 'type': 'ServiceAuthenticationConfigurationInfo'}, 'cors_configuration': {'key': 'corsConfiguration', 'type': 'ServiceCorsConfigurationInfo'}, 'export_configuration': {'key': 'exportConfiguration', 'type': 'ServiceExportConfigurationInfo'}, - 'acr_configuration': {'key': 'acrConfiguration', 'type': 'ServiceAcrConfigurationInfo'}, '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, acr_configuration=None, private_endpoint_connections=None, public_network_access=None, **kwargs) -> None: + def __init__( + self, + *, + access_policies: Optional[List["ServiceAccessPolicyEntry"]] = None, + cosmos_db_configuration: Optional["ServiceCosmosDbConfigurationInfo"] = None, + authentication_configuration: Optional["ServiceAuthenticationConfigurationInfo"] = None, + cors_configuration: Optional["ServiceCorsConfigurationInfo"] = None, + export_configuration: Optional["ServiceExportConfigurationInfo"] = None, + private_endpoint_connections: Optional[List["PrivateEndpointConnection"]] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, + acr_configuration: Optional["ServiceAcrConfigurationInfo"] = None, + **kwargs + ): super(ServicesProperties, self).__init__(**kwargs) self.provisioning_state = None self.access_policies = access_policies @@ -898,26 +2521,23 @@ def __init__(self, *, access_policies=None, cosmos_db_configuration=None, authen self.authentication_configuration = authentication_configuration self.cors_configuration = cors_configuration self.export_configuration = export_configuration - self.acr_configuration = acr_configuration self.private_endpoint_connections = private_endpoint_connections self.public_network_access = public_network_access + self.acr_configuration = acr_configuration -class ServicesResourceIdentity(Model): - """Setting indicating whether the service has a managed identity associated - with it. +class ServicesResourceIdentity(msrest.serialization.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. + 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 + :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 = { @@ -931,54 +2551,234 @@ class ServicesResourceIdentity(Model): 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, *, type=None, **kwargs) -> None: + def __init__( + self, + *, + type: Optional[Union[str, "ManagedServiceIdentityType"]] = None, + **kwargs + ): super(ServicesResourceIdentity, self).__init__(**kwargs) self.principal_id = None self.tenant_id = None self.type = type -class TrackedResource(Resource): - """Tracked Resource. +class SystemData(msrest.serialization.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.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.datetime + """ - The resource model definition for an Azure Resource Manager tracked top - level resource which has 'tags' and a 'location'. + _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'}, + } - Variables are only populated by the server, and will be ignored when - sending a request. + def __init__( + self, + *, + created_by: Optional[str] = None, + created_by_type: Optional[Union[str, "CreatedByType"]] = None, + created_at: Optional[datetime.datetime] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[Union[str, "CreatedByType"]] = None, + last_modified_at: Optional[datetime.datetime] = None, + **kwargs + ): + 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 UserAssignedIdentity(msrest.serialization.Model): + """User assigned identity properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The principal ID of the assigned identity. + :vartype principal_id: str + :ivar client_id: The client ID of the assigned identity. + :vartype client_id: str + """ - All required parameters must be populated in order to send to Azure. + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(UserAssignedIdentity, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None + + +class Workspace(TaggedResource): + """Workspace resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource identifier. :vartype id: str - :ivar name: The name of the resource + :ivar name: The resource name. :vartype name: str - :ivar type: The type of the resource. E.g. - "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :ivar type: The resource type. :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives + :param etag: An etag associated with the resource, used for optimistic concurrency when editing + it. + :type etag: str + :param location: The resource location. :type location: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param properties: Workspaces resource specific properties. + :type properties: ~azure.mgmt.healthcareapis.models.WorkspaceProperties + :ivar system_data: Metadata pertaining to creation and last modification of the resource. + :vartype system_data: ~azure.mgmt.healthcareapis.models.SystemData """ _validation = { 'id': {'readonly': True}, - 'name': {'readonly': True}, + 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, 'type': {'readonly': True}, - 'location': {'required': True}, + 'system_data': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'WorkspaceProperties'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, } - def __init__(self, *, location: str, tags=None, **kwargs) -> None: - super(TrackedResource, self).__init__(**kwargs) - self.tags = tags - self.location = location + def __init__( + self, + *, + etag: Optional[str] = None, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + properties: Optional["WorkspaceProperties"] = None, + **kwargs + ): + super(Workspace, self).__init__(etag=etag, location=location, tags=tags, **kwargs) + self.properties = properties + self.system_data = None + + +class WorkspaceList(msrest.serialization.Model): + """Collection of workspace object with a next link. + + :param next_link: The link used to get the next page. + :type next_link: str + :param value: Collection of resources. + :type value: list[~azure.mgmt.healthcareapis.models.Workspace] + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Workspace]'}, + } + + def __init__( + self, + *, + next_link: Optional[str] = None, + value: Optional[List["Workspace"]] = None, + **kwargs + ): + super(WorkspaceList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class WorkspacePatchResource(ResourceTags): + """Workspace patch properties. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(WorkspacePatchResource, self).__init__(tags=tags, **kwargs) + + +class WorkspaceProperties(msrest.serialization.Model): + """Workspaces resource specific properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", + "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", + "Deprovisioned", "Moving", "Suspended", "Warned", "SystemMaintenance". + :vartype provisioning_state: str or ~azure.mgmt.healthcareapis.models.ProvisioningState + :ivar private_endpoint_connections: The list of private endpoint connections that are set up + for this resource. + :vartype private_endpoint_connections: + list[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection] + :param public_network_access: Control permission for data plane traffic coming from public + networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.healthcareapis.models.PublicNetworkAccess + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + } + + def __init__( + self, + *, + public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, + **kwargs + ): + super(WorkspaceProperties, self).__init__(**kwargs) + self.provisioning_state = None + self.private_endpoint_connections = None + self.public_network_access = public_network_access diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_paged_models.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_paged_models.py deleted file mode 100644 index d5962601e97..00000000000 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/models/_paged_models.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ServicesDescriptionPaged(Paged): - """ - A paging container for iterating over a list of :class:`ServicesDescription ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ServicesDescription]'} - } - - def __init__(self, *args, **kwargs): - - super(ServicesDescriptionPaged, self).__init__(*args, **kwargs) -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) -class PrivateEndpointConnectionPaged(Paged): - """ - A paging container for iterating over a list of :class:`PrivateEndpointConnection ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[PrivateEndpointConnection]'} - } - - def __init__(self, *args, **kwargs): - - super(PrivateEndpointConnectionPaged, self).__init__(*args, **kwargs) diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/__init__.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/__init__.py index 8d0eb723291..baf70b0f274 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/__init__.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/__init__.py @@ -1,24 +1,37 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- 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 ._workspace_private_endpoint_connections_operations import WorkspacePrivateEndpointConnectionsOperations +from ._workspace_private_link_resources_operations import WorkspacePrivateLinkResourcesOperations +from ._operations import Operations +from ._operation_results_operations import OperationResultsOperations __all__ = [ 'ServicesOperations', - 'Operations', - 'OperationResultsOperations', 'PrivateEndpointConnectionsOperations', 'PrivateLinkResourcesOperations', + 'WorkspacesOperations', + 'DicomServicesOperations', + 'IotConnectorsOperations', + 'FhirDestinationsOperations', + 'IotConnectorFhirDestinationOperations', + 'FhirServicesOperations', + 'WorkspacePrivateEndpointConnectionsOperations', + 'WorkspacePrivateLinkResourcesOperations', + 'Operations', + 'OperationResultsOperations', ] diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_dicom_services_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_dicom_services_operations.py new file mode 100644 index 00000000000..6ed547a0c40 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_dicom_services_operations.py @@ -0,0 +1,585 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class DicomServicesOperations(object): + """DicomServicesOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_workspace( + self, + resource_group_name, # type: str + workspace_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["models.DicomServiceCollection"] + """Lists all DICOM Services for the given workspace. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either DicomServiceCollection or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.healthcareapis.models.DicomServiceCollection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.DicomServiceCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_workspace.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('DicomServiceCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_workspace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices'} # type: ignore + + def get( + self, + resource_group_name, # type: str + workspace_name, # type: str + dicom_service_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.DicomService" + """Gets the properties of the specified DICOM Service. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param dicom_service_name: The name of DICOM Service resource. + :type dicom_service_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DicomService, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.DicomService + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.DicomService"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'dicomServiceName': self._serialize.url("dicom_service_name", dicom_service_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('DicomService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}'} # type: ignore + + def _create_or_update_initial( + self, + resource_group_name, # type: str + workspace_name, # type: str + dicom_service_name, # type: str + dicomservice, # type: "models.DicomService" + **kwargs # type: Any + ): + # type: (...) -> "models.DicomService" + cls = kwargs.pop('cls', None) # type: ClsType["models.DicomService"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'dicomServiceName': self._serialize.url("dicom_service_name", dicom_service_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(dicomservice, 'DicomService') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('DicomService', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('DicomService', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('DicomService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + workspace_name, # type: str + dicom_service_name, # type: str + dicomservice, # type: "models.DicomService" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["models.DicomService"] + """Creates or updates a DICOM Service resource with the specified parameters. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param dicom_service_name: The name of DICOM Service resource. + :type dicom_service_name: str + :param dicomservice: The parameters for creating or updating a Dicom Service resource. + :type dicomservice: ~azure.mgmt.healthcareapis.models.DicomService + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either DicomService or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.healthcareapis.models.DicomService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.DicomService"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + dicom_service_name=dicom_service_name, + dicomservice=dicomservice, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('DicomService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'dicomServiceName': self._serialize.url("dicom_service_name", dicom_service_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + dicom_service_name, # type: str + workspace_name, # type: str + dicomservice_patch_resource, # type: "models.DicomServicePatchResource" + **kwargs # type: Any + ): + # type: (...) -> "models.DicomService" + cls = kwargs.pop('cls', None) # type: ClsType["models.DicomService"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'dicomServiceName': self._serialize.url("dicom_service_name", dicom_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(dicomservice_patch_resource, 'DicomServicePatchResource') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('DicomService', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('DicomService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + dicom_service_name, # type: str + workspace_name, # type: str + dicomservice_patch_resource, # type: "models.DicomServicePatchResource" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["models.DicomService"] + """Patch DICOM Service details. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param dicom_service_name: The name of DICOM Service resource. + :type dicom_service_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param dicomservice_patch_resource: The parameters for updating a Dicom Service. + :type dicomservice_patch_resource: ~azure.mgmt.healthcareapis.models.DicomServicePatchResource + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either DicomService or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.healthcareapis.models.DicomService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.DicomService"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + dicom_service_name=dicom_service_name, + workspace_name=workspace_name, + dicomservice_patch_resource=dicomservice_patch_resource, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('DicomService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'dicomServiceName': self._serialize.url("dicom_service_name", dicom_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + dicom_service_name, # type: str + workspace_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'dicomServiceName': self._serialize.url("dicom_service_name", dicom_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.Error, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + dicom_service_name, # type: str + workspace_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes a DICOM Service. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param dicom_service_name: The name of DICOM Service resource. + :type dicom_service_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + dicom_service_name=dicom_service_name, + workspace_name=workspace_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'dicomServiceName': self._serialize.url("dicom_service_name", dicom_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/dicomservices/{dicomServiceName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_operation_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_fhir_destinations_operations.py similarity index 63% rename from src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_operation_operations.py rename to src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_fhir_destinations_operations.py index bcd2560b917..feb9be91ff4 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_operation_operations.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_fhir_destinations_operations.py @@ -23,15 +23,14 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class OperationOperations(object): - """OperationOperations operations. +class FhirDestinationsOperations(object): + """FhirDestinationsOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~healthcare_apis_management_client.models + :type models: ~azure.mgmt.healthcareapis.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -46,24 +45,33 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config - def list( + def list_by_iot_connector( self, + resource_group_name, # type: str + workspace_name, # type: str + iot_connector_name, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.OperationListResult"] - """Lists all of the available Healthcare service REST API operations. - + # type: (...) -> Iterable["models.IotFhirDestinationCollection"] + """Lists all FHIR destinations for the given IoT Connector. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either OperationListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~healthcare_apis_management_client.models.OperationListResult] + :return: An iterator like instance of either IotFhirDestinationCollection or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.healthcareapis.models.IotFhirDestinationCollection] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["models.IotFhirDestinationCollection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" def prepare_request(next_link=None): @@ -73,7 +81,14 @@ def prepare_request(next_link=None): if not next_link: # Construct URL - url = self.list.metadata['url'] # type: ignore + url = self.list_by_iot_connector.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -86,7 +101,7 @@ def prepare_request(next_link=None): return request def extract_data(pipeline_response): - deserialized = self._deserialize('OperationListResult', pipeline_response) + deserialized = self._deserialize('IotFhirDestinationCollection', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -108,4 +123,4 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list.metadata = {'url': '/providers/Microsoft.HealthcareApis/operations'} # type: ignore + list_by_iot_connector.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_fhir_services_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_fhir_services_operations.py new file mode 100644 index 00000000000..59b1496b510 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_fhir_services_operations.py @@ -0,0 +1,585 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class FhirServicesOperations(object): + """FhirServicesOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_workspace( + self, + resource_group_name, # type: str + workspace_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["models.FhirServiceCollection"] + """Lists all FHIR Services for the given workspace. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either FhirServiceCollection or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.healthcareapis.models.FhirServiceCollection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.FhirServiceCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_workspace.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('FhirServiceCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_workspace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices'} # type: ignore + + def get( + self, + resource_group_name, # type: str + workspace_name, # type: str + fhir_service_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.FhirService" + """Gets the properties of the specified FHIR Service. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param fhir_service_name: The name of FHIR Service resource. + :type fhir_service_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: FhirService, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.FhirService + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.FhirService"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'fhirServiceName': self._serialize.url("fhir_service_name", fhir_service_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('FhirService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}'} # type: ignore + + def _create_or_update_initial( + self, + resource_group_name, # type: str + workspace_name, # type: str + fhir_service_name, # type: str + fhirservice, # type: "models.FhirService" + **kwargs # type: Any + ): + # type: (...) -> "models.FhirService" + cls = kwargs.pop('cls', None) # type: ClsType["models.FhirService"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'fhirServiceName': self._serialize.url("fhir_service_name", fhir_service_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(fhirservice, 'FhirService') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('FhirService', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('FhirService', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('FhirService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + workspace_name, # type: str + fhir_service_name, # type: str + fhirservice, # type: "models.FhirService" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["models.FhirService"] + """Creates or updates a FHIR Service resource with the specified parameters. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param fhir_service_name: The name of FHIR Service resource. + :type fhir_service_name: str + :param fhirservice: The parameters for creating or updating a Fhir Service resource. + :type fhirservice: ~azure.mgmt.healthcareapis.models.FhirService + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either FhirService or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.healthcareapis.models.FhirService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.FhirService"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + fhir_service_name=fhir_service_name, + fhirservice=fhirservice, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('FhirService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'fhirServiceName': self._serialize.url("fhir_service_name", fhir_service_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + fhir_service_name, # type: str + workspace_name, # type: str + fhirservice_patch_resource, # type: "models.FhirServicePatchResource" + **kwargs # type: Any + ): + # type: (...) -> "models.FhirService" + cls = kwargs.pop('cls', None) # type: ClsType["models.FhirService"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'fhirServiceName': self._serialize.url("fhir_service_name", fhir_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(fhirservice_patch_resource, 'FhirServicePatchResource') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('FhirService', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('FhirService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + fhir_service_name, # type: str + workspace_name, # type: str + fhirservice_patch_resource, # type: "models.FhirServicePatchResource" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["models.FhirService"] + """Patch FHIR Service details. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param fhir_service_name: The name of FHIR Service resource. + :type fhir_service_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param fhirservice_patch_resource: The parameters for updating a Fhir Service. + :type fhirservice_patch_resource: ~azure.mgmt.healthcareapis.models.FhirServicePatchResource + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either FhirService or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.healthcareapis.models.FhirService] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.FhirService"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + fhir_service_name=fhir_service_name, + workspace_name=workspace_name, + fhirservice_patch_resource=fhirservice_patch_resource, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('FhirService', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'fhirServiceName': self._serialize.url("fhir_service_name", fhir_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + fhir_service_name, # type: str + workspace_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'fhirServiceName': self._serialize.url("fhir_service_name", fhir_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.Error, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + fhir_service_name, # type: str + workspace_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes a FHIR Service. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param fhir_service_name: The name of FHIR Service resource. + :type fhir_service_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + fhir_service_name=fhir_service_name, + workspace_name=workspace_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'fhirServiceName': self._serialize.url("fhir_service_name", fhir_service_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/fhirservices/{fhirServiceName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_iot_connector_fhir_destination_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_iot_connector_fhir_destination_operations.py new file mode 100644 index 00000000000..60655081e44 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_iot_connector_fhir_destination_operations.py @@ -0,0 +1,389 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IotConnectorFhirDestinationOperations(object): + """IotConnectorFhirDestinationOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + resource_group_name, # type: str + workspace_name, # type: str + iot_connector_name, # type: str + fhir_destination_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.IotFhirDestination" + """Gets the properties of the specified Iot Connector FHIR destination. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :param fhir_destination_name: The name of IoT Connector FHIR destination resource. + :type fhir_destination_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IotFhirDestination, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.IotFhirDestination + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.IotFhirDestination"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'fhirDestinationName': self._serialize.url("fhir_destination_name", fhir_destination_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('IotFhirDestination', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}'} # type: ignore + + def _create_or_update_initial( + self, + resource_group_name, # type: str + workspace_name, # type: str + iot_connector_name, # type: str + fhir_destination_name, # type: str + iot_fhir_destination, # type: "models.IotFhirDestination" + **kwargs # type: Any + ): + # type: (...) -> "models.IotFhirDestination" + cls = kwargs.pop('cls', None) # type: ClsType["models.IotFhirDestination"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'fhirDestinationName': self._serialize.url("fhir_destination_name", fhir_destination_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(iot_fhir_destination, 'IotFhirDestination') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('IotFhirDestination', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IotFhirDestination', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('IotFhirDestination', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + workspace_name, # type: str + iot_connector_name, # type: str + fhir_destination_name, # type: str + iot_fhir_destination, # type: "models.IotFhirDestination" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["models.IotFhirDestination"] + """Creates or updates an IoT Connector FHIR destination resource with the specified parameters. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :param fhir_destination_name: The name of IoT Connector FHIR destination resource. + :type fhir_destination_name: str + :param iot_fhir_destination: The parameters for creating or updating an IoT Connector FHIR + destination resource. + :type iot_fhir_destination: ~azure.mgmt.healthcareapis.models.IotFhirDestination + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either IotFhirDestination or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.healthcareapis.models.IotFhirDestination] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.IotFhirDestination"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + iot_connector_name=iot_connector_name, + fhir_destination_name=fhir_destination_name, + iot_fhir_destination=iot_fhir_destination, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('IotFhirDestination', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'fhirDestinationName': self._serialize.url("fhir_destination_name", fhir_destination_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + workspace_name, # type: str + iot_connector_name, # type: str + fhir_destination_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'fhirDestinationName': self._serialize.url("fhir_destination_name", fhir_destination_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.Error, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + workspace_name, # type: str + iot_connector_name, # type: str + fhir_destination_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes an IoT Connector FHIR destination. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :param fhir_destination_name: The name of IoT Connector FHIR destination resource. + :type fhir_destination_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + iot_connector_name=iot_connector_name, + fhir_destination_name=fhir_destination_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'fhirDestinationName': self._serialize.url("fhir_destination_name", fhir_destination_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}/fhirdestinations/{fhirDestinationName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_iot_connectors_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_iot_connectors_operations.py new file mode 100644 index 00000000000..898d244f903 --- /dev/null +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_iot_connectors_operations.py @@ -0,0 +1,585 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class IotConnectorsOperations(object): + """IotConnectorsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_workspace( + self, + resource_group_name, # type: str + workspace_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["models.IotConnectorCollection"] + """Lists all IoT Connectors for the given workspace. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either IotConnectorCollection or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.healthcareapis.models.IotConnectorCollection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.IotConnectorCollection"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_workspace.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('IotConnectorCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_workspace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors'} # type: ignore + + def get( + self, + resource_group_name, # type: str + workspace_name, # type: str + iot_connector_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.IotConnector" + """Gets the properties of the specified IoT Connector. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: IotConnector, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.IotConnector + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.IotConnector"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('IotConnector', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}'} # type: ignore + + def _create_or_update_initial( + self, + resource_group_name, # type: str + workspace_name, # type: str + iot_connector_name, # type: str + iot_connector, # type: "models.IotConnector" + **kwargs # type: Any + ): + # type: (...) -> "models.IotConnector" + cls = kwargs.pop('cls', None) # type: ClsType["models.IotConnector"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_or_update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(iot_connector, 'IotConnector') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('IotConnector', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('IotConnector', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('IotConnector', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + workspace_name, # type: str + iot_connector_name, # type: str + iot_connector, # type: "models.IotConnector" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["models.IotConnector"] + """Creates or updates an IoT Connector resource with the specified parameters. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :param iot_connector: The parameters for creating or updating an IoT Connectors resource. + :type iot_connector: ~azure.mgmt.healthcareapis.models.IotConnector + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either IotConnector or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.healthcareapis.models.IotConnector] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.IotConnector"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + workspace_name=workspace_name, + iot_connector_name=iot_connector_name, + iot_connector=iot_connector, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('IotConnector', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + iot_connector_name, # type: str + workspace_name, # type: str + iot_connector_patch_resource, # type: "models.IotConnectorPatchResource" + **kwargs # type: Any + ): + # type: (...) -> "models.IotConnector" + cls = kwargs.pop('cls', None) # type: ClsType["models.IotConnector"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(iot_connector_patch_resource, 'IotConnectorPatchResource') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('IotConnector', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('IotConnector', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + iot_connector_name, # type: str + workspace_name, # type: str + iot_connector_patch_resource, # type: "models.IotConnectorPatchResource" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["models.IotConnector"] + """Patch an IoT Connector. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param iot_connector_patch_resource: The parameters for updating an IoT Connector. + :type iot_connector_patch_resource: ~azure.mgmt.healthcareapis.models.IotConnectorPatchResource + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either IotConnector or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.healthcareapis.models.IotConnector] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.IotConnector"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + iot_connector_name=iot_connector_name, + workspace_name=workspace_name, + iot_connector_patch_resource=iot_connector_patch_resource, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('IotConnector', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + iot_connector_name, # type: str + workspace_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.Error, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + iot_connector_name, # type: str + workspace_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes an IoT Connector. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :param iot_connector_name: The name of IoT Connector resource. + :type iot_connector_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + iot_connector_name=iot_connector_name, + workspace_name=workspace_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'iotConnectorName': self._serialize.url("iot_connector_name", iot_connector_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/iotconnectors/{iotConnectorName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_operation_results_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_operation_results_operations.py index d5634ea9368..cfabb1889d4 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_operation_results_operations.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_operation_results_operations.py @@ -1,100 +1,105 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat from .. import models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class OperationResultsOperations(object): """OperationResultsOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models :param client: Client for service requests. :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". """ models = models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-03-30" - - self.config = config + self._config = config def get( - self, location_name, operation_result_id, custom_headers=None, raw=False, **operation_config): + self, + location_name, # type: str + operation_result_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.OperationResultsDescription" """Get the operation result for a long running operation. :param location_name: The location of the operation. :type location_name: str :param operation_result_id: The ID of the operation result to get. :type operation_result_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: object or ClientRawResponse if raw=true - :rtype: object or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorDetailsException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OperationResultsDescription, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.OperationResultsDescription + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResultsDescription"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + # Construct URL - url = self.get.metadata['url'] + url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'locationName': self._serialize.url("location_name", location_name, 'str'), - 'operationResultId': self._serialize.url("operation_result_id", operation_result_id, 'str') + 'operationResultId': self._serialize.url("operation_result_id", operation_result_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response - if response.status_code not in [200, 404]: - raise models.ErrorDetailsException(self._deserialize, response) + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('OperationResultsDescription', response) - if response.status_code == 404: - deserialized = self._deserialize('ErrorDetails', response) + deserialized = self._deserialize('OperationResultsDescription', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/locations/{locationName}/operationresults/{operationResultId}'} + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/locations/{locationName}/operationresults/{operationResultId}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_operations.py index d5a6c91f93e..ff958c2ef26 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_operations.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_operations.py @@ -1,100 +1,110 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat from .. import models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class Operations(object): """Operations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models :param client: Client for service requests. :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". """ models = models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-03-30" - - self.config = config + self._config = config def list( - self, custom_headers=None, raw=False, **operation_config): - """Lists all of the available Healthcare service REST API operations. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of Operation - :rtype: - ~azure.mgmt.healthcareapis.models.OperationPaged[~azure.mgmt.healthcareapis.models.Operation] - :raises: - :class:`ErrorDetailsException` + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["models.ListOperations"] + """Lists all of the available operations supported by Microsoft Healthcare resource provider. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ListOperations or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.healthcareapis.models.ListOperations] + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["models.ListOperations"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + if not next_link: # Construct URL - url = self.list.metadata['url'] - + url = self.list.metadata['url'] # type: ignore # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) return request - def internal_paging(next_link=None): + def extract_data(pipeline_response): + deserialized = self._deserialize('ListOperations', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): request = prepare_request(next_link) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) - - return response + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return pipeline_response - return deserialized - list.metadata = {'url': '/providers/Microsoft.HealthcareApis/operations'} + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/providers/Microsoft.HealthcareApis/operations'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_private_endpoint_connections_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_private_endpoint_connections_operations.py index e813e4d8888..ca28fddc8db 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_private_endpoint_connections_operations.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_private_endpoint_connections_operations.py @@ -1,371 +1,443 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class PrivateEndpointConnectionsOperations(object): """PrivateEndpointConnectionsOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models :param client: Client for service requests. :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". """ models = models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-03-30" - - self.config = config + self._config = config def list_by_service( - self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + resource_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["models.PrivateEndpointConnectionListResultDescription"] """Lists all private endpoint connections for a service. - :param resource_group_name: The name of the resource group that - contains the service instance. + :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str :param resource_name: The name of the service instance. :type resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of PrivateEndpointConnection - :rtype: - ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionPaged[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection] - :raises: - :class:`ErrorDetailsException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either PrivateEndpointConnectionListResultDescription or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionListResultDescription] + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionListResultDescription"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + if not next_link: # Construct URL - url = self.list_by_service.metadata['url'] + url = self.list_by_service.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3) + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), } url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) return request - def internal_paging(next_link=None): + def extract_data(pipeline_response): + deserialized = self._deserialize('PrivateEndpointConnectionListResultDescription', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, iter(list_of_elem) + + def get_next(next_link=None): request = prepare_request(next_link) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - return response + return pipeline_response - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.PrivateEndpointConnectionPaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list_by_service.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections'} + return ItemPaged( + get_next, extract_data + ) + list_by_service.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections'} # type: ignore def get( - self, resource_group_name, resource_name, private_endpoint_connection_name, custom_headers=None, raw=False, **operation_config): - """Gets the specified private endpoint connection associated with the - service. - - :param resource_group_name: The name of the resource group that - contains the service instance. + self, + resource_group_name, # type: str + resource_name, # type: str + private_endpoint_connection_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.PrivateEndpointConnectionDescription" + """Gets the specified private endpoint connection associated with the service. + + :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str :param resource_name: The name of the service instance. :type resource_name: str - :param private_endpoint_connection_name: The name of the private - endpoint connection associated with the Azure resource + :param private_endpoint_connection_name: The name of the private endpoint connection associated + with the Azure resource. :type private_endpoint_connection_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - 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 - :raises: - :class:`ErrorDetailsException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: PrivateEndpointConnectionDescription, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionDescription"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + # Construct URL - url = self.get.metadata['url'] + url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), - 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str') + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('PrivateEndpointConnection', response) + deserialized = self._deserialize('PrivateEndpointConnectionDescription', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} - + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore def _create_or_update_initial( - self, resource_group_name, resource_name, private_endpoint_connection_name, properties, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + resource_name, # type: str + private_endpoint_connection_name, # type: str + properties, # type: "models.PrivateEndpointConnection" + **kwargs # type: Any + ): + # type: (...) -> "models.PrivateEndpointConnectionDescription" + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionDescription"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + # Construct URL - url = self.create_or_update.metadata['url'] + url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), - 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str') + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(properties, 'PrivateEndpointConnection') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(properties, 'PrivateEndpointConnection') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) - - deserialized = None + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if response.status_code == 200: - deserialized = self._deserialize('PrivateEndpointConnection', response) + deserialized = self._deserialize('PrivateEndpointConnectionDescription', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - - def create_or_update( - self, resource_group_name, resource_name, private_endpoint_connection_name, properties, custom_headers=None, raw=False, polling=True, **operation_config): - """Update the state of the specified private endpoint connection - associated with the service. - - :param resource_group_name: The name of the resource group that - contains the service instance. + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + resource_name, # type: str + private_endpoint_connection_name, # type: str + properties, # type: "models.PrivateEndpointConnection" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["models.PrivateEndpointConnectionDescription"] + """Update the state of the specified private endpoint connection associated with the service. + + :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str :param resource_name: The name of the service instance. :type resource_name: str - :param private_endpoint_connection_name: The name of the private - endpoint connection associated with the Azure resource + :param private_endpoint_connection_name: The name of the private endpoint connection associated + with the Azure resource. :type private_endpoint_connection_name: str :param properties: The private endpoint connection properties. - :type properties: - ~azure.mgmt.healthcareapis.models.PrivateEndpointConnection - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :type properties: ~azure.mgmt.healthcareapis.models.PrivateEndpointConnection + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword 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 - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.healthcareapis.models.PrivateEndpointConnection]] - :raises: - :class:`ErrorDetailsException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either PrivateEndpointConnectionDescription or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - resource_name=resource_name, - private_endpoint_connection_name=private_endpoint_connection_name, - properties=properties, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionDescription"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) - - def get_long_running_output(response): - deserialized = self._deserialize('PrivateEndpointConnection', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + private_endpoint_connection_name=private_endpoint_connection_name, + properties=properties, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('PrivateEndpointConnectionDescription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} - + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore def _delete_initial( - self, resource_group_name, resource_name, private_endpoint_connection_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + resource_name, # type: str + private_endpoint_connection_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + # Construct URL - url = self.delete.metadata['url'] + url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), - 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str') + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 202, 204]: - raise models.ErrorDetailsException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, resource_name, private_endpoint_connection_name, custom_headers=None, raw=False, polling=True, **operation_config): + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + resource_name, # type: str + private_endpoint_connection_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] """Deletes a private endpoint connection. - :param resource_group_name: The name of the resource group that - contains the service instance. + :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str :param resource_name: The name of the service instance. :type resource_name: str - :param private_endpoint_connection_name: The name of the private - endpoint connection associated with the Azure resource + :param private_endpoint_connection_name: The name of the private endpoint connection associated + with the Azure resource. :type private_endpoint_connection_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorDetailsException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - resource_name=resource_name, - private_endpoint_connection_name=private_endpoint_connection_name, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + private_endpoint_connection_name=private_endpoint_connection_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_private_link_resources_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_private_link_resources_operations.py index 731407758a0..cbd4258e0e2 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_private_link_resources_operations.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_private_link_resources_operations.py @@ -1,166 +1,169 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat from .. import models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class PrivateLinkResourcesOperations(object): """PrivateLinkResourcesOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models :param client: Client for service requests. :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". """ models = models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-03-30" - - self.config = config + self._config = config def list_by_service( - self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + resource_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.PrivateLinkResourceListResultDescription" """Gets the private link resources that need to be created for a service. - :param resource_group_name: The name of the resource group that - contains the service instance. + :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str :param resource_name: The name of the service instance. :type resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: PrivateLinkResourceListResult or ClientRawResponse if - raw=true - :rtype: - ~azure.mgmt.healthcareapis.models.PrivateLinkResourceListResult or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorDetailsException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: PrivateLinkResourceListResultDescription, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.PrivateLinkResourceListResultDescription + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceListResultDescription"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + # Construct URL - url = self.list_by_service.metadata['url'] + url = self.list_by_service.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3) + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('PrivateLinkResourceListResult', response) + deserialized = self._deserialize('PrivateLinkResourceListResultDescription', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - list_by_service.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources'} + list_by_service.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources'} # type: ignore def get( - self, resource_group_name, resource_name, group_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + resource_name, # type: str + group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.PrivateLinkResourceDescription" """Gets a private link resource that need to be created for a service. - :param resource_group_name: The name of the resource group that - contains the service instance. + :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str :param resource_name: The name of the service instance. :type resource_name: str :param group_name: The name of the private link resource group. :type group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: PrivateLinkResource or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.healthcareapis.models.PrivateLinkResource or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorDetailsException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: PrivateLinkResourceDescription, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.PrivateLinkResourceDescription + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceDescription"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + # Construct URL - url = self.get.metadata['url'] + url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), - 'groupName': self._serialize.url("group_name", group_name, 'str') + 'groupName': self._serialize.url("group_name", group_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('PrivateLinkResource', response) + deserialized = self._deserialize('PrivateLinkResourceDescription', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}'} + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_service_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_service_operations.py deleted file mode 100644 index 1939600079a..00000000000 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_service_operations.py +++ /dev/null @@ -1,591 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling - -from .. import models - - -class ServicesOperations(object): - """ServicesOperations operations. - - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. - - :param client: Client for service requests. - :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". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2020-03-30" - - self.config = config - - def get( - self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): - """Get the metadata of a service instance. - - :param resource_group_name: The name of the resource group that - contains the service instance. - :type resource_group_name: str - :param resource_name: The name of the service instance. - :type resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ServicesDescription or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.healthcareapis.models.ServicesDescription or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorDetailsException` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ServicesDescription', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} - - - def _create_or_update_initial( - self, resource_group_name, resource_name, service_description, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.create_or_update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(service_description, 'ServicesDescription') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorDetailsException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServicesDescription', response) - if response.status_code == 201: - deserialized = self._deserialize('ServicesDescription', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, resource_name, service_description, custom_headers=None, raw=False, polling=True, **operation_config): - """Create or update the metadata of a service instance. - - :param resource_group_name: The name of the resource group that - contains the service instance. - :type resource_group_name: str - :param resource_name: The name of the service instance. - :type resource_name: str - :param service_description: The service instance metadata. - :type service_description: - ~azure.mgmt.healthcareapis.models.ServicesDescription - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns ServicesDescription or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.healthcareapis.models.ServicesDescription] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.healthcareapis.models.ServicesDescription]] - :raises: - :class:`ErrorDetailsException` - """ - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - resource_name=resource_name, - service_description=service_description, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('ServicesDescription', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} - - - def _update_initial( - self, resource_group_name, resource_name, tags=None, public_network_access=None, custom_headers=None, raw=False, **operation_config): - service_patch_description = models.ServicesPatchDescription(tags=tags, public_network_access=public_network_access) - - # Construct URL - url = self.update.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(service_patch_description, 'ServicesPatchDescription') - - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServicesDescription', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def update( - self, resource_group_name, resource_name, tags=None, public_network_access=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Update the metadata of a service instance. - - :param resource_group_name: The name of the resource group that - contains the service instance. - :type resource_group_name: str - :param resource_name: The name of the service instance. - :type resource_name: str - :param tags: Instance tags - :type tags: dict[str, str] - :param public_network_access: Control permission for data plane - traffic coming from public networks while private endpoint is enabled. - Possible values include: 'Enabled', 'Disabled' - :type public_network_access: str or - ~azure.mgmt.healthcareapis.models.PublicNetworkAccess - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns ServicesDescription or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.healthcareapis.models.ServicesDescription] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.healthcareapis.models.ServicesDescription]] - :raises: - :class:`ErrorDetailsException` - """ - raw_result = self._update_initial( - resource_group_name=resource_group_name, - resource_name=resource_name, - tags=tags, - public_network_access=public_network_access, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('ServicesDescription', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} - - - def _delete_initial( - self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): - # Construct URL - url = self.delete.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [202, 204]: - raise models.ErrorDetailsException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, resource_name, custom_headers=None, raw=False, polling=True, **operation_config): - """Delete a service instance. - - :param resource_group_name: The name of the resource group that - contains the service instance. - :type resource_group_name: str - :param resource_name: The name of the service instance. - :type resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorDetailsException` - """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - resource_name=resource_name, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Get all the service instances in a subscription. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ServicesDescription - :rtype: - ~azure.mgmt.healthcareapis.models.ServicesDescriptionPaged[~azure.mgmt.healthcareapis.models.ServicesDescription] - :raises: - :class:`ErrorDetailsException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ServicesDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/services'} - - def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Get all the service instances in a resource group. - - :param resource_group_name: The name of the resource group that - contains the service instance. - :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ServicesDescription - :rtype: - ~azure.mgmt.healthcareapis.models.ServicesDescriptionPaged[~azure.mgmt.healthcareapis.models.ServicesDescription] - :raises: - :class:`ErrorDetailsException` - """ - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ServicesDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services'} - - def check_name_availability( - self, name, type, custom_headers=None, raw=False, **operation_config): - """Check if a service instance name is available. - - :param name: The name of the service instance to check. - :type name: str - :param type: The fully qualified resource type which includes provider - namespace. - :type type: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ServicesNameAvailabilityInfo or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.healthcareapis.models.ServicesNameAvailabilityInfo - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorDetailsException` - """ - check_name_availability_inputs = models.CheckNameAvailabilityParameters(name=name, type=type) - - # Construct URL - url = self.check_name_availability.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(check_name_availability_inputs, 'CheckNameAvailabilityParameters') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ServicesNameAvailabilityInfo', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability'} diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_services_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_services_operations.py index d1a1cdcda8f..e7cc35e0e3f 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_services_operations.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_services_operations.py @@ -1,592 +1,678 @@ # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# +# Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -# pylint: disable=line-too-long +from typing import TYPE_CHECKING +import warnings -import uuid -from msrest.pipeline import ClientRawResponse -from msrest.polling import LROPoller, NoPolling -from msrestazure.polling.arm_polling import ARMPolling +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] class ServicesOperations(object): """ServicesOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.healthcareapis.models :param client: Client for service requests. :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". """ models = models def __init__(self, client, config, serializer, deserializer): - self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2020-03-30" - - self.config = config + self._config = config def get( - self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + resource_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ServicesDescription" """Get the metadata of a service instance. - :param resource_group_name: The name of the resource group that - contains the service instance. + :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str :param resource_name: The name of the service instance. :type resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ServicesDescription or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.healthcareapis.models.ServicesDescription or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorDetailsException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ServicesDescription, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.ServicesDescription + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescription"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + # Construct URL - url = self.get.metadata['url'] + url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3) + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ServicesDescription', response) + deserialized = self._deserialize('ServicesDescription', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} - + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} # type: ignore def _create_or_update_initial( - self, resource_group_name, resource_name, service_description, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + resource_name, # type: str + service_description, # type: "models.ServicesDescription" + **kwargs # type: Any + ): + # type: (...) -> "models.ServicesDescription" + cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescription"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + # Construct URL - url = self.create_or_update.metadata['url'] + url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3) + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(service_description, 'ServicesDescription') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(service_description, 'ServicesDescription') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200, 201]: - raise models.ErrorDetailsException(self._deserialize, response) - - deserialized = None + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: - deserialized = self._deserialize('ServicesDescription', response) + deserialized = self._deserialize('ServicesDescription', pipeline_response) + if response.status_code == 201: - deserialized = self._deserialize('ServicesDescription', response) + deserialized = self._deserialize('ServicesDescription', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - - def create_or_update( - self, resource_group_name, resource_name, service_description, custom_headers=None, raw=False, polling=True, **operation_config): + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} # type: ignore + + def begin_create_or_update( + self, + resource_group_name, # type: str + resource_name, # type: str + service_description, # type: "models.ServicesDescription" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["models.ServicesDescription"] """Create or update the metadata of a service instance. - :param resource_group_name: The name of the resource group that - contains the service instance. + :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str :param resource_name: The name of the service instance. :type resource_name: str :param service_description: The service instance metadata. - :type service_description: - ~azure.mgmt.healthcareapis.models.ServicesDescription - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :type service_description: ~azure.mgmt.healthcareapis.models.ServicesDescription + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns ServicesDescription or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.healthcareapis.models.ServicesDescription] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.healthcareapis.models.ServicesDescription]] - :raises: - :class:`ErrorDetailsException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either ServicesDescription or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.healthcareapis.models.ServicesDescription] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._create_or_update_initial( - resource_group_name=resource_group_name, - resource_name=resource_name, - service_description=service_description, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescription"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) - - def get_long_running_output(response): - deserialized = self._deserialize('ServicesDescription', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + service_description=service_description, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ServicesDescription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} - + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} # type: ignore def _update_initial( - self, resource_group_name, resource_name, tags=None, public_network_access=None, custom_headers=None, raw=False, **operation_config): - service_patch_description = models.ServicesPatchDescription(tags=tags, public_network_access=public_network_access) + self, + resource_group_name, # type: str + resource_name, # type: str + service_patch_description, # type: "models.ServicesPatchDescription" + **kwargs # type: Any + ): + # type: (...) -> "models.ServicesDescription" + cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescription"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL - url = self.update.metadata['url'] + url = self._update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3) + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(service_patch_description, 'ServicesPatchDescription') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(service_patch_description, 'ServicesPatchDescription') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) - - deserialized = None + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - if response.status_code == 200: - deserialized = self._deserialize('ServicesDescription', response) + deserialized = self._deserialize('ServicesDescription', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - - def update( - self, resource_group_name, resource_name, tags=None, public_network_access=None, custom_headers=None, raw=False, polling=True, **operation_config): + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + resource_name, # type: str + service_patch_description, # type: "models.ServicesPatchDescription" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["models.ServicesDescription"] """Update the metadata of a service instance. - :param resource_group_name: The name of the resource group that - contains the service instance. + :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str :param resource_name: The name of the service instance. :type resource_name: str - :param tags: Instance tags - :type tags: dict[str, str] - :param public_network_access: Control permission for data plane - traffic coming from public networks while private endpoint is enabled. - Possible values include: 'Enabled', 'Disabled' - :type public_network_access: str or - ~azure.mgmt.healthcareapis.models.PublicNetworkAccess - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :param service_patch_description: The service instance metadata and security metadata. + :type service_patch_description: ~azure.mgmt.healthcareapis.models.ServicesPatchDescription + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns ServicesDescription or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.healthcareapis.models.ServicesDescription] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.healthcareapis.models.ServicesDescription]] - :raises: - :class:`ErrorDetailsException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either ServicesDescription or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.healthcareapis.models.ServicesDescription] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._update_initial( - resource_group_name=resource_group_name, - resource_name=resource_name, - tags=tags, - public_network_access=public_network_access, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescription"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) - - def get_long_running_output(response): - deserialized = self._deserialize('ServicesDescription', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + service_patch_description=service_patch_description, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ServicesDescription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} - + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} # type: ignore def _delete_initial( - self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + resource_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + # Construct URL - url = self.delete.metadata['url'] + url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3) + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [202, 204]: - raise models.ErrorDetailsException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete( - self, resource_group_name, resource_name, custom_headers=None, raw=False, polling=True, **operation_config): + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + resource_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] """Delete a service instance. - :param resource_group_name: The name of the resource group that - contains the service instance. + :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str :param resource_name: The name of the service instance. :type resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: - :class:`ErrorDetailsException` + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: """ - raw_result = self._delete_initial( - resource_group_name=resource_group_name, - resource_name=resource_name, - custom_headers=custom_headers, - raw=True, - **operation_config + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + } - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} # type: ignore def list( - self, custom_headers=None, raw=False, **operation_config): + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["models.ServicesDescriptionListResult"] """Get all the service instances in a subscription. - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ServicesDescription - :rtype: - ~azure.mgmt.healthcareapis.models.ServicesDescriptionPaged[~azure.mgmt.healthcareapis.models.ServicesDescription] - :raises: - :class:`ErrorDetailsException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ServicesDescriptionListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.healthcareapis.models.ServicesDescriptionListResult] + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescriptionListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + if not next_link: # Construct URL - url = self.list.metadata['url'] + url = self.list.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) return request - def internal_paging(next_link=None): + def extract_data(pipeline_response): + deserialized = self._deserialize('ServicesDescriptionListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): request = prepare_request(next_link) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) - - return response + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ServicesDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return pipeline_response - return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/services'} + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/services'} # type: ignore def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["models.ServicesDescriptionListResult"] """Get all the service instances in a resource group. - :param resource_group_name: The name of the resource group that - contains the service instance. + :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of ServicesDescription - :rtype: - ~azure.mgmt.healthcareapis.models.ServicesDescriptionPaged[~azure.mgmt.healthcareapis.models.ServicesDescription] - :raises: - :class:`ErrorDetailsException` + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ServicesDescriptionListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.healthcareapis.models.ServicesDescriptionListResult] + :raises: ~azure.core.exceptions.HttpResponseError """ + cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescriptionListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + if not next_link: # Construct URL - url = self.list_by_resource_group.metadata['url'] + url = self.list_by_resource_group.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$') + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), } url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + request = self._client.get(url, query_parameters, header_parameters) else: url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) return request - def internal_paging(next_link=None): + def extract_data(pipeline_response): + deserialized = self._deserialize('ServicesDescriptionListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): request = prepare_request(next_link) - response = self._client.send(request, stream=False, **operation_config) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) - - return response + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.ServicesDescriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return pipeline_response - return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services'} + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services'} # type: ignore def check_name_availability( - self, name, type, custom_headers=None, raw=False, **operation_config): + self, + check_name_availability_inputs, # type: "models.CheckNameAvailabilityParameters" + **kwargs # type: Any + ): + # type: (...) -> "models.ServicesNameAvailabilityInfo" """Check if a service instance name is available. - :param name: The name of the service instance to check. - :type name: str - :param type: The fully qualified resource type which includes provider - namespace. - :type type: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ServicesNameAvailabilityInfo or ClientRawResponse if raw=true + :param check_name_availability_inputs: Set the name parameter in the + CheckNameAvailabilityParameters structure to the name of the service instance to check. + :type check_name_availability_inputs: ~azure.mgmt.healthcareapis.models.CheckNameAvailabilityParameters + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ServicesNameAvailabilityInfo, or the result of cls(response) :rtype: ~azure.mgmt.healthcareapis.models.ServicesNameAvailabilityInfo - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorDetailsException` + :raises: ~azure.core.exceptions.HttpResponseError """ - check_name_availability_inputs = models.CheckNameAvailabilityParameters(name=name, type=type) + cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesNameAvailabilityInfo"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL - url = self.check_name_availability.metadata['url'] + url = self.check_name_availability.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(check_name_availability_inputs, 'CheckNameAvailabilityParameters') + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(check_name_availability_inputs, 'CheckNameAvailabilityParameters') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response if response.status_code not in [200]: - raise models.ErrorDetailsException(self._deserialize, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorDetails, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ServicesNameAvailabilityInfo', response) + deserialized = self._deserialize('ServicesNameAvailabilityInfo', pipeline_response) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response + if cls: + return cls(pipeline_response, deserialized, {}) return deserialized - check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability'} + check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_private_endpoint_connection_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_workspace_private_endpoint_connections_operations.py similarity index 80% rename from src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_private_endpoint_connection_operations.py rename to src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_workspace_private_endpoint_connections_operations.py index 5d052d8ebbf..40fec5148e3 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_private_endpoint_connection_operations.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_workspace_private_endpoint_connections_operations.py @@ -25,15 +25,14 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class PrivateEndpointConnectionOperations(object): - """PrivateEndpointConnectionOperations operations. +class WorkspacePrivateEndpointConnectionsOperations(object): + """WorkspacePrivateEndpointConnectionsOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~healthcare_apis_management_client.models + :type models: ~azure.mgmt.healthcareapis.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -48,30 +47,30 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config - def list_by_service( + def list_by_workspace( self, resource_group_name, # type: str - resource_name, # type: str + workspace_name, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.PrivateEndpointConnectionListResult"] - """Lists all private endpoint connections for a service. + # type: (...) -> Iterable["models.PrivateEndpointConnectionListResultDescription"] + """Lists all private endpoint connections for a workspace. :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str - :param resource_name: The name of the service instance. - :type resource_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either PrivateEndpointConnectionListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~healthcare_apis_management_client.models.PrivateEndpointConnectionListResult] + :return: An iterator like instance of either PrivateEndpointConnectionListResultDescription or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionListResultDescription] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionListResultDescription"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" def prepare_request(next_link=None): @@ -81,11 +80,11 @@ def prepare_request(next_link=None): if not next_link: # Construct URL - url = self.list_by_service.metadata['url'] # type: ignore + url = self.list_by_workspace.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters @@ -100,7 +99,7 @@ def prepare_request(next_link=None): return request def extract_data(pipeline_response): - deserialized = self._deserialize('PrivateEndpointConnectionListResult', pipeline_response) + deserialized = self._deserialize('PrivateEndpointConnectionListResultDescription', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -122,36 +121,36 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_by_service.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections'} # type: ignore + list_by_workspace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections'} # type: ignore def get( self, resource_group_name, # type: str - resource_name, # type: str + workspace_name, # type: str private_endpoint_connection_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.PrivateEndpointConnection" - """Gets the specified private endpoint connection associated with the service. + # type: (...) -> "models.PrivateEndpointConnectionDescription" + """Gets the specified private endpoint connection associated with the workspace. :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str - :param resource_name: The name of the service instance. - :type resource_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str :param private_endpoint_connection_name: The name of the private endpoint connection associated with the Azure resource. :type private_endpoint_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: PrivateEndpointConnection, or the result of cls(response) - :rtype: ~healthcare_apis_management_client.models.PrivateEndpointConnection + :return: PrivateEndpointConnectionDescription, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionDescription"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" # Construct URL @@ -159,7 +158,7 @@ def get( path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -181,33 +180,29 @@ def get( error = self._deserialize(models.ErrorDetails, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) + deserialized = self._deserialize('PrivateEndpointConnectionDescription', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore def _create_or_update_initial( self, resource_group_name, # type: str - resource_name, # type: str + workspace_name, # type: str private_endpoint_connection_name, # type: str - status=None, # type: Optional[Union[str, "models.PrivateEndpointServiceConnectionStatus"]] - description=None, # type: Optional[str] - actions_required=None, # type: Optional[str] + properties, # type: "models.PrivateEndpointConnectionDescription" **kwargs # type: Any ): - # type: (...) -> "models.PrivateEndpointConnection" - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + # type: (...) -> "models.PrivateEndpointConnectionDescription" + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionDescription"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - properties = models.PrivateEndpointConnection(status=status, description=description, actions_required=actions_required) - api_version = "2020-03-30" + api_version = "2021-11-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -216,7 +211,7 @@ def _create_or_update_initial( path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -231,7 +226,7 @@ def _create_or_update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(properties, 'PrivateEndpointConnection') + body_content = self._serialize.body(properties, 'PrivateEndpointConnectionDescription') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -242,54 +237,46 @@ def _create_or_update_initial( error = self._deserialize(models.ErrorDetails, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) + deserialized = self._deserialize('PrivateEndpointConnectionDescription', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore def begin_create_or_update( self, resource_group_name, # type: str - resource_name, # type: str + workspace_name, # type: str private_endpoint_connection_name, # type: str - status=None, # type: Optional[Union[str, "models.PrivateEndpointServiceConnectionStatus"]] - description=None, # type: Optional[str] - actions_required=None, # type: Optional[str] + properties, # type: "models.PrivateEndpointConnectionDescription" **kwargs # type: Any ): - # type: (...) -> LROPoller["models.PrivateEndpointConnection"] - """Update the state of the specified private endpoint connection associated with the service. + # type: (...) -> LROPoller["models.PrivateEndpointConnectionDescription"] + """Update the state of the specified private endpoint connection associated with the workspace. :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str - :param resource_name: The name of the service instance. - :type resource_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str :param private_endpoint_connection_name: The name of the private endpoint connection associated with the Azure resource. :type private_endpoint_connection_name: str - :param status: Indicates whether the connection has been Approved/Rejected/Removed by the owner - of the service. - :type status: str or ~healthcare_apis_management_client.models.PrivateEndpointServiceConnectionStatus - :param description: The reason for approval/rejection of the connection. - :type description: str - :param actions_required: A message indicating if changes on the service provider require any - updates on the consumer. - :type actions_required: str + :param properties: The private endpoint connection properties. + :type properties: ~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns either PrivateEndpointConnection or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~healthcare_apis_management_client.models.PrivateEndpointConnection] + :return: An instance of LROPoller that returns either PrivateEndpointConnectionDescription or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.healthcareapis.models.PrivateEndpointConnectionDescription] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionDescription"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -298,11 +285,9 @@ def begin_create_or_update( if cont_token is None: raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, - resource_name=resource_name, + workspace_name=workspace_name, private_endpoint_connection_name=private_endpoint_connection_name, - status=status, - description=description, - actions_required=actions_required, + properties=properties, cls=lambda x,y,z: x, **kwargs ) @@ -311,7 +296,7 @@ def begin_create_or_update( kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): - deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) + deserialized = self._deserialize('PrivateEndpointConnectionDescription', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -320,7 +305,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } @@ -336,12 +321,12 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore def _delete_initial( self, resource_group_name, # type: str - resource_name, # type: str + workspace_name, # type: str private_endpoint_connection_name, # type: str **kwargs # type: Any ): @@ -351,7 +336,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" # Construct URL @@ -359,7 +344,7 @@ def _delete_initial( path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -384,12 +369,12 @@ def _delete_initial( if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore def begin_delete( self, resource_group_name, # type: str - resource_name, # type: str + workspace_name, # type: str private_endpoint_connection_name, # type: str **kwargs # type: Any ): @@ -398,8 +383,8 @@ def begin_delete( :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str - :param resource_name: The name of the service instance. - :type resource_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str :param private_endpoint_connection_name: The name of the private endpoint connection associated with the Azure resource. :type private_endpoint_connection_name: str @@ -423,7 +408,7 @@ def begin_delete( if cont_token is None: raw_result = self._delete_initial( resource_group_name=resource_group_name, - resource_name=resource_name, + workspace_name=workspace_name, private_endpoint_connection_name=private_endpoint_connection_name, cls=lambda x,y,z: x, **kwargs @@ -439,7 +424,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } @@ -455,4 +440,4 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_private_link_resource_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_workspace_private_link_resources_operations.py similarity index 54% rename from src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_private_link_resource_operations.py rename to src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_workspace_private_link_resources_operations.py index 71c2f37305e..9360233629b 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_private_link_resource_operations.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_workspace_private_link_resources_operations.py @@ -9,6 +9,7 @@ import warnings from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.mgmt.core.exceptions import ARMErrorFormat @@ -17,20 +18,19 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class PrivateLinkResourceOperations(object): - """PrivateLinkResourceOperations operations. +class WorkspacePrivateLinkResourcesOperations(object): + """WorkspacePrivateLinkResourcesOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~healthcare_apis_management_client.models + :type models: ~azure.mgmt.healthcareapis.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -45,93 +45,109 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config - def list_by_service( + def list_by_workspace( self, resource_group_name, # type: str - resource_name, # type: str + workspace_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.PrivateLinkResourceListResult" - """Gets the private link resources that need to be created for a service. + # type: (...) -> Iterable["models.PrivateLinkResourceListResultDescription"] + """Gets the private link resources that need to be created for a workspace. :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str - :param resource_name: The name of the service instance. - :type resource_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: PrivateLinkResourceListResult, or the result of cls(response) - :rtype: ~healthcare_apis_management_client.models.PrivateLinkResourceListResult + :return: An iterator like instance of either PrivateLinkResourceListResultDescription or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.healthcareapis.models.PrivateLinkResourceListResultDescription] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceListResultDescription"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" - # Construct URL - url = self.list_by_service.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorDetails, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('PrivateLinkResourceListResult', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - list_by_service.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources'} # type: ignore + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_workspace.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('PrivateLinkResourceListResultDescription', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_workspace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources'} # type: ignore def get( self, resource_group_name, # type: str - resource_name, # type: str + workspace_name, # type: str group_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.PrivateLinkResource" - """Gets a private link resource that need to be created for a service. + # type: (...) -> "models.PrivateLinkResourceDescription" + """Gets a private link resource that need to be created for a workspace. :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str - :param resource_name: The name of the service instance. - :type resource_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str :param group_name: The name of the private link resource group. :type group_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: PrivateLinkResource, or the result of cls(response) - :rtype: ~healthcare_apis_management_client.models.PrivateLinkResource + :return: PrivateLinkResourceDescription, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.PrivateLinkResourceDescription :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResource"] + cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceDescription"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" # Construct URL @@ -139,7 +155,7 @@ def get( path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), 'groupName': self._serialize.url("group_name", group_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -161,10 +177,10 @@ def get( error = self._deserialize(models.ErrorDetails, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('PrivateLinkResource', pipeline_response) + deserialized = self._deserialize('PrivateLinkResourceDescription', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}/privateLinkResources/{groupName}'} # type: ignore + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateLinkResources/{groupName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_service_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_workspaces_operations.py similarity index 61% rename from src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_service_operations.py rename to src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_workspaces_operations.py index 947b1a712cf..963a08ba554 100644 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_service_operations.py +++ b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/operations/_workspaces_operations.py @@ -20,19 +20,19 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, List, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] -class ServiceOperations(object): - """ServiceOperations operations. +class WorkspacesOperations(object): + """WorkspacesOperations operations. You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~healthcare_apis_management_client.models + :type models: ~azure.mgmt.healthcareapis.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -47,38 +47,178 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config + def list_by_subscription( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["models.WorkspaceList"] + """Lists all the available workspaces under the specified subscription. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either WorkspaceList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.healthcareapis.models.WorkspaceList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.WorkspaceList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('WorkspaceList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/workspaces'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["models.WorkspaceList"] + """Lists all the available workspaces under the specified resource group. + + :param resource_group_name: The name of the resource group that contains the service instance. + :type resource_group_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either WorkspaceList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.healthcareapis.models.WorkspaceList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.WorkspaceList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-11-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('WorkspaceList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorDetails, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces'} # type: ignore + def get( self, resource_group_name, # type: str - resource_name, # type: str + workspace_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.ServicesDescription" - """Get the metadata of a service instance. + # type: (...) -> "models.Workspace" + """Gets the properties of the specified workspace. :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str - :param resource_name: The name of the service instance. - :type resource_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ServicesDescription, or the result of cls(response) - :rtype: ~healthcare_apis_management_client.models.ServicesDescription + :return: Workspace, or the result of cls(response) + :rtype: ~azure.mgmt.healthcareapis.models.Workspace :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescription"] + cls = kwargs.pop('cls', None) # type: ClsType["models.Workspace"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), } url = self._client.format_url(url, **path_format_arguments) @@ -99,50 +239,37 @@ def get( error = self._deserialize(models.ErrorDetails, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('ServicesDescription', pipeline_response) + deserialized = self._deserialize('Workspace', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} # type: ignore + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}'} # type: ignore def _create_or_update_initial( self, resource_group_name, # type: str - resource_name, # type: str - kind, # type: Union[str, "models.Kind"] - location, # type: str - tags=None, # type: Optional[Dict[str, str]] - etag=None, # type: Optional[str] - type=None, # type: Optional[Union[str, "models.ManagedServiceIdentityType"]] - access_policies=None, # type: Optional[List["models.ServiceAccessPolicyEntry"]] - cosmos_db_configuration=None, # type: Optional["models.ServiceCosmosDBConfigurationInfo"] - authentication_configuration=None, # type: Optional["models.ServiceAuthenticationConfigurationInfo"] - cors_configuration=None, # type: Optional["models.ServiceCorsConfigurationInfo"] - private_endpoint_connections=None, # type: Optional[List["models.PrivateEndpointConnection"]] - public_network_access=None, # type: Optional[Union[str, "models.PublicNetworkAccess"]] - storage_account_name=None, # type: Optional[str] + workspace_name, # type: str + workspace, # type: "models.Workspace" **kwargs # type: Any ): - # type: (...) -> "models.ServicesDescription" - cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescription"] + # type: (...) -> "models.Workspace" + cls = kwargs.pop('cls', None) # type: ClsType["models.Workspace"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - service_description = models.ServicesDescription(kind=kind, location=location, tags=tags, etag=etag, type_identity_type=type, access_policies=access_policies, cosmos_db_configuration=cosmos_db_configuration, authentication_configuration=authentication_configuration, cors_configuration=cors_configuration, private_endpoint_connections=private_endpoint_connections, public_network_access=public_network_access, storage_account_name=storage_account_name) - api_version = "2020-03-30" + api_version = "2021-11-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), } url = self._client.format_url(url, **path_format_arguments) @@ -156,94 +283,60 @@ def _create_or_update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(service_description, 'ServicesDescription') + body_content = self._serialize.body(workspace, 'Workspace') body_content_kwargs['content'] = body_content - request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200, 201]: + if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(models.ErrorDetails, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: - deserialized = self._deserialize('ServicesDescription', pipeline_response) + deserialized = self._deserialize('Workspace', pipeline_response) if response.status_code == 201: - deserialized = self._deserialize('ServicesDescription', pipeline_response) + deserialized = self._deserialize('Workspace', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('Workspace', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} # type: ignore + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}'} # type: ignore def begin_create_or_update( self, resource_group_name, # type: str - resource_name, # type: str - kind, # type: Union[str, "models.Kind"] - location, # type: str - tags=None, # type: Optional[Dict[str, str]] - etag=None, # type: Optional[str] - type=None, # type: Optional[Union[str, "models.ManagedServiceIdentityType"]] - access_policies=None, # type: Optional[List["models.ServiceAccessPolicyEntry"]] - cosmos_db_configuration=None, # type: Optional["models.ServiceCosmosDBConfigurationInfo"] - authentication_configuration=None, # type: Optional["models.ServiceAuthenticationConfigurationInfo"] - cors_configuration=None, # type: Optional["models.ServiceCorsConfigurationInfo"] - private_endpoint_connections=None, # type: Optional[List["models.PrivateEndpointConnection"]] - public_network_access=None, # type: Optional[Union[str, "models.PublicNetworkAccess"]] - storage_account_name=None, # type: Optional[str] + workspace_name, # type: str + workspace, # type: "models.Workspace" **kwargs # type: Any ): - # type: (...) -> LROPoller["models.ServicesDescription"] - """Create or update the metadata of a service instance. + # type: (...) -> LROPoller["models.Workspace"] + """Creates or updates a workspace resource with the specified parameters. :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str - :param resource_name: The name of the service instance. - :type resource_name: str - :param kind: The kind of the service. - :type kind: str or ~healthcare_apis_management_client.models.Kind - :param location: The resource location. - :type location: str - :param tags: The resource tags. - :type tags: dict[str, str] - :param etag: An etag associated with the resource, used for optimistic concurrency when editing - it. - :type etag: str - :param type: Type of identity being specified, currently SystemAssigned and None are allowed. - :type type: str or ~healthcare_apis_management_client.models.ManagedServiceIdentityType - :param access_policies: The access policies of the service instance. - :type access_policies: list[~healthcare_apis_management_client.models.ServiceAccessPolicyEntry] - :param cosmos_db_configuration: The settings for the Cosmos DB database backing the service. - :type cosmos_db_configuration: ~healthcare_apis_management_client.models.ServiceCosmosDBConfigurationInfo - :param authentication_configuration: The authentication configuration for the service instance. - :type authentication_configuration: ~healthcare_apis_management_client.models.ServiceAuthenticationConfigurationInfo - :param cors_configuration: The settings for the CORS configuration of the service instance. - :type cors_configuration: ~healthcare_apis_management_client.models.ServiceCorsConfigurationInfo - :param private_endpoint_connections: The list of private endpoint connections that are set up - for this resource. - :type private_endpoint_connections: list[~healthcare_apis_management_client.models.PrivateEndpointConnection] - :param public_network_access: Control permission for data plane traffic coming from public - networks while private endpoint is enabled. - :type public_network_access: str or ~healthcare_apis_management_client.models.PublicNetworkAccess - :param storage_account_name: The name of the default export storage account. - :type storage_account_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param workspace: The parameters for creating or updating a healthcare workspace. + :type workspace: ~azure.mgmt.healthcareapis.models.Workspace :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns either ServicesDescription or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~healthcare_apis_management_client.models.ServicesDescription] + :return: An instance of LROPoller that returns either Workspace or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.healthcareapis.models.Workspace] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescription"] + cls = kwargs.pop('cls', None) # type: ClsType["models.Workspace"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -252,19 +345,8 @@ def begin_create_or_update( if cont_token is None: raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, - resource_name=resource_name, - kind=kind, - location=location, - tags=tags, - etag=etag, - type=type, - access_policies=access_policies, - cosmos_db_configuration=cosmos_db_configuration, - authentication_configuration=authentication_configuration, - cors_configuration=cors_configuration, - private_endpoint_connections=private_endpoint_connections, - public_network_access=public_network_access, - storage_account_name=storage_account_name, + workspace_name=workspace_name, + workspace=workspace, cls=lambda x,y,z: x, **kwargs ) @@ -273,16 +355,16 @@ def begin_create_or_update( kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): - deserialized = self._deserialize('ServicesDescription', pipeline_response) + deserialized = self._deserialize('Workspace', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), } if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) @@ -297,34 +379,31 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} # type: ignore + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}'} # type: ignore def _update_initial( self, resource_group_name, # type: str - resource_name, # type: str - tags=None, # type: Optional[Dict[str, str]] - public_network_access=None, # type: Optional[Union[str, "models.PublicNetworkAccess"]] + workspace_name, # type: str + workspace_patch_resource, # type: "models.ResourceTags" **kwargs # type: Any ): - # type: (...) -> "models.ServicesDescription" - cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescription"] + # type: (...) -> "models.Workspace" + cls = kwargs.pop('cls', None) # type: ClsType["models.Workspace"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - service_patch_description = models.ServicesPatchDescription(tags=tags, public_network_access=public_network_access) - api_version = "2020-03-30" + api_version = "2021-11-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL url = self._update_initial.metadata['url'] # type: ignore path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), } url = self._client.format_url(url, **path_format_arguments) @@ -338,58 +417,57 @@ def _update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(service_patch_description, 'ServicesPatchDescription') + body_content = self._serialize.body(workspace_patch_resource, 'ResourceTags') body_content_kwargs['content'] = body_content - request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize(models.ErrorDetails, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('ServicesDescription', pipeline_response) + if response.status_code == 200: + deserialized = self._deserialize('Workspace', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('Workspace', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized - _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} # type: ignore + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}'} # type: ignore def begin_update( self, resource_group_name, # type: str - resource_name, # type: str - tags=None, # type: Optional[Dict[str, str]] - public_network_access=None, # type: Optional[Union[str, "models.PublicNetworkAccess"]] + workspace_name, # type: str + workspace_patch_resource, # type: "models.ResourceTags" **kwargs # type: Any ): - # type: (...) -> LROPoller["models.ServicesDescription"] - """Update the metadata of a service instance. + # type: (...) -> LROPoller["models.Workspace"] + """Patch workspace details. :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str - :param resource_name: The name of the service instance. - :type resource_name: str - :param tags: Instance tags. - :type tags: dict[str, str] - :param public_network_access: Control permission for data plane traffic coming from public - networks while private endpoint is enabled. - :type public_network_access: str or ~healthcare_apis_management_client.models.PublicNetworkAccess + :param workspace_name: The name of workspace resource. + :type workspace_name: str + :param workspace_patch_resource: The parameters for updating a specified workspace. + :type workspace_patch_resource: ~azure.mgmt.healthcareapis.models.ResourceTags :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns either ServicesDescription or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[~healthcare_apis_management_client.models.ServicesDescription] + :return: An instance of LROPoller that returns either Workspace or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.healthcareapis.models.Workspace] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescription"] + cls = kwargs.pop('cls', None) # type: ClsType["models.Workspace"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -398,9 +476,8 @@ def begin_update( if cont_token is None: raw_result = self._update_initial( resource_group_name=resource_group_name, - resource_name=resource_name, - tags=tags, - public_network_access=public_network_access, + workspace_name=workspace_name, + workspace_patch_resource=workspace_patch_resource, cls=lambda x,y,z: x, **kwargs ) @@ -409,16 +486,16 @@ def begin_update( kwargs.pop('content_type', None) def get_long_running_output(pipeline_response): - deserialized = self._deserialize('ServicesDescription', pipeline_response) + deserialized = self._deserialize('Workspace', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) return deserialized path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), } if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) @@ -433,12 +510,12 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} # type: ignore + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}'} # type: ignore def _delete_initial( self, resource_group_name, # type: str - resource_name, # type: str + workspace_name, # type: str **kwargs # type: Any ): # type: (...) -> None @@ -447,7 +524,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" + api_version = "2021-11-01" accept = "application/json" # Construct URL @@ -455,7 +532,7 @@ def _delete_initial( path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), } url = self._client.format_url(url, **path_format_arguments) @@ -471,29 +548,29 @@ def _delete_initial( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [202, 204]: + if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorDetails, response) + error = self._deserialize(models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} # type: ignore + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}'} # type: ignore def begin_delete( self, resource_group_name, # type: str - resource_name, # type: str + workspace_name, # type: str **kwargs # type: Any ): # type: (...) -> LROPoller[None] - """Delete a service instance. + """Deletes a specified workspace. :param resource_group_name: The name of the resource group that contains the service instance. :type resource_group_name: str - :param resource_name: The name of the service instance. - :type resource_name: str + :param workspace_name: The name of workspace resource. + :type workspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -514,7 +591,7 @@ def begin_delete( if cont_token is None: raw_result = self._delete_initial( resource_group_name=resource_group_name, - resource_name=resource_name, + workspace_name=workspace_name, cls=lambda x,y,z: x, **kwargs ) @@ -529,7 +606,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'resourceName': self._serialize.url("resource_name", resource_name, 'str', max_length=24, min_length=3), + 'workspaceName': self._serialize.url("workspace_name", workspace_name, 'str', max_length=24, min_length=3), } if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) @@ -544,209 +621,4 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services/{resourceName}'} # type: ignore - - def list( - self, - **kwargs # type: Any - ): - # type: (...) -> Iterable["models.ServicesDescriptionListResult"] - """Get all the service instances in a subscription. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ServicesDescriptionListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~healthcare_apis_management_client.models.ServicesDescriptionListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescriptionListResult"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('ServicesDescriptionListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorDetails, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/services'} # type: ignore - - def list_by_resource_group( - self, - resource_group_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["models.ServicesDescriptionListResult"] - """Get all the service instances in a resource group. - - :param resource_group_name: The name of the resource group that contains the service instance. - :type resource_group_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ServicesDescriptionListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~healthcare_apis_management_client.models.ServicesDescriptionListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesDescriptionListResult"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('ServicesDescriptionListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - error = self._deserialize(models.ErrorDetails, response) - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/services'} # type: ignore - - def check_name_availability( - self, - name, # type: str - type, # type: str - **kwargs # type: Any - ): - # type: (...) -> "models.ServicesNameAvailabilityInfo" - """Check if a service instance name is available. - - :param name: The name of the service instance to check. - :type name: str - :param type: The fully qualified resource type which includes provider namespace. - :type type: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ServicesNameAvailabilityInfo, or the result of cls(response) - :rtype: ~healthcare_apis_management_client.models.ServicesNameAvailabilityInfo - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ServicesNameAvailabilityInfo"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - - check_name_availability_inputs = models.CheckNameAvailabilityParameters(name=name, type=type) - api_version = "2020-03-30" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.check_name_availability.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(check_name_availability_inputs, 'CheckNameAvailabilityParameters') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorDetails, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('ServicesNameAvailabilityInfo', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/checkNameAvailability'} # type: ignore + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}'} # type: ignore diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/py.typed b/src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/py.typed similarity index 100% rename from src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/py.typed rename to src/healthcareapis/azext_healthcareapis/vendored_sdks/healthcareapis/py.typed diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/_configuration.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/_configuration.py deleted file mode 100644 index 8575f867c98..00000000000 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/_configuration.py +++ /dev/null @@ -1,70 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import TYPE_CHECKING - -from azure.core.configuration import Configuration -from azure.core.pipeline import policies -from azure.mgmt.core.policies import ARMHttpLoggingPolicy - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any - - from azure.core.credentials import TokenCredential - -VERSION = "unknown" - -class HealthcareApisManagementClientConfiguration(Configuration): - """Configuration for HealthcareApisManagementClient. - - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The subscription identifier. - :type subscription_id: str - """ - - def __init__( - self, - credential, # type: "TokenCredential" - subscription_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - if credential is None: - raise ValueError("Parameter 'credential' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - super(HealthcareApisManagementClientConfiguration, self).__init__(**kwargs) - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = "2020-03-30" - self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) - kwargs.setdefault('sdk_moniker', 'healthcareapismanagementclient/{}'.format(VERSION)) - self._configure(**kwargs) - - def _configure( - self, - **kwargs # type: Any - ): - # type: (...) -> None - self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) - self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) - self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) - self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) - self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs) - self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) - self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) - self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) - self.authentication_policy = kwargs.get('authentication_policy') - if self.credential and not self.authentication_policy: - self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/_healthcare_apis_management_client.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/_healthcare_apis_management_client.py deleted file mode 100644 index 3a4d5d5909d..00000000000 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/_healthcare_apis_management_client.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import TYPE_CHECKING - -from azure.mgmt.core import ARMPipelineClient -from msrest import Deserializer, Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Optional - - from azure.core.credentials import TokenCredential - -from ._configuration import HealthcareApisManagementClientConfiguration -from .operations import ServiceOperations -from .operations import OperationOperations -from .operations import OperationResultOperations -from .operations import PrivateEndpointConnectionOperations -from .operations import PrivateLinkResourceOperations -from . import models - - -class HealthcareApisManagementClient(object): - """Azure Healthcare APIs Client. - - :ivar service: ServiceOperations operations - :vartype service: healthcare_apis_management_client.operations.ServiceOperations - :ivar operation: OperationOperations operations - :vartype operation: healthcare_apis_management_client.operations.OperationOperations - :ivar operation_result: OperationResultOperations operations - :vartype operation_result: healthcare_apis_management_client.operations.OperationResultOperations - :ivar private_endpoint_connection: PrivateEndpointConnectionOperations operations - :vartype private_endpoint_connection: healthcare_apis_management_client.operations.PrivateEndpointConnectionOperations - :ivar private_link_resource: PrivateLinkResourceOperations operations - :vartype private_link_resource: healthcare_apis_management_client.operations.PrivateLinkResourceOperations - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials.TokenCredential - :param subscription_id: The subscription identifier. - :type subscription_id: str - :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - """ - - def __init__( - self, - credential, # type: "TokenCredential" - subscription_id, # type: str - base_url=None, # type: Optional[str] - **kwargs # type: Any - ): - # type: (...) -> None - if not base_url: - base_url = 'https://management.azure.com' - self._config = HealthcareApisManagementClientConfiguration(credential, subscription_id, **kwargs) - self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False - self._deserialize = Deserializer(client_models) - - self.service = ServiceOperations( - self._client, self._config, self._serialize, self._deserialize) - self.operation = OperationOperations( - self._client, self._config, self._serialize, self._deserialize) - self.operation_result = OperationResultOperations( - self._client, self._config, self._serialize, self._deserialize) - self.private_endpoint_connection = PrivateEndpointConnectionOperations( - self._client, self._config, self._serialize, self._deserialize) - self.private_link_resource = PrivateLinkResourceOperations( - self._client, self._config, self._serialize, self._deserialize) - - def close(self): - # type: () -> None - self._client.close() - - def __enter__(self): - # type: () -> HealthcareApisManagementClient - self._client.__enter__() - return self - - def __exit__(self, *exc_details): - # type: (Any) -> None - self._client.__exit__(*exc_details) diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/_healthcare_apis_management_client.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/_healthcare_apis_management_client.py deleted file mode 100644 index ea8db2b1e0e..00000000000 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/_healthcare_apis_management_client.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from typing import Any, Optional, TYPE_CHECKING - -from azure.mgmt.core import AsyncARMPipelineClient -from msrest import Deserializer, Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - -from ._configuration import HealthcareApisManagementClientConfiguration -from .operations import ServiceOperations -from .operations import OperationOperations -from .operations import OperationResultOperations -from .operations import PrivateEndpointConnectionOperations -from .operations import PrivateLinkResourceOperations -from .. import models - - -class HealthcareApisManagementClient(object): - """Azure Healthcare APIs Client. - - :ivar service: ServiceOperations operations - :vartype service: healthcare_apis_management_client.aio.operations.ServiceOperations - :ivar operation: OperationOperations operations - :vartype operation: healthcare_apis_management_client.aio.operations.OperationOperations - :ivar operation_result: OperationResultOperations operations - :vartype operation_result: healthcare_apis_management_client.aio.operations.OperationResultOperations - :ivar private_endpoint_connection: PrivateEndpointConnectionOperations operations - :vartype private_endpoint_connection: healthcare_apis_management_client.aio.operations.PrivateEndpointConnectionOperations - :ivar private_link_resource: PrivateLinkResourceOperations operations - :vartype private_link_resource: healthcare_apis_management_client.aio.operations.PrivateLinkResourceOperations - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: The subscription identifier. - :type subscription_id: str - :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: Optional[str] = None, - **kwargs: Any - ) -> None: - if not base_url: - base_url = 'https://management.azure.com' - self._config = HealthcareApisManagementClientConfiguration(credential, subscription_id, **kwargs) - self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False - self._deserialize = Deserializer(client_models) - - self.service = ServiceOperations( - self._client, self._config, self._serialize, self._deserialize) - self.operation = OperationOperations( - self._client, self._config, self._serialize, self._deserialize) - self.operation_result = OperationResultOperations( - self._client, self._config, self._serialize, self._deserialize) - self.private_endpoint_connection = PrivateEndpointConnectionOperations( - self._client, self._config, self._serialize, self._deserialize) - self.private_link_resource = PrivateLinkResourceOperations( - self._client, self._config, self._serialize, self._deserialize) - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "HealthcareApisManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/__init__.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/__init__.py deleted file mode 100644 index 2fae7b5b7cf..00000000000 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/aio/operations/__init__.py +++ /dev/null @@ -1,21 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._service_operations import ServiceOperations -from ._operation_operations import OperationOperations -from ._operation_result_operations import OperationResultOperations -from ._private_endpoint_connection_operations import PrivateEndpointConnectionOperations -from ._private_link_resource_operations import PrivateLinkResourceOperations - -__all__ = [ - 'ServiceOperations', - 'OperationOperations', - 'OperationResultOperations', - 'PrivateEndpointConnectionOperations', - 'PrivateLinkResourceOperations', -] diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/models/__init__.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/models/__init__.py deleted file mode 100644 index dac56718b42..00000000000 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/models/__init__.py +++ /dev/null @@ -1,100 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -try: - from ._models_py3 import CheckNameAvailabilityParameters - from ._models_py3 import ErrorDetails - from ._models_py3 import ErrorDetailsInternal - from ._models_py3 import Operation - from ._models_py3 import OperationDisplay - from ._models_py3 import OperationListResult - from ._models_py3 import OperationResultsDescription - from ._models_py3 import PrivateEndpointConnection - from ._models_py3 import PrivateEndpointConnectionListResult - from ._models_py3 import PrivateLinkResource - from ._models_py3 import PrivateLinkResourceListResult - from ._models_py3 import Resource - from ._models_py3 import ServiceAccessPolicyEntry - from ._models_py3 import ServiceAuthenticationConfigurationInfo - from ._models_py3 import ServiceCorsConfigurationInfo - from ._models_py3 import ServiceCosmosDBConfigurationInfo - from ._models_py3 import ServicesDescription - from ._models_py3 import ServicesDescriptionListResult - from ._models_py3 import ServicesNameAvailabilityInfo - from ._models_py3 import ServicesPatchDescription - from ._models_py3 import ServicesResource -except (SyntaxError, ImportError): - from ._models import CheckNameAvailabilityParameters # type: ignore - from ._models import ErrorDetails # type: ignore - from ._models import ErrorDetailsInternal # type: ignore - from ._models import Operation # type: ignore - from ._models import OperationDisplay # type: ignore - from ._models import OperationListResult # type: ignore - from ._models import OperationResultsDescription # type: ignore - from ._models import PrivateEndpointConnection # type: ignore - from ._models import PrivateEndpointConnectionListResult # type: ignore - from ._models import PrivateLinkResource # type: ignore - from ._models import PrivateLinkResourceListResult # type: ignore - from ._models import Resource # type: ignore - from ._models import ServiceAccessPolicyEntry # type: ignore - from ._models import ServiceAuthenticationConfigurationInfo # type: ignore - from ._models import ServiceCorsConfigurationInfo # type: ignore - from ._models import ServiceCosmosDbConfigurationInfo - from ._models import ServiceExportConfigurationInfo - from ._models import ServicesDescription # type: ignore - from ._models import ServicesDescriptionListResult # type: ignore - from ._models import ServicesNameAvailabilityInfo # type: ignore - from ._models import ServicesPatchDescription # type: ignore - from ._models import ServicesResource # type: ignore - -from ._healthcare_apis_management_client_enums import ( - Kind, - ManagedServiceIdentityType, - OperationResultStatus, - PrivateEndpointConnectionProvisioningState, - PrivateEndpointServiceConnectionStatus, - ProvisioningState, - PublicNetworkAccess, - ServiceNameUnavailabilityReason, -) - -__all__ = [ - 'CheckNameAvailabilityParameters', - 'ErrorDetails', - 'ErrorDetailsInternal', - 'Operation', - 'OperationDisplay', - 'OperationListResult', - 'OperationResultsDescription', - 'PrivateEndpointConnection', - 'PrivateEndpointConnectionListResult', - 'PrivateLinkResource', - 'PrivateLinkResourceListResult', - 'Resource', - 'ServiceAccessPolicyEntry', - 'ServiceAuthenticationConfigurationInfo', - 'ServiceCorsConfigurationInfo', - 'ServiceCosmosDbConfigurationInfo', - 'ServiceExportConfigurationInfo', - 'ServicesDescription', - 'ServicesDescriptionListResult', - 'ServicesNameAvailabilityInfo', - 'ServicesPatchDescription', - 'ServicesResource', - 'Kind', - 'ManagedServiceIdentityType', - 'OperationResultStatus', - 'PrivateEndpointConnectionProvisioningState', - 'PrivateEndpointServiceConnectionStatus', - 'ProvisioningState', - 'PublicNetworkAccess', - 'ServiceNameUnavailabilityReason', -] diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/models/_healthcare_apis_management_client_enums.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/models/_healthcare_apis_management_client_enums.py deleted file mode 100644 index c11bfd3cf54..00000000000 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/models/_healthcare_apis_management_client_enums.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum, EnumMeta -from six import with_metaclass - -class _CaseInsensitiveEnumMeta(EnumMeta): - def __getitem__(self, name): - return super().__getitem__(name.upper()) - - def __getattr__(cls, name): - """Return the enum member matching `name` - We use __getattr__ instead of descriptors or inserting into the enum - class' __dict__ in order to support `name` and `value` being both - properties for enum members (which live in the class' __dict__) and - enum members themselves. - """ - try: - return cls._member_map_[name.upper()] - except KeyError: - raise AttributeError(name) - - -class Kind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The kind of the service. - """ - - FHIR = "fhir" - FHIR_STU3 = "fhir-Stu3" - FHIR_R4 = "fhir-R4" - -class ManagedServiceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Type of identity being specified, currently SystemAssigned and None are allowed. - """ - - SYSTEM_ASSIGNED = "SystemAssigned" - NONE = "None" - -class OperationResultStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The status of the operation being performed. - """ - - CANCELED = "Canceled" - SUCCEEDED = "Succeeded" - FAILED = "Failed" - REQUESTED = "Requested" - RUNNING = "Running" - -class PrivateEndpointConnectionProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The current provisioning state. - """ - - SUCCEEDED = "Succeeded" - CREATING = "Creating" - DELETING = "Deleting" - FAILED = "Failed" - -class PrivateEndpointServiceConnectionStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The private endpoint connection status. - """ - - PENDING = "Pending" - APPROVED = "Approved" - REJECTED = "Rejected" - -class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The provisioning state. - """ - - DELETING = "Deleting" - SUCCEEDED = "Succeeded" - CREATING = "Creating" - ACCEPTED = "Accepted" - VERIFYING = "Verifying" - UPDATING = "Updating" - FAILED = "Failed" - CANCELED = "Canceled" - DEPROVISIONED = "Deprovisioned" - -class PublicNetworkAccess(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Control permission for data plane traffic coming from public networks while private endpoint is - enabled. - """ - - ENABLED = "Enabled" - DISABLED = "Disabled" - -class ServiceNameUnavailabilityReason(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The reason for unavailability. - """ - - INVALID = "Invalid" - ALREADY_EXISTS = "AlreadyExists" diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/models/_models.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/models/_models.py deleted file mode 100644 index 985c3c76719..00000000000 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/models/_models.py +++ /dev/null @@ -1,810 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from azure.core.exceptions import HttpResponseError -import msrest.serialization - - -class CheckNameAvailabilityParameters(msrest.serialization.Model): - """Input values. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the service instance to check. - :type name: str - :param type: Required. The fully qualified resource type which includes provider namespace. - :type type: str - """ - - _validation = { - 'name': {'required': True}, - 'type': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CheckNameAvailabilityParameters, self).__init__(**kwargs) - self.name = kwargs['name'] - self.type = kwargs['type'] - - -class ErrorDetails(msrest.serialization.Model): - """Error details. - - :param error: Object containing error details. - :type error: ~healthcare_apis_management_client.models.ErrorDetailsInternal - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorDetailsInternal'}, - } - - def __init__(self, **kwargs): - super(ErrorDetails, self).__init__(**kwargs) - self.error = kwargs.get('error', None) - - -class ErrorDetailsInternal(msrest.serialization.Model): - """Error details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The target of the particular error. - :vartype target: str - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ErrorDetailsInternal, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - - -class Operation(msrest.serialization.Model): - """Service REST API operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Operation name: {provider}/{resource}/{read | write | action | - delete} - :vartype name: str - :ivar origin: Default value is 'user,system'. - :vartype origin: str - :param display: The information displayed about the operation. - :type display: ~azure.mgmt.healthcareapis.models.OperationDisplay - """ - - _validation = { - 'name': {'readonly': True}, - 'origin': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = None - self.origin = None - self.display = kwargs.get('display', None) - - -class OperationDisplay(msrest.serialization.Model): - """The object that represents the operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provider: Service provider: Microsoft.HealthcareApis - :vartype provider: str - :ivar resource: Resource Type: Services - :vartype resource: str - :ivar operation: Name of the operation - :vartype operation: str - :ivar description: Friendly description for the operation, - :vartype description: str - """ - - _validation = { - 'provider': {'readonly': True}, - 'resource': {'readonly': True}, - 'operation': {'readonly': True}, - 'description': {'readonly': True}, - } - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = None - self.resource = None - self.operation = None - self.description = None - - -class OperationListResult(msrest.serialization.Model): - """A list of service operations. It contains a list of operations and a URL link to get the next set of results. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param next_link: The link used to get the next page of service description objects. - :type next_link: str - :ivar value: A list of service operations supported by the Microsoft.HealthcareApis resource - provider. - :vartype value: list[~healthcare_apis_management_client.models.Operation] - """ - - _validation = { - 'value': {'readonly': True}, - } - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[Operation]'}, - } - - def __init__( - self, - **kwargs - ): - super(OperationListResult, self).__init__(**kwargs) - self.next_link = kwargs.get('next_link', None) - self.value = None - - -class OperationResultsDescription(msrest.serialization.Model): - """The properties indicating the operation result of an operation on a - service. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: The ID of the operation returned. - :vartype id: str - :ivar name: The name of the operation result. - :vartype name: str - :ivar status: The status of the operation being performed. Possible values - include: 'Canceled', 'Succeeded', 'Failed', 'Requested', 'Running' - :vartype status: str or ~healthcare_apis_management_client.models.OperationResultStatus - :ivar start_time: The time that the operation was started. - :vartype start_time: str - :param properties: Additional properties of the operation result. - :type properties: object - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'status': {'readonly': True}, - 'start_time': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(OperationResultsDescription, self).__init__(**kwargs) - self.id = None - self.name = None - self.status = None - self.start_time = None - self.properties = kwargs.get('properties', None) - - -class Resource(msrest.serialization.Model): - """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 - - /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 - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - - -class PrivateEndpointConnection(Resource): - """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 - :ivar provisioning_state: The provisioning state of the private endpoint connection resource. - Possible values include: "Succeeded", "Creating", "Deleting", "Failed". - :vartype provisioning_state: str or - ~healthcare_apis_management_client.models.PrivateEndpointConnectionProvisioningState - :param status: Indicates whether the connection has been Approved/Rejected/Removed by the owner - of the service. Possible values include: "Pending", "Approved", "Rejected". - :type status: str or - ~healthcare_apis_management_client.models.PrivateEndpointServiceConnectionStatus - :param description: The reason for approval/rejection of the connection. - :type description: str - :param actions_required: A message indicating if changes on the service provider require any - updates on the consumer. - :type actions_required: str - :ivar id_private_endpoint_id: The ARM identifier for Private Endpoint. - :vartype id_private_endpoint_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'id_private_endpoint_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'status': {'key': 'privateLinkServiceConnectionState.status', 'type': 'str'}, - 'description': {'key': 'privateLinkServiceConnectionState.description', 'type': 'str'}, - 'actions_required': {'key': 'privateLinkServiceConnectionState.actionsRequired', 'type': 'str'}, - 'id_private_endpoint_id': {'key': 'privateEndpoint.id', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(PrivateEndpointConnection, self).__init__(**kwargs) - self.provisioning_state = None - self.status = kwargs.get('status', None) - self.description = kwargs.get('description', None) - self.actions_required = kwargs.get('actions_required', None) - self.id_private_endpoint_id = None - - -class PrivateEndpointConnectionListResult(msrest.serialization.Model): - """List of private endpoint connection associated with the specified storage account. - - :param value: Array of private endpoint connections. - :type value: list[~healthcare_apis_management_client.models.PrivateEndpointConnection] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[PrivateEndpointConnection]'}, - } - - def __init__( - self, - **kwargs - ): - super(PrivateEndpointConnectionListResult, self).__init__(**kwargs) - self.value = kwargs.get('value', 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 - - /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] - """ - - _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]'}, - } - - def __init__(self, **kwargs): - super(PrivateLinkResource, self).__init__(**kwargs) - self.group_id = None - self.required_members = None - self.required_zone_names = kwargs.get('required_zone_names', None) - - -class PrivateLinkResourceListResult(msrest.serialization.Model): - """A list of private link resources. - - :param value: Array of private link resources - :type value: list[~azure.mgmt.healthcareapis.models.PrivateLinkResource] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, - } - - def __init__(self, **kwargs): - super(PrivateLinkResourceListResult, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - -class ServiceAccessPolicyEntry(msrest.serialization.Model): - """An access policy entry. - - All required parameters must be populated in order to send to Azure. - - :param object_id: Required. An Azure AD object ID (User or Apps) that is - allowed access to the FHIR service. - :type object_id: str - """ - - _validation = { - 'object_id': {'required': True, 'pattern': r'^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$'}, - } - - _attribute_map = { - 'object_id': {'key': 'objectId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceAccessPolicyEntry, self).__init__(**kwargs) - self.object_id = kwargs['object_id'] - - -class ServiceAuthenticationConfigurationInfo(msrest.serialization.Model): - """Authentication configuration information. - - :param authority: The authority url for the service - :type authority: str - :param audience: The audience url for the service - :type audience: str - :param smart_proxy_enabled: If the SMART on FHIR proxy is enabled - :type smart_proxy_enabled: bool - """ - - _attribute_map = { - 'authority': {'key': 'authority', 'type': 'str'}, - 'audience': {'key': 'audience', 'type': 'str'}, - 'smart_proxy_enabled': {'key': 'smartProxyEnabled', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(ServiceAuthenticationConfigurationInfo, self).__init__(**kwargs) - self.authority = kwargs.get('authority', None) - self.audience = kwargs.get('audience', None) - self.smart_proxy_enabled = kwargs.get('smart_proxy_enabled', None) - - -class ServiceCorsConfigurationInfo(msrest.serialization.Model): - """The settings for the CORS configuration of the service instance. - - :param origins: The origins to be allowed via CORS. - :type origins: list[str] - :param headers: The headers to be allowed via CORS. - :type headers: list[str] - :param methods: The methods to be allowed via CORS. - :type methods: list[str] - :param max_age: The max age to be allowed via CORS. - :type max_age: int - :param allow_credentials: If credentials are allowed via CORS. - :type allow_credentials: bool - """ - - _validation = { - 'max_age': {'maximum': 99999, 'minimum': 0}, - } - - _attribute_map = { - 'origins': {'key': 'origins', 'type': '[str]'}, - 'headers': {'key': 'headers', 'type': '[str]'}, - 'methods': {'key': 'methods', 'type': '[str]'}, - 'max_age': {'key': 'maxAge', 'type': 'int'}, - 'allow_credentials': {'key': 'allowCredentials', 'type': 'bool'}, - } - - def __init__(self, **kwargs): - super(ServiceCorsConfigurationInfo, self).__init__(**kwargs) - self.origins = kwargs.get('origins', None) - self.headers = kwargs.get('headers', None) - self.methods = kwargs.get('methods', None) - self.max_age = kwargs.get('max_age', None) - self.allow_credentials = kwargs.get('allow_credentials', None) - - -class ServiceCosmosDbConfigurationInfo(msrest.serialization.Model): - """The settings for the Cosmos DB database backing the service. - - :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 = { - 'offer_throughput': {'maximum': 10000, 'minimum': 400}, - } - - _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(msrest.serialization.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 ServicesResource(msrest.serialization.Model): - """The common properties of a service. - - 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: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :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 - :param tags: The resource tags. - :type tags: dict[str, str] - :param etag: An etag associated with the resource, used for optimistic - concurrency when editing it. - :type etag: str - :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_identity_type: Type of identity being specified, currently SystemAssigned and None - are allowed. Possible values include: "SystemAssigned", "None". - :type type_identity_type: str or - ~healthcare_apis_management_client.models.ManagedServiceIdentityType - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'location': {'required': True}, - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'principal_id': {'key': 'identity.principalId', 'type': 'str'}, - 'tenant_id': {'key': 'identity.tenantId', 'type': 'str'}, - 'type_identity_type': {'key': 'identity.type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ServicesResource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.kind = kwargs['kind'] - self.location = kwargs['location'] - self.tags = kwargs.get('tags', None) - self.etag = kwargs.get('etag', None) - self.principal_id = None - self.tenant_id = None - self.type_identity_type = kwargs.get('type_identity_type', None) - - -class ServicesDescription(ServicesResource): - """The description of the service. - - 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: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :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 - :param tags: The resource tags. - :type tags: dict[str, str] - :param etag: An etag associated with the resource, used for optimistic concurrency when editing - it. - :type etag: str - :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_identity_type: Type of identity being specified, currently SystemAssigned and None - are allowed. Possible values include: "SystemAssigned", "None". - :type type_identity_type: str or - ~healthcare_apis_management_client.models.ManagedServiceIdentityType - :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", - "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", - "Deprovisioned". - :vartype provisioning_state: str or ~healthcare_apis_management_client.models.ProvisioningState - :param access_policies: The access policies of the service instance. - :type access_policies: list[~healthcare_apis_management_client.models.ServiceAccessPolicyEntry] - :param cosmos_db_configuration: The settings for the Cosmos DB database backing the service. - :type cosmos_db_configuration: - ~healthcare_apis_management_client.models.ServiceCosmosDBConfigurationInfo - :param authentication_configuration: The authentication configuration for the service instance. - :type authentication_configuration: - ~healthcare_apis_management_client.models.ServiceAuthenticationConfigurationInfo - :param cors_configuration: The settings for the CORS configuration of the service instance. - :type cors_configuration: - ~healthcare_apis_management_client.models.ServiceCorsConfigurationInfo - :param private_endpoint_connections: The list of private endpoint connections that are set up - for this resource. - :type private_endpoint_connections: - list[~healthcare_apis_management_client.models.PrivateEndpointConnection] - :param public_network_access: Control permission for data plane traffic coming from public - networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". - :type public_network_access: str or - ~healthcare_apis_management_client.models.PublicNetworkAccess - :param storage_account_name: The name of the default export storage account. - :type storage_account_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'location': {'required': True}, - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'principal_id': {'key': 'identity.principalId', 'type': 'str'}, - 'tenant_id': {'key': 'identity.tenantId', 'type': 'str'}, - 'type_identity_type': {'key': 'identity.type', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'access_policies': {'key': 'properties.accessPolicies', 'type': '[ServiceAccessPolicyEntry]'}, - 'cosmos_db_configuration': {'key': 'properties.cosmosDbConfiguration', 'type': 'ServiceCosmosDBConfigurationInfo'}, - 'authentication_configuration': {'key': 'properties.authenticationConfiguration', 'type': 'ServiceAuthenticationConfigurationInfo'}, - 'cors_configuration': {'key': 'properties.corsConfiguration', 'type': 'ServiceCorsConfigurationInfo'}, - 'export_configuration': {'key': 'properties.exportConfiguration', 'type': 'ServiceExportConfigurationInfo'}, - 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, - 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ServicesDescription, self).__init__(**kwargs) - self.provisioning_state = None - self.access_policies = kwargs.get('access_policies', None) - 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) - self.private_endpoint_connections = kwargs.get('private_endpoint_connections', None) - self.public_network_access = kwargs.get('public_network_access', None) - - -class ServicesDescriptionListResult(msrest.serialization.Model): - """A list of service description objects with a next link. - - :param next_link: The link used to get the next page of service description objects. - :type next_link: str - :param value: A list of service description objects. - :type value: list[~healthcare_apis_management_client.models.ServicesDescription] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ServicesDescription]'}, - } - - def __init__( - self, - **kwargs - ): - super(ServicesDescriptionListResult, self).__init__(**kwargs) - self.next_link = kwargs.get('next_link', None) - self.value = kwargs.get('value', None) - - -class ServicesNameAvailabilityInfo(msrest.serialization.Model): - """The properties indicating whether a given service name is available. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name_available: The value which indicates whether the provided name is available. - :vartype name_available: bool - :ivar reason: The reason for unavailability. Possible values include: "Invalid", - "AlreadyExists". - :vartype reason: str or - ~healthcare_apis_management_client.models.ServiceNameUnavailabilityReason - :param message: The detailed reason message. - :type message: str - """ - - _validation = { - 'name_available': {'readonly': True}, - 'reason': {'readonly': True}, - } - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ServicesNameAvailabilityInfo, self).__init__(**kwargs) - self.name_available = None - self.reason = None - self.message = kwargs.get('message', None) - - -class ServicesPatchDescription(msrest.serialization.Model): - """The description of the service. - - :param tags: A set of tags. Instance tags. - :type tags: dict[str, str] - :param public_network_access: Control permission for data plane traffic coming from public - networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". - :type public_network_access: str or - ~healthcare_apis_management_client.models.PublicNetworkAccess - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ServicesPatchDescription, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.public_network_access = kwargs.get('public_network_access', None) diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/models/_models_py3.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/models/_models_py3.py deleted file mode 100644 index 3859b7daedc..00000000000 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/models/_models_py3.py +++ /dev/null @@ -1,907 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from typing import Dict, List, Optional, Union - -from azure.core.exceptions import HttpResponseError -import msrest.serialization - -from ._healthcare_apis_management_client_enums import * - - -class CheckNameAvailabilityParameters(msrest.serialization.Model): - """Input values. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the service instance to check. - :type name: str - :param type: Required. The fully qualified resource type which includes provider namespace. - :type type: str - """ - - _validation = { - 'name': {'required': True}, - 'type': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - *, - name: str, - type: str, - **kwargs - ): - super(CheckNameAvailabilityParameters, self).__init__(**kwargs) - self.name = name - self.type = type - - -class ErrorDetails(msrest.serialization.Model): - """Error details. - - :param error: Object containing error details. - :type error: ~healthcare_apis_management_client.models.ErrorDetailsInternal - """ - - _attribute_map = { - 'error': {'key': 'error', 'type': 'ErrorDetailsInternal'}, - } - - def __init__( - self, - *, - error: Optional["ErrorDetailsInternal"] = None, - **kwargs - ): - super(ErrorDetails, self).__init__(**kwargs) - self.error = error - - -class ErrorDetailsInternal(msrest.serialization.Model): - """Error details. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: The error code. - :vartype code: str - :ivar message: The error message. - :vartype message: str - :ivar target: The target of the particular error. - :vartype target: str - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ErrorDetailsInternal, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - - -class Operation(msrest.serialization.Model): - """Service REST API operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name: Operation name: {provider}/{resource}/{read | write | action | - delete} - :vartype name: str - :ivar origin: Default value is 'user,system'. - :vartype origin: str - :param display: The information displayed about the operation. - :type display: ~azure.mgmt.healthcareapis.models.OperationDisplay - """ - - _validation = { - 'name': {'readonly': True}, - 'origin': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__( - self, - *, - display: Optional["OperationDisplay"] = None, - **kwargs - ): - super(Operation, self).__init__(**kwargs) - self.name = None - self.origin = None - self.display = display - - -class OperationDisplay(msrest.serialization.Model): - """The object that represents the operation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar provider: Service provider: Microsoft.HealthcareApis - :vartype provider: str - :ivar resource: Resource Type: Services - :vartype resource: str - :ivar operation: Name of the operation - :vartype operation: str - :ivar description: Friendly description for the operation, - :vartype description: str - """ - - _validation = { - 'provider': {'readonly': True}, - 'resource': {'readonly': True}, - 'operation': {'readonly': True}, - 'description': {'readonly': True}, - } - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(OperationDisplay, self).__init__(**kwargs) - self.provider = None - self.resource = None - self.operation = None - self.description = None - - -class OperationListResult(msrest.serialization.Model): - """A list of service operations. It contains a list of operations and a URL link to get the next set of results. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param next_link: The link used to get the next page of service description objects. - :type next_link: str - :ivar value: A list of service operations supported by the Microsoft.HealthcareApis resource - provider. - :vartype value: list[~healthcare_apis_management_client.models.Operation] - """ - - _validation = { - 'value': {'readonly': True}, - } - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[Operation]'}, - } - - def __init__( - self, - *, - next_link: Optional[str] = None, - **kwargs - ): - super(OperationListResult, self).__init__(**kwargs) - self.next_link = next_link - self.value = None - - -class OperationResultsDescription(msrest.serialization.Model): - """The properties indicating the operation result of an operation on a service. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: The ID of the operation returned. - :vartype id: str - :ivar name: The name of the operation result. - :vartype name: str - :ivar status: The status of the operation being performed. Possible values - include: 'Canceled', 'Succeeded', 'Failed', 'Requested', 'Running' - :vartype status: str or - ~azure.mgmt.healthcareapis.models.OperationResultStatus - :ivar start_time: The time that the operation was started. - :vartype start_time: str - :param properties: Additional properties of the operation result. - :type properties: object - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'status': {'readonly': True}, - 'start_time': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__( - self, - *, - properties: Optional[object] = None, - **kwargs - ): - super(OperationResultsDescription, self).__init__(**kwargs) - self.id = None - self.name = None - self.status = None - self.start_time = None - self.properties = properties - - -class Resource(msrest.serialization.Model): - """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 - - /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 - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - - -class PrivateEndpointConnection(Resource): - """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 provisioning_state: The provisioning state of the private endpoint connection resource. - Possible values include: "Succeeded", "Creating", "Deleting", "Failed". - :vartype provisioning_state: str or - ~healthcare_apis_management_client.models.PrivateEndpointConnectionProvisioningState - :param status: Indicates whether the connection has been Approved/Rejected/Removed by the owner - of the service. Possible values include: "Pending", "Approved", "Rejected". - :type status: str or - ~healthcare_apis_management_client.models.PrivateEndpointServiceConnectionStatus - :param description: The reason for approval/rejection of the connection. - :type description: str - :param actions_required: A message indicating if changes on the service provider require any - updates on the consumer. - :type actions_required: str - :ivar id_private_endpoint_id: The ARM identifier for Private Endpoint. - :vartype id_private_endpoint_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'id_private_endpoint_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'status': {'key': 'privateLinkServiceConnectionState.status', 'type': 'str'}, - 'description': {'key': 'privateLinkServiceConnectionState.description', 'type': 'str'}, - 'actions_required': {'key': 'privateLinkServiceConnectionState.actionsRequired', 'type': 'str'}, - 'id_private_endpoint_id': {'key': 'privateEndpoint.id', 'type': 'str'}, - } - - def __init__( - self, - *, - status: Optional[Union[str, "PrivateEndpointServiceConnectionStatus"]] = None, - description: Optional[str] = None, - actions_required: Optional[str] = None, - **kwargs - ): - super(PrivateEndpointConnection, self).__init__(**kwargs) - self.provisioning_state = None - self.status = status - self.description = description - self.actions_required = actions_required - self.id_private_endpoint_id = None - - -class PrivateEndpointConnectionListResult(msrest.serialization.Model): - """List of private endpoint connection associated with the specified storage account. - - :param value: Array of private endpoint connections. - :type value: list[~healthcare_apis_management_client.models.PrivateEndpointConnection] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[PrivateEndpointConnection]'}, - } - - def __init__( - self, - *, - value: Optional[List["PrivateEndpointConnection"]] = None, - **kwargs - ): - super(PrivateEndpointConnectionListResult, self).__init__(**kwargs) - self.value = value - - -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 - - /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] - """ - - _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]'}, - } - - def __init__( - self, - *, - required_zone_names: Optional[List[str]] = None, - **kwargs - ): - super(PrivateLinkResource, self).__init__(**kwargs) - self.group_id = None - self.required_members = None - self.required_zone_names = required_zone_names - - -class PrivateLinkResourceListResult(msrest.serialization.Model): - """A list of private link resources. - - :param value: Array of private link resources. - :type value: list[~healthcare_apis_management_client.models.PrivateLinkResource] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, - } - - def __init__( - self, - *, - value: Optional[List["PrivateLinkResource"]] = None, - **kwargs - ): - super(PrivateLinkResourceListResult, self).__init__(**kwargs) - self.value = value - - -class ServiceAccessPolicyEntry(msrest.serialization.Model): - """An access policy entry. - - All required parameters must be populated in order to send to Azure. - - :param object_id: Required. An Azure AD object ID (User or Apps) that is allowed access to the - FHIR service. - :type object_id: str - """ - - _validation = { - 'object_id': {'required': True, 'pattern': r'^(([0-9A-Fa-f]{8}[-]?(?:[0-9A-Fa-f]{4}[-]?){3}[0-9A-Fa-f]{12}){1})+$'}, - } - - _attribute_map = { - 'object_id': {'key': 'objectId', 'type': 'str'}, - } - - def __init__( - self, - *, - object_id: str, - **kwargs - ): - super(ServiceAccessPolicyEntry, self).__init__(**kwargs) - self.object_id = object_id - - -class ServiceAuthenticationConfigurationInfo(msrest.serialization.Model): - """Authentication configuration information. - - :param authority: The authority url for the service. - :type authority: str - :param audience: The audience url for the service. - :type audience: str - :param smart_proxy_enabled: If the SMART on FHIR proxy is enabled. - :type smart_proxy_enabled: bool - """ - - _attribute_map = { - 'authority': {'key': 'authority', 'type': 'str'}, - 'audience': {'key': 'audience', 'type': 'str'}, - 'smart_proxy_enabled': {'key': 'smartProxyEnabled', 'type': 'bool'}, - } - - def __init__( - self, - *, - authority: Optional[str] = None, - audience: Optional[str] = None, - smart_proxy_enabled: Optional[bool] = None, - **kwargs - ): - super(ServiceAuthenticationConfigurationInfo, self).__init__(**kwargs) - self.authority = authority - self.audience = audience - self.smart_proxy_enabled = smart_proxy_enabled - - -class ServiceCorsConfigurationInfo(msrest.serialization.Model): - """The settings for the CORS configuration of the service instance. - - :param origins: The origins to be allowed via CORS. - :type origins: list[str] - :param headers: The headers to be allowed via CORS. - :type headers: list[str] - :param methods: The methods to be allowed via CORS. - :type methods: list[str] - :param max_age: The max age to be allowed via CORS. - :type max_age: int - :param allow_credentials: If credentials are allowed via CORS. - :type allow_credentials: bool - """ - - _validation = { - 'max_age': {'maximum': 99999, 'minimum': 0}, - } - - _attribute_map = { - 'origins': {'key': 'origins', 'type': '[str]'}, - 'headers': {'key': 'headers', 'type': '[str]'}, - 'methods': {'key': 'methods', 'type': '[str]'}, - 'max_age': {'key': 'maxAge', 'type': 'int'}, - 'allow_credentials': {'key': 'allowCredentials', 'type': 'bool'}, - } - - def __init__( - self, - *, - origins: Optional[List[str]] = None, - headers: Optional[List[str]] = None, - methods: Optional[List[str]] = None, - max_age: Optional[int] = None, - allow_credentials: Optional[bool] = None, - **kwargs - ): - super(ServiceCorsConfigurationInfo, self).__init__(**kwargs) - self.origins = origins - self.headers = headers - self.methods = methods - self.max_age = max_age - self.allow_credentials = allow_credentials - - -class ServiceCosmosDbConfigurationInfo(msrest.serialization.Model): - """The settings for the Cosmos DB database backing the service. - - :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 = { - 'offer_throughput': {'maximum': 10000, 'minimum': 400}, - } - - _attribute_map = { - 'offer_throughput': {'key': 'offerThroughput', 'type': 'int'}, - 'key_vault_key_uri': {'key': 'keyVaultKeyUri', 'type': 'str'}, - } - - def __init__( - self, - *, - offer_throughput: Optional[int] = None, - key_vault_key_uri: Optional[str] = None, - **kwargs - ): - super(ServiceCosmosDbConfigurationInfo, self).__init__(**kwargs) - self.offer_throughput = offer_throughput - self.key_vault_key_uri = key_vault_key_uri - - -class ServiceExportConfigurationInfo(msrest.serialization.Model): - """Export operation configuration information. - - :param storage_account_name: The name of the default export storage - account. - :type storage_account_name: str - """ - - _attribute_map = { - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - } - - def __init__(self, *, storage_account_name: str=None, **kwargs) -> None: - super(ServiceExportConfigurationInfo, self).__init__(**kwargs) - self.storage_account_name = storage_account_name - - -class ServicesResource(msrest.serialization.Model): - """The common properties of a service. - - 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: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :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 - :param tags: The resource tags. - :type tags: dict[str, str] - :param etag: An etag associated with the resource, used for optimistic concurrency when editing - it. - :type etag: str - :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_identity_type: Type of identity being specified, currently SystemAssigned and None - are allowed. Possible values include: "SystemAssigned", "None". - :type type_identity_type: str or - ~healthcare_apis_management_client.models.ManagedServiceIdentityType - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'location': {'required': True}, - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'principal_id': {'key': 'identity.principalId', 'type': 'str'}, - 'tenant_id': {'key': 'identity.tenantId', 'type': 'str'}, - 'type_identity_type': {'key': 'identity.type', 'type': 'str'}, - } - - def __init__( - self, - *, - kind: Union[str, "Kind"], - location: str, - tags: Optional[Dict[str, str]] = None, - etag: Optional[str] = None, - type_identity_type: Optional[Union[str, "ManagedServiceIdentityType"]] = None, - **kwargs - ): - super(ServicesResource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.kind = kind - self.location = location - self.tags = tags - self.etag = etag - self.principal_id = None - self.tenant_id = None - self.type_identity_type = type_identity_type - - -class ServicesDescription(ServicesResource): - """The description of the service. - - 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: The resource identifier. - :vartype id: str - :ivar name: The resource name. - :vartype name: str - :ivar type: The resource type. - :vartype type: str - :param kind: Required. The kind of the service. Possible values include: - 'fhir', 'fhir-Stu3', 'fhir-R4' - :type kind: str or ~healthcare_apis_management_client.models.Kind - :param location: Required. The resource location. - :type location: str - :param tags: The resource tags. - :type tags: dict[str, str] - :param etag: An etag associated with the resource, used for optimistic concurrency when editing - it. - :type etag: str - :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_identity_type: Type of identity being specified, currently SystemAssigned and None - are allowed. Possible values include: "SystemAssigned", "None". - :type type_identity_type: str or - ~healthcare_apis_management_client.models.ManagedServiceIdentityType - :ivar provisioning_state: The provisioning state. Possible values include: "Deleting", - "Succeeded", "Creating", "Accepted", "Verifying", "Updating", "Failed", "Canceled", - "Deprovisioned". - :vartype provisioning_state: str or ~healthcare_apis_management_client.models.ProvisioningState - :param access_policies: The access policies of the service instance. - :type access_policies: list[~healthcare_apis_management_client.models.ServiceAccessPolicyEntry] - :param cosmos_db_configuration: The settings for the Cosmos DB database backing the service. - :type cosmos_db_configuration: - ~healthcare_apis_management_client.models.ServiceCosmosDBConfigurationInfo - :param authentication_configuration: The authentication configuration for the service instance. - :type authentication_configuration: - ~healthcare_apis_management_client.models.ServiceAuthenticationConfigurationInfo - :param cors_configuration: The settings for the CORS configuration of the service instance. - :type cors_configuration: - ~healthcare_apis_management_client.models.ServiceCorsConfigurationInfo - :param private_endpoint_connections: The list of private endpoint connections that are set up - for this resource. - :type private_endpoint_connections: - list[~healthcare_apis_management_client.models.PrivateEndpointConnection] - :param public_network_access: Control permission for data plane traffic coming from public - networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". - :type public_network_access: str or - ~healthcare_apis_management_client.models.PublicNetworkAccess - :param storage_account_name: The name of the default export storage account. - :type storage_account_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True, 'pattern': r'^[a-z0-9][a-z0-9-]{1,21}[a-z0-9]$'}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'location': {'required': True}, - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'etag': {'key': 'etag', 'type': 'str'}, - 'principal_id': {'key': 'identity.principalId', 'type': 'str'}, - 'tenant_id': {'key': 'identity.tenantId', 'type': 'str'}, - 'type_identity_type': {'key': 'identity.type', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'access_policies': {'key': 'properties.accessPolicies', 'type': '[ServiceAccessPolicyEntry]'}, - 'cosmos_db_configuration': {'key': 'properties.cosmosDbConfiguration', 'type': 'ServiceCosmosDBConfigurationInfo'}, - 'authentication_configuration': {'key': 'properties.authenticationConfiguration', 'type': 'ServiceAuthenticationConfigurationInfo'}, - 'cors_configuration': {'key': 'properties.corsConfiguration', 'type': 'ServiceCorsConfigurationInfo'}, - 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, - 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, - 'storage_account_name': {'key': 'properties.exportConfiguration.storageAccountName', 'type': 'str'}, - } - - def __init__( - self, - *, - kind: Union[str, "Kind"], - location: str, - tags: Optional[Dict[str, str]] = None, - etag: Optional[str] = None, - type_identity_type: Optional[Union[str, "ManagedServiceIdentityType"]] = None, - access_policies: Optional[List["ServiceAccessPolicyEntry"]] = None, - cosmos_db_configuration: Optional["ServiceCosmosDBConfigurationInfo"] = None, - authentication_configuration: Optional["ServiceAuthenticationConfigurationInfo"] = None, - cors_configuration: Optional["ServiceCorsConfigurationInfo"] = None, - private_endpoint_connections: Optional[List["PrivateEndpointConnection"]] = None, - public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, - storage_account_name: Optional[str] = None, - **kwargs - ): - super(ServicesDescription, self).__init__(kind=kind, location=location, tags=tags, etag=etag, type_identity_type=type_identity_type, **kwargs) - self.provisioning_state = None - self.access_policies = access_policies - self.cosmos_db_configuration = cosmos_db_configuration - self.authentication_configuration = authentication_configuration - self.cors_configuration = cors_configuration - self.private_endpoint_connections = private_endpoint_connections - self.public_network_access = public_network_access - self.storage_account_name = storage_account_name - - -class ServicesDescriptionListResult(msrest.serialization.Model): - """A list of service description objects with a next link. - - :param next_link: The link used to get the next page of service description objects. - :type next_link: str - :param value: A list of service description objects. - :type value: list[~healthcare_apis_management_client.models.ServicesDescription] - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ServicesDescription]'}, - } - - def __init__( - self, - *, - next_link: Optional[str] = None, - value: Optional[List["ServicesDescription"]] = None, - **kwargs - ): - super(ServicesDescriptionListResult, self).__init__(**kwargs) - self.next_link = next_link - self.value = value - - -class ServicesNameAvailabilityInfo(msrest.serialization.Model): - """The properties indicating whether a given service name is available. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar name_available: The value which indicates whether the provided name - is available. - :vartype name_available: bool - :ivar reason: The reason for unavailability. Possible values include: - 'Invalid', 'AlreadyExists' - :vartype reason: str or - ~healthcare_apis_management_client.models.ServiceNameUnavailabilityReason - :param message: The detailed reason message. - :type message: str - """ - - _validation = { - 'name_available': {'readonly': True}, - 'reason': {'readonly': True}, - } - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__( - self, - *, - message: Optional[str] = None, - **kwargs - ): - super(ServicesNameAvailabilityInfo, self).__init__(**kwargs) - self.name_available = None - self.reason = None - self.message = message - - -class ServicesPatchDescription(msrest.serialization.Model): - """The description of the service. - - :param tags: A set of tags. Instance tags. - :type tags: dict[str, str] - :param public_network_access: Control permission for data plane traffic coming from public - coming from public networks while private endpoint is enabled. Possible - values include: 'Enabled', 'Disabled' - :type public_network_access: str or - ~healthcare_apis_management_client.models.PublicNetworkAccess - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, - } - - def __init__( - self, - *, - tags: Optional[Dict[str, str]] = None, - public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, - **kwargs - ): - super(ServicesPatchDescription, self).__init__(**kwargs) - self.tags = tags - self.public_network_access = public_network_access diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/__init__.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/__init__.py deleted file mode 100644 index 2fae7b5b7cf..00000000000 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/__init__.py +++ /dev/null @@ -1,21 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -from ._service_operations import ServiceOperations -from ._operation_operations import OperationOperations -from ._operation_result_operations import OperationResultOperations -from ._private_endpoint_connection_operations import PrivateEndpointConnectionOperations -from ._private_link_resource_operations import PrivateLinkResourceOperations - -__all__ = [ - 'ServiceOperations', - 'OperationOperations', - 'OperationResultOperations', - 'PrivateEndpointConnectionOperations', - 'PrivateLinkResourceOperations', -] diff --git a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_operation_result_operations.py b/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_operation_result_operations.py deleted file mode 100644 index 88eeab15f65..00000000000 --- a/src/healthcareapis/azext_healthcareapis/vendored_sdks/subscription/operations/_operation_result_operations.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - - -class OperationResultOperations(object): - """OperationResultOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~healthcare_apis_management_client.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def get( - self, - location_name, # type: str - operation_result_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> Union["models.OperationResultsDescription", "models.ErrorDetails"] - """Get the operation result for a long running operation. - - :param location_name: The location of the operation. - :type location_name: str - :param operation_result_id: The ID of the operation result to get. - :type operation_result_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: OperationResultsDescription or ErrorDetails, or the result of cls(response) - :rtype: ~healthcare_apis_management_client.models.OperationResultsDescription or ~healthcare_apis_management_client.models.ErrorDetails - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[Union["models.OperationResultsDescription", "models.ErrorDetails"]] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-03-30" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'locationName': self._serialize.url("location_name", location_name, 'str'), - 'operationResultId': self._serialize.url("operation_result_id", operation_result_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 404]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorDetails, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - if response.status_code == 200: - deserialized = self._deserialize('OperationResultsDescription', pipeline_response) - - if response.status_code == 404: - deserialized = self._deserialize('ErrorDetails', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/locations/{locationName}/operationresults/{operationResultId}'} # type: ignore diff --git a/src/healthcareapis/report.md b/src/healthcareapis/report.md index c473c986584..8539ecacbb3 100644 --- a/src/healthcareapis/report.md +++ b/src/healthcareapis/report.md @@ -13,6 +13,14 @@ |az healthcareapis operation-result|OperationResults|[commands](#CommandsInOperationResults)| |az healthcareapis private-endpoint-connection|PrivateEndpointConnections|[commands](#CommandsInPrivateEndpointConnections)| |az healthcareapis private-link-resource|PrivateLinkResources|[commands](#CommandsInPrivateLinkResources)| +|az healthcareapis workspace|Workspaces|[commands](#CommandsInWorkspaces)| +|az healthcareapis workspace dicom-service|DicomServices|[commands](#CommandsInDicomServices)| +|az healthcareapis workspace fhir-service|FhirServices|[commands](#CommandsInFhirServices)| +|az healthcareapis workspace iot-connector|IotConnectors|[commands](#CommandsInIotConnectors)| +|az healthcareapis workspace iot-connector fhir-destination|FhirDestinations|[commands](#CommandsInFhirDestinations)| +|az healthcareapis workspace iot-connector fhir-destination|IotConnectorFhirDestination|[commands](#CommandsInIotConnectorFhirDestination)| +|az healthcareapis workspace private-endpoint-connection|WorkspacePrivateEndpointConnections|[commands](#CommandsInWorkspacePrivateEndpointConnections)| +|az healthcareapis workspace private-link-resource|WorkspacePrivateLinkResources|[commands](#CommandsInWorkspacePrivateLinkResources)| ## COMMANDS ### Commands in `az healthcareapis operation-result` group @@ -45,9 +53,73 @@ |[az healthcareapis service update](#ServicesUpdate)|Update|[Parameters](#ParametersServicesUpdate)|[Example](#ExamplesServicesUpdate)| |[az healthcareapis service delete](#ServicesDelete)|Delete|[Parameters](#ParametersServicesDelete)|[Example](#ExamplesServicesDelete)| +### Commands in `az healthcareapis workspace` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az healthcareapis workspace list](#WorkspacesListByResourceGroup)|ListByResourceGroup|[Parameters](#ParametersWorkspacesListByResourceGroup)|[Example](#ExamplesWorkspacesListByResourceGroup)| +|[az healthcareapis workspace list](#WorkspacesListBySubscription)|ListBySubscription|[Parameters](#ParametersWorkspacesListBySubscription)|[Example](#ExamplesWorkspacesListBySubscription)| +|[az healthcareapis workspace show](#WorkspacesGet)|Get|[Parameters](#ParametersWorkspacesGet)|[Example](#ExamplesWorkspacesGet)| +|[az healthcareapis workspace create](#WorkspacesCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersWorkspacesCreateOrUpdate#Create)|[Example](#ExamplesWorkspacesCreateOrUpdate#Create)| +|[az healthcareapis workspace update](#WorkspacesUpdate)|Update|[Parameters](#ParametersWorkspacesUpdate)|[Example](#ExamplesWorkspacesUpdate)| +|[az healthcareapis workspace delete](#WorkspacesDelete)|Delete|[Parameters](#ParametersWorkspacesDelete)|[Example](#ExamplesWorkspacesDelete)| + +### Commands in `az healthcareapis workspace dicom-service` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az healthcareapis workspace dicom-service list](#DicomServicesListByWorkspace)|ListByWorkspace|[Parameters](#ParametersDicomServicesListByWorkspace)|[Example](#ExamplesDicomServicesListByWorkspace)| +|[az healthcareapis workspace dicom-service show](#DicomServicesGet)|Get|[Parameters](#ParametersDicomServicesGet)|[Example](#ExamplesDicomServicesGet)| +|[az healthcareapis workspace dicom-service create](#DicomServicesCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersDicomServicesCreateOrUpdate#Create)|[Example](#ExamplesDicomServicesCreateOrUpdate#Create)| +|[az healthcareapis workspace dicom-service update](#DicomServicesUpdate)|Update|[Parameters](#ParametersDicomServicesUpdate)|[Example](#ExamplesDicomServicesUpdate)| +|[az healthcareapis workspace dicom-service delete](#DicomServicesDelete)|Delete|[Parameters](#ParametersDicomServicesDelete)|[Example](#ExamplesDicomServicesDelete)| + +### Commands in `az healthcareapis workspace fhir-service` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az healthcareapis workspace fhir-service list](#FhirServicesListByWorkspace)|ListByWorkspace|[Parameters](#ParametersFhirServicesListByWorkspace)|[Example](#ExamplesFhirServicesListByWorkspace)| +|[az healthcareapis workspace fhir-service show](#FhirServicesGet)|Get|[Parameters](#ParametersFhirServicesGet)|[Example](#ExamplesFhirServicesGet)| +|[az healthcareapis workspace fhir-service create](#FhirServicesCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersFhirServicesCreateOrUpdate#Create)|[Example](#ExamplesFhirServicesCreateOrUpdate#Create)| +|[az healthcareapis workspace fhir-service update](#FhirServicesUpdate)|Update|[Parameters](#ParametersFhirServicesUpdate)|[Example](#ExamplesFhirServicesUpdate)| +|[az healthcareapis workspace fhir-service delete](#FhirServicesDelete)|Delete|[Parameters](#ParametersFhirServicesDelete)|[Example](#ExamplesFhirServicesDelete)| + +### Commands in `az healthcareapis workspace iot-connector` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az healthcareapis workspace iot-connector list](#IotConnectorsListByWorkspace)|ListByWorkspace|[Parameters](#ParametersIotConnectorsListByWorkspace)|[Example](#ExamplesIotConnectorsListByWorkspace)| +|[az healthcareapis workspace iot-connector show](#IotConnectorsGet)|Get|[Parameters](#ParametersIotConnectorsGet)|[Example](#ExamplesIotConnectorsGet)| +|[az healthcareapis workspace iot-connector create](#IotConnectorsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersIotConnectorsCreateOrUpdate#Create)|[Example](#ExamplesIotConnectorsCreateOrUpdate#Create)| +|[az healthcareapis workspace iot-connector update](#IotConnectorsUpdate)|Update|[Parameters](#ParametersIotConnectorsUpdate)|[Example](#ExamplesIotConnectorsUpdate)| +|[az healthcareapis workspace iot-connector delete](#IotConnectorsDelete)|Delete|[Parameters](#ParametersIotConnectorsDelete)|[Example](#ExamplesIotConnectorsDelete)| + +### Commands in `az healthcareapis workspace iot-connector fhir-destination` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az healthcareapis workspace iot-connector fhir-destination list](#FhirDestinationsListByIotConnector)|ListByIotConnector|[Parameters](#ParametersFhirDestinationsListByIotConnector)|[Example](#ExamplesFhirDestinationsListByIotConnector)| + +### Commands in `az healthcareapis workspace iot-connector fhir-destination` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az healthcareapis workspace iot-connector fhir-destination show](#IotConnectorFhirDestinationGet)|Get|[Parameters](#ParametersIotConnectorFhirDestinationGet)|[Example](#ExamplesIotConnectorFhirDestinationGet)| +|[az healthcareapis workspace iot-connector fhir-destination create](#IotConnectorFhirDestinationCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersIotConnectorFhirDestinationCreateOrUpdate#Create)|[Example](#ExamplesIotConnectorFhirDestinationCreateOrUpdate#Create)| +|[az healthcareapis workspace iot-connector fhir-destination update](#IotConnectorFhirDestinationCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersIotConnectorFhirDestinationCreateOrUpdate#Update)|Not Found| +|[az healthcareapis workspace iot-connector fhir-destination delete](#IotConnectorFhirDestinationDelete)|Delete|[Parameters](#ParametersIotConnectorFhirDestinationDelete)|[Example](#ExamplesIotConnectorFhirDestinationDelete)| + +### Commands in `az healthcareapis workspace private-endpoint-connection` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az healthcareapis workspace private-endpoint-connection list](#WorkspacePrivateEndpointConnectionsListByWorkspace)|ListByWorkspace|[Parameters](#ParametersWorkspacePrivateEndpointConnectionsListByWorkspace)|[Example](#ExamplesWorkspacePrivateEndpointConnectionsListByWorkspace)| +|[az healthcareapis workspace private-endpoint-connection show](#WorkspacePrivateEndpointConnectionsGet)|Get|[Parameters](#ParametersWorkspacePrivateEndpointConnectionsGet)|[Example](#ExamplesWorkspacePrivateEndpointConnectionsGet)| +|[az healthcareapis workspace private-endpoint-connection create](#WorkspacePrivateEndpointConnectionsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersWorkspacePrivateEndpointConnectionsCreateOrUpdate#Create)|[Example](#ExamplesWorkspacePrivateEndpointConnectionsCreateOrUpdate#Create)| +|[az healthcareapis workspace private-endpoint-connection update](#WorkspacePrivateEndpointConnectionsCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersWorkspacePrivateEndpointConnectionsCreateOrUpdate#Update)|Not Found| +|[az healthcareapis workspace private-endpoint-connection delete](#WorkspacePrivateEndpointConnectionsDelete)|Delete|[Parameters](#ParametersWorkspacePrivateEndpointConnectionsDelete)|[Example](#ExamplesWorkspacePrivateEndpointConnectionsDelete)| + +### Commands in `az healthcareapis workspace private-link-resource` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az healthcareapis workspace private-link-resource list](#WorkspacePrivateLinkResourcesListByWorkspace)|ListByWorkspace|[Parameters](#ParametersWorkspacePrivateLinkResourcesListByWorkspace)|[Example](#ExamplesWorkspacePrivateLinkResourcesListByWorkspace)| +|[az healthcareapis workspace private-link-resource show](#WorkspacePrivateLinkResourcesGet)|Get|[Parameters](#ParametersWorkspacePrivateLinkResourcesGet)|[Example](#ExamplesWorkspacePrivateLinkResourcesGet)| -## COMMAND DETAILS +## COMMAND DETAILS ### group `az healthcareapis operation-result` #### Command `az healthcareapis operation-result show` @@ -92,8 +164,8 @@ az healthcareapis private-endpoint-connection show --name "myConnection" --resou ##### Example ``` -az healthcareapis private-endpoint-connection create --name "myConnection" --resource-group "rgname" --resource-name \ -"service1" +az healthcareapis private-endpoint-connection create --name "myConnection" --private-link-service-connection-state \ +description="Auto-Approved" status="Approved" --resource-group "rgname" --resource-name "service1" ``` ##### Parameters |Option|Type|Description|Path (SDK)|Swagger name| @@ -101,18 +173,21 @@ az healthcareapis private-endpoint-connection create --name "myConnection" --res |**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| |**--resource-name**|string|The name of the service instance.|resource_name|resourceName| |**--private-endpoint-connection-name**|string|The name of the private endpoint connection associated with the Azure resource|private_endpoint_connection_name|privateEndpointConnectionName| +|**--private-link-service-connection-state**|object|A collection of information about the state of the connection between service consumer and provider.|private_link_service_connection_state|privateLinkServiceConnectionState| |**--private-link-service-connection-state-status**|choice|Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.|status|status| |**--private-link-service-connection-state-description**|string|The reason for approval/rejection of the connection.|description|description| |**--private-link-service-connection-state-actions-required**|string|A message indicating if changes on the service provider require any updates on the consumer.|actions_required|actionsRequired| #### Command `az healthcareapis private-endpoint-connection update` + ##### Parameters |Option|Type|Description|Path (SDK)|Swagger name| |------|----|-----------|----------|------------| |**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| |**--resource-name**|string|The name of the service instance.|resource_name|resourceName| |**--private-endpoint-connection-name**|string|The name of the private endpoint connection associated with the Azure resource|private_endpoint_connection_name|privateEndpointConnectionName| +|**--private-link-service-connection-state**|object|A collection of information about the state of the connection between service consumer and provider.|private_link_service_connection_state|privateLinkServiceConnectionState| |**--private-link-service-connection-state-status**|choice|Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.|status|status| |**--private-link-service-connection-state-description**|string|The reason for approval/rejection of the connection.|description|description| |**--private-link-service-connection-state-actions-required**|string|A message indicating if changes on the service provider require any updates on the consumer.|actions_required|actionsRequired| @@ -178,6 +253,7 @@ az healthcareapis service list ##### Parameters |Option|Type|Description|Path (SDK)|Swagger name| |------|----|-----------|----------|------------| + #### Command `az healthcareapis service show` ##### Example @@ -202,9 +278,6 @@ audience="https://azurehealthcareapis.com" authority="https://login.microsoftonl methods="GET" methods="OPTIONS" methods="PATCH" methods="POST" methods="PUT" origins="*" --cosmos-db-configuration \ key-vault-key-uri="https://my-vault.vault.azure.net/keys/my-key" offer-throughput=1000 --export-configuration-storage-a\ ccount-name "existingStorageAccount" --public-network-access "Disabled" -``` -##### Example -``` az healthcareapis service create --resource-group "rg1" --resource-name "service2" --kind "fhir-R4" --location \ "westus2" --access-policies object-id="c487e7d1-3210-41a3-8ccc-e9372b78da47" ``` @@ -224,6 +297,8 @@ az healthcareapis service create --resource-group "rg1" --resource-name "service |**--cors-configuration**|object|The settings for the CORS configuration of the service instance.|cors_configuration|corsConfiguration| |**--private-endpoint-connections**|array|The list of private endpoint connections that are set up for this resource.|private_endpoint_connections|privateEndpointConnections| |**--public-network-access**|choice|Control permission for data plane traffic coming from public networks while private endpoint is enabled.|public_network_access|publicNetworkAccess| +|**--login-servers**|array|The list of the ACR login servers.|login_servers|loginServers| +|**--oci-artifacts**|array|The list of Open Container Initiative (OCI) artifacts.|oci_artifacts|ociArtifacts| |**--export-configuration-storage-account-name**|string|The name of the default export storage account.|storage_account_name|storageAccountName| #### Command `az healthcareapis service update` @@ -251,3 +326,513 @@ az healthcareapis service delete --resource-group "rg1" --resource-name "service |------|----|-----------|----------|------------| |**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| |**--resource-name**|string|The name of the service instance.|resource_name|resourceName| + +### group `az healthcareapis workspace` +#### Command `az healthcareapis workspace list` + +##### Example +``` +az healthcareapis workspace list --resource-group "testRG" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| + +#### Command `az healthcareapis workspace list` + +##### Example +``` +az healthcareapis workspace list +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| + +#### Command `az healthcareapis workspace show` + +##### Example +``` +az healthcareapis workspace show --resource-group "testRG" --name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| + +#### Command `az healthcareapis workspace create` + +##### Example +``` +az healthcareapis workspace create --resource-group "testRG" --location "westus" --name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--tags**|dictionary|Resource tags.|tags|tags| +|**--etag**|string|An etag associated with the resource, used for optimistic concurrency when editing it.|etag|etag| +|**--location**|string|The resource location.|location|location| +|**--public-network-access**|choice|Control permission for data plane traffic coming from public networks while private endpoint is enabled.|public_network_access|publicNetworkAccess| + +#### Command `az healthcareapis workspace update` + +##### Example +``` +az healthcareapis workspace update --resource-group "testRG" --name "workspace1" --tags tagKey="tagValue" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--tags**|dictionary|Resource tags.|tags|tags| + +#### Command `az healthcareapis workspace delete` + +##### Example +``` +az healthcareapis workspace delete --resource-group "testRG" --name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| + +### group `az healthcareapis workspace dicom-service` +#### Command `az healthcareapis workspace dicom-service list` + +##### Example +``` +az healthcareapis workspace dicom-service list --resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| + +#### Command `az healthcareapis workspace dicom-service show` + +##### Example +``` +az healthcareapis workspace dicom-service show --name "blue" --resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--dicom-service-name**|string|The name of DICOM Service resource.|dicom_service_name|dicomServiceName| + +#### Command `az healthcareapis workspace dicom-service create` + +##### Example +``` +az healthcareapis workspace dicom-service create --name "blue" --location "westus" --resource-group "testRG" \ +--workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--dicom-service-name**|string|The name of DICOM Service resource.|dicom_service_name|dicomServiceName| +|**--tags**|dictionary|Resource tags.|tags|tags| +|**--etag**|string|An etag associated with the resource, used for optimistic concurrency when editing it.|etag|etag| +|**--location**|string|The resource location.|location|location| +|**--identity-type**|choice|Type of identity being specified, currently SystemAssigned and None are allowed.|type|type| +|**--user-assigned-identities**|dictionary|The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.|user_assigned_identities|userAssignedIdentities| +|**--public-network-access**|choice|Control permission for data plane traffic coming from public networks while private endpoint is enabled.|public_network_access|publicNetworkAccess| + +#### Command `az healthcareapis workspace dicom-service update` + +##### Example +``` +az healthcareapis workspace dicom-service update --name "blue" --tags tagKey="tagValue" --resource-group "testRG" \ +--workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--dicom-service-name**|string|The name of DICOM Service resource.|dicom_service_name|dicomServiceName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--tags**|dictionary|Resource tags.|tags|tags| +|**--identity-type**|choice|Type of identity being specified, currently SystemAssigned and None are allowed.|type|type| +|**--user-assigned-identities**|dictionary|The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.|user_assigned_identities|userAssignedIdentities| + +#### Command `az healthcareapis workspace dicom-service delete` + +##### Example +``` +az healthcareapis workspace dicom-service delete --name "blue" --resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--dicom-service-name**|string|The name of DICOM Service resource.|dicom_service_name|dicomServiceName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| + +### group `az healthcareapis workspace fhir-service` +#### Command `az healthcareapis workspace fhir-service list` + +##### Example +``` +az healthcareapis workspace fhir-service list --resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| + +#### Command `az healthcareapis workspace fhir-service show` + +##### Example +``` +az healthcareapis workspace fhir-service show --name "fhirservices1" --resource-group "testRG" --workspace-name \ +"workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--fhir-service-name**|string|The name of FHIR Service resource.|fhir_service_name|fhirServiceName| + +#### Command `az healthcareapis workspace fhir-service create` + +##### Example +``` +az healthcareapis workspace fhir-service create --name "fhirservice1" --identity-type "SystemAssigned" --kind "fhir-R4" \ +--location "westus" --access-policies object-id="c487e7d1-3210-41a3-8ccc-e9372b78da47" --access-policies \ +object-id="5b307da8-43d4-492b-8b66-b0294ade872f" --login-servers "test1.azurecr.io" --authentication-configuration \ +audience="https://azurehealthcareapis.com" authority="https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07\ +508dc" smart-proxy-enabled=true --cors-configuration allow-credentials=false headers="*" max-age=1440 methods="DELETE" \ +methods="GET" methods="OPTIONS" methods="PATCH" methods="POST" methods="PUT" origins="*" --export-configuration-storage-account-name \ +"existingStorageAccount" --tags additionalProp1="string" additionalProp2="string" additionalProp3="string" \ +--resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--fhir-service-name**|string|The name of FHIR Service resource.|fhir_service_name|fhirServiceName| +|**--tags**|dictionary|Resource tags.|tags|tags| +|**--etag**|string|An etag associated with the resource, used for optimistic concurrency when editing it.|etag|etag| +|**--location**|string|The resource location.|location|location| +|**--identity-type**|choice|Type of identity being specified, currently SystemAssigned and None are allowed.|type|type| +|**--user-assigned-identities**|dictionary|The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.|user_assigned_identities|userAssignedIdentities| +|**--kind**|choice|The kind of the service.|kind|kind| +|**--access-policies**|array|Fhir Service access policies.|access_policies|accessPolicies| +|**--authentication-configuration**|object|Fhir Service authentication configuration.|authentication_configuration|authenticationConfiguration| +|**--cors-configuration**|object|Fhir Service Cors configuration.|cors_configuration|corsConfiguration| +|**--public-network-access**|choice|Control permission for data plane traffic coming from public networks while private endpoint is enabled.|public_network_access|publicNetworkAccess| +|**--default**|choice|The default value for tracking history across all resources.|default|default| +|**--resource-type-overrides**|dictionary|A list of FHIR Resources and their version policy overrides.|resource_type_overrides|resourceTypeOverrides| +|**--export-configuration-storage-account-name**|string|The name of the default export storage account.|storage_account_name|storageAccountName| +|**--login-servers**|array|The list of the Azure container registry login servers.|login_servers|loginServers| +|**--oci-artifacts**|array|The list of Open Container Initiative (OCI) artifacts.|oci_artifacts|ociArtifacts| + +#### Command `az healthcareapis workspace fhir-service update` + +##### Example +``` +az healthcareapis workspace fhir-service update --name "fhirservice1" --tags tagKey="tagValue" --resource-group \ +"testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--fhir-service-name**|string|The name of FHIR Service resource.|fhir_service_name|fhirServiceName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--tags**|dictionary|Resource tags.|tags|tags| +|**--identity-type**|choice|Type of identity being specified, currently SystemAssigned and None are allowed.|type|type| +|**--user-assigned-identities**|dictionary|The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.|user_assigned_identities|userAssignedIdentities| + +#### Command `az healthcareapis workspace fhir-service delete` + +##### Example +``` +az healthcareapis workspace fhir-service delete --name "fhirservice1" --resource-group "testRG" --workspace-name \ +"workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--fhir-service-name**|string|The name of FHIR Service resource.|fhir_service_name|fhirServiceName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| + +### group `az healthcareapis workspace iot-connector` +#### Command `az healthcareapis workspace iot-connector list` + +##### Example +``` +az healthcareapis workspace iot-connector list --resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| + +#### Command `az healthcareapis workspace iot-connector show` + +##### Example +``` +az healthcareapis workspace iot-connector show --name "blue" --resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--iot-connector-name**|string|The name of IoT Connector resource.|iot_connector_name|iotConnectorName| + +#### Command `az healthcareapis workspace iot-connector create` + +##### Example +``` +az healthcareapis workspace iot-connector create --identity-type "SystemAssigned" --location "westus" --content \ +"{\\"template\\":[{\\"template\\":{\\"deviceIdExpression\\":\\"$.deviceid\\",\\"timestampExpression\\":\\"$.measurement\ +datetime\\",\\"typeMatchExpression\\":\\"$..[?(@heartrate)]\\",\\"typeName\\":\\"heartrate\\",\\"values\\":[{\\"require\ +d\\":\\"true\\",\\"valueExpression\\":\\"$.heartrate\\",\\"valueName\\":\\"hr\\"}]},\\"templateType\\":\\"JsonPathConte\ +nt\\"}],\\"templateType\\":\\"CollectionContent\\"}" --ingestion-endpoint-configuration consumer-group="ConsumerGroupA"\ + event-hub-name="MyEventHubName" fully-qualified-event-hub-namespace="myeventhub.servicesbus.windows.net" --tags \ +additionalProp1="string" additionalProp2="string" additionalProp3="string" --name "blue" --resource-group "testRG" \ +--workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--iot-connector-name**|string|The name of IoT Connector resource.|iot_connector_name|iotConnectorName| +|**--tags**|dictionary|Resource tags.|tags|tags| +|**--etag**|string|An etag associated with the resource, used for optimistic concurrency when editing it.|etag|etag| +|**--location**|string|The resource location.|location|location| +|**--identity-type**|choice|Type of identity being specified, currently SystemAssigned and None are allowed.|type|type| +|**--user-assigned-identities**|dictionary|The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.|user_assigned_identities|userAssignedIdentities| +|**--ingestion-endpoint-configuration**|object|Source configuration.|ingestion_endpoint_configuration|ingestionEndpointConfiguration| +|**--content**|any|The mapping.|content|content| + +#### Command `az healthcareapis workspace iot-connector update` + +##### Example +``` +az healthcareapis workspace iot-connector update --name "blue" --identity-type "SystemAssigned" --tags additionalProp1="string" \ +additionalProp2="string" additionalProp3="string" --resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--iot-connector-name**|string|The name of IoT Connector resource.|iot_connector_name|iotConnectorName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--tags**|dictionary|Resource tags.|tags|tags| +|**--identity-type**|choice|Type of identity being specified, currently SystemAssigned and None are allowed.|type|type| +|**--user-assigned-identities**|dictionary|The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.|user_assigned_identities|userAssignedIdentities| + +#### Command `az healthcareapis workspace iot-connector delete` + +##### Example +``` +az healthcareapis workspace iot-connector delete --name "blue" --resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--iot-connector-name**|string|The name of IoT Connector resource.|iot_connector_name|iotConnectorName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| + +### group `az healthcareapis workspace iot-connector fhir-destination` +#### Command `az healthcareapis workspace iot-connector fhir-destination list` + +##### Example +``` +az healthcareapis workspace iot-connector fhir-destination list --iot-connector-name "blue" --resource-group "testRG" \ +--workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--iot-connector-name**|string|The name of IoT Connector resource.|iot_connector_name|iotConnectorName| + +### group `az healthcareapis workspace iot-connector fhir-destination` +#### Command `az healthcareapis workspace iot-connector fhir-destination show` + +##### Example +``` +az healthcareapis workspace iot-connector fhir-destination show --fhir-destination-name "dest1" --iot-connector-name \ +"blue" --resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--iot-connector-name**|string|The name of IoT Connector resource.|iot_connector_name|iotConnectorName| +|**--fhir-destination-name**|string|The name of IoT Connector FHIR destination resource.|fhir_destination_name|fhirDestinationName| + +#### Command `az healthcareapis workspace iot-connector fhir-destination create` + +##### Example +``` +az healthcareapis workspace iot-connector fhir-destination create --fhir-destination-name "dest1" --iot-connector-name \ +"blue" --location "westus" --content "{\\"template\\":[{\\"template\\":{\\"codes\\":[{\\"code\\":\\"8867-4\\",\\"displa\ +y\\":\\"Heart rate\\",\\"system\\":\\"http://loinc.org\\"}],\\"periodInterval\\":60,\\"typeName\\":\\"heartrate\\",\\"v\ +alue\\":{\\"defaultPeriod\\":5000,\\"unit\\":\\"count/min\\",\\"valueName\\":\\"hr\\",\\"valueType\\":\\"SampledData\\"\ +}},\\"templateType\\":\\"CodeValueFhir\\"}],\\"templateType\\":\\"CollectionFhirTemplate\\"}" \ +--fhir-service-resource-id "subscriptions/11111111-2222-3333-4444-555566667777/resourceGroups/myrg/providers/Microsoft.\ +HealthcareApis/workspaces/myworkspace/fhirservices/myfhirservice" --resource-identity-resolution-type "Create" \ +--resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--iot-connector-name**|string|The name of IoT Connector resource.|iot_connector_name|iotConnectorName| +|**--fhir-destination-name**|string|The name of IoT Connector FHIR destination resource.|fhir_destination_name|fhirDestinationName| +|**--etag**|string|An etag associated with the resource, used for optimistic concurrency when editing it.|etag|etag| +|**--location**|string|The resource location.|location|location| +|**--resource-identity-resolution-type**|choice|Determines how resource identity is resolved on the destination.|resource_identity_resolution_type|resourceIdentityResolutionType| +|**--fhir-service-resource-id**|string|Fully qualified resource id of the FHIR service to connect to.|fhir_service_resource_id|fhirServiceResourceId| +|**--content**|any|The mapping.|content|content| + +#### Command `az healthcareapis workspace iot-connector fhir-destination update` + + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--iot-connector-name**|string|The name of IoT Connector resource.|iot_connector_name|iotConnectorName| +|**--fhir-destination-name**|string|The name of IoT Connector FHIR destination resource.|fhir_destination_name|fhirDestinationName| +|**--etag**|string|An etag associated with the resource, used for optimistic concurrency when editing it.|etag|etag| +|**--location**|string|The resource location.|location|location| +|**--resource-identity-resolution-type**|choice|Determines how resource identity is resolved on the destination.|resource_identity_resolution_type|resourceIdentityResolutionType| +|**--fhir-service-resource-id**|string|Fully qualified resource id of the FHIR service to connect to.|fhir_service_resource_id|fhirServiceResourceId| +|**--content**|any|The mapping.|content|content| + +#### Command `az healthcareapis workspace iot-connector fhir-destination delete` + +##### Example +``` +az healthcareapis workspace iot-connector fhir-destination delete --fhir-destination-name "dest1" --iot-connector-name \ +"blue" --resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--iot-connector-name**|string|The name of IoT Connector resource.|iot_connector_name|iotConnectorName| +|**--fhir-destination-name**|string|The name of IoT Connector FHIR destination resource.|fhir_destination_name|fhirDestinationName| + +### group `az healthcareapis workspace private-endpoint-connection` +#### Command `az healthcareapis workspace private-endpoint-connection list` + +##### Example +``` +az healthcareapis workspace private-endpoint-connection list --resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| + +#### Command `az healthcareapis workspace private-endpoint-connection show` + +##### Example +``` +az healthcareapis workspace private-endpoint-connection show --private-endpoint-connection-name "myConnection" \ +--resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--private-endpoint-connection-name**|string|The name of the private endpoint connection associated with the Azure resource|private_endpoint_connection_name|privateEndpointConnectionName| + +#### Command `az healthcareapis workspace private-endpoint-connection create` + +##### Example +``` +az healthcareapis workspace private-endpoint-connection create --private-endpoint-connection-name "myConnection" \ +--private-link-service-connection-state description="Auto-Approved" status="Approved" --resource-group "testRG" \ +--workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--private-endpoint-connection-name**|string|The name of the private endpoint connection associated with the Azure resource|private_endpoint_connection_name|privateEndpointConnectionName| +|**--private-link-service-connection-state**|object|A collection of information about the state of the connection between service consumer and provider.|private_link_service_connection_state|privateLinkServiceConnectionState| + +#### Command `az healthcareapis workspace private-endpoint-connection update` + + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--private-endpoint-connection-name**|string|The name of the private endpoint connection associated with the Azure resource|private_endpoint_connection_name|privateEndpointConnectionName| +|**--private-link-service-connection-state**|object|A collection of information about the state of the connection between service consumer and provider.|private_link_service_connection_state|privateLinkServiceConnectionState| + +#### Command `az healthcareapis workspace private-endpoint-connection delete` + +##### Example +``` +az healthcareapis workspace private-endpoint-connection delete --private-endpoint-connection-name "myConnection" \ +--resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--private-endpoint-connection-name**|string|The name of the private endpoint connection associated with the Azure resource|private_endpoint_connection_name|privateEndpointConnectionName| + +### group `az healthcareapis workspace private-link-resource` +#### Command `az healthcareapis workspace private-link-resource list` + +##### Example +``` +az healthcareapis workspace private-link-resource list --resource-group "testRG" --workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| + +#### Command `az healthcareapis workspace private-link-resource show` + +##### Example +``` +az healthcareapis workspace private-link-resource show --group-name "healthcareworkspace" --resource-group "testRG" \ +--workspace-name "workspace1" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group that contains the service instance.|resource_group_name|resourceGroupName| +|**--workspace-name**|string|The name of workspace resource.|workspace_name|workspaceName| +|**--group-name**|string|The name of the private link resource group.|group_name|groupName| diff --git a/src/healthcareapis/setup.py b/src/healthcareapis/setup.py index dbe9efa8f92..0958def4ad1 100644 --- a/src/healthcareapis/setup.py +++ b/src/healthcareapis/setup.py @@ -10,7 +10,7 @@ from setuptools import setup, find_packages # HISTORY.rst entry. -VERSION = '0.3.4' +VERSION = '0.4.0' try: from azext_healthcareapis.manual.version import VERSION except ImportError: