Class VersionsImpl
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.VersionsImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microsoft.azure.cognitiveservices.language.luis.authoring.Versions
Versions.VersionsCloneDefinition, Versions.VersionsCloneDefinitionStages, Versions.VersionsImportLuFormatDefinition, Versions.VersionsImportLuFormatDefinitionStages, Versions.VersionsImportMethodDefinition, Versions.VersionsImportMethodDefinitionStages, Versions.VersionsImportV2AppDefinition, Versions.VersionsImportV2AppDefinitionStages, Versions.VersionsListDefinition, Versions.VersionsListDefinitionStages, Versions.VersionsUpdateDefinition, Versions.VersionsUpdateDefinitionStages
-
-
Constructor Summary
Constructors Constructor Description VersionsImpl(retrofit2.Retrofit retrofit, LUISAuthoringClientImpl client)
Initializes an instance of VersionsImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.VersionsImpl.VersionsCloneParameters
clone()
Creates a new version from the selected version.String
clone(UUID appId, String versionId, CloneOptionalParameter cloneOptionalParameter)
Creates a new version from the selected version.rx.Observable<String>
cloneAsync(UUID appId, String versionId, CloneOptionalParameter cloneOptionalParameter)
Creates a new version from the selected version.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.rx.Observable<com.microsoft.rest.ServiceResponse<String>>
cloneWithServiceResponseAsync(UUID appId, String versionId, CloneOptionalParameter cloneOptionalParameter)
Creates a new version from the selected version.rx.Observable<com.microsoft.rest.ServiceResponse<String>>
cloneWithServiceResponseAsync(UUID appId, String versionId, String version)
Creates a new version from the selected version.OperationStatus
delete(UUID appId, String versionId)
Deletes an application version.rx.Observable<OperationStatus>
deleteAsync(UUID appId, String versionId)
Deletes an application version.com.microsoft.rest.ServiceFuture<OperationStatus>
deleteAsync(UUID appId, String versionId, com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
Deletes an application version.OperationStatus
deleteUnlabelledUtterance(UUID appId, String versionId, String utterance)
Deleted an unlabelled utterance in a version of the application.rx.Observable<OperationStatus>
deleteUnlabelledUtteranceAsync(UUID appId, String versionId, String utterance)
Deleted an unlabelled utterance in a version of the application.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.rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>>
deleteUnlabelledUtteranceWithServiceResponseAsync(UUID appId, String versionId, String utterance)
Deleted an unlabelled utterance in a version of the application.rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>>
deleteWithServiceResponseAsync(UUID appId, String versionId)
Deletes an application version.LuisApp
export(UUID appId, String versionId)
Exports a LUIS application to JSON format.rx.Observable<LuisApp>
exportAsync(UUID appId, String versionId)
Exports a LUIS application to JSON format.com.microsoft.rest.ServiceFuture<LuisApp>
exportAsync(UUID appId, String versionId, com.microsoft.rest.ServiceCallback<LuisApp> serviceCallback)
Exports a LUIS application to JSON format.InputStream
exportLuFormat(UUID appId, String versionId)
Exports a LUIS application to text format.rx.Observable<InputStream>
exportLuFormatAsync(UUID appId, String versionId)
Exports a LUIS application to text format.com.microsoft.rest.ServiceFuture<InputStream>
exportLuFormatAsync(UUID appId, String versionId, com.microsoft.rest.ServiceCallback<InputStream> serviceCallback)
Exports a LUIS application to text format.rx.Observable<com.microsoft.rest.ServiceResponse<InputStream>>
exportLuFormatWithServiceResponseAsync(UUID appId, String versionId)
Exports a LUIS application to text format.rx.Observable<com.microsoft.rest.ServiceResponse<LuisApp>>
exportWithServiceResponseAsync(UUID appId, String versionId)
Exports a LUIS application to JSON format.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.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.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.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.com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.VersionsImpl.VersionsImportLuFormatParameters
importLuFormat()
Imports a new version into a LUIS application.String
importLuFormat(UUID appId, String luisAppLu, ImportLuFormatVersionsOptionalParameter importLuFormatOptionalParameter)
Imports a new version into a LUIS application.rx.Observable<String>
importLuFormatAsync(UUID appId, String luisAppLu, ImportLuFormatVersionsOptionalParameter importLuFormatOptionalParameter)
Imports a new version into a LUIS application.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.rx.Observable<com.microsoft.rest.ServiceResponse<String>>
importLuFormatWithServiceResponseAsync(UUID appId, String luisAppLu, ImportLuFormatVersionsOptionalParameter importLuFormatOptionalParameter)
Imports a new version into a LUIS application.rx.Observable<com.microsoft.rest.ServiceResponse<String>>
importLuFormatWithServiceResponseAsync(UUID appId, String luisAppLu, String versionId)
Imports a new version into a LUIS application.com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.VersionsImpl.VersionsImportMethodParameters
importMethod()
Imports a new version into a LUIS application.String
importMethod(UUID appId, LuisApp luisApp, ImportMethodVersionsOptionalParameter importMethodOptionalParameter)
Imports a new version into a LUIS application.rx.Observable<String>
importMethodAsync(UUID appId, LuisApp luisApp, ImportMethodVersionsOptionalParameter importMethodOptionalParameter)
Imports a new version into a LUIS application.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.rx.Observable<com.microsoft.rest.ServiceResponse<String>>
importMethodWithServiceResponseAsync(UUID appId, LuisApp luisApp, ImportMethodVersionsOptionalParameter importMethodOptionalParameter)
Imports a new version into a LUIS application.rx.Observable<com.microsoft.rest.ServiceResponse<String>>
importMethodWithServiceResponseAsync(UUID appId, LuisApp luisApp, String versionId)
Imports a new version into a LUIS application.com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.VersionsImpl.VersionsImportV2AppParameters
importV2App()
Imports a new version into a LUIS application.String
importV2App(UUID appId, LuisAppV2 luisAppV2, ImportV2AppVersionsOptionalParameter importV2AppOptionalParameter)
Imports a new version into a LUIS application.rx.Observable<String>
importV2AppAsync(UUID appId, LuisAppV2 luisAppV2, ImportV2AppVersionsOptionalParameter importV2AppOptionalParameter)
Imports a new version into a LUIS application.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.rx.Observable<com.microsoft.rest.ServiceResponse<String>>
importV2AppWithServiceResponseAsync(UUID appId, LuisAppV2 luisAppV2, ImportV2AppVersionsOptionalParameter importV2AppOptionalParameter)
Imports a new version into a LUIS application.rx.Observable<com.microsoft.rest.ServiceResponse<String>>
importV2AppWithServiceResponseAsync(UUID appId, LuisAppV2 luisAppV2, String versionId)
Imports a new version into a LUIS application.com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.VersionsImpl.VersionsListParameters
list()
Gets a list of versions for this application ID.List<VersionInfo>
list(UUID appId, ListVersionsOptionalParameter listOptionalParameter)
Gets a list of versions for this application ID.rx.Observable<List<VersionInfo>>
listAsync(UUID appId, ListVersionsOptionalParameter listOptionalParameter)
Gets a list of versions for this application ID.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.rx.Observable<com.microsoft.rest.ServiceResponse<List<VersionInfo>>>
listWithServiceResponseAsync(UUID appId, ListVersionsOptionalParameter listOptionalParameter)
Gets a list of versions for this application ID.rx.Observable<com.microsoft.rest.ServiceResponse<List<VersionInfo>>>
listWithServiceResponseAsync(UUID appId, Integer skip, Integer take)
Gets a list of versions for this application ID.com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.VersionsImpl.VersionsUpdateParameters
update()
Updates the name or description of the application version.OperationStatus
update(UUID appId, String versionId, UpdateVersionsOptionalParameter updateOptionalParameter)
Updates the name or description of the application version.rx.Observable<OperationStatus>
updateAsync(UUID appId, String versionId, UpdateVersionsOptionalParameter updateOptionalParameter)
Updates the name or description of the application version.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.rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>>
updateWithServiceResponseAsync(UUID appId, String versionId, UpdateVersionsOptionalParameter updateOptionalParameter)
Updates the name or description of the application version.rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>>
updateWithServiceResponseAsync(UUID appId, String versionId, String version)
Updates the name or description of the application version.
-
-
-
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 interfaceVersions
- 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 validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- 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 APIserviceCallback
- 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 interfaceVersions
- 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.
-
list
public List<VersionInfo> list(UUID appId, ListVersionsOptionalParameter listOptionalParameter)
Gets a list of versions for this application ID.- Specified by:
list
in interfaceVersions
- 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 validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- 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 APIserviceCallback
- 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 interfaceVersions
- 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.
-
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 interfaceVersions
- Parameters:
appId
- The application ID.versionId
- The version ID.- Returns:
- the VersionInfo object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
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 interfaceVersions
- 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 interfaceVersions
- 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 validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- 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 APIserviceCallback
- 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 interfaceVersions
- 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.
-
delete
public OperationStatus delete(UUID appId, String versionId)
Deletes an application version.- Specified by:
delete
in interfaceVersions
- Parameters:
appId
- The application ID.versionId
- The version ID.- Returns:
- the OperationStatus object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
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 interfaceVersions
- 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 interfaceVersions
- Parameters:
appId
- The application ID.versionId
- The version ID.- Returns:
- the LuisApp object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- all other wrapped checked exceptions if the request fails to be sent
-
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 interfaceVersions
- 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 interfaceVersions
- 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 validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- 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 APIserviceCallback
- 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 interfaceVersions
- 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 interfaceVersions
- 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 interfaceVersions
- 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 validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- 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 interfaceVersions
- 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 interfaceVersions
- 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 validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- 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 APIserviceCallback
- 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 interfaceVersions
- 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 interfaceVersions
- 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 interfaceVersions
- 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 validationErrorResponseException
- thrown if the request is rejected by serverRuntimeException
- 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 APIserviceCallback
- 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 interfaceVersions
- 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 interfaceVersions
- 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 interfaceVersions
- Parameters:
appId
- The application ID.versionId
- The version ID.- Returns:
- the InputStream object if successful.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validationcom.microsoft.azure.CloudException
- thrown if the request is rejected by serverRuntimeException
- 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 interfaceVersions
- 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
-
-