Alterations class

Class representing a Alterations.

Constructors

Alterations(QnAMakerClientContext)

Create a Alterations.

Methods

get(RequestOptionsBase)
get(RequestOptionsBase, ServiceCallback<WordAlterationsDTO>)
get(ServiceCallback<WordAlterationsDTO>)
getAlterationsForKb(string, RequestOptionsBase)
getAlterationsForKb(string, RequestOptionsBase, ServiceCallback<WordAlterationsDTO>)
getAlterationsForKb(string, ServiceCallback<WordAlterationsDTO>)
replace(WordAlterationsDTO, RequestOptionsBase)
replace(WordAlterationsDTO, RequestOptionsBase, ServiceCallback<void>)
replace(WordAlterationsDTO, ServiceCallback<void>)
replaceAlterationsForKb(string, WordAlterationsDTO, RequestOptionsBase)
replaceAlterationsForKb(string, WordAlterationsDTO, RequestOptionsBase, ServiceCallback<void>)
replaceAlterationsForKb(string, WordAlterationsDTO, ServiceCallback<void>)

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<Models.AlterationsGetResponse>

get(RequestOptionsBase, ServiceCallback<WordAlterationsDTO>)

function get(options: RequestOptionsBase, callback: ServiceCallback<WordAlterationsDTO>)

Parameters

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<WordAlterationsDTO>

The callback

get(ServiceCallback<WordAlterationsDTO>)

function get(callback: ServiceCallback<WordAlterationsDTO>)

Parameters

callback

ServiceCallback<WordAlterationsDTO>

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

ServiceCallback<WordAlterationsDTO>

The callback

getAlterationsForKb(string, ServiceCallback<WordAlterationsDTO>)

function getAlterationsForKb(kbId: string, callback: ServiceCallback<WordAlterationsDTO>)

Parameters

kbId

string

Knowledgebase id.

callback

ServiceCallback<WordAlterationsDTO>

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