Pattern class
Class representing a Pattern.
Constructors
Pattern(LUISAuthoring |
Create a Pattern. |
Methods
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<PatternAddPatternResponse>
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
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
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
A JSON array containing patterns.
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<PatternBatchAddPatternsResponse>
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
A JSON array containing patterns.
- options
- RequestOptionsBase
The optional parameters
- callback
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
A JSON array containing patterns.
- callback
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<PatternDeletePatternResponse>
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
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
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<PatternDeletePatternsResponse>
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
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
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.
The optional parameters
Returns
Promise<PatternListIntentPatternsResponse>
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.
The optional parameters
- callback
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
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.
The optional parameters
Returns
Promise<PatternListPatternsResponse>
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.
The optional parameters
- callback
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
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<PatternUpdatePatternResponse>
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
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
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
An array represents the patterns.
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<PatternUpdatePatternsResponse>
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
An array represents the patterns.
- options
- RequestOptionsBase
The optional parameters
- callback
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
An array represents the patterns.
- callback
The callback