Alterations class
Class representing a Alterations.
Constructors
Alterations(Qn |
Create a Alterations. |
Methods
Constructor Details
Alterations(QnAMakerClientContext)
Create a Alterations.
new Alterations(client: QnAMakerClientContext)
Parameters
- client
- QnAMakerClientContext
Reference to the service client.
Method Details
get(RequestOptionsBase)
function get(options?: RequestOptionsBase): Promise<AlterationsGetResponse>
Parameters
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<AlterationsGetResponse>
Promise<Models.AlterationsGetResponse>
get(RequestOptionsBase, ServiceCallback<WordAlterationsDTO>)
function get(options: RequestOptionsBase, callback: ServiceCallback<WordAlterationsDTO>)
Parameters
- options
- RequestOptionsBase
The optional parameters
- callback
The callback
get(ServiceCallback<WordAlterationsDTO>)
function get(callback: ServiceCallback<WordAlterationsDTO>)
Parameters
- callback
The callback
getAlterationsForKb(string, RequestOptionsBase)
function getAlterationsForKb(kbId: string, options?: RequestOptionsBase): Promise<AlterationsGetAlterationsForKbResponse>
Parameters
- kbId
-
string
Knowledgebase id.
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<Models.AlterationsGetAlterationsForKbResponse>
getAlterationsForKb(string, RequestOptionsBase, ServiceCallback<WordAlterationsDTO>)
function getAlterationsForKb(kbId: string, options: RequestOptionsBase, callback: ServiceCallback<WordAlterationsDTO>)
Parameters
- kbId
-
string
Knowledgebase id.
- options
- RequestOptionsBase
The optional parameters
- callback
The callback
getAlterationsForKb(string, ServiceCallback<WordAlterationsDTO>)
function getAlterationsForKb(kbId: string, callback: ServiceCallback<WordAlterationsDTO>)
Parameters
- kbId
-
string
Knowledgebase id.
- callback
The callback
replace(WordAlterationsDTO, RequestOptionsBase)
function replace(wordAlterations: WordAlterationsDTO, options?: RequestOptionsBase): Promise<RestResponse>
Parameters
- wordAlterations
- WordAlterationsDTO
New alterations data.
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<RestResponse>
Promise<msRest.RestResponse>
replace(WordAlterationsDTO, RequestOptionsBase, ServiceCallback<void>)
function replace(wordAlterations: WordAlterationsDTO, options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameters
- wordAlterations
- WordAlterationsDTO
New alterations data.
- options
- RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<void>
The callback
replace(WordAlterationsDTO, ServiceCallback<void>)
function replace(wordAlterations: WordAlterationsDTO, callback: ServiceCallback<void>)
Parameters
- wordAlterations
- WordAlterationsDTO
New alterations data.
- callback
-
ServiceCallback<void>
The callback
replaceAlterationsForKb(string, WordAlterationsDTO, RequestOptionsBase)
function replaceAlterationsForKb(kbId: string, wordAlterations: WordAlterationsDTO, options?: RequestOptionsBase): Promise<RestResponse>
Parameters
- kbId
-
string
Knowledgebase id.
- wordAlterations
- WordAlterationsDTO
New alterations data.
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<RestResponse>
Promise<msRest.RestResponse>
replaceAlterationsForKb(string, WordAlterationsDTO, RequestOptionsBase, ServiceCallback<void>)
function replaceAlterationsForKb(kbId: string, wordAlterations: WordAlterationsDTO, options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameters
- kbId
-
string
Knowledgebase id.
- wordAlterations
- WordAlterationsDTO
New alterations data.
- options
- RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<void>
The callback
replaceAlterationsForKb(string, WordAlterationsDTO, ServiceCallback<void>)
function replaceAlterationsForKb(kbId: string, wordAlterations: WordAlterationsDTO, callback: ServiceCallback<void>)
Parameters
- kbId
-
string
Knowledgebase id.
- wordAlterations
- WordAlterationsDTO
New alterations data.
- callback
-
ServiceCallback<void>
The callback