Class PatternsImpl
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.PatternsImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microsoft.azure.cognitiveservices.language.luis.authoring.Patterns
Patterns.PatternsListIntentPatternsDefinition, Patterns.PatternsListIntentPatternsDefinitionStages, Patterns.PatternsListPatternsDefinition, Patterns.PatternsListPatternsDefinitionStages
-
-
Constructor Summary
Constructors Constructor Description PatternsImpl(retrofit2.Retrofit retrofit, LUISAuthoringClientImpl client)
Initializes an instance of PatternsImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PatternRuleInfo
addPattern(UUID appId, String versionId, PatternRuleCreateObject pattern)
Adds a pattern to a version of the application.rx.Observable<PatternRuleInfo>
addPatternAsync(UUID appId, String versionId, PatternRuleCreateObject pattern)
Adds a pattern to a version of the application.com.microsoft.rest.ServiceFuture<PatternRuleInfo>
addPatternAsync(UUID appId, String versionId, PatternRuleCreateObject pattern, com.microsoft.rest.ServiceCallback<PatternRuleInfo> serviceCallback)
Adds a pattern to a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<PatternRuleInfo>>
addPatternWithServiceResponseAsync(UUID appId, String versionId, PatternRuleCreateObject pattern)
Adds a pattern to a version of the application.List<PatternRuleInfo>
batchAddPatterns(UUID appId, String versionId, List<PatternRuleCreateObject> patterns)
Adds a batch of patterns in a version of the application.rx.Observable<List<PatternRuleInfo>>
batchAddPatternsAsync(UUID appId, String versionId, List<PatternRuleCreateObject> patterns)
Adds a batch of patterns in a version of the application.com.microsoft.rest.ServiceFuture<List<PatternRuleInfo>>
batchAddPatternsAsync(UUID appId, String versionId, List<PatternRuleCreateObject> patterns, com.microsoft.rest.ServiceCallback<List<PatternRuleInfo>> serviceCallback)
Adds a batch of patterns in a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<List<PatternRuleInfo>>>
batchAddPatternsWithServiceResponseAsync(UUID appId, String versionId, List<PatternRuleCreateObject> patterns)
Adds a batch of patterns in a version of the application.OperationStatus
deletePattern(UUID appId, String versionId, UUID patternId)
Deletes the pattern with the specified ID from a version of the application..rx.Observable<OperationStatus>
deletePatternAsync(UUID appId, String versionId, UUID patternId)
Deletes the pattern with the specified ID from a version of the application..com.microsoft.rest.ServiceFuture<OperationStatus>
deletePatternAsync(UUID appId, String versionId, UUID patternId, com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
Deletes the pattern with the specified ID from a version of the application..OperationStatus
deletePatterns(UUID appId, String versionId, List<UUID> patternIds)
Deletes a list of patterns in a version of the application.rx.Observable<OperationStatus>
deletePatternsAsync(UUID appId, String versionId, List<UUID> patternIds)
Deletes a list of patterns in a version of the application.com.microsoft.rest.ServiceFuture<OperationStatus>
deletePatternsAsync(UUID appId, String versionId, List<UUID> patternIds, com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
Deletes a list of patterns in a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>>
deletePatternsWithServiceResponseAsync(UUID appId, String versionId, List<UUID> patternIds)
Deletes a list of patterns in a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>>
deletePatternWithServiceResponseAsync(UUID appId, String versionId, UUID patternId)
Deletes the pattern with the specified ID from a version of the application..com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.PatternsImpl.PatternsListIntentPatternsParameters
listIntentPatterns()
Returns patterns for the specific intent in a version of the application.List<PatternRuleInfo>
listIntentPatterns(UUID appId, String versionId, UUID intentId, ListIntentPatternsOptionalParameter listIntentPatternsOptionalParameter)
Returns patterns for the specific intent in a version of the application.rx.Observable<List<PatternRuleInfo>>
listIntentPatternsAsync(UUID appId, String versionId, UUID intentId, ListIntentPatternsOptionalParameter listIntentPatternsOptionalParameter)
Returns patterns for the specific intent in a version of the application.com.microsoft.rest.ServiceFuture<List<PatternRuleInfo>>
listIntentPatternsAsync(UUID appId, String versionId, UUID intentId, ListIntentPatternsOptionalParameter listIntentPatternsOptionalParameter, com.microsoft.rest.ServiceCallback<List<PatternRuleInfo>> serviceCallback)
Returns patterns for the specific intent in a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<List<PatternRuleInfo>>>
listIntentPatternsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, ListIntentPatternsOptionalParameter listIntentPatternsOptionalParameter)
Returns patterns for the specific intent in a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<List<PatternRuleInfo>>>
listIntentPatternsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, Integer skip, Integer take)
Returns patterns for the specific intent in a version of the application.com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.PatternsImpl.PatternsListPatternsParameters
listPatterns()
Gets patterns in a version of the application.List<PatternRuleInfo>
listPatterns(UUID appId, String versionId, ListPatternsOptionalParameter listPatternsOptionalParameter)
Gets patterns in a version of the application.rx.Observable<List<PatternRuleInfo>>
listPatternsAsync(UUID appId, String versionId, ListPatternsOptionalParameter listPatternsOptionalParameter)
Gets patterns in a version of the application.com.microsoft.rest.ServiceFuture<List<PatternRuleInfo>>
listPatternsAsync(UUID appId, String versionId, ListPatternsOptionalParameter listPatternsOptionalParameter, com.microsoft.rest.ServiceCallback<List<PatternRuleInfo>> serviceCallback)
Gets patterns in a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<List<PatternRuleInfo>>>
listPatternsWithServiceResponseAsync(UUID appId, String versionId, ListPatternsOptionalParameter listPatternsOptionalParameter)
Gets patterns in a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<List<PatternRuleInfo>>>
listPatternsWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take)
Gets patterns in a version of the application.PatternRuleInfo
updatePattern(UUID appId, String versionId, UUID patternId, PatternRuleUpdateObject pattern)
Updates a pattern in a version of the application.rx.Observable<PatternRuleInfo>
updatePatternAsync(UUID appId, String versionId, UUID patternId, PatternRuleUpdateObject pattern)
Updates a pattern in a version of the application.com.microsoft.rest.ServiceFuture<PatternRuleInfo>
updatePatternAsync(UUID appId, String versionId, UUID patternId, PatternRuleUpdateObject pattern, com.microsoft.rest.ServiceCallback<PatternRuleInfo> serviceCallback)
Updates a pattern in a version of the application.List<PatternRuleInfo>
updatePatterns(UUID appId, String versionId, List<PatternRuleUpdateObject> patterns)
Updates patterns in a version of the application.rx.Observable<List<PatternRuleInfo>>
updatePatternsAsync(UUID appId, String versionId, List<PatternRuleUpdateObject> patterns)
Updates patterns in a version of the application.com.microsoft.rest.ServiceFuture<List<PatternRuleInfo>>
updatePatternsAsync(UUID appId, String versionId, List<PatternRuleUpdateObject> patterns, com.microsoft.rest.ServiceCallback<List<PatternRuleInfo>> serviceCallback)
Updates patterns in a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<List<PatternRuleInfo>>>
updatePatternsWithServiceResponseAsync(UUID appId, String versionId, List<PatternRuleUpdateObject> patterns)
Updates patterns in a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<PatternRuleInfo>>
updatePatternWithServiceResponseAsync(UUID appId, String versionId, UUID patternId, PatternRuleUpdateObject pattern)
Updates a pattern in a version of the application.
-
-
-
Constructor Detail
-
PatternsImpl
public PatternsImpl(retrofit2.Retrofit retrofit, LUISAuthoringClientImpl client)
Initializes an instance of PatternsImpl.- Parameters:
retrofit
- the Retrofit instance built from a Retrofit Builder.client
- the instance of the service client containing this operation class.
-
-
Method Detail
-
addPattern
public PatternRuleInfo addPattern(UUID appId, String versionId, PatternRuleCreateObject pattern)
Adds a pattern to a version of the application.- Specified by:
addPattern
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.pattern
- The input pattern.- Returns:
- the PatternRuleInfo object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
addPatternAsync
public com.microsoft.rest.ServiceFuture<PatternRuleInfo> addPatternAsync(UUID appId, String versionId, PatternRuleCreateObject pattern, com.microsoft.rest.ServiceCallback<PatternRuleInfo> serviceCallback)
Adds a pattern to a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.pattern
- The input pattern.serviceCallback
- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFuture
object - Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
addPatternAsync
public rx.Observable<PatternRuleInfo> addPatternAsync(UUID appId, String versionId, PatternRuleCreateObject pattern)
Adds a pattern to a version of the application.- Specified by:
addPatternAsync
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.pattern
- The input pattern.- Returns:
- the observable to the PatternRuleInfo object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
addPatternWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<PatternRuleInfo>> addPatternWithServiceResponseAsync(UUID appId, String versionId, PatternRuleCreateObject pattern)
Adds a pattern to a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.pattern
- The input pattern.- Returns:
- the observable to the PatternRuleInfo object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listPatterns
public List<PatternRuleInfo> listPatterns(UUID appId, String versionId, ListPatternsOptionalParameter listPatternsOptionalParameter)
Gets patterns in a version of the application.- Specified by:
listPatterns
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.listPatternsOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the List<PatternRuleInfo> object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
listPatternsAsync
public com.microsoft.rest.ServiceFuture<List<PatternRuleInfo>> listPatternsAsync(UUID appId, String versionId, ListPatternsOptionalParameter listPatternsOptionalParameter, com.microsoft.rest.ServiceCallback<List<PatternRuleInfo>> serviceCallback)
Gets patterns in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.listPatternsOptionalParameter
- the object representing the optional parameters to be set before calling this APIserviceCallback
- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFuture
object - Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listPatternsAsync
public rx.Observable<List<PatternRuleInfo>> listPatternsAsync(UUID appId, String versionId, ListPatternsOptionalParameter listPatternsOptionalParameter)
Gets patterns in a version of the application.- Specified by:
listPatternsAsync
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.listPatternsOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the observable to the List<PatternRuleInfo> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listPatternsWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<List<PatternRuleInfo>>> listPatternsWithServiceResponseAsync(UUID appId, String versionId, ListPatternsOptionalParameter listPatternsOptionalParameter)
Gets patterns in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.listPatternsOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the observable to the List<PatternRuleInfo> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listPatternsWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<List<PatternRuleInfo>>> listPatternsWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take)
Gets patterns in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.skip
- The number of entries to skip. Default value is 0.take
- The number of entries to return. Maximum page size is 500. Default is 100.- Returns:
- the observable to the List<PatternRuleInfo> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listPatterns
public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.PatternsImpl.PatternsListPatternsParameters listPatterns()
Description copied from interface:Patterns
Gets patterns in a version of the application.- Specified by:
listPatterns
in interfacePatterns
- Returns:
- the first stage of the listPatterns call
-
updatePatterns
public List<PatternRuleInfo> updatePatterns(UUID appId, String versionId, List<PatternRuleUpdateObject> patterns)
Updates patterns in a version of the application.- Specified by:
updatePatterns
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.patterns
- An array represents the patterns.- Returns:
- the List<PatternRuleInfo> object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
updatePatternsAsync
public com.microsoft.rest.ServiceFuture<List<PatternRuleInfo>> updatePatternsAsync(UUID appId, String versionId, List<PatternRuleUpdateObject> patterns, com.microsoft.rest.ServiceCallback<List<PatternRuleInfo>> serviceCallback)
Updates patterns in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.patterns
- An array represents the patterns.serviceCallback
- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFuture
object - Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
updatePatternsAsync
public rx.Observable<List<PatternRuleInfo>> updatePatternsAsync(UUID appId, String versionId, List<PatternRuleUpdateObject> patterns)
Updates patterns in a version of the application.- Specified by:
updatePatternsAsync
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.patterns
- An array represents the patterns.- Returns:
- the observable to the List<PatternRuleInfo> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
updatePatternsWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<List<PatternRuleInfo>>> updatePatternsWithServiceResponseAsync(UUID appId, String versionId, List<PatternRuleUpdateObject> patterns)
Updates patterns in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.patterns
- An array represents the patterns.- Returns:
- the observable to the List<PatternRuleInfo> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
batchAddPatterns
public List<PatternRuleInfo> batchAddPatterns(UUID appId, String versionId, List<PatternRuleCreateObject> patterns)
Adds a batch of patterns in a version of the application.- Specified by:
batchAddPatterns
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.patterns
- A JSON array containing patterns.- Returns:
- the List<PatternRuleInfo> object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
batchAddPatternsAsync
public com.microsoft.rest.ServiceFuture<List<PatternRuleInfo>> batchAddPatternsAsync(UUID appId, String versionId, List<PatternRuleCreateObject> patterns, com.microsoft.rest.ServiceCallback<List<PatternRuleInfo>> serviceCallback)
Adds a batch of patterns in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.patterns
- A JSON array containing patterns.serviceCallback
- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFuture
object - Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
batchAddPatternsAsync
public rx.Observable<List<PatternRuleInfo>> batchAddPatternsAsync(UUID appId, String versionId, List<PatternRuleCreateObject> patterns)
Adds a batch of patterns in a version of the application.- Specified by:
batchAddPatternsAsync
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.patterns
- A JSON array containing patterns.- Returns:
- the observable to the List<PatternRuleInfo> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
batchAddPatternsWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<List<PatternRuleInfo>>> batchAddPatternsWithServiceResponseAsync(UUID appId, String versionId, List<PatternRuleCreateObject> patterns)
Adds a batch of patterns in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.patterns
- A JSON array containing patterns.- Returns:
- the observable to the List<PatternRuleInfo> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
deletePatterns
public OperationStatus deletePatterns(UUID appId, String versionId, List<UUID> patternIds)
Deletes a list of patterns in a version of the application.- Specified by:
deletePatterns
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.patternIds
- The patterns IDs.- Returns:
- the OperationStatus object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
deletePatternsAsync
public com.microsoft.rest.ServiceFuture<OperationStatus> deletePatternsAsync(UUID appId, String versionId, List<UUID> patternIds, com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
Deletes a list of patterns in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.patternIds
- The patterns IDs.serviceCallback
- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFuture
object - Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
deletePatternsAsync
public rx.Observable<OperationStatus> deletePatternsAsync(UUID appId, String versionId, List<UUID> patternIds)
Deletes a list of patterns in a version of the application.- Specified by:
deletePatternsAsync
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.patternIds
- The patterns IDs.- Returns:
- the observable to the OperationStatus object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
deletePatternsWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>> deletePatternsWithServiceResponseAsync(UUID appId, String versionId, List<UUID> patternIds)
Deletes a list of patterns in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.patternIds
- The patterns IDs.- Returns:
- the observable to the OperationStatus object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
updatePattern
public PatternRuleInfo updatePattern(UUID appId, String versionId, UUID patternId, PatternRuleUpdateObject pattern)
Updates a pattern in a version of the application.- Specified by:
updatePattern
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.patternId
- The pattern ID.pattern
- An object representing a pattern.- Returns:
- the PatternRuleInfo object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
updatePatternAsync
public com.microsoft.rest.ServiceFuture<PatternRuleInfo> updatePatternAsync(UUID appId, String versionId, UUID patternId, PatternRuleUpdateObject pattern, com.microsoft.rest.ServiceCallback<PatternRuleInfo> serviceCallback)
Updates a pattern in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.patternId
- The pattern ID.pattern
- An object representing a pattern.serviceCallback
- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFuture
object - Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
updatePatternAsync
public rx.Observable<PatternRuleInfo> updatePatternAsync(UUID appId, String versionId, UUID patternId, PatternRuleUpdateObject pattern)
Updates a pattern in a version of the application.- Specified by:
updatePatternAsync
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.patternId
- The pattern ID.pattern
- An object representing a pattern.- Returns:
- the observable to the PatternRuleInfo object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
updatePatternWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<PatternRuleInfo>> updatePatternWithServiceResponseAsync(UUID appId, String versionId, UUID patternId, PatternRuleUpdateObject pattern)
Updates a pattern in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.patternId
- The pattern ID.pattern
- An object representing a pattern.- Returns:
- the observable to the PatternRuleInfo object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
deletePattern
public OperationStatus deletePattern(UUID appId, String versionId, UUID patternId)
Deletes the pattern with the specified ID from a version of the application..- Specified by:
deletePattern
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.patternId
- The pattern ID.- Returns:
- the OperationStatus object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
deletePatternAsync
public com.microsoft.rest.ServiceFuture<OperationStatus> deletePatternAsync(UUID appId, String versionId, UUID patternId, com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
Deletes the pattern with the specified ID from a version of the application..- Parameters:
appId
- The application ID.versionId
- The version ID.patternId
- The pattern ID.serviceCallback
- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFuture
object - Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
deletePatternAsync
public rx.Observable<OperationStatus> deletePatternAsync(UUID appId, String versionId, UUID patternId)
Deletes the pattern with the specified ID from a version of the application..- Specified by:
deletePatternAsync
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.patternId
- The pattern ID.- Returns:
- the observable to the OperationStatus object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
deletePatternWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>> deletePatternWithServiceResponseAsync(UUID appId, String versionId, UUID patternId)
Deletes the pattern with the specified ID from a version of the application..- Parameters:
appId
- The application ID.versionId
- The version ID.patternId
- The pattern ID.- Returns:
- the observable to the OperationStatus object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listIntentPatterns
public List<PatternRuleInfo> listIntentPatterns(UUID appId, String versionId, UUID intentId, ListIntentPatternsOptionalParameter listIntentPatternsOptionalParameter)
Returns patterns for the specific intent in a version of the application.- Specified by:
listIntentPatterns
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.intentId
- The intent classifier ID.listIntentPatternsOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the List<PatternRuleInfo> object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
listIntentPatternsAsync
public com.microsoft.rest.ServiceFuture<List<PatternRuleInfo>> listIntentPatternsAsync(UUID appId, String versionId, UUID intentId, ListIntentPatternsOptionalParameter listIntentPatternsOptionalParameter, com.microsoft.rest.ServiceCallback<List<PatternRuleInfo>> serviceCallback)
Returns patterns for the specific intent in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.intentId
- The intent classifier ID.listIntentPatternsOptionalParameter
- the object representing the optional parameters to be set before calling this APIserviceCallback
- the async ServiceCallback to handle successful and failed responses.- Returns:
- the
ServiceFuture
object - Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listIntentPatternsAsync
public rx.Observable<List<PatternRuleInfo>> listIntentPatternsAsync(UUID appId, String versionId, UUID intentId, ListIntentPatternsOptionalParameter listIntentPatternsOptionalParameter)
Returns patterns for the specific intent in a version of the application.- Specified by:
listIntentPatternsAsync
in interfacePatterns
- Parameters:
appId
- The application ID.versionId
- The version ID.intentId
- The intent classifier ID.listIntentPatternsOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the observable to the List<PatternRuleInfo> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listIntentPatternsWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<List<PatternRuleInfo>>> listIntentPatternsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, ListIntentPatternsOptionalParameter listIntentPatternsOptionalParameter)
Returns patterns for the specific intent in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.intentId
- The intent classifier ID.listIntentPatternsOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the observable to the List<PatternRuleInfo> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listIntentPatternsWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<List<PatternRuleInfo>>> listIntentPatternsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, Integer skip, Integer take)
Returns patterns for the specific intent in a version of the application.- Parameters:
appId
- The application ID.versionId
- The version ID.intentId
- The intent classifier ID.skip
- The number of entries to skip. Default value is 0.take
- The number of entries to return. Maximum page size is 500. Default is 100.- Returns:
- the observable to the List<PatternRuleInfo> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listIntentPatterns
public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.PatternsImpl.PatternsListIntentPatternsParameters listIntentPatterns()
Description copied from interface:Patterns
Returns patterns for the specific intent in a version of the application.- Specified by:
listIntentPatterns
in interfacePatterns
- Returns:
- the first stage of the listIntentPatterns call
-
-