Class VersionsImpl

  • All Implemented Interfaces:
    Versions

    public class VersionsImpl
    extends Object
    implements Versions
    An instance of this class provides access to all the operations defined in Versions.
    • Constructor Detail

      • VersionsImpl

        public VersionsImpl​(retrofit2.Retrofit retrofit,
                            LUISAuthoringClientImpl client)
        Initializes an instance of VersionsImpl.
        Parameters:
        retrofit - the Retrofit instance built from a Retrofit Builder.
        client - the instance of the service client containing this operation class.
    • Method Detail

      • clone

        public String clone​(UUID appId,
                            String versionId,
                            CloneOptionalParameter cloneOptionalParameter)
        Creates a new version from the selected version.
        Specified by:
        clone in interface Versions
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        cloneOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the String 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
      • cloneAsync

        public com.microsoft.rest.ServiceFuture<String> cloneAsync​(UUID appId,
                                                                   String versionId,
                                                                   CloneOptionalParameter cloneOptionalParameter,
                                                                   com.microsoft.rest.ServiceCallback<String> serviceCallback)
        Creates a new version from the selected version.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        cloneOptionalParameter - 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
      • cloneAsync

        public rx.Observable<String> cloneAsync​(UUID appId,
                                                String versionId,
                                                CloneOptionalParameter cloneOptionalParameter)
        Creates a new version from the selected version.
        Specified by:
        cloneAsync in interface Versions
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        cloneOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the String object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • cloneWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<String>> cloneWithServiceResponseAsync​(UUID appId,
                                                                                                       String versionId,
                                                                                                       CloneOptionalParameter cloneOptionalParameter)
        Creates a new version from the selected version.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        cloneOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the String object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • cloneWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<String>> cloneWithServiceResponseAsync​(UUID appId,
                                                                                                       String versionId,
                                                                                                       String version)
        Creates a new version from the selected version.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        version - The new version for the cloned model.
        Returns:
        the observable to the String object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • clone

        public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.VersionsImpl.VersionsCloneParameters clone()
        Description copied from interface: Versions
        Creates a new version from the selected version.
        Specified by:
        clone in interface Versions
        Overrides:
        clone in class Object
        Returns:
        the first stage of the clone call
      • list

        public List<VersionInfo> list​(UUID appId,
                                      ListVersionsOptionalParameter listOptionalParameter)
        Gets a list of versions for this application ID.
        Specified by:
        list in interface Versions
        Parameters:
        appId - The application ID.
        listOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the List<VersionInfo> 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
      • listAsync

        public com.microsoft.rest.ServiceFuture<List<VersionInfo>> listAsync​(UUID appId,
                                                                             ListVersionsOptionalParameter listOptionalParameter,
                                                                             com.microsoft.rest.ServiceCallback<List<VersionInfo>> serviceCallback)
        Gets a list of versions for this application ID.
        Parameters:
        appId - The application ID.
        listOptionalParameter - 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
      • listAsync

        public rx.Observable<List<VersionInfo>> listAsync​(UUID appId,
                                                          ListVersionsOptionalParameter listOptionalParameter)
        Gets a list of versions for this application ID.
        Specified by:
        listAsync in interface Versions
        Parameters:
        appId - The application ID.
        listOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the List<VersionInfo> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<List<VersionInfo>>> listWithServiceResponseAsync​(UUID appId,
                                                                                                                 ListVersionsOptionalParameter listOptionalParameter)
        Gets a list of versions for this application ID.
        Parameters:
        appId - The application ID.
        listOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the List<VersionInfo> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • listWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<List<VersionInfo>>> listWithServiceResponseAsync​(UUID appId,
                                                                                                                 Integer skip,
                                                                                                                 Integer take)
        Gets a list of versions for this application ID.
        Parameters:
        appId - The application 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<VersionInfo> object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • list

        public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.VersionsImpl.VersionsListParameters list()
        Description copied from interface: Versions
        Gets a list of versions for this application ID.
        Specified by:
        list in interface Versions
        Returns:
        the first stage of the list call
      • get

        public VersionInfo get​(UUID appId,
                               String versionId)
        Gets the version information such as date created, last modified date, endpoint URL, count of intents and entities, training and publishing status.
        Specified by:
        get in interface Versions
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        Returns:
        the VersionInfo 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
      • getAsync

        public com.microsoft.rest.ServiceFuture<VersionInfo> getAsync​(UUID appId,
                                                                      String versionId,
                                                                      com.microsoft.rest.ServiceCallback<VersionInfo> serviceCallback)
        Gets the version information such as date created, last modified date, endpoint URL, count of intents and entities, training and publishing status.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • getAsync

        public rx.Observable<VersionInfo> getAsync​(UUID appId,
                                                   String versionId)
        Gets the version information such as date created, last modified date, endpoint URL, count of intents and entities, training and publishing status.
        Specified by:
        getAsync in interface Versions
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        Returns:
        the observable to the VersionInfo object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • getWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<VersionInfo>> getWithServiceResponseAsync​(UUID appId,
                                                                                                          String versionId)
        Gets the version information such as date created, last modified date, endpoint URL, count of intents and entities, training and publishing status.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        Returns:
        the observable to the VersionInfo object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • update

        public OperationStatus update​(UUID appId,
                                      String versionId,
                                      UpdateVersionsOptionalParameter updateOptionalParameter)
        Updates the name or description of the application version.
        Specified by:
        update in interface Versions
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        updateOptionalParameter - the object representing the optional parameters to be set before calling this API
        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
      • updateAsync

        public com.microsoft.rest.ServiceFuture<OperationStatus> updateAsync​(UUID appId,
                                                                             String versionId,
                                                                             UpdateVersionsOptionalParameter updateOptionalParameter,
                                                                             com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
        Updates the name or description of the application version.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        updateOptionalParameter - 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
      • updateAsync

        public rx.Observable<OperationStatus> updateAsync​(UUID appId,
                                                          String versionId,
                                                          UpdateVersionsOptionalParameter updateOptionalParameter)
        Updates the name or description of the application version.
        Specified by:
        updateAsync in interface Versions
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        updateOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the OperationStatus object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • updateWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>> updateWithServiceResponseAsync​(UUID appId,
                                                                                                                 String versionId,
                                                                                                                 UpdateVersionsOptionalParameter updateOptionalParameter)
        Updates the name or description of the application version.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        updateOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the OperationStatus object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • updateWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>> updateWithServiceResponseAsync​(UUID appId,
                                                                                                                 String versionId,
                                                                                                                 String version)
        Updates the name or description of the application version.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        version - The new version for the cloned model.
        Returns:
        the observable to the OperationStatus object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • update

        public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.VersionsImpl.VersionsUpdateParameters update()
        Description copied from interface: Versions
        Updates the name or description of the application version.
        Specified by:
        update in interface Versions
        Returns:
        the first stage of the update call
      • deleteAsync

        public com.microsoft.rest.ServiceFuture<OperationStatus> deleteAsync​(UUID appId,
                                                                             String versionId,
                                                                             com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
        Deletes an application version.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • deleteAsync

        public rx.Observable<OperationStatus> deleteAsync​(UUID appId,
                                                          String versionId)
        Deletes an application version.
        Specified by:
        deleteAsync in interface Versions
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        Returns:
        the observable to the OperationStatus object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • deleteWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>> deleteWithServiceResponseAsync​(UUID appId,
                                                                                                                 String versionId)
        Deletes an application version.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        Returns:
        the observable to the OperationStatus object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • export

        public LuisApp export​(UUID appId,
                              String versionId)
        Exports a LUIS application to JSON format.
        Specified by:
        export in interface Versions
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        Returns:
        the LuisApp 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
      • exportAsync

        public com.microsoft.rest.ServiceFuture<LuisApp> exportAsync​(UUID appId,
                                                                     String versionId,
                                                                     com.microsoft.rest.ServiceCallback<LuisApp> serviceCallback)
        Exports a LUIS application to JSON format.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • exportAsync

        public rx.Observable<LuisApp> exportAsync​(UUID appId,
                                                  String versionId)
        Exports a LUIS application to JSON format.
        Specified by:
        exportAsync in interface Versions
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        Returns:
        the observable to the LuisApp object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • exportWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<LuisApp>> exportWithServiceResponseAsync​(UUID appId,
                                                                                                         String versionId)
        Exports a LUIS application to JSON format.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        Returns:
        the observable to the LuisApp object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • importMethod

        public String importMethod​(UUID appId,
                                   LuisApp luisApp,
                                   ImportMethodVersionsOptionalParameter importMethodOptionalParameter)
        Imports a new version into a LUIS application.
        Specified by:
        importMethod in interface Versions
        Parameters:
        appId - The application ID.
        luisApp - A LUIS application structure.
        importMethodOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the String 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
      • importMethodAsync

        public com.microsoft.rest.ServiceFuture<String> importMethodAsync​(UUID appId,
                                                                          LuisApp luisApp,
                                                                          ImportMethodVersionsOptionalParameter importMethodOptionalParameter,
                                                                          com.microsoft.rest.ServiceCallback<String> serviceCallback)
        Imports a new version into a LUIS application.
        Parameters:
        appId - The application ID.
        luisApp - A LUIS application structure.
        importMethodOptionalParameter - 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
      • importMethodAsync

        public rx.Observable<String> importMethodAsync​(UUID appId,
                                                       LuisApp luisApp,
                                                       ImportMethodVersionsOptionalParameter importMethodOptionalParameter)
        Imports a new version into a LUIS application.
        Specified by:
        importMethodAsync in interface Versions
        Parameters:
        appId - The application ID.
        luisApp - A LUIS application structure.
        importMethodOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the String object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • importMethodWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<String>> importMethodWithServiceResponseAsync​(UUID appId,
                                                                                                              LuisApp luisApp,
                                                                                                              ImportMethodVersionsOptionalParameter importMethodOptionalParameter)
        Imports a new version into a LUIS application.
        Parameters:
        appId - The application ID.
        luisApp - A LUIS application structure.
        importMethodOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the String object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • importMethodWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<String>> importMethodWithServiceResponseAsync​(UUID appId,
                                                                                                              LuisApp luisApp,
                                                                                                              String versionId)
        Imports a new version into a LUIS application.
        Parameters:
        appId - The application ID.
        luisApp - A LUIS application structure.
        versionId - The new versionId to import. If not specified, the versionId will be read from the imported object.
        Returns:
        the observable to the String object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • importMethod

        public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.VersionsImpl.VersionsImportMethodParameters importMethod()
        Description copied from interface: Versions
        Imports a new version into a LUIS application.
        Specified by:
        importMethod in interface Versions
        Returns:
        the first stage of the importMethod call
      • deleteUnlabelledUtterance

        public OperationStatus deleteUnlabelledUtterance​(UUID appId,
                                                         String versionId,
                                                         String utterance)
        Deleted an unlabelled utterance in a version of the application.
        Specified by:
        deleteUnlabelledUtterance in interface Versions
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        utterance - The utterance text to delete.
        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
      • deleteUnlabelledUtteranceAsync

        public com.microsoft.rest.ServiceFuture<OperationStatus> deleteUnlabelledUtteranceAsync​(UUID appId,
                                                                                                String versionId,
                                                                                                String utterance,
                                                                                                com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
        Deleted an unlabelled utterance in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        utterance - The utterance text to delete.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • deleteUnlabelledUtteranceAsync

        public rx.Observable<OperationStatus> deleteUnlabelledUtteranceAsync​(UUID appId,
                                                                             String versionId,
                                                                             String utterance)
        Deleted an unlabelled utterance in a version of the application.
        Specified by:
        deleteUnlabelledUtteranceAsync in interface Versions
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        utterance - The utterance text to delete.
        Returns:
        the observable to the OperationStatus object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • deleteUnlabelledUtteranceWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>> deleteUnlabelledUtteranceWithServiceResponseAsync​(UUID appId,
                                                                                                                                    String versionId,
                                                                                                                                    String utterance)
        Deleted an unlabelled utterance in a version of the application.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        utterance - The utterance text to delete.
        Returns:
        the observable to the OperationStatus object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • importV2App

        public String importV2App​(UUID appId,
                                  LuisAppV2 luisAppV2,
                                  ImportV2AppVersionsOptionalParameter importV2AppOptionalParameter)
        Imports a new version into a LUIS application.
        Specified by:
        importV2App in interface Versions
        Parameters:
        appId - The application ID.
        luisAppV2 - A LUIS application structure.
        importV2AppOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the String 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
      • importV2AppAsync

        public com.microsoft.rest.ServiceFuture<String> importV2AppAsync​(UUID appId,
                                                                         LuisAppV2 luisAppV2,
                                                                         ImportV2AppVersionsOptionalParameter importV2AppOptionalParameter,
                                                                         com.microsoft.rest.ServiceCallback<String> serviceCallback)
        Imports a new version into a LUIS application.
        Parameters:
        appId - The application ID.
        luisAppV2 - A LUIS application structure.
        importV2AppOptionalParameter - 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
      • importV2AppAsync

        public rx.Observable<String> importV2AppAsync​(UUID appId,
                                                      LuisAppV2 luisAppV2,
                                                      ImportV2AppVersionsOptionalParameter importV2AppOptionalParameter)
        Imports a new version into a LUIS application.
        Specified by:
        importV2AppAsync in interface Versions
        Parameters:
        appId - The application ID.
        luisAppV2 - A LUIS application structure.
        importV2AppOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the String object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • importV2AppWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<String>> importV2AppWithServiceResponseAsync​(UUID appId,
                                                                                                             LuisAppV2 luisAppV2,
                                                                                                             ImportV2AppVersionsOptionalParameter importV2AppOptionalParameter)
        Imports a new version into a LUIS application.
        Parameters:
        appId - The application ID.
        luisAppV2 - A LUIS application structure.
        importV2AppOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the String object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • importV2AppWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<String>> importV2AppWithServiceResponseAsync​(UUID appId,
                                                                                                             LuisAppV2 luisAppV2,
                                                                                                             String versionId)
        Imports a new version into a LUIS application.
        Parameters:
        appId - The application ID.
        luisAppV2 - A LUIS application structure.
        versionId - The new versionId to import. If not specified, the versionId will be read from the imported object.
        Returns:
        the observable to the String object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • importV2App

        public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.VersionsImpl.VersionsImportV2AppParameters importV2App()
        Description copied from interface: Versions
        Imports a new version into a LUIS application.
        Specified by:
        importV2App in interface Versions
        Returns:
        the first stage of the importV2App call
      • importLuFormat

        public String importLuFormat​(UUID appId,
                                     String luisAppLu,
                                     ImportLuFormatVersionsOptionalParameter importLuFormatOptionalParameter)
        Imports a new version into a LUIS application.
        Specified by:
        importLuFormat in interface Versions
        Parameters:
        appId - The application ID.
        luisAppLu - An LU representing the LUIS application structure.
        importLuFormatOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the String 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
      • importLuFormatAsync

        public com.microsoft.rest.ServiceFuture<String> importLuFormatAsync​(UUID appId,
                                                                            String luisAppLu,
                                                                            ImportLuFormatVersionsOptionalParameter importLuFormatOptionalParameter,
                                                                            com.microsoft.rest.ServiceCallback<String> serviceCallback)
        Imports a new version into a LUIS application.
        Parameters:
        appId - The application ID.
        luisAppLu - An LU representing the LUIS application structure.
        importLuFormatOptionalParameter - 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
      • importLuFormatAsync

        public rx.Observable<String> importLuFormatAsync​(UUID appId,
                                                         String luisAppLu,
                                                         ImportLuFormatVersionsOptionalParameter importLuFormatOptionalParameter)
        Imports a new version into a LUIS application.
        Specified by:
        importLuFormatAsync in interface Versions
        Parameters:
        appId - The application ID.
        luisAppLu - An LU representing the LUIS application structure.
        importLuFormatOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the String object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • importLuFormatWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<String>> importLuFormatWithServiceResponseAsync​(UUID appId,
                                                                                                                String luisAppLu,
                                                                                                                ImportLuFormatVersionsOptionalParameter importLuFormatOptionalParameter)
        Imports a new version into a LUIS application.
        Parameters:
        appId - The application ID.
        luisAppLu - An LU representing the LUIS application structure.
        importLuFormatOptionalParameter - the object representing the optional parameters to be set before calling this API
        Returns:
        the observable to the String object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • importLuFormatWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<String>> importLuFormatWithServiceResponseAsync​(UUID appId,
                                                                                                                String luisAppLu,
                                                                                                                String versionId)
        Imports a new version into a LUIS application.
        Parameters:
        appId - The application ID.
        luisAppLu - An LU representing the LUIS application structure.
        versionId - The new versionId to import. If not specified, the versionId will be read from the imported object.
        Returns:
        the observable to the String object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • importLuFormat

        public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.VersionsImpl.VersionsImportLuFormatParameters importLuFormat()
        Description copied from interface: Versions
        Imports a new version into a LUIS application.
        Specified by:
        importLuFormat in interface Versions
        Returns:
        the first stage of the importLuFormat call
      • exportLuFormat

        public InputStream exportLuFormat​(UUID appId,
                                          String versionId)
        Exports a LUIS application to text format.
        Specified by:
        exportLuFormat in interface Versions
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        Returns:
        the InputStream object if successful.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
        com.microsoft.azure.CloudException - thrown if the request is rejected by server
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent
      • exportLuFormatAsync

        public com.microsoft.rest.ServiceFuture<InputStream> exportLuFormatAsync​(UUID appId,
                                                                                 String versionId,
                                                                                 com.microsoft.rest.ServiceCallback<InputStream> serviceCallback)
        Exports a LUIS application to text format.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        serviceCallback - the async ServiceCallback to handle successful and failed responses.
        Returns:
        the ServiceFuture object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • exportLuFormatAsync

        public rx.Observable<InputStream> exportLuFormatAsync​(UUID appId,
                                                              String versionId)
        Exports a LUIS application to text format.
        Specified by:
        exportLuFormatAsync in interface Versions
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        Returns:
        the observable to the InputStream object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation
      • exportLuFormatWithServiceResponseAsync

        public rx.Observable<com.microsoft.rest.ServiceResponse<InputStream>> exportLuFormatWithServiceResponseAsync​(UUID appId,
                                                                                                                     String versionId)
        Exports a LUIS application to text format.
        Parameters:
        appId - The application ID.
        versionId - The version ID.
        Returns:
        the observable to the InputStream object
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation