diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/tests/recordings/test_mgmt_healthcareapis.test_healthcareapis.yaml b/sdk/healthcareapis/azure-mgmt-healthcareapis/tests/recordings/test_mgmt_healthcareapis.test_healthcareapis.yaml new file mode 100644 index 00000000000..152b1b038d8 --- /dev/null +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/tests/recordings/test_mgmt_healthcareapis.test_healthcareapis.yaml @@ -0,0 +1,798 @@ +interactions: +- request: + body: '{"kind": "fhir-R4", "location": "westus2", "properties": {"accessPolicies": + [{"objectId": "c487e7d1-3210-41a3-8ccc-e9372b78da47"}, {"objectId": "5b307da8-43d4-492b-8b66-b0294ade872f"}], + "cosmosDbConfiguration": {"offerThroughput": 1000}, "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}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '599' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_healthcareapis_test_healthcareapis965511fd/providers/Microsoft.HealthcareApis/services/myapimrndxyz?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_healthcareapis_test_healthcareapis965511fd/providers/Microsoft.HealthcareApis/services/myapimrndxyz","name":"myapimrndxyz","type":"Microsoft.HealthcareApis/services","etag":"\"09000c41-0000-0400-0000-5da7f64e0000\"","location":"westus2","kind":"fhir-R4","properties":{"secondaryLocations":null,"accessPolicies":[{"objectId":"c487e7d1-3210-41a3-8ccc-e9372b78da47"},{"objectId":"5b307da8-43d4-492b-8b66-b0294ade872f"}],"cosmosDbConfiguration":{"offerThroughput":1000},"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},"provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + cache-control: + - no-cache + content-length: + - '920' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:04:15 GMT + etag: + - '"09000c41-0000-0400-0000-5da7f64e0000"' + 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: + - 269b8b7ab80e9f4791250e3d95461363 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b","name":"f3e96bdf-0b1d-477d-b826-fc8d680d766b","status":"Running","startTime":"2019-10-17T05:04:14.4415938Z","properties":{"accountId":"lfqjqi9gsn2p8vmpxu4ceckfd","accountName":"myapimrndxyz","loggingParentId":"8df0393a-f09b-11e9-b768-0242ac11000a","loggingRootId":"f17d0a8c-2a99-43e9-8a46-b2b5ea733f25","externalSecurityAuthenticationAllowedOids":["c487e7d1-3210-41a3-8ccc-e9372b78da47","5b307da8-43d4-492b-8b66-b0294ade872f"],"externalSecurityAuthenticationAuthority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","externalSecurityAuthenticationAudience":"https://azurehealthcareapis.com","offerThroughput":1000,"provisioningOperation":0,"subscriptionId + ":"00000000-0000-0000-0000-000000000000","resourceGroupName ":"test_mgmt_healthcareapis_test_healthcareapis965511fd","providerNamespace + ":"Microsoft.HealthcareApis","resourceTypeName ":"services","skuName":null,"tags":{},"secondaryRegionNames":null,"corsOrigins":["*"],"corsHeaders":["*"],"corsMethods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"corsMaxAge":1440,"corsAllowCredentials":false,"smartProxyEnabled":true,"fhirVersion":0}}' + headers: + cache-control: + - no-cache + content-length: + - '1289' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:04:45 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: + - 7dffd7c0b11b8b4eb94416dcc31f9fbb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b","name":"f3e96bdf-0b1d-477d-b826-fc8d680d766b","status":"Running","startTime":"2019-10-17T05:04:14.4415938Z","properties":{"accountId":"lfqjqi9gsn2p8vmpxu4ceckfd","accountName":"myapimrndxyz","loggingParentId":"8df0393a-f09b-11e9-b768-0242ac11000a","loggingRootId":"f17d0a8c-2a99-43e9-8a46-b2b5ea733f25","externalSecurityAuthenticationAllowedOids":["c487e7d1-3210-41a3-8ccc-e9372b78da47","5b307da8-43d4-492b-8b66-b0294ade872f"],"externalSecurityAuthenticationAuthority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","externalSecurityAuthenticationAudience":"https://azurehealthcareapis.com","offerThroughput":1000,"provisioningOperation":0,"subscriptionId + ":"00000000-0000-0000-0000-000000000000","resourceGroupName ":"test_mgmt_healthcareapis_test_healthcareapis965511fd","providerNamespace + ":"Microsoft.HealthcareApis","resourceTypeName ":"services","skuName":null,"tags":{},"secondaryRegionNames":null,"corsOrigins":["*"],"corsHeaders":["*"],"corsMethods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"corsMaxAge":1440,"corsAllowCredentials":false,"smartProxyEnabled":true,"fhirVersion":0}}' + headers: + cache-control: + - no-cache + content-length: + - '1289' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:05:16 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: + - 461554e4733d7a41a949318fce95ec28 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b","name":"f3e96bdf-0b1d-477d-b826-fc8d680d766b","status":"Running","startTime":"2019-10-17T05:04:14.4415938Z","properties":{"accountId":"lfqjqi9gsn2p8vmpxu4ceckfd","accountName":"myapimrndxyz","loggingParentId":"8df0393a-f09b-11e9-b768-0242ac11000a","loggingRootId":"f17d0a8c-2a99-43e9-8a46-b2b5ea733f25","externalSecurityAuthenticationAllowedOids":["c487e7d1-3210-41a3-8ccc-e9372b78da47","5b307da8-43d4-492b-8b66-b0294ade872f"],"externalSecurityAuthenticationAuthority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","externalSecurityAuthenticationAudience":"https://azurehealthcareapis.com","offerThroughput":1000,"provisioningOperation":0,"subscriptionId + ":"00000000-0000-0000-0000-000000000000","resourceGroupName ":"test_mgmt_healthcareapis_test_healthcareapis965511fd","providerNamespace + ":"Microsoft.HealthcareApis","resourceTypeName ":"services","skuName":null,"tags":{},"secondaryRegionNames":null,"corsOrigins":["*"],"corsHeaders":["*"],"corsMethods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"corsMaxAge":1440,"corsAllowCredentials":false,"smartProxyEnabled":true,"fhirVersion":0}}' + headers: + cache-control: + - no-cache + content-length: + - '1289' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:05:46 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: + - 4d9f2738e453ef4494b53801d8765182 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b","name":"f3e96bdf-0b1d-477d-b826-fc8d680d766b","status":"Running","startTime":"2019-10-17T05:04:14.4415938Z","properties":{"accountId":"lfqjqi9gsn2p8vmpxu4ceckfd","accountName":"myapimrndxyz","loggingParentId":"8df0393a-f09b-11e9-b768-0242ac11000a","loggingRootId":"f17d0a8c-2a99-43e9-8a46-b2b5ea733f25","externalSecurityAuthenticationAllowedOids":["c487e7d1-3210-41a3-8ccc-e9372b78da47","5b307da8-43d4-492b-8b66-b0294ade872f"],"externalSecurityAuthenticationAuthority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","externalSecurityAuthenticationAudience":"https://azurehealthcareapis.com","offerThroughput":1000,"provisioningOperation":0,"subscriptionId + ":"00000000-0000-0000-0000-000000000000","resourceGroupName ":"test_mgmt_healthcareapis_test_healthcareapis965511fd","providerNamespace + ":"Microsoft.HealthcareApis","resourceTypeName ":"services","skuName":null,"tags":{},"secondaryRegionNames":null,"corsOrigins":["*"],"corsHeaders":["*"],"corsMethods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"corsMaxAge":1440,"corsAllowCredentials":false,"smartProxyEnabled":true,"fhirVersion":0}}' + headers: + cache-control: + - no-cache + content-length: + - '1289' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:06:16 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: + - ba95af792b314f4987c8d25dbc5e002b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b","name":"f3e96bdf-0b1d-477d-b826-fc8d680d766b","status":"Running","startTime":"2019-10-17T05:04:14.4415938Z","properties":{"accountId":"lfqjqi9gsn2p8vmpxu4ceckfd","accountName":"myapimrndxyz","loggingParentId":"8df0393a-f09b-11e9-b768-0242ac11000a","loggingRootId":"f17d0a8c-2a99-43e9-8a46-b2b5ea733f25","externalSecurityAuthenticationAllowedOids":["c487e7d1-3210-41a3-8ccc-e9372b78da47","5b307da8-43d4-492b-8b66-b0294ade872f"],"externalSecurityAuthenticationAuthority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","externalSecurityAuthenticationAudience":"https://azurehealthcareapis.com","offerThroughput":1000,"provisioningOperation":0,"subscriptionId + ":"00000000-0000-0000-0000-000000000000","resourceGroupName ":"test_mgmt_healthcareapis_test_healthcareapis965511fd","providerNamespace + ":"Microsoft.HealthcareApis","resourceTypeName ":"services","skuName":null,"tags":{},"secondaryRegionNames":null,"corsOrigins":["*"],"corsHeaders":["*"],"corsMethods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"corsMaxAge":1440,"corsAllowCredentials":false,"smartProxyEnabled":true,"fhirVersion":0}}' + headers: + cache-control: + - no-cache + content-length: + - '1289' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:06:46 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: + - a5a401c0d7314c4582168806d14d22e7 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b","name":"f3e96bdf-0b1d-477d-b826-fc8d680d766b","status":"Running","startTime":"2019-10-17T05:04:14.4415938Z","properties":{"accountId":"lfqjqi9gsn2p8vmpxu4ceckfd","accountName":"myapimrndxyz","loggingParentId":"8df0393a-f09b-11e9-b768-0242ac11000a","loggingRootId":"f17d0a8c-2a99-43e9-8a46-b2b5ea733f25","externalSecurityAuthenticationAllowedOids":["c487e7d1-3210-41a3-8ccc-e9372b78da47","5b307da8-43d4-492b-8b66-b0294ade872f"],"externalSecurityAuthenticationAuthority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","externalSecurityAuthenticationAudience":"https://azurehealthcareapis.com","offerThroughput":1000,"provisioningOperation":0,"subscriptionId + ":"00000000-0000-0000-0000-000000000000","resourceGroupName ":"test_mgmt_healthcareapis_test_healthcareapis965511fd","providerNamespace + ":"Microsoft.HealthcareApis","resourceTypeName ":"services","skuName":null,"tags":{},"secondaryRegionNames":null,"corsOrigins":["*"],"corsHeaders":["*"],"corsMethods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"corsMaxAge":1440,"corsAllowCredentials":false,"smartProxyEnabled":true,"fhirVersion":0}}' + headers: + cache-control: + - no-cache + content-length: + - '1289' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:07:17 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: + - f1ecaaf3e9840f4abaa97ab14d29ff1f + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b","name":"f3e96bdf-0b1d-477d-b826-fc8d680d766b","status":"Running","startTime":"2019-10-17T05:04:14.4415938Z","properties":{"accountId":"lfqjqi9gsn2p8vmpxu4ceckfd","accountName":"myapimrndxyz","loggingParentId":"8df0393a-f09b-11e9-b768-0242ac11000a","loggingRootId":"f17d0a8c-2a99-43e9-8a46-b2b5ea733f25","externalSecurityAuthenticationAllowedOids":["c487e7d1-3210-41a3-8ccc-e9372b78da47","5b307da8-43d4-492b-8b66-b0294ade872f"],"externalSecurityAuthenticationAuthority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","externalSecurityAuthenticationAudience":"https://azurehealthcareapis.com","offerThroughput":1000,"provisioningOperation":0,"subscriptionId + ":"00000000-0000-0000-0000-000000000000","resourceGroupName ":"test_mgmt_healthcareapis_test_healthcareapis965511fd","providerNamespace + ":"Microsoft.HealthcareApis","resourceTypeName ":"services","skuName":null,"tags":{},"secondaryRegionNames":null,"corsOrigins":["*"],"corsHeaders":["*"],"corsMethods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"corsMaxAge":1440,"corsAllowCredentials":false,"smartProxyEnabled":true,"fhirVersion":0}}' + headers: + cache-control: + - no-cache + content-length: + - '1289' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:07:47 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: + - d931b8f82d5c4b48bd9abaa05d2772e0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b","name":"f3e96bdf-0b1d-477d-b826-fc8d680d766b","status":"Running","startTime":"2019-10-17T05:04:14.4415938Z","properties":{"accountId":"lfqjqi9gsn2p8vmpxu4ceckfd","accountName":"myapimrndxyz","loggingParentId":"8df0393a-f09b-11e9-b768-0242ac11000a","loggingRootId":"f17d0a8c-2a99-43e9-8a46-b2b5ea733f25","externalSecurityAuthenticationAllowedOids":["c487e7d1-3210-41a3-8ccc-e9372b78da47","5b307da8-43d4-492b-8b66-b0294ade872f"],"externalSecurityAuthenticationAuthority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","externalSecurityAuthenticationAudience":"https://azurehealthcareapis.com","offerThroughput":1000,"provisioningOperation":0,"subscriptionId + ":"00000000-0000-0000-0000-000000000000","resourceGroupName ":"test_mgmt_healthcareapis_test_healthcareapis965511fd","providerNamespace + ":"Microsoft.HealthcareApis","resourceTypeName ":"services","skuName":null,"tags":{},"secondaryRegionNames":null,"corsOrigins":["*"],"corsHeaders":["*"],"corsMethods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"corsMaxAge":1440,"corsAllowCredentials":false,"smartProxyEnabled":true,"fhirVersion":0}}' + headers: + cache-control: + - no-cache + content-length: + - '1289' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:08: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: + - b227515f29c39649ad55a80117f67ea1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b","name":"f3e96bdf-0b1d-477d-b826-fc8d680d766b","status":"Running","startTime":"2019-10-17T05:04:14.4415938Z","properties":{"accountId":"lfqjqi9gsn2p8vmpxu4ceckfd","accountName":"myapimrndxyz","loggingParentId":"8df0393a-f09b-11e9-b768-0242ac11000a","loggingRootId":"f17d0a8c-2a99-43e9-8a46-b2b5ea733f25","externalSecurityAuthenticationAllowedOids":["c487e7d1-3210-41a3-8ccc-e9372b78da47","5b307da8-43d4-492b-8b66-b0294ade872f"],"externalSecurityAuthenticationAuthority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","externalSecurityAuthenticationAudience":"https://azurehealthcareapis.com","offerThroughput":1000,"provisioningOperation":0,"subscriptionId + ":"00000000-0000-0000-0000-000000000000","resourceGroupName ":"test_mgmt_healthcareapis_test_healthcareapis965511fd","providerNamespace + ":"Microsoft.HealthcareApis","resourceTypeName ":"services","skuName":null,"tags":{},"secondaryRegionNames":null,"corsOrigins":["*"],"corsHeaders":["*"],"corsMethods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"corsMaxAge":1440,"corsAllowCredentials":false,"smartProxyEnabled":true,"fhirVersion":0}}' + headers: + cache-control: + - no-cache + content-length: + - '1289' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:08: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: + - b01ab7ece248ad4db9a7ffb49f6ef84e + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b","name":"f3e96bdf-0b1d-477d-b826-fc8d680d766b","status":"Running","startTime":"2019-10-17T05:04:14.4415938Z","properties":{"accountId":"lfqjqi9gsn2p8vmpxu4ceckfd","accountName":"myapimrndxyz","loggingParentId":"8df0393a-f09b-11e9-b768-0242ac11000a","loggingRootId":"f17d0a8c-2a99-43e9-8a46-b2b5ea733f25","externalSecurityAuthenticationAllowedOids":["c487e7d1-3210-41a3-8ccc-e9372b78da47","5b307da8-43d4-492b-8b66-b0294ade872f"],"externalSecurityAuthenticationAuthority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","externalSecurityAuthenticationAudience":"https://azurehealthcareapis.com","offerThroughput":1000,"provisioningOperation":0,"subscriptionId + ":"00000000-0000-0000-0000-000000000000","resourceGroupName ":"test_mgmt_healthcareapis_test_healthcareapis965511fd","providerNamespace + ":"Microsoft.HealthcareApis","resourceTypeName ":"services","skuName":null,"tags":{},"secondaryRegionNames":null,"corsOrigins":["*"],"corsHeaders":["*"],"corsMethods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"corsMaxAge":1440,"corsAllowCredentials":false,"smartProxyEnabled":true,"fhirVersion":0}}' + headers: + cache-control: + - no-cache + content-length: + - '1289' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:09: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: + - 194fd1f881feaf41a0f8ef4f0475c07c + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b","name":"f3e96bdf-0b1d-477d-b826-fc8d680d766b","status":"Running","startTime":"2019-10-17T05:04:14.4415938Z","properties":{"accountId":"lfqjqi9gsn2p8vmpxu4ceckfd","accountName":"myapimrndxyz","loggingParentId":"8df0393a-f09b-11e9-b768-0242ac11000a","loggingRootId":"f17d0a8c-2a99-43e9-8a46-b2b5ea733f25","externalSecurityAuthenticationAllowedOids":["c487e7d1-3210-41a3-8ccc-e9372b78da47","5b307da8-43d4-492b-8b66-b0294ade872f"],"externalSecurityAuthenticationAuthority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","externalSecurityAuthenticationAudience":"https://azurehealthcareapis.com","offerThroughput":1000,"provisioningOperation":0,"subscriptionId + ":"00000000-0000-0000-0000-000000000000","resourceGroupName ":"test_mgmt_healthcareapis_test_healthcareapis965511fd","providerNamespace + ":"Microsoft.HealthcareApis","resourceTypeName ":"services","skuName":null,"tags":{},"secondaryRegionNames":null,"corsOrigins":["*"],"corsHeaders":["*"],"corsMethods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"corsMaxAge":1440,"corsAllowCredentials":false,"smartProxyEnabled":true,"fhirVersion":0}}' + headers: + cache-control: + - no-cache + content-length: + - '1289' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:09: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: + - 7381ae2e021f494e8c07ca93a87f2210 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b","name":"f3e96bdf-0b1d-477d-b826-fc8d680d766b","status":"Running","startTime":"2019-10-17T05:04:14.4415938Z","properties":{"accountId":"lfqjqi9gsn2p8vmpxu4ceckfd","accountName":"myapimrndxyz","loggingParentId":"8df0393a-f09b-11e9-b768-0242ac11000a","loggingRootId":"f17d0a8c-2a99-43e9-8a46-b2b5ea733f25","externalSecurityAuthenticationAllowedOids":["c487e7d1-3210-41a3-8ccc-e9372b78da47","5b307da8-43d4-492b-8b66-b0294ade872f"],"externalSecurityAuthenticationAuthority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","externalSecurityAuthenticationAudience":"https://azurehealthcareapis.com","offerThroughput":1000,"provisioningOperation":0,"subscriptionId + ":"00000000-0000-0000-0000-000000000000","resourceGroupName ":"test_mgmt_healthcareapis_test_healthcareapis965511fd","providerNamespace + ":"Microsoft.HealthcareApis","resourceTypeName ":"services","skuName":null,"tags":{},"secondaryRegionNames":null,"corsOrigins":["*"],"corsHeaders":["*"],"corsMethods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"corsMaxAge":1440,"corsAllowCredentials":false,"smartProxyEnabled":true,"fhirVersion":0}}' + headers: + cache-control: + - no-cache + content-length: + - '1289' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:10: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: + - e4ed51f27ba9e74abba3a27b8cc62447 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b","name":"f3e96bdf-0b1d-477d-b826-fc8d680d766b","status":"Running","startTime":"2019-10-17T05:04:14.4415938Z","properties":{"accountId":"lfqjqi9gsn2p8vmpxu4ceckfd","accountName":"myapimrndxyz","loggingParentId":"8df0393a-f09b-11e9-b768-0242ac11000a","loggingRootId":"f17d0a8c-2a99-43e9-8a46-b2b5ea733f25","externalSecurityAuthenticationAllowedOids":["c487e7d1-3210-41a3-8ccc-e9372b78da47","5b307da8-43d4-492b-8b66-b0294ade872f"],"externalSecurityAuthenticationAuthority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","externalSecurityAuthenticationAudience":"https://azurehealthcareapis.com","offerThroughput":1000,"provisioningOperation":0,"subscriptionId + ":"00000000-0000-0000-0000-000000000000","resourceGroupName ":"test_mgmt_healthcareapis_test_healthcareapis965511fd","providerNamespace + ":"Microsoft.HealthcareApis","resourceTypeName ":"services","skuName":null,"tags":{},"secondaryRegionNames":null,"corsOrigins":["*"],"corsHeaders":["*"],"corsMethods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"corsMaxAge":1440,"corsAllowCredentials":false,"smartProxyEnabled":true,"fhirVersion":0}}' + headers: + cache-control: + - no-cache + content-length: + - '1289' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:10: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: + - ecfe1f54cc9569409fda2710228c904d + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HealthcareApis/locations/westus2/operationresults/f3e96bdf-0b1d-477d-b826-fc8d680d766b","name":"f3e96bdf-0b1d-477d-b826-fc8d680d766b","status":"Succeeded","startTime":"2019-10-17T05:04:14.4415938Z","properties":{"accountId":"lfqjqi9gsn2p8vmpxu4ceckfd","accountName":"myapimrndxyz","loggingParentId":"8df0393a-f09b-11e9-b768-0242ac11000a","loggingRootId":"f17d0a8c-2a99-43e9-8a46-b2b5ea733f25","externalSecurityAuthenticationAllowedOids":["c487e7d1-3210-41a3-8ccc-e9372b78da47","5b307da8-43d4-492b-8b66-b0294ade872f"],"externalSecurityAuthenticationAuthority":"https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc","externalSecurityAuthenticationAudience":"https://azurehealthcareapis.com","offerThroughput":1000,"provisioningOperation":0,"subscriptionId + ":"00000000-0000-0000-0000-000000000000","resourceGroupName ":"test_mgmt_healthcareapis_test_healthcareapis965511fd","providerNamespace + ":"Microsoft.HealthcareApis","resourceTypeName ":"services","skuName":null,"tags":{},"secondaryRegionNames":null,"corsOrigins":["*"],"corsHeaders":["*"],"corsMethods":["DELETE","GET","OPTIONS","PATCH","POST","PUT"],"corsMaxAge":1440,"corsAllowCredentials":false,"smartProxyEnabled":true,"fhirVersion":0}}' + headers: + cache-control: + - no-cache + content-length: + - '1291' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:11: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: + - 05cdc76af0bb994184c1cad2ff5c3c91 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.8 (Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.8 + msrest_azure/0.4.34 azure-mgmt-healthcareapis/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_healthcareapis_test_healthcareapis965511fd/providers/Microsoft.HealthcareApis/services/myapimrndxyz?api-version=2018-08-20-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_healthcareapis_test_healthcareapis965511fd/providers/Microsoft.HealthcareApis/services/myapimrndxyz","name":"myapimrndxyz","type":"Microsoft.HealthcareApis/services","etag":"\"0900e649-0000-0400-0000-5da7f7eb0000\"","location":"westus2","kind":"fhir-R4","tags":{},"properties":{"secondaryLocations":null,"accessPolicies":[{"objectId":"c487e7d1-3210-41a3-8ccc-e9372b78da47"},{"objectId":"5b307da8-43d4-492b-8b66-b0294ade872f"}],"cosmosDbConfiguration":{"offerThroughput":1000},"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},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '931' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 17 Oct 2019 05:11:23 GMT + etag: + - '"0900e649-0000-0400-0000-5da7f7eb0000"' + 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: + - 0babbc829905d941a5a2190edb6b12a3 + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/tests/test_mgmt_healthcareapis.py b/sdk/healthcareapis/azure-mgmt-healthcareapis/tests/test_mgmt_healthcareapis.py new file mode 100644 index 00000000000..b9e40ef5609 --- /dev/null +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/tests/test_mgmt_healthcareapis.py @@ -0,0 +1,74 @@ +# 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. +#-------------------------------------------------------------------------- + +import unittest + +import azure.mgmt.healthcareapis +from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer + +AZURE_LOCATION = 'eastus' + +class MgmtHealthcareApisTest(AzureMgmtTestCase): + + def setUp(self): + super(MgmtHealthcareApisTest, self).setUp() + self.mgmt_client = self.create_mgmt_client( + azure.mgmt.healthcareapis.HealthcareApisManagementClient + ) + + @ResourceGroupPreparer(location=AZURE_LOCATION) + def test_healthcareapis(self, resource_group): + + SERVICE_NAME = "myapimrndxyz" + BODY = { + "location": "westus2", + "kind": "fhir-R4", + "properties": { + "access_policies": [ + { + "object_id": "c487e7d1-3210-41a3-8ccc-e9372b78da47" + }, + { + "object_id": "5b307da8-43d4-492b-8b66-b0294ade872f" + } + ], + "cosmos_db_configuration": { + "offer_throughput": "1000" + }, + "authentication_configuration": { + "authority": "https://login.microsoftonline.com/abfde7b2-df0f-47e6-aabf-2462b07508dc", + "audience": "https://azurehealthcareapis.com", + "smart_proxy_enabled": True + }, + "cors_configuration": { + "origins": [ + "*" + ], + "headers": [ + "*" + ], + "methods": [ + "DELETE", + "GET", + "OPTIONS", + "PATCH", + "POST", + "PUT" + ], + "max_age": "1440", + "allow_credentials": False + } + } + } + azure_operation_poller = self.mgmt_client.services.create_or_update(resource_group.name, SERVICE_NAME, BODY) + result_create = azure_operation_poller.result() + + +#------------------------------------------------------------------------------ +if __name__ == '__main__': + unittest.main() \ No newline at end of file