diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck.Tests/SpellCheckTests.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck.Tests/SpellCheckTests.cs
index 805963c8dbd3..8bf8598518ac 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck.Tests/SpellCheckTests.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck.Tests/SpellCheckTests.cs
@@ -1,6 +1,6 @@
using Microsoft.Azure.Test.HttpRecorder;
-using Microsoft.Azure.CognitiveServices.SpellCheck;
-using Microsoft.Azure.CognitiveServices.SpellCheck.Models;
+using Microsoft.Azure.CognitiveServices.Language.SpellCheck;
+using Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models;
using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
using System.Linq;
using Xunit;
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Customizations/ApiKeyServiceClientCredentials.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Customizations/ApiKeyServiceClientCredentials.cs
index d1517572e6f0..5c877814714e 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Customizations/ApiKeyServiceClientCredentials.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Customizations/ApiKeyServiceClientCredentials.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.CognitiveServices.SpellCheck
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck
{
using System;
using System.Net.Http;
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generate.ps1 b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generate.ps1
new file mode 100644
index 000000000000..d31407c67939
--- /dev/null
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generate.ps1
@@ -0,0 +1 @@
+powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File "..\..\..\..\..\..\..\tools\generateTool.ps1" -ResourceProvider "cognitiveservices\data-plane\SpellCheck" -PowershellInvoker -AutoRestVersion "latest"
\ No newline at end of file
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/ISpellCheckAPI.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/ISpellCheckAPI.cs
index a243d481daab..4d09b5827028 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/ISpellCheckAPI.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/ISpellCheckAPI.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck
{
using Microsoft.Rest;
using Models;
@@ -50,6 +50,15 @@ public partial interface ISpellCheckAPI : System.IDisposable
/// algorithm. The spell-checker is based on a massive corpus of web
/// searches and documents.
///
+ ///
+ /// The text string to check for spelling and grammar errors. The
+ /// combined length of the text string, preContextText string, and
+ /// postContextText string may not exceed 10,000 characters. You may
+ /// specify this parameter in the query string of a GET request or in
+ /// the body of a POST request. Because of the query string length
+ /// limit, you'll typically use a POST request unless you're checking
+ /// only short strings.
+ ///
///
/// A comma-delimited list of one or more languages to use for user
/// interface strings. The list is in decreasing order of preference.
@@ -252,7 +261,7 @@ public partial interface ISpellCheckAPI : System.IDisposable
/// mistakes. 2) Spell—Finds most spelling mistakes but does not find
/// some of the grammar errors that Proof catches (for example,
/// capitalization and repeated words). Possible values include:
- /// 'Proof', 'Spell'
+ /// 'proof', 'spell'
///
///
/// A string that gives context to the text string. For example, the
@@ -276,22 +285,13 @@ public partial interface ISpellCheckAPI : System.IDisposable
/// characters. You may specify this parameter in the query string of a
/// GET request or in the body of a POST request.
///
- ///
- /// The text string to check for spelling and grammar errors. The
- /// combined length of the text string, preContextText string, and
- /// postContextText string may not exceed 10,000 characters. You may
- /// specify this parameter in the query string of a GET request or in
- /// the body of a POST request. Because of the query string length
- /// limit, you'll typically use a POST request unless you're checking
- /// only short strings.
- ///
///
/// The headers that will be added to request.
///
///
/// The cancellation token.
///
- Task> SpellCheckerWithHttpMessagesAsync(string acceptLanguage = default(string), string pragma = default(string), string userAgent = default(string), string clientId = default(string), string clientIp = default(string), string location = default(string), string actionType = default(string), string appName = default(string), string countryCode = default(string), string clientMachineName = default(string), string docId = default(string), string market = default(string), string sessionId = default(string), string setLang = default(string), string userId = default(string), string mode = default(string), string preContextText = default(string), string postContextText = default(string), string text = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> SpellCheckerWithHttpMessagesAsync(string text, string acceptLanguage = default(string), string pragma = default(string), string userAgent = default(string), string clientId = default(string), string clientIp = default(string), string location = default(string), string actionType = default(string), string appName = default(string), string countryCode = default(string), string clientMachineName = default(string), string docId = default(string), string market = default(string), string sessionId = default(string), string setLang = default(string), string userId = default(string), string mode = default(string), string preContextText = default(string), string postContextText = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ActionType.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ActionType.cs
index d04865fd0a9c..fe705e71704c 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ActionType.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ActionType.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck.Models
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models
{
///
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Answer.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Answer.cs
index 87813735d93a..992741dac61c 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Answer.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Answer.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck.Models
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models
{
using System.Linq;
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Error.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Error.cs
index bb5f1e2fd5b2..7600984ccfac 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Error.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Error.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck.Models
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorCode.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorCode.cs
index 7ab3a501e8e0..264c242b273b 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorCode.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorCode.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck.Models
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models
{
///
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorResponse.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorResponse.cs
index 7194e69030ff..7a691fb76669 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorResponse.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorResponse.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck.Models
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorResponseException.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorResponseException.cs
index ce8c5e6aad99..b3064c204ccf 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorResponseException.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorResponseException.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck.Models
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models
{
using Microsoft.Rest;
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorSubCode.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorSubCode.cs
index 4dbf1b278bc7..6d7a9748b86a 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorSubCode.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorSubCode.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck.Models
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models
{
///
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorType.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorType.cs
index 5e0d31e5cce8..74a6fba91f02 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorType.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ErrorType.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck.Models
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models
{
///
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Identifiable.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Identifiable.cs
index 3142ff426669..161644207cce 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Identifiable.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Identifiable.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck.Models
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models
{
using Newtonsoft.Json;
using System.Linq;
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Mode.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Mode.cs
deleted file mode 100644
index 02353694f690..000000000000
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Mode.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-//
-// 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.CognitiveServices.SpellCheck.Models
-{
-
- ///
- /// Defines values for Mode.
- ///
- public static class Mode
- {
- public const string Proof = "Proof";
- public const string Spell = "Spell";
- }
-}
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Response.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Response.cs
index 572db58e1214..a5f70a1a70ad 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Response.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/Response.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck.Models
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models
{
using System.Linq;
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ResponseBase.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ResponseBase.cs
index 65d2599457c5..fa2320ef5a7e 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ResponseBase.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/ResponseBase.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck.Models
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models
{
using System.Linq;
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/SpellCheckModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/SpellCheckModel.cs
index acc99a4ae9d9..bffe5e2215e1 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/SpellCheckModel.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/SpellCheckModel.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck.Models
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/SpellingFlaggedToken.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/SpellingFlaggedToken.cs
index 53ede8df2c6e..4818823ebba5 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/SpellingFlaggedToken.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/SpellingFlaggedToken.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck.Models
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/SpellingTokenSuggestion.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/SpellingTokenSuggestion.cs
index 468b39f2cb03..6417bf0b82e7 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/SpellingTokenSuggestion.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/Models/SpellingTokenSuggestion.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck.Models
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/SdkInfo_SpellCheckAPI.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/SdkInfo_SpellCheckAPI.cs
new file mode 100644
index 000000000000..f0276a356bc0
--- /dev/null
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/SdkInfo_SpellCheckAPI.cs
@@ -0,0 +1,18 @@
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+internal static partial class SdkInfo
+{
+ public static IEnumerable> ApiInfo_SpellCheckAPI
+ {
+ get
+ {
+ return new Tuple[]
+ {
+ new Tuple("SpellCheckAPI", "SpellChecker", "1.0"),
+ }.AsEnumerable();
+ }
+ }
+}
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/SpellCheckAPI.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/SpellCheckAPI.cs
index e04197000fe1..3497070184a2 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/SpellCheckAPI.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/SpellCheckAPI.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck
{
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
@@ -281,6 +281,14 @@ private void Initialize()
/// constantly evolving and highly contextual algorithm. The spell-checker is
/// based on a massive corpus of web searches and documents.
///
+ ///
+ /// The text string to check for spelling and grammar errors. The combined
+ /// length of the text string, preContextText string, and postContextText
+ /// string may not exceed 10,000 characters. You may specify this parameter in
+ /// the query string of a GET request or in the body of a POST request. Because
+ /// of the query string length limit, you'll typically use a POST request
+ /// unless you're checking only short strings.
+ ///
///
/// A comma-delimited list of one or more languages to use for user interface
/// strings. The list is in decreasing order of preference. For additional
@@ -462,7 +470,7 @@ private void Initialize()
/// Proof—Finds most spelling and grammar mistakes. 2) Spell—Finds most
/// spelling mistakes but does not find some of the grammar errors that Proof
/// catches (for example, capitalization and repeated words). Possible values
- /// include: 'Proof', 'Spell'
+ /// include: 'proof', 'spell'
///
///
/// A string that gives context to the text string. For example, the text
@@ -484,14 +492,6 @@ private void Initialize()
/// 10,000 characters. You may specify this parameter in the query string of a
/// GET request or in the body of a POST request.
///
- ///
- /// The text string to check for spelling and grammar errors. The combined
- /// length of the text string, preContextText string, and postContextText
- /// string may not exceed 10,000 characters. You may specify this parameter in
- /// the query string of a GET request or in the body of a POST request. Because
- /// of the query string length limit, you'll typically use a POST request
- /// unless you're checking only short strings.
- ///
///
/// Headers that will be added to request.
///
@@ -504,11 +504,21 @@ private void Initialize()
///
/// 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> SpellCheckerWithHttpMessagesAsync(string acceptLanguage = default(string), string pragma = default(string), string userAgent = default(string), string clientId = default(string), string clientIp = default(string), string location = default(string), string actionType = default(string), string appName = default(string), string countryCode = default(string), string clientMachineName = default(string), string docId = default(string), string market = default(string), string sessionId = default(string), string setLang = default(string), string userId = default(string), string mode = default(string), string preContextText = default(string), string postContextText = default(string), string text = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> SpellCheckerWithHttpMessagesAsync(string text, string acceptLanguage = default(string), string pragma = default(string), string userAgent = default(string), string clientId = default(string), string clientIp = default(string), string location = default(string), string actionType = default(string), string appName = default(string), string countryCode = default(string), string clientMachineName = default(string), string docId = default(string), string market = default(string), string sessionId = default(string), string setLang = default(string), string userId = default(string), string mode = default(string), string preContextText = default(string), string postContextText = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (text == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "text");
+ }
string xBingApisSDK = "true";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/SpellCheckAPIExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/SpellCheckAPIExtensions.cs
index 784fe93ea2c1..b9bc9cfa3540 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/SpellCheckAPIExtensions.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Generated/SpellCheckAPIExtensions.cs
@@ -4,7 +4,7 @@
// regenerated.
//
-namespace Microsoft.Azure.CognitiveServices.SpellCheck
+namespace Microsoft.Azure.CognitiveServices.Language.SpellCheck
{
using Models;
using System.Threading;
@@ -25,6 +25,14 @@ public static partial class SpellCheckAPIExtensions
///
/// The operations group for this extension method.
///
+ ///
+ /// The text string to check for spelling and grammar errors. The combined
+ /// length of the text string, preContextText string, and postContextText
+ /// string may not exceed 10,000 characters. You may specify this parameter in
+ /// the query string of a GET request or in the body of a POST request. Because
+ /// of the query string length limit, you'll typically use a POST request
+ /// unless you're checking only short strings.
+ ///
///
/// A comma-delimited list of one or more languages to use for user interface
/// strings. The list is in decreasing order of preference. For additional
@@ -206,7 +214,7 @@ public static partial class SpellCheckAPIExtensions
/// Proof—Finds most spelling and grammar mistakes. 2) Spell—Finds most
/// spelling mistakes but does not find some of the grammar errors that Proof
/// catches (for example, capitalization and repeated words). Possible values
- /// include: 'Proof', 'Spell'
+ /// include: 'proof', 'spell'
///
///
/// A string that gives context to the text string. For example, the text
@@ -228,20 +236,12 @@ public static partial class SpellCheckAPIExtensions
/// 10,000 characters. You may specify this parameter in the query string of a
/// GET request or in the body of a POST request.
///
- ///
- /// The text string to check for spelling and grammar errors. The combined
- /// length of the text string, preContextText string, and postContextText
- /// string may not exceed 10,000 characters. You may specify this parameter in
- /// the query string of a GET request or in the body of a POST request. Because
- /// of the query string length limit, you'll typically use a POST request
- /// unless you're checking only short strings.
- ///
///
/// The cancellation token.
///
- public static async Task SpellCheckerAsync(this ISpellCheckAPI operations, string acceptLanguage = default(string), string pragma = default(string), string userAgent = default(string), string clientId = default(string), string clientIp = default(string), string location = default(string), string actionType = default(string), string appName = default(string), string countryCode = default(string), string clientMachineName = default(string), string docId = default(string), string market = default(string), string sessionId = default(string), string setLang = default(string), string userId = default(string), string mode = default(string), string preContextText = default(string), string postContextText = default(string), string text = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task SpellCheckerAsync(this ISpellCheckAPI operations, string text, string acceptLanguage = default(string), string pragma = default(string), string userAgent = default(string), string clientId = default(string), string clientIp = default(string), string location = default(string), string actionType = default(string), string appName = default(string), string countryCode = default(string), string clientMachineName = default(string), string docId = default(string), string market = default(string), string sessionId = default(string), string setLang = default(string), string userId = default(string), string mode = default(string), string preContextText = default(string), string postContextText = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.SpellCheckerWithHttpMessagesAsync(acceptLanguage, pragma, userAgent, clientId, clientIp, location, actionType, appName, countryCode, clientMachineName, docId, market, sessionId, setLang, userId, mode, preContextText, postContextText, text, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.SpellCheckerWithHttpMessagesAsync(text, acceptLanguage, pragma, userAgent, clientId, clientIp, location, actionType, appName, countryCode, clientMachineName, docId, market, sessionId, setLang, userId, mode, preContextText, postContextText, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Microsoft.Azure.CognitiveServices.SpellCheck.csproj b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Microsoft.Azure.CognitiveServices.SpellCheck.csproj
index 48254725365a..964e8111e9f8 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Microsoft.Azure.CognitiveServices.SpellCheck.csproj
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Microsoft.Azure.CognitiveServices.SpellCheck.csproj
@@ -1,14 +1,14 @@
- Microsoft.Azure.CognitiveServices.SpellCheck
+ Microsoft.Azure.CognitiveServices.Language.SpellCheck
This client library provides access to the Microsoft Cognitive Services SpellCheck API.
- 1.2.0
- Microsoft.Azure.CognitiveServices.SpellCheck
+ 2.0.0
+ Microsoft.Azure.CognitiveServices.Language.SpellCheck
Microsoft Cognitive Services;Cognitive Services;Cognitive Services SDK;SpellCheck API;REST HTTPclient;SpellCheckSDK;netcore451511
This is a public release of the Cognitive Services SpellCheck SDK. Included with this release is support for SpellCheck API.
net452;netstandard1.4
-
\ No newline at end of file
+
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Properties/AssemblyInfo.cs b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Properties/AssemblyInfo.cs
index 40e97c4a4050..431000c77adf 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Properties/AssemblyInfo.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/Properties/AssemblyInfo.cs
@@ -7,8 +7,8 @@
[assembly: AssemblyTitle("Microsoft Azure Cognitive Services SpellCheck Client Library")]
[assembly: AssemblyDescription("Provides API functions for consuming the Microsoft Azure Cognitive Services SpellCheck API.")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.2.0.0")]
+[assembly: AssemblyVersion("2.0.0.0")]
+[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
@@ -16,4 +16,4 @@
[assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
-[assembly: NeutralResourcesLanguage("en")]
\ No newline at end of file
+[assembly: NeutralResourcesLanguage("en")]
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/generate.cmd b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/generate.cmd
index a2d08af45466..56b896afc6ee 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/generate.cmd
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/SpellCheck/BingSpellCheck/generate.cmd
@@ -4,4 +4,4 @@
::
@echo off
-call %~dp0..\..\..\..\..\..\tools\generate.cmd cognitiveservices/data-plane/SpellCheck %*
\ No newline at end of file
+call %~dp0..\..\..\..\..\..\..\tools\generate.cmd cognitiveservices/data-plane/SpellCheck %*
\ No newline at end of file
diff --git a/src/SDKs/_metadata/cognitiveservices_data-plane_SpellCheck.txt b/src/SDKs/_metadata/cognitiveservices_data-plane_SpellCheck.txt
index 8c5b0f61c945..480fb66eaba0 100644
--- a/src/SDKs/_metadata/cognitiveservices_data-plane_SpellCheck.txt
+++ b/src/SDKs/_metadata/cognitiveservices_data-plane_SpellCheck.txt
@@ -1,11 +1,11 @@
-2017-11-23 02:07:31 UTC
+2018-04-18 21:03:35 UTC
1) azure-rest-api-specs repository information
GitHub user: Azure
-Branch: current
-Commit: 2e385816fdc99fbff09eb809e159eca464d8ec80
+Branch: master
+Commit: 7b0ce29d11fe462ebc5343c56f130eea30628b09
2) AutoRest information
Requested version: latest
-Bootstrapper version: C:\Users\ashku\AppData\Roaming\npm `-- autorest@2.0.4204
+Bootstrapper version: C:\Users\ashku\AppData\Roaming\npm `-- autorest@2.0.4262
Latest installed version: