diff --git a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/Helpers/CognitiveServicesManagementTestUtilities.cs b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/Helpers/CognitiveServicesManagementTestUtilities.cs index 1b4e9d458fec..b02a73b9a24b 100644 --- a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/Helpers/CognitiveServicesManagementTestUtilities.cs +++ b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/Helpers/CognitiveServicesManagementTestUtilities.cs @@ -111,7 +111,7 @@ public static string CreateCognitiveServicesAccount(CognitiveServicesManagementC return accountName; } - public static CognitiveServicesAccount CreateAndValidateAccountWithOnlyRequiredParameters(CognitiveServicesManagementClient cognitiveServicesMgmtClient, string rgName, string skuName, string accountType = Kind.Recommendations, string location = null) + public static CognitiveServicesAccount CreateAndValidateAccountWithOnlyRequiredParameters(CognitiveServicesManagementClient cognitiveServicesMgmtClient, string rgName, string skuName, string accountType = Kind.TextAnalytics, string location = null) { // Create account with only required params var accountName = TestUtilities.GenerateName("csa"); diff --git a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountCreateAllApisTest.json b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountCreateAllApisTest.json index 1bfd2319f638..eae710c967b6 100644 --- a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountCreateAllApisTest.json +++ b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountCreateAllApisTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourcegroups/res9880?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlZ3JvdXBzL3Jlczk4ODA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourcegroups/res7089?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlZ3JvdXBzL3JlczcwODk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -13,7 +13,7 @@ "28" ], "x-ms-client-request-id": [ - "93ffecb7-9900-49ae-ab87-a1e3b32e4974" + "6921d366-69aa-41b4-8f32-fcf6b2824804" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880\",\r\n \"name\": \"res9880\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089\",\r\n \"name\": \"res7089\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "167" @@ -38,56 +38,59 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:27 GMT" + "Fri, 09 Mar 2018 08:09:16 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1172" + "1181" ], "x-ms-request-id": [ - "1f18382d-e986-443b-a39e-a8a07ddf23e1" + "19143ba6-22d7-4adb-998f-b68ffa664806" ], "x-ms-correlation-request-id": [ - "1f18382d-e986-443b-a39e-a8a07ddf23e1" + "19143ba6-22d7-4adb-998f-b68ffa664806" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122628Z:1f18382d-e986-443b-a39e-a8a07ddf23e1" + "SOUTHEASTASIA:20180309T080916Z:19143ba6-22d7-4adb-998f-b68ffa664806" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa8677?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E4Njc3P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa7384?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E3Mzg0P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Academic\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.Autosuggest.v7\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "108" + "119" ], "x-ms-client-request-id": [ - "99223c5a-2dda-4dbd-a571-b3e912eee9f1" + "8dcd149f-5655-488a-b84e-e1f4d0a1bc19" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa8677\",\r\n \"name\": \"csa8677\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Academic\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A29.823926Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/academic/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"b732c2348b454154992e4d0ae139d55c\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa7384\",\r\n \"name\": \"csa7384\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"2900a066-0000-0000-0000-5aa2412e0000\\\"\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.Autosuggest.v7\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/bing/v7.0/suggestions\",\r\n \"internalId\": \"ef0c7cc559ab4bb5bc5f677773d79e55\",\r\n \"dateCreated\": \"2018-03-09T08:09:18.1577604Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "502" + "571" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,16 +102,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:30 GMT" + "Fri, 09 Mar 2018 08:09:18 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A29.823926Z'\"" + "\"2900a066-0000-0000-0000-5aa2412e0000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "84d532df-0a74-49b0-9879-6442a996f036" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -120,47 +126,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1171" - ], - "x-ms-request-id": [ - "34469fd6-67aa-415f-92d6-29c9e445e353" + "1180" ], "x-ms-correlation-request-id": [ - "34469fd6-67aa-415f-92d6-29c9e445e353" + "ec0faf2d-09f4-4a91-900f-75336d565f94" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122630Z:34469fd6-67aa-415f-92d6-29c9e445e353" + "SOUTHEASTASIA:20180309T080918Z:ec0faf2d-09f4-4a91-900f-75336d565f94" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa9139?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E5MTM5P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa1886?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2ExODg2P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.Autosuggest\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.CustomSearch\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "116" + "117" ], "x-ms-client-request-id": [ - "f322c3ba-96d0-451a-a8fd-bf63fe0973e0" + "63cac215-fed5-49f4-82e0-8649d7b7d413" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa9139\",\r\n \"name\": \"csa9139\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.Autosuggest\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A31.8437418Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/bing/v5.0/suggestions\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"4937e88d823c46edba6cb864d5f3c900\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa1886\",\r\n \"name\": \"csa1886\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"2900c666-0000-0000-0000-5aa241300000\\\"\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.CustomSearch\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/bingcustomsearch/v7.0\",\r\n \"internalId\": \"86beb68322f34000926e2ae4b9c1826d\",\r\n \"dateCreated\": \"2018-03-09T08:09:20.1238614Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "512" + "569" ], "Content-Type": [ "application/json; charset=utf-8" @@ -172,16 +178,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:32 GMT" + "Fri, 09 Mar 2018 08:09:20 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A31.8437418Z'\"" + "\"2900c666-0000-0000-0000-5aa241300000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "7b2e6507-b868-4372-ab1f-03dbbc0f6675" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -193,47 +202,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1170" - ], - "x-ms-request-id": [ - "1b510f48-49a8-4888-ba55-108873445ca5" + "1179" ], "x-ms-correlation-request-id": [ - "1b510f48-49a8-4888-ba55-108873445ca5" + "05cac2a5-63c4-4401-9605-435ee3fb4e27" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122632Z:1b510f48-49a8-4888-ba55-108873445ca5" + "SOUTHEASTASIA:20180309T080921Z:05cac2a5-63c4-4401-9605-435ee3fb4e27" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa8173?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E4MTczP2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa6516?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E2NTE2P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.Search\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.Search.v7\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "111" + "114" ], "x-ms-client-request-id": [ - "b3bb97b6-c83e-48a8-9048-5954a8d3cd6c" + "f379d2bb-a6c5-43ac-80a9-7c12a7bebe3f" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa8173\",\r\n \"name\": \"csa8173\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.Search\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A33.1630002Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/bing/v5.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"bb8e8e50881a42f8a8be8be2031e40aa\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa6516\",\r\n \"name\": \"csa6516\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"2900eb66-0000-0000-0000-5aa241320000\\\"\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.Search.v7\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/bing/v7.0\",\r\n \"internalId\": \"20acf6263ba24e2fba4db424a1dd517f\",\r\n \"dateCreated\": \"2018-03-09T08:09:22.1458758Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "495" + "554" ], "Content-Type": [ "application/json; charset=utf-8" @@ -245,16 +254,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:33 GMT" + "Fri, 09 Mar 2018 08:09:22 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A33.1630002Z'\"" + "\"2900eb66-0000-0000-0000-5aa241320000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "b3d7d8f5-2c4b-409c-be02-6e121829c2fc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -266,23 +278,23 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1169" - ], - "x-ms-request-id": [ - "0c584b51-876a-4220-aeb5-7f7c358a8c97" + "1178" ], "x-ms-correlation-request-id": [ - "0c584b51-876a-4220-aeb5-7f7c358a8c97" + "cd35ffc2-8408-4776-8ca3-d70a3069169a" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122633Z:0c584b51-876a-4220-aeb5-7f7c358a8c97" + "SOUTHEASTASIA:20180309T080922Z:cd35ffc2-8408-4776-8ca3-d70a3069169a" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa8538?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E4NTM4P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa3557?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2EzNTU3P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Bing.Speech\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { @@ -293,20 +305,20 @@ "111" ], "x-ms-client-request-id": [ - "8ff29830-f594-441d-b8f8-698e8703a073" + "d7ed4489-d73d-4038-be58-3202b599d466" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa8538\",\r\n \"name\": \"csa8538\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Bing.Speech\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A34.5805849Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/sts/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"a6498f573b5840fb891542d6ba462a76\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa3557\",\r\n \"name\": \"csa3557\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"29001767-0000-0000-0000-5aa241340000\\\"\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Bing.Speech\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/sts/v1.0\",\r\n \"internalId\": \"99e4efcb8b8b467d874c20a7fbaf998a\",\r\n \"dateCreated\": \"2018-03-09T08:09:24.0494124Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "494" + "550" ], "Content-Type": [ "application/json; charset=utf-8" @@ -318,16 +330,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:34 GMT" + "Fri, 09 Mar 2018 08:09:24 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A34.5805849Z'\"" + "\"29001767-0000-0000-0000-5aa241340000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "57ffb812-cb3f-4e49-b673-10b9b7b55cd4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -339,47 +354,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1168" - ], - "x-ms-request-id": [ - "c4d0d477-8827-45b3-a02c-c93b8f476684" + "1177" ], "x-ms-correlation-request-id": [ - "c4d0d477-8827-45b3-a02c-c93b8f476684" + "5d53ccfd-b3c3-4779-803e-0a5a1ca91726" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122635Z:c4d0d477-8827-45b3-a02c-c93b8f476684" + "SOUTHEASTASIA:20180309T080924Z:5d53ccfd-b3c3-4779-803e-0a5a1ca91726" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa8576?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E4NTc2P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa8409?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E4NDA5P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.SpellCheck\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.SpellCheck.v7\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "115" + "118" ], "x-ms-client-request-id": [ - "9d058bcf-a4d3-4e96-87d0-91ef9b9352bc" + "044aae09-a4fc-40ea-a257-baa24f175760" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa8576\",\r\n \"name\": \"csa8576\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.SpellCheck\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A35.7744928Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/bing/v5.0/spellcheck\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"71fce77dd2bd4323af9de5855389600a\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa8409\",\r\n \"name\": \"csa8409\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"29003f67-0000-0000-0000-5aa241360000\\\"\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Bing.SpellCheck.v7\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/bing/v7.0/spellcheck\",\r\n \"internalId\": \"50f3127ab2b74ad29952645ac094dd7e\",\r\n \"dateCreated\": \"2018-03-09T08:09:25.9651587Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "510" + "569" ], "Content-Type": [ "application/json; charset=utf-8" @@ -391,16 +406,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:35 GMT" + "Fri, 09 Mar 2018 08:09:26 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A35.7744928Z'\"" + "\"29003f67-0000-0000-0000-5aa241360000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "1e9c9dc0-01af-44c2-9c11-fe8b05d1a4f7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -412,23 +430,23 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1167" - ], - "x-ms-request-id": [ - "64746c5f-151f-469e-9134-4e8a80f0ff3a" + "1176" ], "x-ms-correlation-request-id": [ - "64746c5f-151f-469e-9134-4e8a80f0ff3a" + "50f0f0fa-c980-404e-a51f-55f4b4de5ee9" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122636Z:64746c5f-151f-469e-9134-4e8a80f0ff3a" + "SOUTHEASTASIA:20180309T080926Z:50f0f0fa-c980-404e-a51f-55f4b4de5ee9" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa624?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E2MjQ/YXBpLXZlcnNpb249MjAxNy0wNC0xOA==", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa6217?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E2MjE3P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"ComputerVision\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { @@ -439,20 +457,20 @@ "114" ], "x-ms-client-request-id": [ - "a8c2d80d-7673-4a43-bc81-cdf734b0f557" + "39a5c747-1af0-404d-b34c-3b448e6e2647" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa624\",\r\n \"name\": \"csa624\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"ComputerVision\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A37.1858351Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/vision/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"c17d7692518648a6ab393154783a0101\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa6217\",\r\n \"name\": \"csa6217\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0b00bd0a-0000-0000-0000-5aa241390000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"ComputerVision\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/vision/v1.0\",\r\n \"internalId\": \"8e07dd508ed94bd0a02c541634266a0a\",\r\n \"dateCreated\": \"2018-03-09T08:09:28.8764363Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "505" + "563" ], "Content-Type": [ "application/json; charset=utf-8" @@ -464,16 +482,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:37 GMT" + "Fri, 09 Mar 2018 08:09:29 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A37.1858351Z'\"" + "\"0b00bd0a-0000-0000-0000-5aa241390000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "d64a48ae-b350-4f29-b4ae-4dd2a37ffebc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -485,23 +506,23 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1166" - ], - "x-ms-request-id": [ - "9ed59ae6-4e95-4b33-bb90-968d1f31a55b" + "1175" ], "x-ms-correlation-request-id": [ - "9ed59ae6-4e95-4b33-bb90-968d1f31a55b" + "5485f58d-b1eb-4fb2-a1e6-c11b8d7e3238" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122637Z:9ed59ae6-4e95-4b33-bb90-968d1f31a55b" + "SOUTHEASTASIA:20180309T080929Z:5485f58d-b1eb-4fb2-a1e6-c11b8d7e3238" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa8490?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E4NDkwP2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa4813?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0ODEzP2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"ContentModerator\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { @@ -512,20 +533,20 @@ "116" ], "x-ms-client-request-id": [ - "77377061-495d-4daa-9d11-2af178739dd5" + "6b4aaac5-e4d9-4bc8-963c-e8bbd4c76e57" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa8490\",\r\n \"name\": \"csa8490\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"ContentModerator\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A38.510077Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/contentmoderator\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"9bbed932547a48328b4c242e69bd0eae\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa4813\",\r\n \"name\": \"csa4813\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0b00bf0a-0000-0000-0000-5aa2413a0000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"ContentModerator\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/contentmoderator\",\r\n \"internalId\": \"b6b64fc26444453f9f79cfbf67028e17\",\r\n \"dateCreated\": \"2018-03-09T08:09:30.8101909Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "513" + "570" ], "Content-Type": [ "application/json; charset=utf-8" @@ -537,16 +558,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:38 GMT" + "Fri, 09 Mar 2018 08:09:31 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A38.510077Z'\"" + "\"0b00bf0a-0000-0000-0000-5aa2413a0000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "e3ae3b23-6713-4699-8a5f-72c30bda2c76" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -558,47 +582,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1165" - ], - "x-ms-request-id": [ - "992591cf-dee7-41ac-bc9b-53c3385ff3a3" + "1174" ], "x-ms-correlation-request-id": [ - "992591cf-dee7-41ac-bc9b-53c3385ff3a3" + "2df8dd41-81d7-44b6-ad07-969206450d4f" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122639Z:992591cf-dee7-41ac-bc9b-53c3385ff3a3" + "SOUTHEASTASIA:20180309T080931Z:2df8dd41-81d7-44b6-ad07-969206450d4f" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa1680?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2ExNjgwP2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa8861?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E4ODYxP2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Emotion\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"CustomSpeech\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "107" + "112" ], "x-ms-client-request-id": [ - "e6755398-c7db-49f8-9f7f-f97f4410313a" + "b703116f-0e36-4759-bb9d-bac8d06e3171" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa1680\",\r\n \"name\": \"csa1680\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Emotion\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A39.9794559Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/emotion/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"eaa3df29685c4c4baa32c099d021a833\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa8861\",\r\n \"name\": \"csa8861\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0b00c50a-0000-0000-0000-5aa2413d0000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"CustomSpeech\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/sts/v1.0\",\r\n \"internalId\": \"10038f3ef4f04db8accf6e0df96f8050\",\r\n \"dateCreated\": \"2018-03-09T08:09:33.1082478Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "501" + "558" ], "Content-Type": [ "application/json; charset=utf-8" @@ -610,16 +634,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:39 GMT" + "Fri, 09 Mar 2018 08:09:33 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A39.9794559Z'\"" + "\"0b00c50a-0000-0000-0000-5aa2413d0000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "e1a83b09-f492-45ae-89dc-553a59d4297e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -631,47 +658,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1164" - ], - "x-ms-request-id": [ - "e984fda6-bffe-43d6-a6c8-073243078efd" + "1173" ], "x-ms-correlation-request-id": [ - "e984fda6-bffe-43d6-a6c8-073243078efd" + "31c3d6e6-4eb6-48a5-9db5-683fc96407f0" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122640Z:e984fda6-bffe-43d6-a6c8-073243078efd" + "SOUTHEASTASIA:20180309T080933Z:31c3d6e6-4eb6-48a5-9db5-683fc96407f0" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa8560?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E4NTYwP2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa6078?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E2MDc4P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Face\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"CustomVision.Prediction\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "104" + "131" ], "x-ms-client-request-id": [ - "671ccf87-306e-4cbe-b7a7-9cbce6316022" + "9b316b79-f600-4838-b932-274ea339685c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa8560\",\r\n \"name\": \"csa8560\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Face\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A41.4158049Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/face/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"c478100f274244c3a1b3a55e5bd0aab8\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa6078\",\r\n \"name\": \"csa6078\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"00007d44-0000-0000-0000-5aa241400000\\\"\",\r\n \"location\": \"southcentralus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"CustomVision.Prediction\",\r\n \"properties\": {\r\n \"endpoint\": \"https://southcentralus.api.cognitive.microsoft.com/customvision/Prediction/v1.0\",\r\n \"internalId\": \"bf1587ceaba44a48b37c50f8a025bf27\",\r\n \"dateCreated\": \"2018-03-09T08:09:36.0081102Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "495" + "605" ], "Content-Type": [ "application/json; charset=utf-8" @@ -683,16 +710,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:41 GMT" + "Fri, 09 Mar 2018 08:09:36 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A41.4158049Z'\"" + "\"00007d44-0000-0000-0000-5aa241400000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "897416f0-694f-47a9-925e-f52c96322627" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -704,47 +734,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1163" - ], - "x-ms-request-id": [ - "202c85aa-c0fd-4ec4-8686-c38ad3c1741c" + "1172" ], "x-ms-correlation-request-id": [ - "202c85aa-c0fd-4ec4-8686-c38ad3c1741c" + "5f04764b-965d-46a2-a441-127e83ee693f" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122642Z:202c85aa-c0fd-4ec4-8686-c38ad3c1741c" + "SOUTHEASTASIA:20180309T080936Z:5f04764b-965d-46a2-a441-127e83ee693f" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa5101?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E1MTAxP2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa6899?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E2ODk5P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"LUIS\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"CustomVision.Training\",\r\n \"location\": \"southcentralus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "104" + "129" ], "x-ms-client-request-id": [ - "698a49cd-3b7b-448e-a2dc-adbe17207cab" + "98956050-3d14-4b84-a73a-da6aebce27de" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa5101\",\r\n \"name\": \"csa5101\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"LUIS\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A42.8131156Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"f261e9040f6c473098d7f53bd45e46bb\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa6899\",\r\n \"name\": \"csa6899\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"00007f44-0000-0000-0000-5aa241420000\\\"\",\r\n \"location\": \"southcentralus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"CustomVision.Training\",\r\n \"properties\": {\r\n \"endpoint\": \"https://southcentralus.api.cognitive.microsoft.com/customvision/training/v1.0\",\r\n \"internalId\": \"1c713503983541acb032dc4d11e7d750\",\r\n \"dateCreated\": \"2018-03-09T08:09:37.92484Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "495" + "599" ], "Content-Type": [ "application/json; charset=utf-8" @@ -756,16 +786,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:42 GMT" + "Fri, 09 Mar 2018 08:09:38 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A42.8131156Z'\"" + "\"00007f44-0000-0000-0000-5aa241420000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "7936f3eb-0a5c-4f7a-9e93-213384a1de74" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -777,47 +810,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1162" - ], - "x-ms-request-id": [ - "946b76f6-ffec-4320-977b-37f0592875a8" + "1171" ], "x-ms-correlation-request-id": [ - "946b76f6-ffec-4320-977b-37f0592875a8" + "5c229b54-ec46-4e6a-8f31-117fd192bb5a" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122643Z:946b76f6-ffec-4320-977b-37f0592875a8" + "SOUTHEASTASIA:20180309T080938Z:5c229b54-ec46-4e6a-8f31-117fd192bb5a" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa4081?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0MDgxP2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa7547?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E3NTQ3P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Face\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "115" + "104" ], "x-ms-client-request-id": [ - "056f97be-b3c6-40f6-983f-b96ac37dd939" + "dcd1a32b-f307-4679-95be-131f15e4765c" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa4081\",\r\n \"name\": \"csa4081\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A44.0774152Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/recommendations/v4.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"700245c49c904917bd5f2c756a54e3a3\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa7547\",\r\n \"name\": \"csa7547\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0b00dd0a-0000-0000-0000-5aa241430000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Face\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/face/v1.0\",\r\n \"internalId\": \"061c4e49567a43a8a4641214bff486eb\",\r\n \"dateCreated\": \"2018-03-09T08:09:39.8299237Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "517" + "551" ], "Content-Type": [ "application/json; charset=utf-8" @@ -829,16 +862,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:44 GMT" + "Fri, 09 Mar 2018 08:09:40 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A44.0774152Z'\"" + "\"0b00dd0a-0000-0000-0000-5aa241430000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "15f3343c-5c0b-49fb-8971-51b1057dc3d8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -850,47 +886,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1161" - ], - "x-ms-request-id": [ - "1e1cd673-12ea-4aa8-b1d3-c560fad80624" + "1170" ], "x-ms-correlation-request-id": [ - "1e1cd673-12ea-4aa8-b1d3-c560fad80624" + "231ddaa8-c494-4671-8501-5b6957327477" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122644Z:1e1cd673-12ea-4aa8-b1d3-c560fad80624" + "SOUTHEASTASIA:20180309T080940Z:231ddaa8-c494-4671-8501-5b6957327477" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa9859?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E5ODU5P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa4748?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0NzQ4P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"SpeakerRecognition\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"LUIS\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "118" + "104" ], "x-ms-client-request-id": [ - "f17703a4-8fdb-42aa-ab83-53a04ad99b20" + "a29d1618-e777-4f66-9080-7ac8fccc3792" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa9859\",\r\n \"name\": \"csa9859\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"SpeakerRecognition\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A45.4555953Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/spid/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"4fb8f56e227447bf8acbcb106ffb9650\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa4748\",\r\n \"name\": \"csa4748\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0b00e20a-0000-0000-0000-5aa241450000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"LUIS\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/luis/v2.0\",\r\n \"internalId\": \"251ecf6016f742c99820ae00e3ecc999\",\r\n \"dateCreated\": \"2018-03-09T08:09:41.7643138Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "509" + "551" ], "Content-Type": [ "application/json; charset=utf-8" @@ -902,16 +938,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:45 GMT" + "Fri, 09 Mar 2018 08:09:42 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A45.4555953Z'\"" + "\"0b00e20a-0000-0000-0000-5aa241450000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "7d67dfcb-8287-42f4-acc4-900ea1c718df" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -923,47 +962,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1160" - ], - "x-ms-request-id": [ - "5b4c34d3-0b6d-4f06-805a-f3a586eb1fa7" + "1169" ], "x-ms-correlation-request-id": [ - "5b4c34d3-0b6d-4f06-805a-f3a586eb1fa7" + "6f151972-3980-4c5e-94e6-9e0eb6d0220b" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122646Z:5b4c34d3-0b6d-4f06-805a-f3a586eb1fa7" + "SOUTHEASTASIA:20180309T080942Z:6f151972-3980-4c5e-94e6-9e0eb6d0220b" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa8646?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E4NjQ2P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa7591?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E3NTkxP2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"SpeechTranslation\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"SpeakerRecognition\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "117" + "118" ], "x-ms-client-request-id": [ - "1c13459c-1b1f-4324-a722-02af047dc241" + "c06708cc-ee11-4cb0-a5f3-c76bb168f5f2" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa8646\",\r\n \"name\": \"csa8646\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"SpeechTranslation\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A46.6558755Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/sts/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"5d63b3588c6d4edba93c46ef31543abd\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa7591\",\r\n \"name\": \"csa7591\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0b00e80a-0000-0000-0000-5aa241470000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"SpeakerRecognition\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/spid/v1.0\",\r\n \"internalId\": \"948def5812f448098431945f80f5c289\",\r\n \"dateCreated\": \"2018-03-09T08:09:43.6374518Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "500" + "565" ], "Content-Type": [ "application/json; charset=utf-8" @@ -975,16 +1014,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:46 GMT" + "Fri, 09 Mar 2018 08:09:43 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A46.6558755Z'\"" + "\"0b00e80a-0000-0000-0000-5aa241470000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "9d5c6e17-8b19-474d-8e76-de0997c37f90" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -996,47 +1038,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1159" - ], - "x-ms-request-id": [ - "939c72df-0361-49e0-aec4-438d259a66c3" + "1168" ], "x-ms-correlation-request-id": [ - "939c72df-0361-49e0-aec4-438d259a66c3" + "52dde6d1-65cf-4774-998c-b41ac84782e4" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122647Z:939c72df-0361-49e0-aec4-438d259a66c3" + "SOUTHEASTASIA:20180309T080944Z:52dde6d1-65cf-4774-998c-b41ac84782e4" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa2659?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2EyNjU5P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa9438?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E5NDM4P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"SpeechTranslation\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "113" + "117" ], "x-ms-client-request-id": [ - "67c1e189-1720-4109-a71d-db8a869427c9" + "d83cebcc-c48c-40f7-a6d1-9b4f02c6dc59" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa2659\",\r\n \"name\": \"csa2659\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A48.0300102Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"eafa71968a714859927e098143cdaa8f\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa9438\",\r\n \"name\": \"csa9438\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"29000969-0000-0000-0000-5aa241490000\\\"\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"SpeechTranslation\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/sts/v1.0\",\r\n \"internalId\": \"82ec4139c10548a78578fd91417bdb47\",\r\n \"dateCreated\": \"2018-03-09T08:09:45.5261609Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "514" + "556" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1048,16 +1090,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:47 GMT" + "Fri, 09 Mar 2018 08:09:45 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A48.0300102Z'\"" + "\"29000969-0000-0000-0000-5aa241490000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "16cd1883-96be-494f-8aa8-ed53434d4556" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1069,47 +1114,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1158" - ], - "x-ms-request-id": [ - "4fd4fedd-97b7-444d-9659-e57e96a57cee" + "1167" ], "x-ms-correlation-request-id": [ - "4fd4fedd-97b7-444d-9659-e57e96a57cee" + "38932a8a-7da4-47fd-a0d5-4b19232a3fff" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122648Z:4fd4fedd-97b7-444d-9659-e57e96a57cee" + "SOUTHEASTASIA:20180309T080946Z:38932a8a-7da4-47fd-a0d5-4b19232a3fff" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa920?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E5MjA/YXBpLXZlcnNpb249MjAxNy0wNC0xOA==", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa4060?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0MDYwP2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextTranslation\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "115" + "113" ], "x-ms-client-request-id": [ - "40b83e5d-a1ea-49bb-85f5-495b51cbdfc4" + "248287ca-f5f6-4da8-b897-b6df06f56433" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa920\",\r\n \"name\": \"csa920\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextTranslation\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A49.3774722Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/sts/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"4d0b499bc0454d4ea21c309d9c2d7fb0\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa4060\",\r\n \"name\": \"csa4060\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0b00f00a-0000-0000-0000-5aa2414b0000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"internalId\": \"74951da4dfb84940aad99f38e765afb4\",\r\n \"dateCreated\": \"2018-03-09T08:09:47.4879871Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "496" + "570" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1121,16 +1166,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:49 GMT" + "Fri, 09 Mar 2018 08:09:47 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A49.3774722Z'\"" + "\"0b00f00a-0000-0000-0000-5aa2414b0000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "516e0ba4-eefd-4a48-9701-9572d6955746" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1142,47 +1190,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1157" - ], - "x-ms-request-id": [ - "db3136e8-23d0-44d3-8a3a-a65f15f02ec5" + "1166" ], "x-ms-correlation-request-id": [ - "db3136e8-23d0-44d3-8a3a-a65f15f02ec5" + "594634c2-1d9d-4a9a-9388-f924df894f42" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122650Z:db3136e8-23d0-44d3-8a3a-a65f15f02ec5" + "SOUTHEASTASIA:20180309T080948Z:594634c2-1d9d-4a9a-9388-f924df894f42" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa379?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjFjNjM3ZTQtNzJlYy00Zjg5LThkMmItMGY5MzNjMDM2MDAyL3Jlc291cmNlR3JvdXBzL3Jlczk4ODAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2EzNzk/YXBpLXZlcnNpb249MjAxNy0wNC0xOA==", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa920?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczcwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E5MjA/YXBpLXZlcnNpb249MjAxNy0wNC0xOA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"WebLM\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextTranslation\",\r\n \"location\": \"global\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "105" + "115" ], "x-ms-client-request-id": [ - "6e912245-dfb3-47af-9924-ff8453a042e6" + "6a4f577b-14c7-4d7c-aded-4c5abd82a253" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f1c637e4-72ec-4f89-8d2b-0f933c036002/resourceGroups/res9880/providers/Microsoft.CognitiveServices/accounts/csa379\",\r\n \"name\": \"csa379\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"WebLM\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T12%3A26%3A50.7445574Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/weblm/v1.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"f4d791b8508f4058931711a1a8b21978\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7089/providers/Microsoft.CognitiveServices/accounts/csa920\",\r\n \"name\": \"csa920\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"29006769-0000-0000-0000-5aa2414d0000\\\"\",\r\n \"location\": \"global\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextTranslation\",\r\n \"properties\": {\r\n \"endpoint\": \"https://api.cognitive.microsoft.com/sts/v1.0\",\r\n \"internalId\": \"8b40ae3b051d4c8c8ecc53ebd7048ddb\",\r\n \"dateCreated\": \"2018-03-09T08:09:49.5317131Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "500" + "552" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1194,16 +1242,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 12:26:51 GMT" + "Fri, 09 Mar 2018 08:09:49 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T12%3A26%3A50.7445574Z'\"" + "\"29006769-0000-0000-0000-5aa2414d0000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "fa705b9b-cefb-4e2f-acca-9e374b683480" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1215,16 +1266,16 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1156" - ], - "x-ms-request-id": [ - "1540145e-a6c1-4050-9599-baebb9ccf0dd" + "1165" ], "x-ms-correlation-request-id": [ - "1540145e-a6c1-4050-9599-baebb9ccf0dd" + "92148355-7c91-47cf-8d0a-dca4e7a79eee" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T122651Z:1540145e-a6c1-4050-9599-baebb9ccf0dd" + "SOUTHEASTASIA:20180309T080950Z:92148355-7c91-47cf-8d0a-dca4e7a79eee" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 @@ -1232,28 +1283,28 @@ ], "Names": { "CreateResourceGroup": [ - "res9880" + "res7089" ], "CreateAndValidateAccountWithOnlyRequiredParameters": [ - "csa8677", - "csa9139", - "csa8173", - "csa8538", - "csa8576", - "csa624", - "csa8490", - "csa1680", - "csa8560", - "csa5101", - "csa4081", - "csa9859", - "csa8646", - "csa2659", - "csa920", - "csa379" + "csa7384", + "csa1886", + "csa6516", + "csa3557", + "csa8409", + "csa6217", + "csa4813", + "csa8861", + "csa6078", + "csa6899", + "csa7547", + "csa4748", + "csa7591", + "csa9438", + "csa4060", + "csa920" ] }, "Variables": { - "SubscriptionId": "f1c637e4-72ec-4f89-8d2b-0f933c036002" + "SubscriptionId": "f9b96b36-1f5e-4021-8959-51527e26e6d3" } } \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountCreateTest.json b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountCreateTest.json index 8da6fa5dc30b..9184ce82229b 100644 --- a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountCreateTest.json +++ b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountCreateTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourcegroups/res6699?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlZ3JvdXBzL3JlczY2OTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourcegroups/res6717?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlZ3JvdXBzL3JlczY3MTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -13,7 +13,7 @@ "28" ], "x-ms-client-request-id": [ - "6043c2f7-db3d-43f5-a89c-0ce98bd01fc5" + "5ba3915b-a933-4339-8e6f-f6898f19bd1e" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6699\",\r\n \"name\": \"res6699\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6717\",\r\n \"name\": \"res6717\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "167" @@ -38,32 +38,35 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:11:57 GMT" + "Fri, 09 Mar 2018 07:33:34 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1191" + "1199" ], "x-ms-request-id": [ - "55790cb7-4ae0-4b16-834d-7f32ff16733a" + "1f29460e-0ab6-42c6-bf39-404fd17ba9ad" ], "x-ms-correlation-request-id": [ - "55790cb7-4ae0-4b16-834d-7f32ff16733a" + "1f29460e-0ab6-42c6-bf39-404fd17ba9ad" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T111157Z:55790cb7-4ae0-4b16-834d-7f32ff16733a" + "JAPANWEST:20180309T073334Z:1f29460e-0ab6-42c6-bf39-404fd17ba9ad" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6699/providers/Microsoft.CognitiveServices/accounts/csa5306?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczY2OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E1MzA2P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6717/providers/Microsoft.CognitiveServices/accounts/csa6236?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczY3MTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E2MjM2P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {}\r\n}", "RequestHeaders": { @@ -74,20 +77,20 @@ "177" ], "x-ms-client-request-id": [ - "1a42d9c0-d396-43be-94e6-b6d972431a05" + "c8b44756-88c3-4281-8321-161c85d4eee4" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6699/providers/Microsoft.CognitiveServices/accounts/csa5306\",\r\n \"name\": \"csa5306\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2017-05-26T11%3A11%3A59.8635944Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"fd65dcb3af0245468b277ad29293c68b\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6717/providers/Microsoft.CognitiveServices/accounts/csa6236\",\r\n \"name\": \"csa6236\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0a0000e3-0000-0000-0000-5aa238d30000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"internalId\": \"fea0af926aa549a6a27483171cab817f\",\r\n \"dateCreated\": \"2018-03-09T07:33:38.4718711Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "555" + "611" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,16 +102,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:12:01 GMT" + "Fri, 09 Mar 2018 07:33:40 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T11%3A11%3A59.8635944Z'\"" + "\"0a0000e3-0000-0000-0000-5aa238d30000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "6faf4168-6062-4004-8a26-7acce9349138" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -120,23 +126,23 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1190" - ], - "x-ms-request-id": [ - "f9762c9f-5a53-4473-8ba7-d59145a0eafd" + "1198" ], "x-ms-correlation-request-id": [ - "f9762c9f-5a53-4473-8ba7-d59145a0eafd" + "c4168824-3ce2-4f73-be29-cbacf6375fb2" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T111201Z:f9762c9f-5a53-4473-8ba7-d59145a0eafd" + "JAPANWEST:20180309T073340Z:c4168824-3ce2-4f73-be29-cbacf6375fb2" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6699/providers/Microsoft.CognitiveServices/accounts/csa5306?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczY2OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E1MzA2P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6717/providers/Microsoft.CognitiveServices/accounts/csa6236?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczY3MTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E2MjM2P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {}\r\n}", "RequestHeaders": { @@ -147,17 +153,17 @@ "177" ], "x-ms-client-request-id": [ - "583ed10c-256d-4871-9dff-07c6ec5f9c93" + "549b0def-15be-4a26-9ee2-7af87418326e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6699/providers/Microsoft.CognitiveServices/accounts/csa5306\",\r\n \"name\": \"csa5306\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2017-05-26T11%3A12%3A01.0887626Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"fd65dcb3af0245468b277ad29293c68b\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6717/providers/Microsoft.CognitiveServices/accounts/csa6236\",\r\n \"name\": \"csa6236\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0a0016e3-0000-0000-0000-5aa238d50000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"fea0af926aa549a6a27483171cab817f\",\r\n \"dateCreated\": \"2018-03-09T07:33:38.4718711Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -169,7 +175,7 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:12:01 GMT" + "Fri, 09 Mar 2018 07:33:41 GMT" ], "Pragma": [ "no-cache" @@ -178,14 +184,17 @@ "chunked" ], "ETag": [ - "W/\"datetime'2017-05-26T11%3A12%3A01.0887626Z'\"" + "\"0a0016e3-0000-0000-0000-5aa238d50000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" ], "Vary": [ "Accept-Encoding" ], + "x-ms-request-id": [ + "f0c55353-37b6-417a-9441-eebba28f66fa" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -196,47 +205,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1189" - ], - "x-ms-request-id": [ - "8bbf7988-899f-4a68-8e52-eeccbbc5021c" + "1197" ], "x-ms-correlation-request-id": [ - "8bbf7988-899f-4a68-8e52-eeccbbc5021c" + "91665b27-e93f-49dc-9bce-81ebd78be463" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T111201Z:8bbf7988-899f-4a68-8e52-eeccbbc5021c" + "JAPANWEST:20180309T073341Z:91665b27-e93f-49dc-9bce-81ebd78be463" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6699/providers/Microsoft.CognitiveServices/accounts/csa1864?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczY2OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2ExODY0P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6717/providers/Microsoft.CognitiveServices/accounts/csa4218?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczY3MTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0MjE4P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "115" + "113" ], "x-ms-client-request-id": [ - "868b2679-7571-453c-a64a-eeb52d6a7da9" + "39bce3ac-f86e-490f-92d3-260643c3a770" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6699/providers/Microsoft.CognitiveServices/accounts/csa1864\",\r\n \"name\": \"csa1864\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T11%3A12%3A02.4630737Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/recommendations/v4.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"79d276a7adcb4e8085a831b8052a3a0e\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6717/providers/Microsoft.CognitiveServices/accounts/csa4218\",\r\n \"name\": \"csa4218\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0a002ee3-0000-0000-0000-5aa238d80000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"internalId\": \"cd1c9f1c6df643d5bfabfff2b3eb3b84\",\r\n \"dateCreated\": \"2018-03-09T07:33:44.1016326Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "517" + "570" ], "Content-Type": [ "application/json; charset=utf-8" @@ -248,16 +257,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:12:03 GMT" + "Fri, 09 Mar 2018 07:33:44 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T11%3A12%3A02.4630737Z'\"" + "\"0a002ee3-0000-0000-0000-5aa238d80000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "2263b931-e233-4217-bfba-448ee3ac8346" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -269,47 +281,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1188" - ], - "x-ms-request-id": [ - "72cce213-0193-4039-bb91-15c2692a4d80" + "1196" ], "x-ms-correlation-request-id": [ - "72cce213-0193-4039-bb91-15c2692a4d80" + "977d2f5c-4af0-4c2e-8068-6de427d796c0" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T111203Z:72cce213-0193-4039-bb91-15c2692a4d80" + "JAPANWEST:20180309T073344Z:977d2f5c-4af0-4c2e-8068-6de427d796c0" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6699/providers/Microsoft.CognitiveServices/accounts/csa4010?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczY2OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0MDEwP2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6717/providers/Microsoft.CognitiveServices/accounts/csa2101?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczY3MTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2EyMTAxP2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S2\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S2\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "115" + "113" ], "x-ms-client-request-id": [ - "4c187036-9f16-469d-88d0-04cd54f19030" + "f1ecf3c9-c655-4161-ba9a-fc5a1fdf40ff" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6699/providers/Microsoft.CognitiveServices/accounts/csa4010\",\r\n \"name\": \"csa4010\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S2\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T11%3A12%3A03.9144586Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/recommendations/v4.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"79bd868a6ddb477b90bd24449c78bbd7\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6717/providers/Microsoft.CognitiveServices/accounts/csa2101\",\r\n \"name\": \"csa2101\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0a003ae3-0000-0000-0000-5aa238da0000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S2\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"internalId\": \"e23ed0c685ad45afb4d69c635e171bef\",\r\n \"dateCreated\": \"2018-03-09T07:33:46.4467565Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "517" + "570" ], "Content-Type": [ "application/json; charset=utf-8" @@ -321,16 +333,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:12:04 GMT" + "Fri, 09 Mar 2018 07:33:47 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T11%3A12%3A03.9144586Z'\"" + "\"0a003ae3-0000-0000-0000-5aa238da0000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "abd0e5b4-aa1e-4a2f-a7fa-04b90b4dc761" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -342,47 +357,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" - ], - "x-ms-request-id": [ - "c3e6dfeb-d7c2-401b-9276-90670d0d618f" + "1195" ], "x-ms-correlation-request-id": [ - "c3e6dfeb-d7c2-401b-9276-90670d0d618f" + "69c48426-fe46-46cf-bca7-d506a7d880cd" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T111204Z:c3e6dfeb-d7c2-401b-9276-90670d0d618f" + "JAPANWEST:20180309T073347Z:69c48426-fe46-46cf-bca7-d506a7d880cd" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6699/providers/Microsoft.CognitiveServices/accounts/csa1904?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczY2OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2ExOTA0P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6717/providers/Microsoft.CognitiveServices/accounts/csa7019?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczY3MTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E3MDE5P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S3\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S3\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "115" + "113" ], "x-ms-client-request-id": [ - "79acabf1-f6b0-411d-96ce-19ca6198b53b" + "573595ad-8d26-40f1-9d9e-ae6bc24578d9" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6699/providers/Microsoft.CognitiveServices/accounts/csa1904\",\r\n \"name\": \"csa1904\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S3\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T11%3A12%3A05.5149856Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/recommendations/v4.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"98c76b6ccf8d4c5fb5c00da14eb53296\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6717/providers/Microsoft.CognitiveServices/accounts/csa7019\",\r\n \"name\": \"csa7019\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0a004ee3-0000-0000-0000-5aa238dc0000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S3\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"internalId\": \"673cfb60c9204da1b1f1bc4648ac2fa9\",\r\n \"dateCreated\": \"2018-03-09T07:33:48.5905405Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "517" + "570" ], "Content-Type": [ "application/json; charset=utf-8" @@ -394,16 +409,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:12:06 GMT" + "Fri, 09 Mar 2018 07:33:49 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T11%3A12%3A05.5149856Z'\"" + "\"0a004ee3-0000-0000-0000-5aa238dc0000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "a51ea446-1132-403b-a91e-3fae3d6d8412" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -415,47 +433,47 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1186" - ], - "x-ms-request-id": [ - "e97c6f57-0506-4b7b-ba87-bcb7462b8e9c" + "1194" ], "x-ms-correlation-request-id": [ - "e97c6f57-0506-4b7b-ba87-bcb7462b8e9c" + "c15fb366-5376-408a-b5f2-be656156e9ee" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T111206Z:e97c6f57-0506-4b7b-ba87-bcb7462b8e9c" + "JAPANWEST:20180309T073349Z:c15fb366-5376-408a-b5f2-be656156e9ee" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6699/providers/Microsoft.CognitiveServices/accounts/csa4874?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczY2OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0ODc0P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6717/providers/Microsoft.CognitiveServices/accounts/csa519?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczY3MTcvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E1MTk/YXBpLXZlcnNpb249MjAxNy0wNC0xOA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S4\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S4\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "115" + "113" ], "x-ms-client-request-id": [ - "8a665bd9-b96f-4f2a-a840-1d697d0b6a16" + "8130bb7b-55aa-4a71-8631-aa365a881421" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6699/providers/Microsoft.CognitiveServices/accounts/csa4874\",\r\n \"name\": \"csa4874\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S4\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T11%3A12%3A07.3247148Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/recommendations/v4.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"ff9b8f0d7cbe40bc9e7e8b18dba4d872\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res6717/providers/Microsoft.CognitiveServices/accounts/csa519\",\r\n \"name\": \"csa519\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0a0062e3-0000-0000-0000-5aa238df0000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S4\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"internalId\": \"ff88d3aebec640888903840935850d6a\",\r\n \"dateCreated\": \"2018-03-09T07:33:51.2264763Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "517" + "568" ], "Content-Type": [ "application/json; charset=utf-8" @@ -467,16 +485,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:12:08 GMT" + "Fri, 09 Mar 2018 07:33:51 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T11%3A12%3A07.3247148Z'\"" + "\"0a0062e3-0000-0000-0000-5aa238df0000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "1a1732c6-8f50-4ae7-85a8-fdd82f92c807" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -488,16 +509,16 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1185" - ], - "x-ms-request-id": [ - "54a8e43e-afc1-45d9-9005-99f2581adb8a" + "1193" ], "x-ms-correlation-request-id": [ - "54a8e43e-afc1-45d9-9005-99f2581adb8a" + "93b8ab45-55c6-4205-96d8-b427051bd6f0" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T111208Z:54a8e43e-afc1-45d9-9005-99f2581adb8a" + "JAPANWEST:20180309T073351Z:93b8ab45-55c6-4205-96d8-b427051bd6f0" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 @@ -505,16 +526,16 @@ ], "Names": { "CreateResourceGroup": [ - "res6699" + "res6717" ], "CognitiveServicesAccountCreateTest": [ - "csa5306" + "csa6236" ], "CreateAndValidateAccountWithOnlyRequiredParameters": [ - "csa1864", - "csa4010", - "csa1904", - "csa4874" + "csa4218", + "csa2101", + "csa7019", + "csa519" ] }, "Variables": { diff --git a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountEnumerateSkusTest.json b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountEnumerateSkusTest.json index 35b23aad8973..9b9626b5a5c5 100644 --- a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountEnumerateSkusTest.json +++ b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountEnumerateSkusTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourcegroups/res5422?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlZ3JvdXBzL3JlczU0MjI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourcegroups/res5804?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlZ3JvdXBzL3JlczU4MDQ/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -13,7 +13,7 @@ "28" ], "x-ms-client-request-id": [ - "067cb232-0fd8-4fb4-942a-e3163cfa1744" + "873b075c-0a6c-43b9-aaa1-6022b203f61a" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res5422\",\r\n \"name\": \"res5422\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res5804\",\r\n \"name\": \"res5804\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "167" @@ -38,56 +38,59 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:19:14 GMT" + "Fri, 09 Mar 2018 07:47:51 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1194" + "1199" ], "x-ms-request-id": [ - "6fd42fb6-3594-4c65-ae0f-fed5b4b18ed1" + "5d6f1161-ecdd-4655-8e4f-d171057b2628" ], "x-ms-correlation-request-id": [ - "6fd42fb6-3594-4c65-ae0f-fed5b4b18ed1" + "5d6f1161-ecdd-4655-8e4f-d171057b2628" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20170526T111914Z:6fd42fb6-3594-4c65-ae0f-fed5b4b18ed1" + "JAPANWEST:20180309T074752Z:5d6f1161-ecdd-4655-8e4f-d171057b2628" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res5422/providers/Microsoft.CognitiveServices/accounts/csa679?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczU0MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E2Nzk/YXBpLXZlcnNpb249MjAxNy0wNC0xOA==", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res5804/providers/Microsoft.CognitiveServices/accounts/csa910?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczU4MDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E5MTA/YXBpLXZlcnNpb249MjAxNy0wNC0xOA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S3\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S3\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "115" + "113" ], "x-ms-client-request-id": [ - "06086dd5-e167-407e-aee3-6b9624254d85" + "2a8b5f6b-f3fa-44ba-b54c-c32d665fd7e1" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res5422/providers/Microsoft.CognitiveServices/accounts/csa679\",\r\n \"name\": \"csa679\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S3\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T11%3A19%3A17.1018045Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/recommendations/v4.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"8bd6ef4058844f228afd36f814191a4a\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res5804/providers/Microsoft.CognitiveServices/accounts/csa910\",\r\n \"name\": \"csa910\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0a00b5f5-0000-0000-0000-5aa23c2b0000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S3\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"internalId\": \"16f31a1dba4e46569e4f3bbbe83795ef\",\r\n \"dateCreated\": \"2018-03-09T07:47:54.9603949Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "515" + "568" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,16 +102,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:19:18 GMT" + "Fri, 09 Mar 2018 07:47:55 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T11%3A19%3A17.1018045Z'\"" + "\"0a00b5f5-0000-0000-0000-5aa23c2b0000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "bae8cc43-7ad6-44bf-8cd8-270c928a267f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -120,38 +126,38 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1193" - ], - "x-ms-request-id": [ - "4f7bbb93-d4b2-4ef6-9b77-8840b52ccf23" + "1198" ], "x-ms-correlation-request-id": [ - "4f7bbb93-d4b2-4ef6-9b77-8840b52ccf23" + "c8c20295-579b-46d8-bcb9-141d120e5083" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20170526T111918Z:4f7bbb93-d4b2-4ef6-9b77-8840b52ccf23" + "JAPANWEST:20180309T074755Z:c8c20295-579b-46d8-bcb9-141d120e5083" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res5422/providers/Microsoft.CognitiveServices/accounts/csa679/skus?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczU0MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E2Nzkvc2t1cz9hcGktdmVyc2lvbj0yMDE3LTA0LTE4", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res5804/providers/Microsoft.CognitiveServices/accounts/csa910/skus?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczU4MDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E5MTAvc2t1cz9hcGktdmVyc2lvbj0yMDE3LTA0LTE4", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d00f6300-f568-4461-ab96-c5e3b629f3b7" + "9cde07a2-ffbc-468c-beb4-04e4a62bde92" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"resourceType\": \"Microsoft.CognitiveServices/accounts\",\r\n \"sku\": {\r\n \"name\": \"F0\",\r\n \"tier\": \"Free\"\r\n }\r\n },\r\n {\r\n \"resourceType\": \"Microsoft.CognitiveServices/accounts\",\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\"\r\n }\r\n },\r\n {\r\n \"resourceType\": \"Microsoft.CognitiveServices/accounts\",\r\n \"sku\": {\r\n \"name\": \"S2\",\r\n \"tier\": \"Standard\"\r\n }\r\n },\r\n {\r\n \"resourceType\": \"Microsoft.CognitiveServices/accounts\",\r\n \"sku\": {\r\n \"name\": \"S3\",\r\n \"tier\": \"Standard\"\r\n }\r\n },\r\n {\r\n \"resourceType\": \"Microsoft.CognitiveServices/accounts\",\r\n \"sku\": {\r\n \"name\": \"S4\",\r\n \"tier\": \"Standard\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"resourceType\": \"Microsoft.CognitiveServices/accounts\",\r\n \"sku\": {\r\n \"name\": \"F0\",\r\n \"tier\": \"Free\"\r\n }\r\n },\r\n {\r\n \"resourceType\": \"Microsoft.CognitiveServices/accounts\",\r\n \"sku\": {\r\n \"name\": \"S0\",\r\n \"tier\": \"Standard\"\r\n }\r\n },\r\n {\r\n \"resourceType\": \"Microsoft.CognitiveServices/accounts\",\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\"\r\n }\r\n },\r\n {\r\n \"resourceType\": \"Microsoft.CognitiveServices/accounts\",\r\n \"sku\": {\r\n \"name\": \"S2\",\r\n \"tier\": \"Standard\"\r\n }\r\n },\r\n {\r\n \"resourceType\": \"Microsoft.CognitiveServices/accounts\",\r\n \"sku\": {\r\n \"name\": \"S3\",\r\n \"tier\": \"Standard\"\r\n }\r\n },\r\n {\r\n \"resourceType\": \"Microsoft.CognitiveServices/accounts\",\r\n \"sku\": {\r\n \"name\": \"S4\",\r\n \"tier\": \"Standard\"\r\n }\r\n }\r\n ]\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -163,7 +169,7 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:19:18 GMT" + "Fri, 09 Mar 2018 07:47:56 GMT" ], "Pragma": [ "no-cache" @@ -172,11 +178,14 @@ "chunked" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" ], "Vary": [ "Accept-Encoding" ], + "x-ms-request-id": [ + "0716a249-96bd-485c-88cc-37b655437875" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -187,16 +196,16 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14977" - ], - "x-ms-request-id": [ - "1b9fd1c2-66f2-4ce9-8dba-02bfa3bbf022" + "14916" ], "x-ms-correlation-request-id": [ - "1b9fd1c2-66f2-4ce9-8dba-02bfa3bbf022" + "bd1cee3a-49c7-432e-a789-eb2400385d87" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20170526T111918Z:1b9fd1c2-66f2-4ce9-8dba-02bfa3bbf022" + "JAPANWEST:20180309T074757Z:bd1cee3a-49c7-432e-a789-eb2400385d87" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 @@ -204,10 +213,10 @@ ], "Names": { "CreateResourceGroup": [ - "res5422" + "res5804" ], "CreateAndValidateAccountWithOnlyRequiredParameters": [ - "csa679" + "csa910" ] }, "Variables": { diff --git a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountGetUsagesTest.json b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountGetUsagesTest.json new file mode 100644 index 000000000000..d5289b28b597 --- /dev/null +++ b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountGetUsagesTest.json @@ -0,0 +1,225 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourcegroups/res7450?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlZ3JvdXBzL3Jlczc0NTA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ], + "x-ms-client-request-id": [ + "e62523d3-eaf3-4306-b786-99a3ce11f975" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7450\",\r\n \"name\": \"res7450\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "167" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 13 Mar 2018 03:58:39 GMT" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "ed719348-5415-493d-a7cf-ceb4ce4fb7bc" + ], + "x-ms-correlation-request-id": [ + "ed719348-5415-493d-a7cf-ceb4ce4fb7bc" + ], + "x-ms-routing-request-id": [ + "JAPANWEST:20180313T035839Z:ed719348-5415-493d-a7cf-ceb4ce4fb7bc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7450/providers/Microsoft.CognitiveServices/accounts/csa4517?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3Jlczc0NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0NTE3P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {}\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "177" + ], + "x-ms-client-request-id": [ + "97d971d5-ca00-4c85-9a59-f245b656e24a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7450/providers/Microsoft.CognitiveServices/accounts/csa4517\",\r\n \"name\": \"csa4517\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"1100f0a1-0000-0000-0000-5aa74c720000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"internalId\": \"451deb65bb1a4f858868d43d55ff7c0d\",\r\n \"dateCreated\": \"2018-03-13T03:58:42.5641708Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "611" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 13 Mar 2018 03:58:42 GMT" + ], + "Pragma": [ + "no-cache" + ], + "ETag": [ + "\"1100f0a1-0000-0000-0000-5aa74c720000\"" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "312577ca-aaf6-40c3-a423-2cc2ab58ad97" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "fb7ef4de-0cd9-4a4c-bd93-4f45d56c459f" + ], + "x-ms-routing-request-id": [ + "JAPANWEST:20180313T035843Z:fb7ef4de-0cd9-4a4c-bd93-4f45d56c459f" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res7450/providers/Microsoft.CognitiveServices/accounts/csa4517/usages?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3Jlczc0NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0NTE3L3VzYWdlcz9hcGktdmVyc2lvbj0yMDE3LTA0LTE4", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2935a425-d94c-4a7c-81f4-755cd7254484" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": {\r\n \"value\": \"textAnalyticsStandardS1\",\r\n \"localizedValue\": \"textAnalyticsStandardS1\"\r\n },\r\n \"status\": \"Included\",\r\n \"currentValue\": 0.0,\r\n \"limit\": 100000.0,\r\n \"nextResetTime\": \"2018-04-01T00:00:00Z\"\r\n },\r\n {\r\n \"name\": {\r\n \"value\": \"CognitiveServices.TextAnalytics.BatchScoring.S1Overage\",\r\n \"localizedValue\": \"CognitiveServices.TextAnalytics.BatchScoring.S1Overage\"\r\n },\r\n \"status\": \"Included\",\r\n \"currentValue\": 0.0,\r\n \"limit\": 100000.0,\r\n \"nextResetTime\": \"2018-04-01T00:00:00Z\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Tue, 13 Mar 2018 03:58:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1b68c8e0-26a2-4060-9987-313152735d5f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14897" + ], + "x-ms-correlation-request-id": [ + "6c150e29-bd2c-40b9-bfcd-342a0e85ab07" + ], + "x-ms-routing-request-id": [ + "JAPANWEST:20180313T035845Z:6c150e29-bd2c-40b9-bfcd-342a0e85ab07" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "res7450" + ], + "CreateCognitiveServicesAccount": [ + "csa4517" + ] + }, + "Variables": { + "SubscriptionId": "f9b96b36-1f5e-4021-8959-51527e26e6d3" + } +} \ No newline at end of file diff --git a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountUpdateWithCreateTest.json b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountUpdateWithCreateTest.json index efe50454543a..b8596713987b 100644 --- a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountUpdateWithCreateTest.json +++ b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesAccountUpdateWithCreateTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourcegroups/res4089?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlZ3JvdXBzL3JlczQwODk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourcegroups/res37?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlZ3JvdXBzL3JlczM3P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -13,7 +13,7 @@ "28" ], "x-ms-client-request-id": [ - "026cef0e-f64e-4b9b-9d57-e52c3f3b277e" + "5acdd46f-2bd2-47b1-bb50-f029eae9603d" ], "accept-language": [ "en-US" @@ -23,10 +23,10 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res4089\",\r\n \"name\": \"res4089\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res37\",\r\n \"name\": \"res37\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "167" + "163" ], "Content-Type": [ "application/json; charset=utf-8" @@ -38,56 +38,59 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:17:40 GMT" + "Fri, 09 Mar 2018 07:49:22 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1190" ], "x-ms-request-id": [ - "3b46e465-6673-4c91-a659-4294f65ef640" + "ddcf4165-821d-4ad1-b0c8-075b33ec82ec" ], "x-ms-correlation-request-id": [ - "3b46e465-6673-4c91-a659-4294f65ef640" + "ddcf4165-821d-4ad1-b0c8-075b33ec82ec" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20170526T111740Z:3b46e465-6673-4c91-a659-4294f65ef640" + "JAPANWEST:20180309T074923Z:ddcf4165-821d-4ad1-b0c8-075b33ec82ec" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res4089/providers/Microsoft.CognitiveServices/accounts/csa4798?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczQwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0Nzk4P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res37/providers/Microsoft.CognitiveServices/accounts/csa5775?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczM3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMvY3NhNTc3NT9hcGktdmVyc2lvbj0yMDE3LTA0LTE4", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S2\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S2\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "115" + "113" ], "x-ms-client-request-id": [ - "cd69257b-94bc-4bfa-8482-cae81277a7cb" + "ee9386c8-4368-44e7-8d6c-0ad7d6bc5bbf" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res4089/providers/Microsoft.CognitiveServices/accounts/csa4798\",\r\n \"name\": \"csa4798\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S2\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T11%3A17%3A43.271272Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/recommendations/v4.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"0fbcbe9453ad46039c16348df2972fcf\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res37/providers/Microsoft.CognitiveServices/accounts/csa5775\",\r\n \"name\": \"csa5775\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0a00acf7-0000-0000-0000-5aa23c850000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S2\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"internalId\": \"9cfb98b6e33346aa944fe3c33ed268c9\",\r\n \"dateCreated\": \"2018-03-09T07:49:25.66415Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "516" + "566" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,16 +102,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:17:44 GMT" + "Fri, 09 Mar 2018 07:49:25 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T11%3A17%3A43.271272Z'\"" + "\"0a00acf7-0000-0000-0000-5aa23c850000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "c0ea2d51-94d3-4b42-b301-8450fc5ecb63" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -120,23 +126,23 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-request-id": [ - "33aa3ac1-ccf1-4e4d-a94f-6a0bb7b0a612" + "1189" ], "x-ms-correlation-request-id": [ - "33aa3ac1-ccf1-4e4d-a94f-6a0bb7b0a612" + "b0343950-3864-4533-a8d7-8d5427897667" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20170526T111744Z:33aa3ac1-ccf1-4e4d-a94f-6a0bb7b0a612" + "JAPANWEST:20180309T074926Z:b0343950-3864-4533-a8d7-8d5427897667" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res4089/providers/Microsoft.CognitiveServices/accounts/csa4798?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczQwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0Nzk4P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res37/providers/Microsoft.CognitiveServices/accounts/csa5775?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczM3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMvY3NhNTc3NT9hcGktdmVyc2lvbj0yMDE3LTA0LTE4", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n }\r\n}", "RequestHeaders": { @@ -147,17 +153,17 @@ "39" ], "x-ms-client-request-id": [ - "fcd15691-b97c-429f-a09d-44c0fa89d25c" + "4bed7c13-168f-4447-b789-9472db343fa7" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res4089/providers/Microsoft.CognitiveServices/accounts/csa4798\",\r\n \"name\": \"csa4798\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T11%3A17%3A44.9728971Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/recommendations/v4.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"0fbcbe9453ad46039c16348df2972fcf\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res37/providers/Microsoft.CognitiveServices/accounts/csa5775\",\r\n \"name\": \"csa5775\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0a00bcf7-0000-0000-0000-5aa23c880000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"9cfb98b6e33346aa944fe3c33ed268c9\",\r\n \"dateCreated\": \"2018-03-09T07:49:25.66415Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -169,7 +175,7 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:17:46 GMT" + "Fri, 09 Mar 2018 07:49:28 GMT" ], "Pragma": [ "no-cache" @@ -178,14 +184,17 @@ "chunked" ], "ETag": [ - "W/\"datetime'2017-05-26T11%3A17%3A44.9728971Z'\"" + "\"0a00bcf7-0000-0000-0000-5aa23c880000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" ], "Vary": [ "Accept-Encoding" ], + "x-ms-request-id": [ + "548d87a3-142c-4428-8585-2b3ab477c513" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -196,23 +205,23 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" - ], - "x-ms-request-id": [ - "b5b0fd3c-b6a6-4bbf-baa1-cb7e4a051208" + "1188" ], "x-ms-correlation-request-id": [ - "b5b0fd3c-b6a6-4bbf-baa1-cb7e4a051208" + "c898e4bc-a997-4b90-b2f1-219b4220710e" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20170526T111746Z:b5b0fd3c-b6a6-4bbf-baa1-cb7e4a051208" + "JAPANWEST:20180309T074928Z:c898e4bc-a997-4b90-b2f1-219b4220710e" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res4089/providers/Microsoft.CognitiveServices/accounts/csa4798?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczQwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0Nzk4P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res37/providers/Microsoft.CognitiveServices/accounts/csa5775?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczM3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMvY3NhNTc3NT9hcGktdmVyc2lvbj0yMDE3LTA0LTE4", "RequestMethod": "PATCH", "RequestBody": "{\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\",\r\n \"key5\": \"value5\"\r\n }\r\n}", "RequestHeaders": { @@ -223,17 +232,17 @@ "90" ], "x-ms-client-request-id": [ - "6ceaba28-b8c6-472e-9873-693d21caeb44" + "89a2cb9c-7fe3-46ea-9379-4c74c189c3a2" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res4089/providers/Microsoft.CognitiveServices/accounts/csa4798\",\r\n \"name\": \"csa4798\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\",\r\n \"key5\": \"value5\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2017-05-26T11%3A17%3A46.9267596Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/recommendations/v4.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"0fbcbe9453ad46039c16348df2972fcf\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res37/providers/Microsoft.CognitiveServices/accounts/csa5775\",\r\n \"name\": \"csa5775\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0a00d3f7-0000-0000-0000-5aa23c8c0000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\",\r\n \"key5\": \"value5\"\r\n },\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"9cfb98b6e33346aa944fe3c33ed268c9\",\r\n \"dateCreated\": \"2018-03-09T07:49:25.66415Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -245,7 +254,7 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:17:48 GMT" + "Fri, 09 Mar 2018 07:49:32 GMT" ], "Pragma": [ "no-cache" @@ -254,14 +263,17 @@ "chunked" ], "ETag": [ - "W/\"datetime'2017-05-26T11%3A17%3A46.9267596Z'\"" + "\"0a00d3f7-0000-0000-0000-5aa23c8c0000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" ], "Vary": [ "Accept-Encoding" ], + "x-ms-request-id": [ + "7fd27fd6-93bf-44e3-8cd1-bcda43236a37" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -272,38 +284,38 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" - ], - "x-ms-request-id": [ - "cded50e3-5ec9-4af7-a422-6747bc052905" + "1187" ], "x-ms-correlation-request-id": [ - "cded50e3-5ec9-4af7-a422-6747bc052905" + "3c0db97e-ee18-4c7d-a994-0ca1195cec0c" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20170526T111748Z:cded50e3-5ec9-4af7-a422-6747bc052905" + "JAPANWEST:20180309T074933Z:3c0db97e-ee18-4c7d-a994-0ca1195cec0c" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res4089/providers/Microsoft.CognitiveServices/accounts/csa4798?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczQwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0Nzk4P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res37/providers/Microsoft.CognitiveServices/accounts/csa5775?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczM3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMvY3NhNTc3NT9hcGktdmVyc2lvbj0yMDE3LTA0LTE4", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1163a17a-3150-406a-839a-b9d8e912f7fe" + "65c39c9c-dcfd-47d3-a5ea-a98bfd4989bb" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res4089/providers/Microsoft.CognitiveServices/accounts/csa4798\",\r\n \"name\": \"csa4798\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T11%3A17%3A44.9728971Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/recommendations/v4.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"0fbcbe9453ad46039c16348df2972fcf\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res37/providers/Microsoft.CognitiveServices/accounts/csa5775\",\r\n \"name\": \"csa5775\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0a00bcf7-0000-0000-0000-5aa23c880000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"9cfb98b6e33346aa944fe3c33ed268c9\",\r\n \"dateCreated\": \"2018-03-09T07:49:25.66415Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -315,7 +327,7 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:17:46 GMT" + "Fri, 09 Mar 2018 07:49:29 GMT" ], "Pragma": [ "no-cache" @@ -324,14 +336,17 @@ "chunked" ], "ETag": [ - "W/\"datetime'2017-05-26T11%3A17%3A44.9728971Z'\"" + "\"0a00bcf7-0000-0000-0000-5aa23c880000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" ], "Vary": [ "Accept-Encoding" ], + "x-ms-request-id": [ + "4697a59a-84eb-4e5c-967e-085b2a555af8" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -342,38 +357,38 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14980" - ], - "x-ms-request-id": [ - "8aafa0d1-38d3-4124-a972-2e9b383caed1" + "14953" ], "x-ms-correlation-request-id": [ - "8aafa0d1-38d3-4124-a972-2e9b383caed1" + "122819a6-98f9-4c61-b68c-c06a134c084f" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20170526T111746Z:8aafa0d1-38d3-4124-a972-2e9b383caed1" + "JAPANWEST:20180309T074930Z:122819a6-98f9-4c61-b68c-c06a134c084f" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res4089/providers/Microsoft.CognitiveServices/accounts/csa4798?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczQwODkvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0Nzk4P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res37/providers/Microsoft.CognitiveServices/accounts/csa5775?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczM3L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMvY3NhNTc3NT9hcGktdmVyc2lvbj0yMDE3LTA0LTE4", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9710ebf7-22b6-4fa8-b4d4-4a4c63d68f05" + "a36e073b-b536-464e-83c0-6e1c7c5f2cbd" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res4089/providers/Microsoft.CognitiveServices/accounts/csa4798\",\r\n \"name\": \"csa4798\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\",\r\n \"key5\": \"value5\"\r\n },\r\n \"etag\": \"W/\\\"datetime'2017-05-26T11%3A17%3A46.9267596Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/recommendations/v4.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"0fbcbe9453ad46039c16348df2972fcf\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res37/providers/Microsoft.CognitiveServices/accounts/csa5775\",\r\n \"name\": \"csa5775\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0a00d3f7-0000-0000-0000-5aa23c8c0000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"kind\": \"TextAnalytics\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\",\r\n \"key5\": \"value5\"\r\n },\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/text/analytics/v2.0\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"9cfb98b6e33346aa944fe3c33ed268c9\",\r\n \"dateCreated\": \"2018-03-09T07:49:25.66415Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false\r\n }\r\n}", "ResponseHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -385,7 +400,7 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:17:48 GMT" + "Fri, 09 Mar 2018 07:49:34 GMT" ], "Pragma": [ "no-cache" @@ -394,14 +409,17 @@ "chunked" ], "ETag": [ - "W/\"datetime'2017-05-26T11%3A17%3A46.9267596Z'\"" + "\"0a00d3f7-0000-0000-0000-5aa23c8c0000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" ], "Vary": [ "Accept-Encoding" ], + "x-ms-request-id": [ + "67d37d65-a32d-4c1f-b0dc-97ad6b066976" + ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], @@ -412,16 +430,16 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14979" - ], - "x-ms-request-id": [ - "9a510f01-c5e8-48d9-abb4-b45d72a0a22a" + "14952" ], "x-ms-correlation-request-id": [ - "9a510f01-c5e8-48d9-abb4-b45d72a0a22a" + "53de7e05-5dc7-4452-a99e-041dea676f58" ], "x-ms-routing-request-id": [ - "SOUTHEASTASIA:20170526T111748Z:9a510f01-c5e8-48d9-abb4-b45d72a0a22a" + "JAPANWEST:20180309T074935Z:53de7e05-5dc7-4452-a99e-041dea676f58" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 200 @@ -429,10 +447,10 @@ ], "Names": { "CreateResourceGroup": [ - "res4089" + "res37" ], "CreateAndValidateAccountWithOnlyRequiredParameters": [ - "csa4798" + "csa5775" ] }, "Variables": { diff --git a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesUpdateAccountErrorTest.json b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesUpdateAccountErrorTest.json index 82294a6b9d37..dc88fc322e22 100644 --- a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesUpdateAccountErrorTest.json +++ b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/SessionRecords/CognitiveServices.Tests.CognitiveServicesAccountTests/CognitiveServicesUpdateAccountErrorTest.json @@ -1,8 +1,8 @@ { "Entries": [ { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourcegroups/res3763?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlZ3JvdXBzL3JlczM3NjM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourcegroups/res8404?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlZ3JvdXBzL3Jlczg0MDQ/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"westus\"\r\n}", "RequestHeaders": { @@ -13,7 +13,7 @@ "28" ], "x-ms-client-request-id": [ - "9b568ae5-3a17-46b8-b9dc-1150fc9267c7" + "d341c4d2-6af0-4d85-8eac-441acb3f1fa3" ], "accept-language": [ "en-US" @@ -23,7 +23,7 @@ "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res3763\",\r\n \"name\": \"res3763\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res8404\",\r\n \"name\": \"res8404\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "167" @@ -38,56 +38,59 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:12:40 GMT" + "Fri, 09 Mar 2018 07:43:25 GMT" ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1182" + "1199" ], "x-ms-request-id": [ - "41cc9752-b543-4637-be89-dd09c0cad842" + "adca4a02-6f5f-4240-80c1-3cda33be367c" ], "x-ms-correlation-request-id": [ - "41cc9752-b543-4637-be89-dd09c0cad842" + "adca4a02-6f5f-4240-80c1-3cda33be367c" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T111240Z:41cc9752-b543-4637-be89-dd09c0cad842" + "JAPANWEST:20180309T074325Z:adca4a02-6f5f-4240-80c1-3cda33be367c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res3763/providers/Microsoft.CognitiveServices/accounts/csa2144?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczM3NjMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2EyMTQ0P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res8404/providers/Microsoft.CognitiveServices/accounts/csa1080?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3Jlczg0MDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2ExMDgwP2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S2\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Face\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "115" + "104" ], "x-ms-client-request-id": [ - "1ad75df2-bbba-4a8f-b406-dc988073e601" + "232bd59c-2605-42c5-8c9d-2d72c2d3de36" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res3763/providers/Microsoft.CognitiveServices/accounts/csa2144\",\r\n \"name\": \"csa2144\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S2\"\r\n },\r\n \"kind\": \"Recommendations\",\r\n \"etag\": \"W/\\\"datetime'2017-05-26T11%3A12%3A42.4945034Z'\\\"\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/recommendations/v4.0\",\r\n \"skuChangeInfo\": null,\r\n \"provisioningState\": \"Succeeded\",\r\n \"internalId\": \"b543daa3a91c448fbdb9444e0b388616\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res8404/providers/Microsoft.CognitiveServices/accounts/csa1080\",\r\n \"name\": \"csa1080\",\r\n \"type\": \"Microsoft.CognitiveServices/accounts\",\r\n \"etag\": \"\\\"0a00f6ef-0000-0000-0000-5aa23b200000\\\"\",\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n },\r\n \"kind\": \"Face\",\r\n \"properties\": {\r\n \"endpoint\": \"https://westus.api.cognitive.microsoft.com/face/v1.0\",\r\n \"internalId\": \"a2823bcd116a4c38b149f404ce8a70fb\",\r\n \"dateCreated\": \"2018-03-09T07:43:28.4140004Z\",\r\n \"apiProperties\": null,\r\n \"isMigrated\": false,\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "517" + "551" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,16 +102,19 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:12:42 GMT" + "Fri, 09 Mar 2018 07:43:28 GMT" ], "Pragma": [ "no-cache" ], "ETag": [ - "W/\"datetime'2017-05-26T11%3A12%3A42.4945034Z'\"" + "\"0a00f6ef-0000-0000-0000-5aa23b200000\"" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "731430ab-8f38-478c-900a-ce39f56c78cd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -120,16 +126,16 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1181" - ], - "x-ms-request-id": [ - "1da4c150-30dd-4c03-823e-c01b43bd8ad0" + "1198" ], "x-ms-correlation-request-id": [ - "1da4c150-30dd-4c03-823e-c01b43bd8ad0" + "ea8d163b-deb4-4a4e-9c59-9809f62ad40e" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T111243Z:1da4c150-30dd-4c03-823e-c01b43bd8ad0" + "JAPANWEST:20180309T074329Z:ea8d163b-deb4-4a4e-9c59-9809f62ad40e" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 201 @@ -147,14 +153,14 @@ "2" ], "x-ms-client-request-id": [ - "adf5ca98-e7bb-40ad-b8ff-fe58047cc4c6" + "f58603c9-53cc-46e8-9c9f-f39209ccd54e" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceGroupNotFound\",\r\n \"message\": \"Resource group 'NotExistedRG' could not be found.\"\r\n }\r\n}", @@ -172,7 +178,7 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:12:43 GMT" + "Fri, 09 Mar 2018 07:43:30 GMT" ], "Pragma": [ "no-cache" @@ -181,23 +187,26 @@ "gateway" ], "x-ms-request-id": [ - "b43795e7-d715-44ff-8174-f2b6a6f6cb98" + "0aa8e362-7eca-4d2c-b4cb-3ab2a5c8da86" ], "x-ms-correlation-request-id": [ - "b43795e7-d715-44ff-8174-f2b6a6f6cb98" + "0aa8e362-7eca-4d2c-b4cb-3ab2a5c8da86" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T111243Z:b43795e7-d715-44ff-8174-f2b6a6f6cb98" + "JAPANWEST:20180309T074331Z:0aa8e362-7eca-4d2c-b4cb-3ab2a5c8da86" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 404 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res3763/providers/Microsoft.CognitiveServices/accounts/nonExistedAccountName?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczM3NjMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9ub25FeGlzdGVkQWNjb3VudE5hbWU/YXBpLXZlcnNpb249MjAxNy0wNC0xOA==", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res8404/providers/Microsoft.CognitiveServices/accounts/nonExistedAccountName?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3Jlczg0MDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9ub25FeGlzdGVkQWNjb3VudE5hbWU/YXBpLXZlcnNpb249MjAxNy0wNC0xOA==", "RequestMethod": "PATCH", "RequestBody": "{}", "RequestHeaders": { @@ -208,17 +217,17 @@ "2" ], "x-ms-client-request-id": [ - "759b9f94-60cd-4be2-a405-b401931b156c" + "e05aba8a-3305-4b1e-9f22-e3c87848fdfe" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.CognitiveServices/accounts/nonExistedAccountName' under resource group 'res3763' was not found.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.CognitiveServices/accounts/nonExistedAccountName' under resource group 'res8404' was not found.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ "169" @@ -233,7 +242,7 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:12:43 GMT" + "Fri, 09 Mar 2018 07:43:31 GMT" ], "Pragma": [ "no-cache" @@ -242,25 +251,28 @@ "gateway" ], "x-ms-request-id": [ - "f1edc893-9bf2-44e6-b78d-2970b6f4c047" + "15dd495f-666a-42ec-875f-ca46ae49dd09" ], "x-ms-correlation-request-id": [ - "f1edc893-9bf2-44e6-b78d-2970b6f4c047" + "15dd495f-666a-42ec-875f-ca46ae49dd09" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T111243Z:f1edc893-9bf2-44e6-b78d-2970b6f4c047" + "JAPANWEST:20180309T074332Z:15dd495f-666a-42ec-875f-ca46ae49dd09" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 404 }, { - "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res3763/providers/Microsoft.CognitiveServices/accounts/csa2144?api-version=2017-04-18", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczM3NjMvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2EyMTQ0P2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", + "RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res8404/providers/Microsoft.CognitiveServices/accounts/csa1080?api-version=2017-04-18", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3Jlczg0MDQvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2ExMDgwP2FwaS12ZXJzaW9uPTIwMTctMDQtMTg=", "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"S0\"\r\n }\r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"P1\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -269,20 +281,20 @@ "39" ], "x-ms-client-request-id": [ - "5479e1ce-4328-4d9c-a6e4-a2e227ccaa91" + "d81eb914-387a-4049-b1ef-b915f9c89967" ], "accept-language": [ "en-US" ], "User-Agent": [ "FxVersion/4.6.25211.01", - "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/1.0.0.0" + "Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/3.0.0.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidSkuId\",\r\n \"message\": \"The SKU name 'S0' in account type 'Recommendations' is invalid.\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidSkuId\",\r\n \"message\": \"The SKU name 'P1' in account type 'Face' is invalid.\"\r\n }\r\n}", "ResponseHeaders": { "Content-Length": [ - "109" + "98" ], "Content-Type": [ "application/json; charset=utf-8" @@ -294,13 +306,16 @@ "no-cache" ], "Date": [ - "Fri, 26 May 2017 11:12:43 GMT" + "Fri, 09 Mar 2018 07:43:33 GMT" ], "Pragma": [ "no-cache" ], "Server": [ - "Microsoft-IIS/8.5" + "Microsoft-IIS/10.0" + ], + "x-ms-request-id": [ + "fce38da5-8429-4a9e-878d-ed6fe95fdfda" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -312,16 +327,16 @@ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1178" - ], - "x-ms-request-id": [ - "53331323-8080-4c9c-8354-4679515eaf13" + "1195" ], "x-ms-correlation-request-id": [ - "53331323-8080-4c9c-8354-4679515eaf13" + "08ac368d-8559-4fc3-89f9-322df2302b65" ], "x-ms-routing-request-id": [ - "JAPANEAST:20170526T111244Z:53331323-8080-4c9c-8354-4679515eaf13" + "JAPANWEST:20180309T074333Z:08ac368d-8559-4fc3-89f9-322df2302b65" + ], + "X-Content-Type-Options": [ + "nosniff" ] }, "StatusCode": 400 @@ -329,10 +344,10 @@ ], "Names": { "CreateResourceGroup": [ - "res3763" + "res8404" ], "CreateAndValidateAccountWithOnlyRequiredParameters": [ - "csa2144" + "csa1080" ] }, "Variables": { diff --git a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/Tests/CognitiveServicesAccountTests.cs b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/Tests/CognitiveServicesAccountTests.cs index 941f92333a72..77fb6c63e014 100644 --- a/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/Tests/CognitiveServicesAccountTests.cs +++ b/src/SDKs/CognitiveServices/management/CognitiveServices.Tests/Tests/CognitiveServicesAccountTests.cs @@ -66,22 +66,22 @@ public void CognitiveServicesAccountCreateAllApisTest() // Create resource group var rgname = CognitiveServicesManagementTestUtilities.CreateResourceGroup(resourcesClient); - CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.Academic, "westus"); - CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.BingAutosuggest, "global"); - CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.BingSearch, "global"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.BingAutosuggestv7, "global"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.BingCustomSearch, "global"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.BingSearchv7, "global"); CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.BingSpeech, "global"); - CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.BingSpellCheck, "global"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.BingSpellCheckv7, "global"); CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.ComputerVision, "westus"); CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.ContentModerator, "westus"); - CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.Emotion, "westus"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.CustomSpeech, "westus"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.CustomVisionPrediction, "southcentralus"); + CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.CustomVisionTraining, "southcentralus"); CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.Face, "westus"); CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.LUIS, "westus"); - CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.Recommendations, "westus"); CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.SpeakerRecognition, "westus"); CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.SpeechTranslation, "global"); CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.TextAnalytics, "westus"); CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S1, Kind.TextTranslation, "global"); - CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.WebLM, "westus"); } } @@ -228,6 +228,36 @@ public void CognitiveServicesAccountListKeysTest() } } + [Fact] + public void CognitiveServicesAccountGetUsagesTest() + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType().FullName)) + { + var resourcesClient = CognitiveServicesManagementTestUtilities.GetResourceManagementClient(context, handler); + var cognitiveServicesMgmtClient = CognitiveServicesManagementTestUtilities.GetCognitiveServicesManagementClient(context, handler); + + // Create resource group + string rgname = CognitiveServicesManagementTestUtilities.CreateResourceGroup(resourcesClient); + + // Create cognitive services account + string accountName = CognitiveServicesManagementTestUtilities.CreateCognitiveServicesAccount(cognitiveServicesMgmtClient, rgname); + + // Get usages + var usages = cognitiveServicesMgmtClient.Accounts.GetUsages(rgname, accountName); + + // Has usage data. + Assert.NotNull(usages.Value); + + // Has quota limit + Assert.True(usages.Value[0].Limit > 0); + + // Current value == 0 as there is no call made for this newly created account. + Assert.Equal(0, usages.Value[0].CurrentValue); + } + } + [Fact] public void CognitiveServicesAccountRegenerateKeyTest() { @@ -274,7 +304,7 @@ public void CognitiveServicesAccountUpdateWithCreateTest() var rgname = CognitiveServicesManagementTestUtilities.CreateResourceGroup(resourcesClient); // Create cognitive services account - var createdAccount = CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S2, Kind.Recommendations); + var createdAccount = CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S2, Kind.TextAnalytics); var accountName = createdAccount.Name; // Update SKU @@ -321,7 +351,7 @@ public void CognitiveServicesAccountEnumerateSkusTest() var rgname = CognitiveServicesManagementTestUtilities.CreateResourceGroup(resourcesClient); // Create cognitive services account - var createdAccount = CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S3, Kind.Recommendations); + var createdAccount = CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S3, Kind.TextAnalytics); var accountName = createdAccount.Name; // Enumerate SKUs @@ -334,6 +364,7 @@ public void CognitiveServicesAccountEnumerateSkusTest() Assert.Collection(skuList.Value.Select(x => x.Sku), (sku) => { Assert.Equal(SkuName.F0, sku.Name); Assert.Equal(SkuTier.Free, sku.Tier); }, + (sku) => { Assert.Equal(SkuName.S0, sku.Name); Assert.Equal(SkuTier.Standard, sku.Tier); }, (sku) => { Assert.Equal(SkuName.S1, sku.Name); Assert.Equal(SkuTier.Standard, sku.Tier); }, (sku) => { Assert.Equal(SkuName.S2, sku.Name); Assert.Equal(SkuTier.Standard, sku.Tier); }, (sku) => { Assert.Equal(SkuName.S3, sku.Name); Assert.Equal(SkuTier.Standard, sku.Tier); }, @@ -401,11 +432,11 @@ public void CognitiveServicesCreateAccountErrorTest2() var nonExistSkuPara = new CognitiveServicesAccountCreateParameters { Sku = new Sku { Name = "N0" }, - Kind = Kind.Academic, + Kind = Kind.Face, Location = CognitiveServicesManagementTestUtilities.DefaultLocation, Properties = new object(), }; - + CognitiveServicesManagementTestUtilities.ValidateExpectedException( () => cognitiveServicesMgmtClient.Accounts.Create(rgname, accountName, nonExistApiPara), "InvalidApiSetId"); @@ -457,7 +488,7 @@ public void CognitiveServicesUpdateAccountErrorTest() var rgname = CognitiveServicesManagementTestUtilities.CreateResourceGroup(resourcesClient); // Create cognitive services account - var createdAccount = CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S2, Kind.Recommendations); + var createdAccount = CognitiveServicesManagementTestUtilities.CreateAndValidateAccountWithOnlyRequiredParameters(cognitiveServicesMgmtClient, rgname, SkuName.S0, Kind.Face); var accountName = createdAccount.Name; // try to update non-existent account @@ -471,7 +502,7 @@ public void CognitiveServicesUpdateAccountErrorTest() // Update with a SKU which doesn't exist CognitiveServicesManagementTestUtilities.ValidateExpectedException( - () => cognitiveServicesMgmtClient.Accounts.Update(rgname, accountName, new Sku(SkuName.S0)), + () => cognitiveServicesMgmtClient.Accounts.Update(rgname, accountName, new Sku(SkuName.P1)), "InvalidSkuId"); } } @@ -580,7 +611,7 @@ public void CognitiveServicesAccountMinMaxNameLengthTest() var parameters = new CognitiveServicesAccountCreateParameters { Sku = new Sku { Name = SkuName.S0 }, - Kind = Kind.Academic, + Kind = Kind.Face, Location = CognitiveServicesManagementTestUtilities.DefaultLocation, Properties = new object(), }; diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperations.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperations.cs index 910176aba871..8c716c47fc78 100644 --- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperations.cs +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperations.cs @@ -1905,6 +1905,216 @@ internal AccountsOperations(CognitiveServicesManagementClient client) return _result; } + /// + /// Get usages for the requested Cognitive Services account + /// + /// + /// The name of the resource group within the user's subscription. + /// + /// + /// The name of Cognitive Services account. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetUsagesWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (accountName != null) + { + if (accountName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "accountName", 64); + } + if (accountName.Length < 2) + { + throw new ValidationException(ValidationRules.MinLength, "accountName", 2); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$")) + { + throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetUsages", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (Client.Filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(Client.Filter))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + Error _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Returns all the resources of a particular type belonging to a resource /// group diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperationsExtensions.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperationsExtensions.cs index 219cc4932900..fb13d91e795d 100644 --- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperationsExtensions.cs +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/AccountsOperationsExtensions.cs @@ -402,6 +402,46 @@ public static CognitiveServicesAccountEnumerateSkusResult ListSkus(this IAccount } } + /// + /// Get usages for the requested Cognitive Services account + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the user's subscription. + /// + /// + /// The name of Cognitive Services account. + /// + public static UsagesResult GetUsages(this IAccountsOperations operations, string resourceGroupName, string accountName) + { + return operations.GetUsagesAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); + } + + /// + /// Get usages for the requested Cognitive Services account + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the user's subscription. + /// + /// + /// The name of Cognitive Services account. + /// + /// + /// The cancellation token. + /// + public static async Task GetUsagesAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetUsagesWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Returns all the resources of a particular type belonging to a resource /// group diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/CheckSkuAvailabilityOperations.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/CheckSkuAvailabilityOperations.cs index f8f949c62ac5..9d73ba2cc879 100644 --- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/CheckSkuAvailabilityOperations.cs +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/CheckSkuAvailabilityOperations.cs @@ -60,12 +60,12 @@ internal CheckSkuAvailabilityOperations(CognitiveServicesManagementClient client /// The SKU of the resource. /// /// - /// The Kind of the resource. Possible values include: 'Academic', - /// 'Bing.Autosuggest', 'Bing.Autosuggest.v7', 'Bing.CustomSearch', - /// 'Bing.Search', 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck', - /// 'Bing.SpellCheck.v7', 'ComputerVision', 'ContentModerator', 'CustomSpeech', - /// 'Emotion', 'Face', 'LUIS', 'Recommendations', 'SpeakerRecognition', - /// 'Speech', 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM' + /// The Kind of the resource. Possible values include: 'Bing.Autosuggest.v7', + /// 'Bing.CustomSearch', 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck.v7', + /// 'ComputerVision', 'ContentModerator', 'CustomSpeech', + /// 'CustomVision.Prediction', 'CustomVision.Training', 'Emotion', 'Face', + /// 'LUIS', 'QnAMaker', 'SpeakerRecognition', 'SpeechTranslation', + /// 'TextAnalytics', 'TextTranslation', 'WebLM' /// /// /// The Type of the resource. diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/CheckSkuAvailabilityOperationsExtensions.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/CheckSkuAvailabilityOperationsExtensions.cs index d3294d57b292..a383e9df3e24 100644 --- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/CheckSkuAvailabilityOperationsExtensions.cs +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/CheckSkuAvailabilityOperationsExtensions.cs @@ -36,12 +36,12 @@ public static partial class CheckSkuAvailabilityOperationsExtensions /// The SKU of the resource. /// /// - /// The Kind of the resource. Possible values include: 'Academic', - /// 'Bing.Autosuggest', 'Bing.Autosuggest.v7', 'Bing.CustomSearch', - /// 'Bing.Search', 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck', - /// 'Bing.SpellCheck.v7', 'ComputerVision', 'ContentModerator', 'CustomSpeech', - /// 'Emotion', 'Face', 'LUIS', 'Recommendations', 'SpeakerRecognition', - /// 'Speech', 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM' + /// The Kind of the resource. Possible values include: 'Bing.Autosuggest.v7', + /// 'Bing.CustomSearch', 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck.v7', + /// 'ComputerVision', 'ContentModerator', 'CustomSpeech', + /// 'CustomVision.Prediction', 'CustomVision.Training', 'Emotion', 'Face', + /// 'LUIS', 'QnAMaker', 'SpeakerRecognition', 'SpeechTranslation', + /// 'TextAnalytics', 'TextTranslation', 'WebLM' /// /// /// The Type of the resource. @@ -64,12 +64,12 @@ public static CheckSkuAvailabilityResultList List(this ICheckSkuAvailabilityOper /// The SKU of the resource. /// /// - /// The Kind of the resource. Possible values include: 'Academic', - /// 'Bing.Autosuggest', 'Bing.Autosuggest.v7', 'Bing.CustomSearch', - /// 'Bing.Search', 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck', - /// 'Bing.SpellCheck.v7', 'ComputerVision', 'ContentModerator', 'CustomSpeech', - /// 'Emotion', 'Face', 'LUIS', 'Recommendations', 'SpeakerRecognition', - /// 'Speech', 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM' + /// The Kind of the resource. Possible values include: 'Bing.Autosuggest.v7', + /// 'Bing.CustomSearch', 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck.v7', + /// 'ComputerVision', 'ContentModerator', 'CustomSpeech', + /// 'CustomVision.Prediction', 'CustomVision.Training', 'Emotion', 'Face', + /// 'LUIS', 'QnAMaker', 'SpeakerRecognition', 'SpeechTranslation', + /// 'TextAnalytics', 'TextTranslation', 'WebLM' /// /// /// The Type of the resource. diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/CognitiveServicesManagementClient.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/CognitiveServicesManagementClient.cs index 603125b806c3..0c511b316ec9 100644 --- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/CognitiveServicesManagementClient.cs +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/CognitiveServicesManagementClient.cs @@ -57,6 +57,13 @@ public partial class CognitiveServicesManagementClient : ServiceClient public string ApiVersion { get; private set; } + /// + /// An OData filter expression that describes a subset of usages to return. The + /// supported parameter is name.value (name of the metric, can have an or of + /// multiple names). + /// + public string Filter { get; set; } + /// /// Gets or sets the preferred language for the response. /// diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/IAccountsOperations.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/IAccountsOperations.cs index 385d2691ecd8..9d81cf9cdf37 100644 --- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/IAccountsOperations.cs +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/IAccountsOperations.cs @@ -260,6 +260,31 @@ public partial interface IAccountsOperations /// Task> ListSkusWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Get usages for the requested Cognitive Services account + /// + /// + /// The name of the resource group within the user's subscription. + /// + /// + /// The name of Cognitive Services account. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetUsagesWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Returns all the resources of a particular type belonging to a /// resource group /// diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/ICheckSkuAvailabilityOperations.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/ICheckSkuAvailabilityOperations.cs index 669ef2b20087..9abe19011a2c 100644 --- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/ICheckSkuAvailabilityOperations.cs +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/ICheckSkuAvailabilityOperations.cs @@ -33,13 +33,13 @@ public partial interface ICheckSkuAvailabilityOperations /// The SKU of the resource. /// /// - /// The Kind of the resource. Possible values include: 'Academic', - /// 'Bing.Autosuggest', 'Bing.Autosuggest.v7', 'Bing.CustomSearch', - /// 'Bing.Search', 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck', - /// 'Bing.SpellCheck.v7', 'ComputerVision', 'ContentModerator', - /// 'CustomSpeech', 'Emotion', 'Face', 'LUIS', 'Recommendations', - /// 'SpeakerRecognition', 'Speech', 'SpeechTranslation', - /// 'TextAnalytics', 'TextTranslation', 'WebLM' + /// The Kind of the resource. Possible values include: + /// 'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search.v7', + /// 'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision', + /// 'ContentModerator', 'CustomSpeech', 'CustomVision.Prediction', + /// 'CustomVision.Training', 'Emotion', 'Face', 'LUIS', 'QnAMaker', + /// 'SpeakerRecognition', 'SpeechTranslation', 'TextAnalytics', + /// 'TextTranslation', 'WebLM' /// /// /// The Type of the resource. diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/ICognitiveServicesManagementClient.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/ICognitiveServicesManagementClient.cs index 9cd630f63b9c..6a3bc7eaa051 100644 --- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/ICognitiveServicesManagementClient.cs +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/ICognitiveServicesManagementClient.cs @@ -51,6 +51,13 @@ public partial interface ICognitiveServicesManagementClient : System.IDisposable /// string ApiVersion { get; } + /// + /// An OData filter expression that describes a subset of usages to + /// return. The supported parameter is name.value (name of the metric, + /// can have an or of multiple names). + /// + string Filter { get; set; } + /// /// Gets or sets the preferred language for the response. /// diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CheckSkuAvailabilityParameter.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CheckSkuAvailabilityParameter.cs index c391435affbd..c3cac62d0eec 100644 --- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CheckSkuAvailabilityParameter.cs +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CheckSkuAvailabilityParameter.cs @@ -36,11 +36,11 @@ public CheckSkuAvailabilityParameter() /// /// The SKU of the resource. /// The Kind of the resource. Possible values - /// include: 'Academic', 'Bing.Autosuggest', 'Bing.Autosuggest.v7', - /// 'Bing.CustomSearch', 'Bing.Search', 'Bing.Search.v7', - /// 'Bing.Speech', 'Bing.SpellCheck', 'Bing.SpellCheck.v7', - /// 'ComputerVision', 'ContentModerator', 'CustomSpeech', 'Emotion', - /// 'Face', 'LUIS', 'Recommendations', 'SpeakerRecognition', 'Speech', + /// include: 'Bing.Autosuggest.v7', 'Bing.CustomSearch', + /// 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck.v7', + /// 'ComputerVision', 'ContentModerator', 'CustomSpeech', + /// 'CustomVision.Prediction', 'CustomVision.Training', 'Emotion', + /// 'Face', 'LUIS', 'QnAMaker', 'SpeakerRecognition', /// 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', /// 'WebLM' /// The Type of the resource. @@ -65,12 +65,12 @@ public CheckSkuAvailabilityParameter(IList skus, string kind, string typ /// /// Gets or sets the Kind of the resource. Possible values include: - /// 'Academic', 'Bing.Autosuggest', 'Bing.Autosuggest.v7', - /// 'Bing.CustomSearch', 'Bing.Search', 'Bing.Search.v7', - /// 'Bing.Speech', 'Bing.SpellCheck', 'Bing.SpellCheck.v7', - /// 'ComputerVision', 'ContentModerator', 'CustomSpeech', 'Emotion', - /// 'Face', 'LUIS', 'Recommendations', 'SpeakerRecognition', 'Speech', - /// 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM' + /// 'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search.v7', + /// 'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision', + /// 'ContentModerator', 'CustomSpeech', 'CustomVision.Prediction', + /// 'CustomVision.Training', 'Emotion', 'Face', 'LUIS', 'QnAMaker', + /// 'SpeakerRecognition', 'SpeechTranslation', 'TextAnalytics', + /// 'TextTranslation', 'WebLM' /// [JsonProperty(PropertyName = "kind")] public string Kind { get; set; } diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CheckSkuAvailabilityResult.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CheckSkuAvailabilityResult.cs index 26b7ac9217a0..c761be02911e 100644 --- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CheckSkuAvailabilityResult.cs +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CheckSkuAvailabilityResult.cs @@ -30,11 +30,11 @@ public CheckSkuAvailabilityResult() /// Initializes a new instance of the CheckSkuAvailabilityResult class. /// /// The Kind of the resource. Possible values - /// include: 'Academic', 'Bing.Autosuggest', 'Bing.Autosuggest.v7', - /// 'Bing.CustomSearch', 'Bing.Search', 'Bing.Search.v7', - /// 'Bing.Speech', 'Bing.SpellCheck', 'Bing.SpellCheck.v7', - /// 'ComputerVision', 'ContentModerator', 'CustomSpeech', 'Emotion', - /// 'Face', 'LUIS', 'Recommendations', 'SpeakerRecognition', 'Speech', + /// include: 'Bing.Autosuggest.v7', 'Bing.CustomSearch', + /// 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck.v7', + /// 'ComputerVision', 'ContentModerator', 'CustomSpeech', + /// 'CustomVision.Prediction', 'CustomVision.Training', 'Emotion', + /// 'Face', 'LUIS', 'QnAMaker', 'SpeakerRecognition', /// 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', /// 'WebLM' /// The Type of the resource. @@ -63,12 +63,12 @@ public CheckSkuAvailabilityResult() /// /// Gets or sets the Kind of the resource. Possible values include: - /// 'Academic', 'Bing.Autosuggest', 'Bing.Autosuggest.v7', - /// 'Bing.CustomSearch', 'Bing.Search', 'Bing.Search.v7', - /// 'Bing.Speech', 'Bing.SpellCheck', 'Bing.SpellCheck.v7', - /// 'ComputerVision', 'ContentModerator', 'CustomSpeech', 'Emotion', - /// 'Face', 'LUIS', 'Recommendations', 'SpeakerRecognition', 'Speech', - /// 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM' + /// 'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search.v7', + /// 'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision', + /// 'ContentModerator', 'CustomSpeech', 'CustomVision.Prediction', + /// 'CustomVision.Training', 'Emotion', 'Face', 'LUIS', 'QnAMaker', + /// 'SpeakerRecognition', 'SpeechTranslation', 'TextAnalytics', + /// 'TextTranslation', 'WebLM' /// [JsonProperty(PropertyName = "kind")] public string Kind { get; set; } diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CognitiveServicesAccountCreateParameters.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CognitiveServicesAccountCreateParameters.cs index e8d57dfb3d86..f987a3ab94fc 100644 --- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CognitiveServicesAccountCreateParameters.cs +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/CognitiveServicesAccountCreateParameters.cs @@ -37,13 +37,13 @@ public CognitiveServicesAccountCreateParameters() /// Required. Gets or sets the SKU of the /// resource. /// Required. Gets or sets the Kind of the resource. - /// Possible values include: 'Academic', 'Bing.Autosuggest', - /// 'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search', - /// 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck', + /// Possible values include: 'Bing.Autosuggest.v7', + /// 'Bing.CustomSearch', 'Bing.Search.v7', 'Bing.Speech', /// 'Bing.SpellCheck.v7', 'ComputerVision', 'ContentModerator', - /// 'CustomSpeech', 'Emotion', 'Face', 'LUIS', 'Recommendations', - /// 'SpeakerRecognition', 'Speech', 'SpeechTranslation', - /// 'TextAnalytics', 'TextTranslation', 'WebLM' + /// 'CustomSpeech', 'CustomVision.Prediction', 'CustomVision.Training', + /// 'Emotion', 'Face', 'LUIS', 'QnAMaker', 'SpeakerRecognition', + /// 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', + /// 'WebLM' /// Required. Gets or sets the location of the /// resource. This will be one of the supported and registered Azure /// Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo @@ -81,13 +81,12 @@ public CognitiveServicesAccountCreateParameters() /// /// Gets or sets required. Gets or sets the Kind of the resource. - /// Possible values include: 'Academic', 'Bing.Autosuggest', - /// 'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search', - /// 'Bing.Search.v7', 'Bing.Speech', 'Bing.SpellCheck', + /// Possible values include: 'Bing.Autosuggest.v7', + /// 'Bing.CustomSearch', 'Bing.Search.v7', 'Bing.Speech', /// 'Bing.SpellCheck.v7', 'ComputerVision', 'ContentModerator', - /// 'CustomSpeech', 'Emotion', 'Face', 'LUIS', 'Recommendations', - /// 'SpeakerRecognition', 'Speech', 'SpeechTranslation', - /// 'TextAnalytics', 'TextTranslation', 'WebLM' + /// 'CustomSpeech', 'CustomVision.Prediction', 'CustomVision.Training', + /// 'Emotion', 'Face', 'LUIS', 'QnAMaker', 'SpeakerRecognition', + /// 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM' /// [JsonProperty(PropertyName = "kind")] public string Kind { get; set; } diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/Kind.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/Kind.cs index d3b0b839b238..accaff7cd9eb 100644 --- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/Kind.cs +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/Kind.cs @@ -16,24 +16,21 @@ namespace Microsoft.Azure.Management.CognitiveServices.Models /// public static class Kind { - public const string Academic = "Academic"; - public const string BingAutosuggest = "Bing.Autosuggest"; public const string BingAutosuggestv7 = "Bing.Autosuggest.v7"; public const string BingCustomSearch = "Bing.CustomSearch"; - public const string BingSearch = "Bing.Search"; public const string BingSearchv7 = "Bing.Search.v7"; public const string BingSpeech = "Bing.Speech"; - public const string BingSpellCheck = "Bing.SpellCheck"; public const string BingSpellCheckv7 = "Bing.SpellCheck.v7"; public const string ComputerVision = "ComputerVision"; public const string ContentModerator = "ContentModerator"; public const string CustomSpeech = "CustomSpeech"; + public const string CustomVisionPrediction = "CustomVision.Prediction"; + public const string CustomVisionTraining = "CustomVision.Training"; public const string Emotion = "Emotion"; public const string Face = "Face"; public const string LUIS = "LUIS"; - public const string Recommendations = "Recommendations"; + public const string QnAMaker = "QnAMaker"; public const string SpeakerRecognition = "SpeakerRecognition"; - public const string Speech = "Speech"; public const string SpeechTranslation = "SpeechTranslation"; public const string TextAnalytics = "TextAnalytics"; public const string TextTranslation = "TextTranslation"; diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/MetricName.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/MetricName.cs new file mode 100644 index 000000000000..4039b5973f3d --- /dev/null +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/MetricName.cs @@ -0,0 +1,60 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.CognitiveServices.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A metric name. + /// + public partial class MetricName + { + /// + /// Initializes a new instance of the MetricName class. + /// + public MetricName() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MetricName class. + /// + /// The name of the metric. + /// The friendly name of the + /// metric. + public MetricName(string value = default(string), string localizedValue = default(string)) + { + Value = value; + LocalizedValue = localizedValue; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the name of the metric. + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; private set; } + + /// + /// Gets the friendly name of the metric. + /// + [JsonProperty(PropertyName = "localizedValue")] + public string LocalizedValue { get; private set; } + + } +} diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/QuotaUsageStatus.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/QuotaUsageStatus.cs new file mode 100644 index 000000000000..1eb37fcc9d2e --- /dev/null +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/QuotaUsageStatus.cs @@ -0,0 +1,24 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.CognitiveServices.Models +{ + + /// + /// Defines values for QuotaUsageStatus. + /// + public static class QuotaUsageStatus + { + public const string Included = "Included"; + public const string Blocked = "Blocked"; + public const string InOverage = "InOverage"; + public const string Unknown = "Unknown"; + } +} diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/UnitType.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/UnitType.cs new file mode 100644 index 000000000000..373bbb4ba2e6 --- /dev/null +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/UnitType.cs @@ -0,0 +1,27 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.CognitiveServices.Models +{ + + /// + /// Defines values for UnitType. + /// + public static class UnitType + { + public const string Count = "Count"; + public const string Bytes = "Bytes"; + public const string Seconds = "Seconds"; + public const string Percent = "Percent"; + public const string CountPerSecond = "CountPerSecond"; + public const string BytesPerSecond = "BytesPerSecond"; + public const string Milliseconds = "Milliseconds"; + } +} diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/Usage.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/Usage.cs new file mode 100644 index 000000000000..47469e620ba4 --- /dev/null +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/Usage.cs @@ -0,0 +1,109 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.CognitiveServices.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The usage data for a usage request. + /// + public partial class Usage + { + /// + /// Initializes a new instance of the Usage class. + /// + public Usage() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Usage class. + /// + /// The unit of the metric. Possible values include: + /// 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', + /// 'BytesPerSecond', 'Milliseconds' + /// The name information for the metric. + /// The quota period used to summarize the + /// usage values. + /// Maximum value for this metric. + /// Current value for this metric. + /// Next reset time for current + /// quota. + /// Cognitive Services account quota usage status. + /// Possible values include: 'Included', 'Blocked', 'InOverage', + /// 'Unknown' + public Usage(string unit = default(string), MetricName name = default(MetricName), string quotaPeriod = default(string), double? limit = default(double?), double? currentValue = default(double?), string nextResetTime = default(string), string status = default(string)) + { + Unit = unit; + Name = name; + QuotaPeriod = quotaPeriod; + Limit = limit; + CurrentValue = currentValue; + NextResetTime = nextResetTime; + Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the unit of the metric. Possible values include: + /// 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', + /// 'BytesPerSecond', 'Milliseconds' + /// + [JsonProperty(PropertyName = "unit")] + public string Unit { get; set; } + + /// + /// Gets the name information for the metric. + /// + [JsonProperty(PropertyName = "name")] + public MetricName Name { get; private set; } + + /// + /// Gets the quota period used to summarize the usage values. + /// + [JsonProperty(PropertyName = "quotaPeriod")] + public string QuotaPeriod { get; private set; } + + /// + /// Gets maximum value for this metric. + /// + [JsonProperty(PropertyName = "limit")] + public double? Limit { get; private set; } + + /// + /// Gets current value for this metric. + /// + [JsonProperty(PropertyName = "currentValue")] + public double? CurrentValue { get; private set; } + + /// + /// Gets next reset time for current quota. + /// + [JsonProperty(PropertyName = "nextResetTime")] + public string NextResetTime { get; private set; } + + /// + /// Gets or sets cognitive Services account quota usage status. + /// Possible values include: 'Included', 'Blocked', 'InOverage', + /// 'Unknown' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + } +} diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/UsagesResult.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/UsagesResult.cs new file mode 100644 index 000000000000..9c749814ff04 --- /dev/null +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Generated/Models/UsagesResult.cs @@ -0,0 +1,54 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.CognitiveServices.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The response to a list usage request. + /// + public partial class UsagesResult + { + /// + /// Initializes a new instance of the UsagesResult class. + /// + public UsagesResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UsagesResult class. + /// + /// The list of usages for Cognitive Service + /// account. + public UsagesResult(IList value = default(IList)) + { + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the list of usages for Cognitive Service account. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; private set; } + + } +} diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Microsoft.Azure.Management.CognitiveServices.csproj b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Microsoft.Azure.Management.CognitiveServices.csproj index 929e0fcfc522..1719fa202537 100644 --- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Microsoft.Azure.Management.CognitiveServices.csproj +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Microsoft.Azure.Management.CognitiveServices.csproj @@ -6,10 +6,10 @@ Microsoft.Azure.Management.CognitiveServices Microsoft Azure Management Cognitive Services Library - 3.0.1 + 4.0.0 Microsoft.Azure.Management.CognitiveServices Cognitive Services management;Cognitive Services; - 1. Updating notice.txt; + 1. Add GetUsages operation in AccountsOperations; 2. Decommissioned several API Kind; net452;netstandard1.4 diff --git a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Properties/AssemblyInfo.cs b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Properties/AssemblyInfo.cs index a0f6bf0f1063..a8893acf561b 100644 --- a/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Properties/AssemblyInfo.cs +++ b/src/SDKs/CognitiveServices/management/Management.CognitiveServices/Properties/AssemblyInfo.cs @@ -7,8 +7,8 @@ [assembly: AssemblyTitle("Microsoft Azure Cognitive Services Management Library")] [assembly: AssemblyDescription("Provides Microsoft Azure Cognitive Services management functions for managing Microsoft Azure Cognitive Services accounts.")] -[assembly: AssemblyVersion("3.0.0.0")] -[assembly: AssemblyFileVersion("3.0.0.0")] +[assembly: AssemblyVersion("4.0.0.0")] +[assembly: AssemblyFileVersion("4.0.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] diff --git a/src/SDKs/_metadata/cognitiveservices_resource-manager.txt b/src/SDKs/_metadata/cognitiveservices_resource-manager.txt index cf27b1365045..dfdd3062b150 100644 --- a/src/SDKs/_metadata/cognitiveservices_resource-manager.txt +++ b/src/SDKs/_metadata/cognitiveservices_resource-manager.txt @@ -1,11 +1,11 @@ -2017-12-15 03:33:25 UTC +2018-03-13 03:54:31 UTC 1) azure-rest-api-specs repository information GitHub user: Azure -Branch: current -Commit: a218de43ecf4eed69bfd4e020eb1eb293ff13e0c +Branch: master +Commit: f4ee873439e520ee9b36467701b3db1868abb014 2) AutoRest information Requested version: latest -Bootstrapper version: C:\Users\felixwa\AppData\Roaming\npm `-- autorest@2.0.4215 +Bootstrapper version: C:\Users\felixwa\AppData\Roaming\npm `-- autorest@2.0.4245 Latest installed version: