Pattern class

Class representing a Pattern.

Constructors

Pattern(LUISAuthoringClientContext)

Create a Pattern.

Methods

addPattern(string, string, PatternRuleCreateObject, RequestOptionsBase)
addPattern(string, string, PatternRuleCreateObject, RequestOptionsBase, ServiceCallback<PatternRuleInfo>)
addPattern(string, string, PatternRuleCreateObject, ServiceCallback<PatternRuleInfo>)
batchAddPatterns(string, string, PatternRuleCreateObject[], RequestOptionsBase)
batchAddPatterns(string, string, PatternRuleCreateObject[], RequestOptionsBase, ServiceCallback<PatternRuleInfo[]>)
batchAddPatterns(string, string, PatternRuleCreateObject[], ServiceCallback<PatternRuleInfo[]>)
deletePattern(string, string, string, RequestOptionsBase)
deletePattern(string, string, string, RequestOptionsBase, ServiceCallback<OperationStatus>)
deletePattern(string, string, string, ServiceCallback<OperationStatus>)
deletePatterns(string, string, string[], RequestOptionsBase)
deletePatterns(string, string, string[], RequestOptionsBase, ServiceCallback<OperationStatus>)
deletePatterns(string, string, string[], ServiceCallback<OperationStatus>)
listIntentPatterns(string, string, string, PatternListIntentPatternsOptionalParams)
listIntentPatterns(string, string, string, PatternListIntentPatternsOptionalParams, ServiceCallback<PatternRuleInfo[]>)
listIntentPatterns(string, string, string, ServiceCallback<PatternRuleInfo[]>)
listPatterns(string, string, PatternListPatternsOptionalParams)
listPatterns(string, string, PatternListPatternsOptionalParams, ServiceCallback<PatternRuleInfo[]>)
listPatterns(string, string, ServiceCallback<PatternRuleInfo[]>)
updatePattern(string, string, string, PatternRuleUpdateObject, RequestOptionsBase)
updatePattern(string, string, string, PatternRuleUpdateObject, RequestOptionsBase, ServiceCallback<PatternRuleInfo>)
updatePattern(string, string, string, PatternRuleUpdateObject, ServiceCallback<PatternRuleInfo>)
updatePatterns(string, string, PatternRuleUpdateObject[], RequestOptionsBase)
updatePatterns(string, string, PatternRuleUpdateObject[], RequestOptionsBase, ServiceCallback<PatternRuleInfo[]>)
updatePatterns(string, string, PatternRuleUpdateObject[], ServiceCallback<PatternRuleInfo[]>)

Constructor Details

Pattern(LUISAuthoringClientContext)

Create a Pattern.

new Pattern(client: LUISAuthoringClientContext)

Parameters

client
LUISAuthoringClientContext

Reference to the service client.

Method Details

addPattern(string, string, PatternRuleCreateObject, RequestOptionsBase)

function addPattern(appId: string, versionId: string, pattern: PatternRuleCreateObject, options?: RequestOptionsBase): Promise<PatternAddPatternResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

pattern
PatternRuleCreateObject

The input pattern.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.PatternAddPatternResponse>

addPattern(string, string, PatternRuleCreateObject, RequestOptionsBase, ServiceCallback<PatternRuleInfo>)

