Interface Patterns

  • All Known Implementing Classes:
    PatternsImpl

    public interface Patterns
    An instance of this class provides access to all the operations defined in Patterns.
    • Method Detail

      • addPatternAsync

        rx.Observable<PatternRuleInfo> addPatternAsync​(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

        List<PatternRuleInfo> listPatterns​(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 List<PatternRuleInfo> object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • listPatternsAsync

        rx.Observable<List<PatternRuleInfo>> listPatternsAsync​(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
      • updatePatternsAsync

        rx.Observable<List<PatternRuleInfo>> updatePatternsAsync​(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

        List<PatternRuleInfo> batchAddPatterns​(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 List<PatternRuleInfo> object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • batchAddPatternsAsync

        rx.Observable<List<PatternRuleInfo>> batchAddPatternsAsync​(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

        OperationStatus deletePatterns​(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 OperationStatus object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • deletePatternsAsync

        rx.Observable<OperationStatus> deletePatternsAsync​(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

        PatternRuleInfo updatePattern​(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 PatternRuleInfo object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • updatePatternAsync

        rx.Observable<PatternRuleInfo> updatePatternAsync​(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

        OperationStatus deletePattern​(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 OperationStatus object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • deletePatternAsync

        rx.Observable<OperationStatus> deletePatternAsync​(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

        List<PatternRuleInfo> listIntentPatterns​(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 List<PatternRuleInfo> object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • listIntentPatternsAsync

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