Class PatternsImpl

  • All Implemented Interfaces:
    Patterns

    public class PatternsImpl
    extends Object
    implements Patterns
    An instance of this class provides access to all the operations defined in Patterns.
    • 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

      • 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
      • 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 interface Patterns
        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

        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 API
        serviceCallback - 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 interface Patterns
        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 interface Patterns
        Returns:
        the first stage of the listPatterns call
      • 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
      • 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
      • 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
      • 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 interface Patterns
        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

        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 interface Patterns
        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
      • 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 interface Patterns
        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 interface Patterns
        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

        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 interface Patterns
        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 interface Patterns
        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

        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 API
        serviceCallback - 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 interface Patterns
        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 interface Patterns
        Returns:
        the first stage of the listIntentPatterns call