Skip to content

Commit

Permalink
[batch document translation][mt] small changes to swagger's name + ne…
Browse files Browse the repository at this point in the history
…w fields in response (#12965)

* Merged from master again

* updated swagger based on API review feedback

* updated post

* fix spelling

* added x-ms-pageable, x-ms-error-response, x-ms-long-running

* fix enum

* remove long running operation

* bug in sdk go generation

* Revert "bug in sdk go generation"

This reverts commit 025b875.

* remove x-ms-pageable

* addressed changes

* fix casing for x-ms-parameterized-host

* fix endpoint in examples

* move everything in the same SDK readme file

* change path to v1.0_preview.1

* add input type parameter for folder vs file

* Merged from master again

* updated swagger based on API review feedback

* updated post

* fix spelling

* added x-ms-pageable, x-ms-error-response, x-ms-long-running

* fix enum

* remove long running operation

* bug in sdk go generation

* Revert "bug in sdk go generation"

This reverts commit 025b875.

* remove x-ms-pageable

* addressed changes

* fix casing for x-ms-parameterized-host

* fix endpoint in examples

* move everything in the same SDK readme file

* change path to v1.0_preview.1

* Update title of swagger page

* update '

* updating formating to formatting

* Merged from master again

* updated swagger based on API review feedback

* updated post

* fix spelling

* added x-ms-pageable, x-ms-error-response, x-ms-long-running

* fix enum

* remove long running operation

* bug in sdk go generation

* Revert "bug in sdk go generation"

This reverts commit 025b875.

* remove x-ms-pageable

* addressed changes

* fix casing for x-ms-parameterized-host

* fix endpoint in examples

* move everything in the same SDK readme file

* change path to v1.0_preview.1

* Update title of swagger page

* Merged from master again

* updated swagger based on API review feedback

* updated post

* fix spelling

* added x-ms-pageable, x-ms-error-response, x-ms-long-running

* fix enum

* remove long running operation

* bug in sdk go generation

* Revert "bug in sdk go generation"

This reverts commit 025b875.

* remove x-ms-pageable

* addressed changes

* fix casing for x-ms-parameterized-host

* fix endpoint in examples

* move everything in the same SDK readme file

* change path to v1.0_preview.1

* update '

* updating formating to formatting

* update swagger changes

* fix '

* added x-ms-enum

* fix x-ms-enum, added a few more xmsextensions, remove go generation for preview

* fix examples and error code

* add jsonignore to internalcode

* fix quotes

* modelasstring = true

* update x-ms-enum name

* Revert "update x-ms-enum name"

This reverts commit 3b0e442.
  • Loading branch information
alexhcheng authored Feb 22, 2021
1 parent 2df8b07 commit a23007d
Show file tree
Hide file tree
Showing 11 changed files with 289 additions and 220 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
"code": "Unauthorized",
"message": "User is not authorized",
"innerError": {
"code": 401000,
"error": "Unauthorized",
"code": "Unauthorized",
"message": "Operation is not authorized"
}
}
Expand All @@ -64,8 +63,7 @@
"code": "RequestRateTooHigh",
"message": "User's request rate is too high",
"innerError": {
"code": 429000,
"error": "RateTooHigh",
"code": "RateTooHigh",
"message": "Request rate is too high"
}
}
Expand All @@ -78,8 +76,7 @@
"code": "InternalServerError",
"message": "Internal Server Error",
"innerError": {
"code": 500000,
"error": "Internal Server Error",
"code": "InternalServerError",
"message": "Unexpected internal server error has occurred"
}
}
Expand All @@ -92,8 +89,7 @@
"code": "ServiceUnavailable",
"message": "Service is temporary unavailable",
"innerError": {
"code": 503000,
"error": "ServiceTemporaryUnavailable",
"code": "ServiceTemporaryUnavailable",
"message": "Service is currently unavailable. Please try again later"
}
}
Expand All @@ -111,8 +107,7 @@
"code": "InvalidRequest",
"message": "Some argument is incorrect",
"innerError": {
"code": 400120,
"error": "SASTokenInvalid",
"code": "SASTokenInvalid",
"message": "SAS token for storage is invalid"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"message": "User is not authorized",
"target": "Operation",
"innerError": {
"code": 401000,
"error": "Unauthorized",
"code": "Unauthorized",
"message": "Operation is not authorized"
}
}
Expand All @@ -31,8 +30,7 @@
"message": "User's request rate is too high",
"target": "Operation",
"innerError": {
"code": 429000,
"error": "RateTooHigh",
"code": "RateTooHigh",
"message": "Request rate is too high"
}
}
Expand All @@ -46,8 +44,7 @@
"message": "Internal Server Error",
"target": "Operation",
"innerError": {
"code": 500000,
"error": "Internal Server Error",
"code": "InternalServerError",
"message": "Unexpected internal server error has occurred"
}
}
Expand All @@ -61,8 +58,7 @@
"message": "Service is temporary unavailable",
"target": "Operation",
"innerError": {
"code": 503000,
"error": "ServiceTemporaryUnavailable",
"code": "ServiceTemporaryUnavailable",
"message": "Service is currently unavailable. Please try again later"
}
}
Expand All @@ -76,8 +72,7 @@
"message": "id not found",
"target": "Operation",
"innerError": {
"code": 404000,
"error": "ResourceNotFound",
"code": "ResourceNotFound",
"message": "Resource requested is not found"
}
}
Expand All @@ -96,7 +91,8 @@
"success": 9,
"inProgress": 0,
"notYetStarted": 0,
"cancelled": 0
"cancelled": 0,
"totalCharacterCharged": 0
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"message": "User is not authorized",
"target": "Document",
"innerError": {
"code": 401000,
"error": "Unauthorized",
"code": "Unauthorized",
"message": "Operation is not authorized"
}
}
Expand All @@ -32,8 +31,7 @@
"message": "User's request rate is too high",
"target": "Document",
"innerError": {
"code": 429000,
"error": "RateTooHigh",
"code": "RateTooHigh",
"message": "Request rate is too high"
}
}
Expand All @@ -47,8 +45,7 @@
"message": "Internal Server Error",
"target": "Document",
"innerError": {
"code": 500000,
"error": "Internal Server Error",
"code": "InternalServerError",
"message": "Unexpected internal server error has occurred"
}
}
Expand All @@ -62,8 +59,7 @@
"message": "Service is temporary unavailable",
"target": "Document",
"innerError": {
"code": 503000,
"error": "ServiceTemporaryUnavailable",
"code": "ServiceTemporaryUnavailable",
"message": "Service is currently unavailable. Please try again later"
}
}
Expand All @@ -77,8 +73,7 @@
"message": "id not found",
"target": "Document",
"innerError": {
"code": 404000,
"error": "ResourceNotFound",
"code": "ResourceNotFound",
"message": "Resource requested is not found"
}
}
Expand All @@ -94,10 +89,10 @@
"createdDateTimeUtc": "2020-03-26T00:00:00Z",
"lastActionDateTimeUtc": "2020-03-26T01:00:00Z",
"status": "Running",
"detectedLanguage": "en",
"to": "fr",
"progress": 0.1,
"id": "273622bd-835c-4946-9798-fd8f19f6bbf2"
"id": "273622bd-835c-4946-9798-fd8f19f6bbf2",
"characterCharged": 0
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"message": "User is not authorized",
"target": "Document",
"innerError": {
"code": 401000,
"error": "Unauthorized",
"code": "Unauthorized",
"message": "Operation is not authorized"
}
}
Expand All @@ -33,8 +32,7 @@
"message": "User's request rate is too high",
"target": "Document",
"innerError": {
"code": 429000,
"error": "RateTooHigh",
"code": "RateTooHigh",
"message": "Request rate is too high"
}
}
Expand All @@ -48,8 +46,7 @@
"message": "Internal Server Error",
"target": "Document",
"innerError": {
"code": 500000,
"error": "Internal Server Error",
"code": "InternalServerError",
"message": "Unexpected internal server error has occurred"
}
}
Expand All @@ -63,8 +60,7 @@
"message": "Service is temporary unavailable",
"target": "Document",
"innerError": {
"code": 503000,
"error": "ServiceTemporaryUnavailable",
"code": "ServiceTemporaryUnavailable",
"message": "Service is currently unavailable. Please try again later"
}
}
Expand All @@ -78,8 +74,7 @@
"message": "id not found",
"target": "Document",
"innerError": {
"code": 404000,
"error": "ResourceNotFound",
"code": "ResourceNotFound",
"message": "Resource requested is not found"
}
}
Expand All @@ -97,10 +92,10 @@
"createdDateTimeUtc": "2020-03-26T00:00:00Z",
"lastActionDateTimeUtc": "2020-03-26T01:00:00Z",
"status": "Running",
"detectedLanguage": "en",
"to": "fr",
"progress": 0.1,
"id": "273622bd-835c-4946-9798-fd8f19f6bbf2"
"id": "273622bd-835c-4946-9798-fd8f19f6bbf2",
"characterCharged": 0
}
],
"@nextLink": "https://westus.cognitiveservices.azure.com/translator/text/batch/v1.0.preview.1/operation/0FA2822F-4C2A-4317-9C20-658C801E0E55/documents?$top=5&$skip=15"
Expand All @@ -114,8 +109,7 @@
"message": "Some argument is incorrect",
"target": "Document",
"innerError": {
"code": 400120,
"error": "SASTokenInvalid",
"code": "SASTokenInvalid",
"message": "SAS token for storage is invalid"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"code": "RequestRateTooHigh",
"message": "User's request rate is too high",
"innerError": {
"code": 429000,
"error": "RateTooHigh",
"code": "RateTooHigh",
"message": "Request rate is too high"
}
}
Expand All @@ -28,8 +27,7 @@
"code": "InternalServerError",
"message": "Internal Server Error",
"innerError": {
"code": 500000,
"error": "Internal Server Error",
"code": "InternalServerError",
"message": "Unexpected internal server error has occurred"
}
}
Expand All @@ -42,8 +40,7 @@
"code": "ServiceUnavailable",
"message": "Service is temporary unavailable",
"innerError": {
"code": 503000,
"error": "ServiceTemporaryUnavailable",
"code": "ServiceTemporaryUnavailable",
"message": "Service is currently unavailable. Please try again later"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"code": "RequestRateTooHigh",
"message": "User's request rate is too high",
"innerError": {
"code": 429000,
"error": "RateTooHigh",
"code": "RateTooHigh",
"message": "Request rate is too high"
}
}
Expand All @@ -28,8 +27,7 @@
"code": "InternalServerError",
"message": "Internal Server Error",
"innerError": {
"code": 500000,
"error": "Internal Server Error",
"code": "InternalServerError",
"message": "Unexpected internal server error has occurred"
}
}
Expand All @@ -42,8 +40,7 @@
"code": "ServiceUnavailable",
"message": "Service is temporary unavailable",
"innerError": {
"code": 503000,
"error": "ServiceTemporaryUnavailable",
"code": "ServiceTemporaryUnavailable",
"message": "Service is currently unavailable. Please try again later"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"message": "User is not authorized",
"target": "Operation",
"innerError": {
"code": 401000,
"error": "Unauthorized",
"code": "Unauthorized",
"message": "Operation is not authorized"
}
}
Expand All @@ -31,8 +30,7 @@
"message": "User's request rate is too high",
"target": "Operation",
"innerError": {
"code": 429000,
"error": "RateTooHigh",
"code": "RateTooHigh",
"message": "Request rate is too high"
}
}
Expand All @@ -46,8 +44,7 @@
"message": "Internal Server Error",
"target": "Operation",
"innerError": {
"code": 500000,
"error": "Internal Server Error",
"code": "InternalServerError",
"message": "Unexpected internal server error has occurred"
}
}
Expand All @@ -61,8 +58,7 @@
"message": "Service is temporary unavailable",
"target": "Operation",
"innerError": {
"code": 503000,
"error": "ServiceTemporaryUnavailable",
"code": "ServiceTemporaryUnavailable",
"message": "Service is currently unavailable. Please try again later"
}
}
Expand All @@ -76,8 +72,7 @@
"message": "id not found",
"target": "Operation",
"innerError": {
"code": 404000,
"error": "ResourceNotFound",
"code": "ResourceNotFound",
"message": "Resource requested is not found"
}
}
Expand All @@ -99,7 +94,8 @@
"success": 9,
"inProgress": 0,
"notYetStarted": 0,
"cancelled": 0
"cancelled": 0,
"totalCharacterCharged": 0
}
}
}
Expand Down
Loading

0 comments on commit a23007d

Please sign in to comment.