Interface Versions

  • All Known Implementing Classes:
    VersionsImpl

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

      • clone

        String clone​(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 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

        rx.Observable<String> cloneAsync​(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
      • list

        List<VersionInfo> list​(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 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

        rx.Observable<List<VersionInfo>> listAsync​(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
      • get

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

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

        OperationStatus update​(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 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

        rx.Observable<OperationStatus> updateAsync​(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
      • delete

        OperationStatus delete​(UUID appId,
                               String versionId)
        Deletes an application version.
        Parameters:
        appId - The application ID.
        versionId - The version 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
      • deleteAsync

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

        LuisApp export​(UUID appId,
                       String versionId)
        Exports a LUIS application to JSON format.
        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

        rx.Observable<LuisApp> exportAsync​(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

        String importMethod​(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 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

        rx.Observable<String> importMethodAsync​(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
      • deleteUnlabelledUtterance

        OperationStatus deleteUnlabelledUtterance​(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 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

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

        String importV2App​(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 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

        rx.Observable<String> importV2AppAsync​(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
      • importLuFormat

        String importLuFormat​(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 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

        rx.Observable<String> importLuFormatAsync​(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
      • exportLuFormat

        InputStream exportLuFormat​(UUID appId,
                                   String versionId)
        Exports a LUIS application to text format.
        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

        rx.Observable<InputStream> exportLuFormatAsync​(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