Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Generated from 26a961a6290da466d399951b37673e0998ceda94 (#2723)
Browse files Browse the repository at this point in the history
Change C# SDK namespace

Keeping in line with the standardization efforts, changing the namespace of C# SDK to the prescribed format Microsoft.Azure.CognitiveServices.<Category>.<API name>
  • Loading branch information
AutorestCI authored Apr 13, 2018
1 parent d2fff76 commit f76ffa8
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 99 deletions.
42 changes: 21 additions & 21 deletions lib/services/spellCheck/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MIT License (MIT)
Copyright (c) 2018 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
44 changes: 22 additions & 22 deletions lib/services/spellCheck/lib/spellCheckAPIClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import { ServiceClient, ServiceClientOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest';
import * as models from "./models";

declare class SpellCheckAPIClient extends ServiceClient {
export default class SpellCheckAPIClient extends ServiceClient {
/**
* @class
* Initializes a new instance of the SpellCheckAPIClient class.
Expand Down Expand Up @@ -43,6 +43,13 @@ declare class SpellCheckAPIClient extends ServiceClient {
* constantly evolving and highly contextual algorithm. The spell-checker is
* based on a massive corpus of web searches and documents.
*
* @param {string} text 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.
*
* @param {object} [options] Optional Parameters.
*
* @param {string} [options.acceptLanguage] A comma-delimited list of one or
Expand Down Expand Up @@ -218,7 +225,7 @@ declare class SpellCheckAPIClient extends ServiceClient {
* insensitive). The default is Proof. 1) 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'
* repeated words). Possible values include: 'proof', 'spell'
*
* @param {string} [options.preContextText] A string that gives context to the
* text string. For example, the text string petal is valid. However, if you
Expand All @@ -240,13 +247,6 @@ declare class SpellCheckAPIClient extends ServiceClient {
* this parameter in the query string of a GET request or in the body of a POST
* request.
*
* @param {string} [options.text] 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.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
Expand All @@ -256,7 +256,7 @@ declare class SpellCheckAPIClient extends ServiceClient {
*
* @reject {Error|ServiceError} - The error object.
*/
spellCheckerWithHttpOperationResponse(options?: { acceptLanguage? : string, pragma? : string, userAgent? : string, clientId? : string, clientIp? : string, location? : string, actionType? : string, appName? : string, countryCode? : string, clientMachineName? : string, docId? : string, market? : string, sessionId? : string, setLang? : string, userId? : string, mode? : string, preContextText? : string, postContextText? : string, text? : string, customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.SpellCheck>>;
spellCheckerWithHttpOperationResponse(text: string, options?: { acceptLanguage? : string, pragma? : string, userAgent? : string, clientId? : string, clientIp? : string, location? : string, actionType? : string, appName? : string, countryCode? : string, clientMachineName? : string, docId? : string, market? : string, sessionId? : string, setLang? : string, userId? : string, mode? : string, preContextText? : string, postContextText? : string, customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.SpellCheck>>;

/**
* @summary The Bing Spell Check API lets you perform contextual grammar and
Expand All @@ -265,6 +265,13 @@ declare class SpellCheckAPIClient extends ServiceClient {
* constantly evolving and highly contextual algorithm. The spell-checker is
* based on a massive corpus of web searches and documents.
*
* @param {string} text 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.
*
* @param {object} [options] Optional Parameters.
*
* @param {string} [options.acceptLanguage] A comma-delimited list of one or
Expand Down Expand Up @@ -440,7 +447,7 @@ declare class SpellCheckAPIClient extends ServiceClient {
* insensitive). The default is Proof. 1) 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'
* repeated words). Possible values include: 'proof', 'spell'
*
* @param {string} [options.preContextText] A string that gives context to the
* text string. For example, the text string petal is valid. However, if you
Expand All @@ -462,13 +469,6 @@ declare class SpellCheckAPIClient extends ServiceClient {
* this parameter in the query string of a GET request or in the body of a POST
* request.
*
* @param {string} [options.text] 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.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
Expand All @@ -494,9 +494,9 @@ declare class SpellCheckAPIClient extends ServiceClient {
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
spellChecker(options?: { acceptLanguage? : string, pragma? : string, userAgent? : string, clientId? : string, clientIp? : string, location? : string, actionType? : string, appName? : string, countryCode? : string, clientMachineName? : string, docId? : string, market? : string, sessionId? : string, setLang? : string, userId? : string, mode? : string, preContextText? : string, postContextText? : string, text? : string, customHeaders? : { [headerName: string]: string; } }): Promise<models.SpellCheck>;
spellChecker(callback: ServiceCallback<models.SpellCheck>): void;
spellChecker(options: { acceptLanguage? : string, pragma? : string, userAgent? : string, clientId? : string, clientIp? : string, location? : string, actionType? : string, appName? : string, countryCode? : string, clientMachineName? : string, docId? : string, market? : string, sessionId? : string, setLang? : string, userId? : string, mode? : string, preContextText? : string, postContextText? : string, text? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.SpellCheck>): void;
spellChecker(text: string, options?: { acceptLanguage? : string, pragma? : string, userAgent? : string, clientId? : string, clientIp? : string, location? : string, actionType? : string, appName? : string, countryCode? : string, clientMachineName? : string, docId? : string, market? : string, sessionId? : string, setLang? : string, userId? : string, mode? : string, preContextText? : string, postContextText? : string, customHeaders? : { [headerName: string]: string; } }): Promise<models.SpellCheck>;
spellChecker(text: string, callback: ServiceCallback<models.SpellCheck>): void;
spellChecker(text: string, options: { acceptLanguage? : string, pragma? : string, userAgent? : string, clientId? : string, clientIp? : string, location? : string, actionType? : string, appName? : string, countryCode? : string, clientMachineName? : string, docId? : string, market? : string, sessionId? : string, setLang? : string, userId? : string, mode? : string, preContextText? : string, postContextText? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.SpellCheck>): void;
}

export = SpellCheckAPIClient;
export { SpellCheckAPIClient, models as SpellCheckAPIModels };
Loading

0 comments on commit f76ffa8

Please sign in to comment.