Partager via


Pattern class

Classe représentant un modèle.

Constructeurs

Pattern(LUISAuthoringClientContext)

Créez un modèle.

Méthodes

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[]>)

Détails du constructeur

Pattern(LUISAuthoringClientContext)

Créez un modèle.

new Pattern(client: LUISAuthoringClientContext)

Paramètres

client
LUISAuthoringClientContext

Référence au client de service.

Détails de la méthode

addPattern(string, string, PatternRuleCreateObject, RequestOptionsBase)

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

pattern
PatternRuleCreateObject

Modèle d’entrée.

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.PatternAddPatternResponse>

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

pattern
PatternRuleCreateObject

Modèle d’entrée.

options
RequestOptionsBase

Paramètres facultatifs

callback

ServiceCallback<PatternRuleInfo>

Rappel

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

pattern
PatternRuleCreateObject

Modèle d’entrée.

callback

ServiceCallback<PatternRuleInfo>

Rappel

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patterns

PatternRuleCreateObject[]

Tableau JSON contenant des modèles.

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.PatternBatchAddPatternsResponse>

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patterns

PatternRuleCreateObject[]

Tableau JSON contenant des modèles.

options
RequestOptionsBase

Paramètres facultatifs

callback

ServiceCallback<PatternRuleInfo[]>

Rappel

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patterns

PatternRuleCreateObject[]

Tableau JSON contenant des modèles.

callback

ServiceCallback<PatternRuleInfo[]>

Rappel

deletePattern(string, string, string, RequestOptionsBase)

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patternId

string

ID de modèle.

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.PatternDeletePatternResponse>

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patternId

string

ID de modèle.

options
RequestOptionsBase

Paramètres facultatifs

callback

ServiceCallback<OperationStatus>

Rappel

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patternId

string

ID de modèle.

callback

ServiceCallback<OperationStatus>

Rappel

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patternIds

string[]

ID de modèles.

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.PatternDeletePatternsResponse>

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patternIds

string[]

ID de modèles.

options
RequestOptionsBase

Paramètres facultatifs

callback

ServiceCallback<OperationStatus>

Rappel

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patternIds

string[]

ID de modèles.

callback

ServiceCallback<OperationStatus>

Rappel

listIntentPatterns(string, string, string, PatternListIntentPatternsOptionalParams)

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

intentId

string

ID du classifieur d’intention.

options
PatternListIntentPatternsOptionalParams

Paramètres facultatifs

Retours

Promise<Models.PatternListIntentPatternsResponse>

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

intentId

string

ID du classifieur d’intention.

options
PatternListIntentPatternsOptionalParams

Paramètres facultatifs

callback

ServiceCallback<PatternRuleInfo[]>

Rappel

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

intentId

string

ID du classifieur d’intention.

callback

ServiceCallback<PatternRuleInfo[]>

Rappel

listPatterns(string, string, PatternListPatternsOptionalParams)

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

options
PatternListPatternsOptionalParams

Paramètres facultatifs

Retours

Promise<Models.PatternListPatternsResponse>

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

options
PatternListPatternsOptionalParams

Paramètres facultatifs

callback

ServiceCallback<PatternRuleInfo[]>

Rappel

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

callback

ServiceCallback<PatternRuleInfo[]>

Rappel

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patternId

string

ID de modèle.

pattern
PatternRuleUpdateObject

Objet représentant un modèle.

options
RequestOptionsBase

Paramètres facultatifs

Retours

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>)

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patternId

string

ID de modèle.

pattern
PatternRuleUpdateObject

Objet représentant un modèle.

options
RequestOptionsBase

Paramètres facultatifs

callback

ServiceCallback<PatternRuleInfo>

Rappel

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patternId

string

ID de modèle.

pattern
PatternRuleUpdateObject

Objet représentant un modèle.

callback

ServiceCallback<PatternRuleInfo>

Rappel

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patterns

PatternRuleUpdateObject[]

Un tableau représente les modèles.

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.PatternUpdatePatternsResponse>

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patterns

PatternRuleUpdateObject[]

Un tableau représente les modèles.

options
RequestOptionsBase

Paramètres facultatifs

callback

ServiceCallback<PatternRuleInfo[]>

Rappel

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

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

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

patterns

PatternRuleUpdateObject[]

Un tableau représente les modèles.

callback

ServiceCallback<PatternRuleInfo[]>

Rappel