-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from felixwa/add-more-apis-2
Add more API kinds/skus and model them as string instead of enum
- Loading branch information
Showing
9 changed files
with
1,688 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
216 changes: 216 additions & 0 deletions
216
...ervices.Tests.CognitiveServicesAccountTests/CognitiveServicesCreateAccountErrorTest2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,216 @@ | ||
{ | ||
"Entries": [ | ||
{ | ||
"RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourcegroups/res3070?api-version=2015-11-01", | ||
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlZ3JvdXBzL3JlczMwNzA/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", | ||
"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": [ | ||
"124717e4-3aba-4073-8825-63440f891055" | ||
], | ||
"accept-language": [ | ||
"en-US" | ||
], | ||
"User-Agent": [ | ||
"FxVersion/4.6.24410.01", | ||
"Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0-preview" | ||
] | ||
}, | ||
"ResponseBody": "{\r\n \"id\": \"/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res3070\",\r\n \"name\": \"res3070\",\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": [ | ||
"Fri, 16 Dec 2016 10:15:07 GMT" | ||
], | ||
"Pragma": [ | ||
"no-cache" | ||
], | ||
"x-ms-ratelimit-remaining-subscription-writes": [ | ||
"1198" | ||
], | ||
"x-ms-request-id": [ | ||
"7781665e-7709-481f-b1ec-ef18b7cea0c3" | ||
], | ||
"x-ms-correlation-request-id": [ | ||
"7781665e-7709-481f-b1ec-ef18b7cea0c3" | ||
], | ||
"x-ms-routing-request-id": [ | ||
"JAPANEAST:20161216T101508Z:7781665e-7709-481f-b1ec-ef18b7cea0c3" | ||
], | ||
"Strict-Transport-Security": [ | ||
"max-age=31536000; includeSubDomains" | ||
] | ||
}, | ||
"StatusCode": 201 | ||
}, | ||
{ | ||
"RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res3070/providers/Microsoft.CognitiveServices/accounts/csa4421?api-version=2016-02-01-preview", | ||
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczMwNzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0NDIxP2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", | ||
"RequestMethod": "PUT", | ||
"RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"F0\"\r\n },\r\n \"kind\": \"NonExistAPI\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", | ||
"RequestHeaders": { | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Content-Length": [ | ||
"111" | ||
], | ||
"x-ms-client-request-id": [ | ||
"a74e2344-0895-450a-8815-28292c138ded" | ||
], | ||
"accept-language": [ | ||
"en-US" | ||
], | ||
"User-Agent": [ | ||
"FxVersion/4.6.24410.01", | ||
"Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" | ||
] | ||
}, | ||
"ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidApiSetId\",\r\n \"message\": \"The API set 'NonExistAPI' is invalid.\"\r\n }\r\n}", | ||
"ResponseHeaders": { | ||
"Content-Length": [ | ||
"86" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Expires": [ | ||
"-1" | ||
], | ||
"Cache-Control": [ | ||
"no-cache" | ||
], | ||
"Date": [ | ||
"Fri, 16 Dec 2016 10:15:18 GMT" | ||
], | ||
"Pragma": [ | ||
"no-cache" | ||
], | ||
"Server": [ | ||
"Microsoft-IIS/8.5" | ||
], | ||
"Strict-Transport-Security": [ | ||
"max-age=31536000; includeSubDomains" | ||
], | ||
"X-AspNet-Version": [ | ||
"4.0.30319" | ||
], | ||
"X-Powered-By": [ | ||
"ASP.NET" | ||
], | ||
"x-ms-ratelimit-remaining-subscription-writes": [ | ||
"1197" | ||
], | ||
"x-ms-request-id": [ | ||
"e370d9e1-2b14-4815-944c-4dc1b927249a" | ||
], | ||
"x-ms-correlation-request-id": [ | ||
"e370d9e1-2b14-4815-944c-4dc1b927249a" | ||
], | ||
"x-ms-routing-request-id": [ | ||
"JAPANEAST:20161216T101518Z:e370d9e1-2b14-4815-944c-4dc1b927249a" | ||
] | ||
}, | ||
"StatusCode": 400 | ||
}, | ||
{ | ||
"RequestUri": "/subscriptions/f9b96b36-1f5e-4021-8959-51527e26e6d3/resourceGroups/res3070/providers/Microsoft.CognitiveServices/accounts/csa4421?api-version=2016-02-01-preview", | ||
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZjliOTZiMzYtMWY1ZS00MDIxLTg5NTktNTE1MjdlMjZlNmQzL3Jlc291cmNlR3JvdXBzL3JlczMwNzAvcHJvdmlkZXJzL01pY3Jvc29mdC5Db2duaXRpdmVTZXJ2aWNlcy9hY2NvdW50cy9jc2E0NDIxP2FwaS12ZXJzaW9uPTIwMTYtMDItMDEtcHJldmlldw==", | ||
"RequestMethod": "PUT", | ||
"RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"N0\"\r\n },\r\n \"kind\": \"Academic\",\r\n \"location\": \"westus\",\r\n \"properties\": {}\r\n}", | ||
"RequestHeaders": { | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Content-Length": [ | ||
"108" | ||
], | ||
"x-ms-client-request-id": [ | ||
"b5df1fe8-a73d-4b80-8ef2-549665f1feaf" | ||
], | ||
"accept-language": [ | ||
"en-US" | ||
], | ||
"User-Agent": [ | ||
"FxVersion/4.6.24410.01", | ||
"Microsoft.Azure.Management.CognitiveServices.CognitiveServicesManagementClient/0.1.3-preview" | ||
] | ||
}, | ||
"ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidSkuId\",\r\n \"message\": \"The SKU name 'N0' in API set 'Academic' is invalid.\"\r\n }\r\n}", | ||
"ResponseHeaders": { | ||
"Content-Length": [ | ||
"97" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Expires": [ | ||
"-1" | ||
], | ||
"Cache-Control": [ | ||
"no-cache" | ||
], | ||
"Date": [ | ||
"Fri, 16 Dec 2016 10:15:22 GMT" | ||
], | ||
"Pragma": [ | ||
"no-cache" | ||
], | ||
"Server": [ | ||
"Microsoft-IIS/8.5" | ||
], | ||
"Strict-Transport-Security": [ | ||
"max-age=31536000; includeSubDomains" | ||
], | ||
"X-AspNet-Version": [ | ||
"4.0.30319" | ||
], | ||
"X-Powered-By": [ | ||
"ASP.NET" | ||
], | ||
"x-ms-ratelimit-remaining-subscription-writes": [ | ||
"1196" | ||
], | ||
"x-ms-request-id": [ | ||
"e5fb9183-6a03-4149-b41d-4c9d08efd024" | ||
], | ||
"x-ms-correlation-request-id": [ | ||
"e5fb9183-6a03-4149-b41d-4c9d08efd024" | ||
], | ||
"x-ms-routing-request-id": [ | ||
"JAPANEAST:20161216T101523Z:e5fb9183-6a03-4149-b41d-4c9d08efd024" | ||
] | ||
}, | ||
"StatusCode": 400 | ||
} | ||
], | ||
"Names": { | ||
"CreateResourceGroup": [ | ||
"res3070" | ||
], | ||
"CognitiveServicesCreateAccountErrorTest2": [ | ||
"csa4421" | ||
] | ||
}, | ||
"Variables": { | ||
"SubscriptionId": "f9b96b36-1f5e-4021-8959-51527e26e6d3" | ||
} | ||
} |
Oops, something went wrong.