function addPattern(appId: string, versionId: string, pattern: PatternRuleCreateObject, options: RequestOptionsBase, callback: ServiceCallback<PatternRuleInfo>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

pattern
PatternRuleCreateObject

The input pattern.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<PatternRuleInfo>

The callback

addPattern(string, string, PatternRuleCreateObject, ServiceCallback<PatternRuleInfo>)

function addPattern(appId: string, versionId: string, pattern: PatternRuleCreateObject, callback: ServiceCallback<PatternRuleInfo>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

pattern
PatternRuleCreateObject

The input pattern.

callback

ServiceCallback<PatternRuleInfo>

The callback

batchAddPatterns(string, string, PatternRuleCreateObject[], RequestOptionsBase)

function batchAddPatterns(appId: string, versionId: string, patterns: PatternRuleCreateObject[], options?: RequestOptionsBase): Promise<PatternBatchAddPatternsResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patterns

PatternRuleCreateObject[]

A JSON array containing patterns.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.PatternBatchAddPatternsResponse>

batchAddPatterns(string, string, PatternRuleCreateObject[], RequestOptionsBase, ServiceCallback<PatternRuleInfo[]>)

function batchAddPatterns(appId: string, versionId: string, patterns: PatternRuleCreateObject[], options: RequestOptionsBase, callback: ServiceCallback<PatternRuleInfo[]>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patterns

PatternRuleCreateObject[]

A JSON array containing patterns.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<PatternRuleInfo[]>

The callback

batchAddPatterns(string, string, PatternRuleCreateObject[], ServiceCallback<PatternRuleInfo[]>)

function batchAddPatterns(appId: string, versionId: string, patterns: PatternRuleCreateObject[], callback: ServiceCallback<PatternRuleInfo[]>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patterns

PatternRuleCreateObject[]

A JSON array containing patterns.

callback

ServiceCallback<PatternRuleInfo[]>

The callback

deletePattern(string, string, string, RequestOptionsBase)

function deletePattern(appId: string, versionId: string, patternId: string, options?: RequestOptionsBase): Promise<PatternDeletePatternResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patternId

string

The pattern ID.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.PatternDeletePatternResponse>

deletePattern(string, string, string, RequestOptionsBase, ServiceCallback<OperationStatus>)

function deletePattern(appId: string, versionId: string, patternId: string, options: RequestOptionsBase, callback: ServiceCallback<OperationStatus>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patternId

string

The pattern ID.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<OperationStatus>

The callback

deletePattern(string, string, string, ServiceCallback<OperationStatus>)

function deletePattern(appId: string, versionId: string, patternId: string, callback: ServiceCallback<OperationStatus>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patternId

string

The pattern ID.

callback

ServiceCallback<OperationStatus>

The callback

deletePatterns(string, string, string[], RequestOptionsBase)

function deletePatterns(appId: string, versionId: string, patternIds: string[], options?: RequestOptionsBase): Promise<PatternDeletePatternsResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patternIds

string[]

The patterns IDs.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.PatternDeletePatternsResponse>

deletePatterns(string, string, string[], RequestOptionsBase, ServiceCallback<OperationStatus>)

function deletePatterns(appId: string, versionId: string, patternIds: string[], options: RequestOptionsBase, callback: ServiceCallback<OperationStatus>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patternIds

string[]

The patterns IDs.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<OperationStatus>

The callback

deletePatterns(string, string, string[], ServiceCallback<OperationStatus>)

function deletePatterns(appId: string, versionId: string, patternIds: string[], callback: ServiceCallback<OperationStatus>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patternIds

string[]

The patterns IDs.

callback

ServiceCallback<OperationStatus>

The callback

listIntentPatterns(string, string, string, PatternListIntentPatternsOptionalParams)

function listIntentPatterns(appId: string, versionId: string, intentId: string, options?: PatternListIntentPatternsOptionalParams): Promise<PatternListIntentPatternsResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

intentId

string

The intent classifier ID.

options
PatternListIntentPatternsOptionalParams

The optional parameters

Returns

Promise<Models.PatternListIntentPatternsResponse>

listIntentPatterns(string, string, string, PatternListIntentPatternsOptionalParams, ServiceCallback<PatternRuleInfo[]>)

function listIntentPatterns(appId: string, versionId: string, intentId: string, options: PatternListIntentPatternsOptionalParams, callback: ServiceCallback<PatternRuleInfo[]>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

intentId

string

The intent classifier ID.

options
PatternListIntentPatternsOptionalParams

The optional parameters

callback

ServiceCallback<PatternRuleInfo[]>

The callback

listIntentPatterns(string, string, string, ServiceCallback<PatternRuleInfo[]>)

function listIntentPatterns(appId: string, versionId: string, intentId: string, callback: ServiceCallback<PatternRuleInfo[]>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

intentId

string

The intent classifier ID.

callback

ServiceCallback<PatternRuleInfo[]>

The callback

listPatterns(string, string, PatternListPatternsOptionalParams)

function listPatterns(appId: string, versionId: string, options?: PatternListPatternsOptionalParams): Promise<PatternListPatternsResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

options
PatternListPatternsOptionalParams

The optional parameters

Returns

Promise<Models.PatternListPatternsResponse>

listPatterns(string, string, PatternListPatternsOptionalParams, ServiceCallback<PatternRuleInfo[]>)

function listPatterns(appId: string, versionId: string, options: PatternListPatternsOptionalParams, callback: ServiceCallback<PatternRuleInfo[]>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

options
PatternListPatternsOptionalParams

The optional parameters

callback

ServiceCallback<PatternRuleInfo[]>

The callback

listPatterns(string, string, ServiceCallback<PatternRuleInfo[]>)

function listPatterns(appId: string, versionId: string, callback: ServiceCallback<PatternRuleInfo[]>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

callback

ServiceCallback<PatternRuleInfo[]>

The callback

updatePattern(string, string, string, PatternRuleUpdateObject, RequestOptionsBase)

function updatePattern(appId: string, versionId: string, patternId: string, pattern: PatternRuleUpdateObject, options?: RequestOptionsBase): Promise<PatternUpdatePatternResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patternId

string

The pattern ID.

pattern
PatternRuleUpdateObject

An object representing a pattern.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.PatternUpdatePatternResponse>

updatePattern(string, string, string, PatternRuleUpdateObject, RequestOptionsBase, ServiceCallback<PatternRuleInfo>)

function updatePattern(appId: string, versionId: string, patternId: string, pattern: PatternRuleUpdateObject, options: RequestOptionsBase, callback: ServiceCallback<PatternRuleInfo>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patternId

string

The pattern ID.

pattern
PatternRuleUpdateObject

An object representing a pattern.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<PatternRuleInfo>

The callback

updatePattern(string, string, string, PatternRuleUpdateObject, ServiceCallback<PatternRuleInfo>)

function updatePattern(appId: string, versionId: string, patternId: string, pattern: PatternRuleUpdateObject, callback: ServiceCallback<PatternRuleInfo>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patternId

string

The pattern ID.

pattern
PatternRuleUpdateObject

An object representing a pattern.

callback

ServiceCallback<PatternRuleInfo>

The callback

updatePatterns(string, string, PatternRuleUpdateObject[], RequestOptionsBase)

function updatePatterns(appId: string, versionId: string, patterns: PatternRuleUpdateObject[], options?: RequestOptionsBase): Promise<PatternUpdatePatternsResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patterns

PatternRuleUpdateObject[]

An array represents the patterns.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.PatternUpdatePatternsResponse>

updatePatterns(string, string, PatternRuleUpdateObject[], RequestOptionsBase, ServiceCallback<PatternRuleInfo[]>)

function updatePatterns(appId: string, versionId: string, patterns: PatternRuleUpdateObject[], options: RequestOptionsBase, callback: ServiceCallback<PatternRuleInfo[]>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patterns

PatternRuleUpdateObject[]

An array represents the patterns.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<PatternRuleInfo[]>

The callback

updatePatterns(string, string, PatternRuleUpdateObject[], ServiceCallback<PatternRuleInfo[]>)

function updatePatterns(appId: string, versionId: string, patterns: PatternRuleUpdateObject[], callback: ServiceCallback<PatternRuleInfo[]>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

patterns

PatternRuleUpdateObject[]

An array represents the patterns.

callback

ServiceCallback<PatternRuleInfo[]>

The callback