From 63197563a909ff7e2e49d26b05e28db5aafbe0d5 Mon Sep 17 00:00:00 2001
From: shmartel <53022511+shmartel@users.noreply.github.com>
Date: Tue, 6 Oct 2020 14:13:55 -0700
Subject: [PATCH] Add support for new BYOK parameter keyVaultKeyUri (#15684)
* Add support for new BYOK parameter keyVaultKeyUri
* Since the parameter re-ordering in the ServicesProperties ctor is a breaking change, I've bumped the package version to 2.0.0
---
.../healthcareapis_resource-manager.txt | 6 +++---
.../AzSdk.RP.props | 2 +-
.../Generated/HealthcareApisManagementClient.cs | 2 +-
.../Models/ServiceCosmosDbConfigurationInfo.cs | 12 +++++++++++-
.../src/Generated/Models/ServicesProperties.cs | 13 ++++---------
.../SdkInfo_HealthcareApisManagementClient.cs | 10 +++++-----
...rosoft.Azure.Management.HealthcareApis.csproj | 4 ++--
.../src/Properties/AssemblyInfo.cs | 4 ++--
.../HealthcareApisManagementTestUtilities.cs | 8 +++++---
...ealthcareApisAccountUpdateWithCreateTest.json | 12 ++++++------
.../HealthcareApisCheckNameAvailabilityTest.json | 4 ++--
.../HealthcareApisCreateAccountErrorTest.json | 4 ++--
.../HealthcareApisCreateTest.json | 4 ++--
.../HealthcareApisCreateTestWithDefaultKind.json | 4 ++--
.../HealthcareApisCreateWithParametersTest.json | 8 ++++----
.../HealthcareApisDeleteAccountErrorTest.json | 4 ++--
.../HealthcareApisDeleteTest.json | 12 ++++++------
.../HealthcareApisGetAccountTest.json | 8 ++++----
...thcareApisListAccountByResourceGroupTest.json | 16 ++++++++--------
19 files changed, 72 insertions(+), 65 deletions(-)
diff --git a/eng/mgmt/mgmtmetadata/healthcareapis_resource-manager.txt b/eng/mgmt/mgmtmetadata/healthcareapis_resource-manager.txt
index ae446bf2b5aec..c196759a9a777 100644
--- a/eng/mgmt/mgmtmetadata/healthcareapis_resource-manager.txt
+++ b/eng/mgmt/mgmtmetadata/healthcareapis_resource-manager.txt
@@ -3,12 +3,12 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
-cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/healthcareapis/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\Users\rojo\source\repos\azure-sdk-for-net\sdk
-2020-05-06 20:36:05 UTC
+cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/healthcareapis/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\Users\shmartel\source\repos\azure-sdk-for-net\sdk
+2020-10-01 19:41:55 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
-Commit: 01735394bc1f2ccd9577ac6dd3ef547ab10f2d5c
+Commit: 3695f4ef3bf65c253509d2708c31c96b71822613
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/AzSdk.RP.props b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/AzSdk.RP.props
index c5a0f5b542b0f..a9882fb1745b2 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/AzSdk.RP.props
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/AzSdk.RP.props
@@ -1,7 +1,7 @@
- HealthcareApis_2019-09-16;
+ HealthcareApis_2020-03-15;
$(PackageTags);$(CommonTags);$(AzureApiTag);
\ No newline at end of file
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/HealthcareApisManagementClient.cs b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/HealthcareApisManagementClient.cs
index 91fcce4aeb28b..95965c238bded 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/HealthcareApisManagementClient.cs
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/HealthcareApisManagementClient.cs
@@ -334,7 +334,7 @@ private void Initialize()
Operations = new Operations(this);
OperationResults = new OperationResultsOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
- ApiVersion = "2019-09-16";
+ ApiVersion = "2020-03-15";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServiceCosmosDbConfigurationInfo.cs b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServiceCosmosDbConfigurationInfo.cs
index e52f00eebe8d8..63735c71f7ab0 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServiceCosmosDbConfigurationInfo.cs
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServiceCosmosDbConfigurationInfo.cs
@@ -34,9 +34,12 @@ public ServiceCosmosDbConfigurationInfo()
///
/// The provisioned throughput for the
/// backing database.
- public ServiceCosmosDbConfigurationInfo(int? offerThroughput = default(int?))
+ /// The URI of the customer-managed key
+ /// for the backing database.
+ public ServiceCosmosDbConfigurationInfo(int? offerThroughput = default(int?), string keyVaultKeyUri = default(string))
{
OfferThroughput = offerThroughput;
+ KeyVaultKeyUri = keyVaultKeyUri;
CustomInit();
}
@@ -51,6 +54,13 @@ public ServiceCosmosDbConfigurationInfo()
[JsonProperty(PropertyName = "offerThroughput")]
public int? OfferThroughput { get; set; }
+ ///
+ /// Gets or sets the URI of the customer-managed key for the backing
+ /// database.
+ ///
+ [JsonProperty(PropertyName = "keyVaultKeyUri")]
+ public string KeyVaultKeyUri { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServicesProperties.cs b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServicesProperties.cs
index 22672851d446f..146b9319e23fe 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServicesProperties.cs
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/Models/ServicesProperties.cs
@@ -10,7 +10,6 @@
namespace Microsoft.Azure.Management.HealthcareApis.Models
{
- using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -32,12 +31,12 @@ public ServicesProperties()
///
/// Initializes a new instance of the ServicesProperties class.
///
- /// The access policies of the service
- /// instance.
/// The provisioning state. Possible
/// values include: 'Deleting', 'Succeeded', 'Creating', 'Accepted',
/// 'Verifying', 'Updating', 'Failed', 'Canceled',
/// 'Deprovisioned'
+ /// The access policies of the service
+ /// instance.
/// The settings for the Cosmos DB
/// database backing the service.
/// The authentication
@@ -46,7 +45,7 @@ public ServicesProperties()
/// configuration of the service instance.
/// The settings for the export
/// operation of the service instance.
- public ServicesProperties(IList accessPolicies, string provisioningState = default(string), ServiceCosmosDbConfigurationInfo cosmosDbConfiguration = default(ServiceCosmosDbConfigurationInfo), ServiceAuthenticationConfigurationInfo authenticationConfiguration = default(ServiceAuthenticationConfigurationInfo), ServiceCorsConfigurationInfo corsConfiguration = default(ServiceCorsConfigurationInfo), ServiceExportConfigurationInfo exportConfiguration = default(ServiceExportConfigurationInfo))
+ public ServicesProperties(string provisioningState = default(string), IList accessPolicies = default(IList), ServiceCosmosDbConfigurationInfo cosmosDbConfiguration = default(ServiceCosmosDbConfigurationInfo), ServiceAuthenticationConfigurationInfo authenticationConfiguration = default(ServiceAuthenticationConfigurationInfo), ServiceCorsConfigurationInfo corsConfiguration = default(ServiceCorsConfigurationInfo), ServiceExportConfigurationInfo exportConfiguration = default(ServiceExportConfigurationInfo))
{
ProvisioningState = provisioningState;
AccessPolicies = accessPolicies;
@@ -107,15 +106,11 @@ public ServicesProperties()
///
/// Validate the object.
///
- ///
+ ///
/// Thrown if validation fails
///
public virtual void Validate()
{
- if (AccessPolicies == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "AccessPolicies");
- }
if (AccessPolicies != null)
{
foreach (var element in AccessPolicies)
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/SdkInfo_HealthcareApisManagementClient.cs b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/SdkInfo_HealthcareApisManagementClient.cs
index fda2927bef453..48f99f2dac938 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/SdkInfo_HealthcareApisManagementClient.cs
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Generated/SdkInfo_HealthcareApisManagementClient.cs
@@ -19,19 +19,19 @@ public static IEnumerable> ApiInfo_HealthcareApisM
{
return new Tuple[]
{
- new Tuple("HealthcareApis", "OperationResults", "2019-09-16"),
- new Tuple("HealthcareApis", "Operations", "2019-09-16"),
- new Tuple("HealthcareApis", "Services", "2019-09-16"),
+ new Tuple("HealthcareApis", "OperationResults", "2020-03-15"),
+ new Tuple("HealthcareApis", "Operations", "2020-03-15"),
+ new Tuple("HealthcareApis", "Services", "2020-03-15"),
}.AsEnumerable();
}
}
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "v2";
public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/healthcareapis/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\Users\\rojo\\source\\repos\\azure-sdk-for-net\\sdk";
+ public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/healthcareapis/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\Users\\shmartel\\source\\repos\\azure-sdk-for-net\\sdk";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "01735394bc1f2ccd9577ac6dd3ef547ab10f2d5c";
+ public static readonly String GithubCommidId = "3695f4ef3bf65c253509d2708c31c96b71822613";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Microsoft.Azure.Management.HealthcareApis.csproj b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Microsoft.Azure.Management.HealthcareApis.csproj
index 1163da1e1b27d..f12862165eb92 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Microsoft.Azure.Management.HealthcareApis.csproj
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Microsoft.Azure.Management.HealthcareApis.csproj
@@ -8,12 +8,12 @@
Provides management capabilities for Microsoft Azure Healthcare Apis.
Microsoft Azure Healthcare Apis Management
Microsoft.Azure.Management.HealthcareApis
- 1.1.0
+ 2.0.0
Microsoft.Azure.Management.HealthcareApis
Microsoft Azure Healthcare Apis;HealthcareApis management;HealthcareApis;
Management SDK for Healthcare APIs.
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Properties/AssemblyInfo.cs b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Properties/AssemblyInfo.cs
index 4c6bfa574476a..38ba670869890 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Properties/AssemblyInfo.cs
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/src/Properties/AssemblyInfo.cs
@@ -7,8 +7,8 @@
[assembly: AssemblyTitle("Microsoft Azure Management HealthcareApis Library")]
[assembly: AssemblyDescription("Provides management functionality for Microsoft Azure HealthcareApis Management Platform.")]
-[assembly: AssemblyVersion("1.1.0.0")]
-[assembly: AssemblyFileVersion("1.1.0.0")]
+[assembly: AssemblyVersion("2.0.0.0")]
+[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Microsoft Azure .NET SDK")]
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/Helpers/HealthcareApisManagementTestUtilities.cs b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/Helpers/HealthcareApisManagementTestUtilities.cs
index cedba0ad570c8..158e3e10c7d18 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/Helpers/HealthcareApisManagementTestUtilities.cs
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/Helpers/HealthcareApisManagementTestUtilities.cs
@@ -41,6 +41,7 @@ public static class HealthcareApisManagementTestUtilities
public static string audience = "https://azurehealthcareapis.com";
public static bool smartOnFhirEnabled = false;
public static int offerThroughput = 400;
+ public static string keyVaultKeyUri = "https://my-vault.vault.azure.net/keys/my-key";
private static HttpClientHandler GetHandler()
{
@@ -96,10 +97,10 @@ public static ServicesProperties GetServiceProperties()
string provisioningState = "Succeeded";
- ServiceCosmosDbConfigurationInfo cosmosDbConfigurationInfo = new ServiceCosmosDbConfigurationInfo(offerThroughput);
+ ServiceCosmosDbConfigurationInfo cosmosDbConfigurationInfo = new ServiceCosmosDbConfigurationInfo(offerThroughput, keyVaultKeyUri);
ServiceAuthenticationConfigurationInfo authenticationConfigurationInfo = new ServiceAuthenticationConfigurationInfo(authority, audience, smartOnFhirEnabled);
- var serviceProperties = new ServicesProperties(accessPolicies, provisioningState, cosmosDbConfigurationInfo, authenticationConfigurationInfo);
+ var serviceProperties = new ServicesProperties(provisioningState, accessPolicies, cosmosDbConfigurationInfo, authenticationConfigurationInfo);
return serviceProperties;
}
@@ -134,7 +135,8 @@ public static void VerifyAccountProperties(ServicesDescription account, bool use
Assert.Equal("https://login.microsoftonline.com/common", account.Properties.AuthenticationConfiguration.Authority);
Assert.Equal("https://azurehealthcareapis.com", account.Properties.AuthenticationConfiguration.Audience);
Assert.False(account.Properties.AuthenticationConfiguration.SmartProxyEnabled);
- Assert.Equal(400, account.Properties.CosmosDbConfiguration.OfferThroughput);
+ Assert.Equal(offerThroughput, account.Properties.CosmosDbConfiguration.OfferThroughput);
+ Assert.Equal(keyVaultKeyUri, account.Properties.CosmosDbConfiguration.KeyVaultKeyUri);
Assert.Equal(1, account.Properties.AccessPolicies.Count);
Assert.Equal(ProvisioningState.Succeeded, account.Properties.ProvisioningState);
Assert.Equal(Kind.FhirR4, account.Kind);
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisAccountUpdateWithCreateTest.json b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisAccountUpdateWithCreateTest.json
index 8fd93ed3a746f..816727c78a083 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisAccountUpdateWithCreateTest.json
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisAccountUpdateWithCreateTest.json
@@ -65,8 +65,8 @@
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMTktMDktMTY=",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMjAtMDMtMTU=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"S1\"\r\n ,\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}",
"RequestHeaders": {
@@ -141,8 +141,8 @@
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMTktMDktMTY=",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMjAtMDMtMTU=",
"RequestMethod": "PATCH",
"RequestBody": "{\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\",\r\n \"key5\": \"value5\"\r\n }\r\n}",
"RequestHeaders": {
@@ -220,8 +220,8 @@
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMTktMDktMTY=",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMjAtMDMtMTU=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCheckNameAvailabilityTest.json b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCheckNameAvailabilityTest.json
index d2971fd88935a..df9e25e760613 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCheckNameAvailabilityTest.json
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCheckNameAvailabilityTest.json
@@ -1,8 +1,8 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/providers/Microsoft.HealthcareApis/checkNameAvailability?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Byb3ZpZGVycy9NaWNyb3NvZnQuSGVhbHRoY2FyZUFwaXMvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMTktMDktMTY=",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/providers/Microsoft.HealthcareApis/checkNameAvailability?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Byb3ZpZGVycy9NaWNyb3NvZnQuSGVhbHRoY2FyZUFwaXMvY2hlY2tOYW1lQXZhaWxhYmlsaXR5P2FwaS12ZXJzaW9uPTIwMjAtMDMtMTU=",
"RequestMethod": "POST",
"RequestBody": "{\"name\":\"account1234\",\"type\":\"Microsoft.HealthcareApis/services\"}",
"RequestHeaders": {
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateAccountErrorTest.json b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateAccountErrorTest.json
index b2334d065d536..4996196a83ec3 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateAccountErrorTest.json
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateAccountErrorTest.json
@@ -65,8 +65,8 @@
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/NotExistedRG/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL05vdEV4aXN0ZWRSRy9wcm92aWRlcnMvTWljcm9zb2Z0LkhlYWx0aGNhcmVBcGlzL3NlcnZpY2VzL2hjYTEyMzQ/YXBpLXZlcnNpb249MjAxOS0wOS0xNg==",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/NotExistedRG/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL05vdEV4aXN0ZWRSRy9wcm92aWRlcnMvTWljcm9zb2Z0LkhlYWx0aGNhcmVBcGlzL3NlcnZpY2VzL2hjYTEyMzQ/YXBpLXZlcnNpb249MjAyMC0wMy0xNQ==",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"S1\"\r\n ,\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}",
"RequestHeaders": {
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateTest.json b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateTest.json
index ab1eabf701686..1f76eb9ab3d4c 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateTest.json
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateTest.json
@@ -65,8 +65,8 @@
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMTktMDktMTY=",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMjAtMDMtMTU=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"S1\"\r\n,\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}",
"RequestHeaders": {
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateTestWithDefaultKind.json b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateTestWithDefaultKind.json
index dd2aa04e21069..371038f32f17b 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateTestWithDefaultKind.json
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateTestWithDefaultKind.json
@@ -65,8 +65,8 @@
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMTktMDktMTY=",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMjAtMDMtMTU=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"S1\"\r\n,\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}",
"RequestHeaders": {
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateWithParametersTest.json b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateWithParametersTest.json
index 2e787faa0dc48..7d936562c4063 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateWithParametersTest.json
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisCreateWithParametersTest.json
@@ -65,10 +65,10 @@
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMTktMDktMTY=",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMjAtMDMtMTU=",
"RequestMethod": "PUT",
- "RequestBody": "{ \"name\": \"S1\" ,\"location\":\"westus\", \"properties\": { \"authenticationConfiguration\": { \"authority\": \"https://login.microsoftonline.com/common\",\"audience\": \"https://azurehealthcareapis.com\",\"smartProxyEnabled\": \"false\" },\"cosmosDbConfiguration\": {\"offerThroughput\": \"400\"},\"accessPolicies\": [ {\"objectId\": \"7df19f2f-6169-40f0-ac1e-9a9b4e65a898\"}]}}",
+ "RequestBody": "{ \"name\": \"S1\" ,\"location\":\"westus\", \"properties\": { \"authenticationConfiguration\": { \"authority\": \"https://login.microsoftonline.com/common\",\"audience\": \"https://azurehealthcareapis.com\",\"smartProxyEnabled\": \"false\" },\"cosmosDbConfiguration\": {\"offerThroughput\": \"400\",\"keyVaultKeyUri\": \"https://my-vault.vault.azure.net/keys/my-key\"},\"accessPolicies\": [ {\"objectId\": \"7df19f2f-6169-40f0-ac1e-9a9b4e65a898\"}]}}",
"RequestHeaders": {
"Content-Type": [
"application/json; charset=utf-8"
@@ -87,7 +87,7 @@
"Microsoft.Azure.Management.HealthcareApis.HealthcareApisManagementClient/1.0.0.0"
]
},
- "ResponseBody": "{\r\n \"id\": \"/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/accounts/hca1234\",\r\n \"name\": \"hca1234\",\r\n \"type\": \"Microsoft.HealthcareApis/accounts\",\r\n \"etag\": \"\\\"0a002ee3-0000-0000-0000-5aa238d80000\\\"\",\r\n \"location\": \"westus\",\r\n \"name\": \"S1\"\r\n ,\r\n \"kind\": \"fhir-R4\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n , \"authenticationConfiguration\": { \"authority\": \"https://login.microsoftonline.com/common\",\"audience\": \"https://azurehealthcareapis.com\",\"smartProxyEnabled\": \"false\" },\"cosmosDbConfiguration\": {\"offerThroughput\": \"400\"},\"accessPolicies\": [ {\"objectId\": \"7df19f2f-6169-40f0-ac1e-9a9b4e65a898\"}]}}\r\n",
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/accounts/hca1234\",\r\n \"name\": \"hca1234\",\r\n \"type\": \"Microsoft.HealthcareApis/accounts\",\r\n \"etag\": \"\\\"0a002ee3-0000-0000-0000-5aa238d80000\\\"\",\r\n \"location\": \"westus\",\r\n \"name\": \"S1\"\r\n ,\r\n \"kind\": \"fhir-R4\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n , \"authenticationConfiguration\": { \"authority\": \"https://login.microsoftonline.com/common\",\"audience\": \"https://azurehealthcareapis.com\",\"smartProxyEnabled\": \"false\" },\"cosmosDbConfiguration\": {\"offerThroughput\": \"400\",\"keyVaultKeyUri\": \"https://my-vault.vault.azure.net/keys/my-key\"},\"accessPolicies\": [ {\"objectId\": \"7df19f2f-6169-40f0-ac1e-9a9b4e65a898\"}]}}\r\n",
"ResponseHeaders": {
"Content-Length": [
"570"
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisDeleteAccountErrorTest.json b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisDeleteAccountErrorTest.json
index 783585b3db58e..5698b706095e1 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisDeleteAccountErrorTest.json
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisDeleteAccountErrorTest.json
@@ -65,8 +65,8 @@
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/NotExistedRG/providers/Microsoft.HealthcareApis/services/nonExistedAccountName?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL05vdEV4aXN0ZWRSRy9wcm92aWRlcnMvTWljcm9zb2Z0LkhlYWx0aGNhcmVBcGlzL3NlcnZpY2VzL25vbkV4aXN0ZWRBY2NvdW50TmFtZT9hcGktdmVyc2lvbj0yMDE5LTA5LTE2",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/NotExistedRG/providers/Microsoft.HealthcareApis/services/nonExistedAccountName?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL05vdEV4aXN0ZWRSRy9wcm92aWRlcnMvTWljcm9zb2Z0LkhlYWx0aGNhcmVBcGlzL3NlcnZpY2VzL25vbkV4aXN0ZWRBY2NvdW50TmFtZT9hcGktdmVyc2lvbj0yMDIwLTAzLTE1",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisDeleteTest.json b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisDeleteTest.json
index 2401438f5c9d3..5ec7dc16451d7 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisDeleteTest.json
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisDeleteTest.json
@@ -65,8 +65,8 @@
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMTktMDktMTY=",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMjAtMDMtMTU=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"S1\"\r\n ,\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}",
"RequestHeaders": {
@@ -141,8 +141,8 @@
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMTktMDktMTY=",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMjAtMDMtMTU=",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
@@ -202,8 +202,8 @@
"StatusCode": 204
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/missingaccount?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9taXNzaW5nYWNjb3VudD9hcGktdmVyc2lvbj0yMDE5LTA5LTE2",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/missingaccount?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9taXNzaW5nYWNjb3VudD9hcGktdmVyc2lvbj0yMDIwLTAzLTE1",
"RequestMethod": "DELETE",
"RequestBody": "",
"RequestHeaders": {
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisGetAccountTest.json b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisGetAccountTest.json
index 6ad267516f7cc..d8bbfaab69012 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisGetAccountTest.json
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisGetAccountTest.json
@@ -65,8 +65,8 @@
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMTktMDktMTY=",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMjAtMDMtMTU=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"S1\"\r\n ,\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}",
"RequestHeaders": {
@@ -141,8 +141,8 @@
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMTktMDktMTY=",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMjAtMDMtMTU=",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
diff --git a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisListAccountByResourceGroupTest.json b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisListAccountByResourceGroupTest.json
index bb9344a24e671..774f9c484608a 100644
--- a/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisListAccountByResourceGroupTest.json
+++ b/sdk/healthcareapis/Microsoft.Azure.Management.HealthcareApis/tests/SessionRecords/HealthcareApisTests/HealthcareApisListAccountByResourceGroupTest.json
@@ -65,8 +65,8 @@
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcz9hcGktdmVyc2lvbj0yMDE5LTA5LTE2",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcz9hcGktdmVyc2lvbj0yMDIwLTAzLTE1",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
@@ -138,8 +138,8 @@
"StatusCode": 200
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMTktMDktMTY=",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1234?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM0P2FwaS12ZXJzaW9uPTIwMjAtMDMtMTU=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"S1\"\r\n ,\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}",
"RequestHeaders": {
@@ -214,8 +214,8 @@
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1235?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM1P2FwaS12ZXJzaW9uPTIwMTktMDktMTY=",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services/hca1235?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcy9oY2ExMjM1P2FwaS12ZXJzaW9uPTIwMjAtMDMtMTU=",
"RequestMethod": "PUT",
"RequestBody": "{\r\n \"name\": \"S1\"\r\n ,\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}",
"RequestHeaders": {
@@ -290,8 +290,8 @@
"StatusCode": 201
},
{
- "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services?api-version=2019-09-16",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcz9hcGktdmVyc2lvbj0yMDE5LTA5LTE2",
+ "RequestUri": "/subscriptions/cc148bf2-42fb-4913-a3fb-2f284a69eb89/resourceGroups/res7089/providers/Microsoft.HealthcareApis/services?api-version=2020-03-15",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvY2MxNDhiZjItNDJmYi00OTEzLWEzZmItMmYyODRhNjllYjg5L3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5IZWFsdGhjYXJlQXBpcy9zZXJ2aWNlcz9hcGktdmVyc2lvbj0yMDIwLTAzLTE1",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {