Class AzureAccountsImpl
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.AzureAccountsImpl
-
- All Implemented Interfaces:
AzureAccounts
public class AzureAccountsImpl extends Object implements AzureAccounts
An instance of this class provides access to all the operations defined in AzureAccounts.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.microsoft.azure.cognitiveservices.language.luis.authoring.AzureAccounts
AzureAccounts.AzureAccountsAssignToAppDefinition, AzureAccounts.AzureAccountsAssignToAppDefinitionStages, AzureAccounts.AzureAccountsGetAssignedDefinition, AzureAccounts.AzureAccountsGetAssignedDefinitionStages, AzureAccounts.AzureAccountsListUserLUISAccountsDefinition, AzureAccounts.AzureAccountsListUserLUISAccountsDefinitionStages, AzureAccounts.AzureAccountsRemoveFromAppDefinition, AzureAccounts.AzureAccountsRemoveFromAppDefinitionStages
-
-
Constructor Summary
Constructors Constructor Description AzureAccountsImpl(retrofit2.Retrofit retrofit, LUISAuthoringClientImpl client)
Initializes an instance of AzureAccountsImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.AzureAccountsImpl.AzureAccountsAssignToAppParameters
assignToApp()
apps - Assign a LUIS Azure account to an application.OperationStatus
assignToApp(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter)
apps - Assign a LUIS Azure account to an application.rx.Observable<OperationStatus>
assignToAppAsync(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter)
apps - Assign a LUIS Azure account to an application.com.microsoft.rest.ServiceFuture<OperationStatus>
assignToAppAsync(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter, com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
apps - Assign a LUIS Azure account to an application.rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>>
assignToAppWithServiceResponseAsync(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter)
apps - Assign a LUIS Azure account to an application.rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>>
assignToAppWithServiceResponseAsync(UUID appId, String armToken, AzureAccountInfoObject azureAccountInfoObject)
apps - Assign a LUIS Azure account to an application.com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.AzureAccountsImpl.AzureAccountsGetAssignedParameters
getAssigned()
apps - Get LUIS Azure accounts assigned to the application.List<AzureAccountInfoObject>
getAssigned(UUID appId, GetAssignedOptionalParameter getAssignedOptionalParameter)
apps - Get LUIS Azure accounts assigned to the application.rx.Observable<List<AzureAccountInfoObject>>
getAssignedAsync(UUID appId, GetAssignedOptionalParameter getAssignedOptionalParameter)
apps - Get LUIS Azure accounts assigned to the application.com.microsoft.rest.ServiceFuture<List<AzureAccountInfoObject>>
getAssignedAsync(UUID appId, GetAssignedOptionalParameter getAssignedOptionalParameter, com.microsoft.rest.ServiceCallback<List<AzureAccountInfoObject>> serviceCallback)
apps - Get LUIS Azure accounts assigned to the application.rx.Observable<com.microsoft.rest.ServiceResponse<List<AzureAccountInfoObject>>>
getAssignedWithServiceResponseAsync(UUID appId, GetAssignedOptionalParameter getAssignedOptionalParameter)
apps - Get LUIS Azure accounts assigned to the application.rx.Observable<com.microsoft.rest.ServiceResponse<List<AzureAccountInfoObject>>>
getAssignedWithServiceResponseAsync(UUID appId, String armToken)
apps - Get LUIS Azure accounts assigned to the application.com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.AzureAccountsImpl.AzureAccountsListUserLUISAccountsParameters
listUserLUISAccounts()
user - Get LUIS Azure accounts.List<AzureAccountInfoObject>
listUserLUISAccounts(ListUserLUISAccountsOptionalParameter listUserLUISAccountsOptionalParameter)
user - Get LUIS Azure accounts.rx.Observable<List<AzureAccountInfoObject>>
listUserLUISAccountsAsync(ListUserLUISAccountsOptionalParameter listUserLUISAccountsOptionalParameter)
user - Get LUIS Azure accounts.com.microsoft.rest.ServiceFuture<List<AzureAccountInfoObject>>
listUserLUISAccountsAsync(ListUserLUISAccountsOptionalParameter listUserLUISAccountsOptionalParameter, com.microsoft.rest.ServiceCallback<List<AzureAccountInfoObject>> serviceCallback)
user - Get LUIS Azure accounts.rx.Observable<com.microsoft.rest.ServiceResponse<List<AzureAccountInfoObject>>>
listUserLUISAccountsWithServiceResponseAsync(ListUserLUISAccountsOptionalParameter listUserLUISAccountsOptionalParameter)
user - Get LUIS Azure accounts.rx.Observable<com.microsoft.rest.ServiceResponse<List<AzureAccountInfoObject>>>
listUserLUISAccountsWithServiceResponseAsync(String armToken)
user - Get LUIS Azure accounts.com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.AzureAccountsImpl.AzureAccountsRemoveFromAppParameters
removeFromApp()
apps - Removes an assigned LUIS Azure account from an application.OperationStatus
removeFromApp(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter)
apps - Removes an assigned LUIS Azure account from an application.rx.Observable<OperationStatus>
removeFromAppAsync(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter)
apps - Removes an assigned LUIS Azure account from an application.com.microsoft.rest.ServiceFuture<OperationStatus>
removeFromAppAsync(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter, com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
apps - Removes an assigned LUIS Azure account from an application.rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>>
removeFromAppWithServiceResponseAsync(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter)
apps - Removes an assigned LUIS Azure account from an application.rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>>
removeFromAppWithServiceResponseAsync(UUID appId, String armToken, AzureAccountInfoObject azureAccountInfoObject)
apps - Removes an assigned LUIS Azure account from an application.
-
-
-
Constructor Detail
-
AzureAccountsImpl
public AzureAccountsImpl(retrofit2.Retrofit retrofit, LUISAuthoringClientImpl client)
Initializes an instance of AzureAccountsImpl.- Parameters:
retrofit
- the Retrofit instance built from a Retrofit Builder.client
- the instance of the service client containing this operation class.
-
-
Method Detail
-
assignToApp
public OperationStatus assignToApp(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter)
apps - Assign a LUIS Azure account to an application. Assigns an Azure account to the application.- Specified by:
assignToApp
in interfaceAzureAccounts
- Parameters:
appId
- The application ID.assignToAppOptionalParameter
- 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
-
assignToAppAsync
public com.microsoft.rest.ServiceFuture<OperationStatus> assignToAppAsync(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter, com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
apps - Assign a LUIS Azure account to an application. Assigns an Azure account to the application.- Parameters:
appId
- The application ID.assignToAppOptionalParameter
- 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
-
assignToAppAsync
public rx.Observable<OperationStatus> assignToAppAsync(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter)
apps - Assign a LUIS Azure account to an application. Assigns an Azure account to the application.- Specified by:
assignToAppAsync
in interfaceAzureAccounts
- Parameters:
appId
- The application ID.assignToAppOptionalParameter
- 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
-
assignToAppWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>> assignToAppWithServiceResponseAsync(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter)
apps - Assign a LUIS Azure account to an application. Assigns an Azure account to the application.- Parameters:
appId
- The application ID.assignToAppOptionalParameter
- 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
-
assignToAppWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>> assignToAppWithServiceResponseAsync(UUID appId, String armToken, AzureAccountInfoObject azureAccountInfoObject)
apps - Assign a LUIS Azure account to an application. Assigns an Azure account to the application.- Parameters:
appId
- The application ID.armToken
- The custom arm token header to use; containing the user's ARM token used to validate azure accounts information.azureAccountInfoObject
- The Azure account information object.- Returns:
- the observable to the OperationStatus object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
assignToApp
public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.AzureAccountsImpl.AzureAccountsAssignToAppParameters assignToApp()
Description copied from interface:AzureAccounts
apps - Assign a LUIS Azure account to an application. Assigns an Azure account to the application.- Specified by:
assignToApp
in interfaceAzureAccounts
- Returns:
- the first stage of the assignToApp call
-
getAssigned
public List<AzureAccountInfoObject> getAssigned(UUID appId, GetAssignedOptionalParameter getAssignedOptionalParameter)
apps - Get LUIS Azure accounts assigned to the application. Gets the LUIS Azure accounts assigned to the application for the user using his ARM token.- Specified by:
getAssigned
in interfaceAzureAccounts
- Parameters:
appId
- The application ID.getAssignedOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the List<AzureAccountInfoObject> 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
-
getAssignedAsync
public com.microsoft.rest.ServiceFuture<List<AzureAccountInfoObject>> getAssignedAsync(UUID appId, GetAssignedOptionalParameter getAssignedOptionalParameter, com.microsoft.rest.ServiceCallback<List<AzureAccountInfoObject>> serviceCallback)
apps - Get LUIS Azure accounts assigned to the application. Gets the LUIS Azure accounts assigned to the application for the user using his ARM token.- Parameters:
appId
- The application ID.getAssignedOptionalParameter
- 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
-
getAssignedAsync
public rx.Observable<List<AzureAccountInfoObject>> getAssignedAsync(UUID appId, GetAssignedOptionalParameter getAssignedOptionalParameter)
apps - Get LUIS Azure accounts assigned to the application. Gets the LUIS Azure accounts assigned to the application for the user using his ARM token.- Specified by:
getAssignedAsync
in interfaceAzureAccounts
- Parameters:
appId
- The application ID.getAssignedOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the observable to the List<AzureAccountInfoObject> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
getAssignedWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<List<AzureAccountInfoObject>>> getAssignedWithServiceResponseAsync(UUID appId, GetAssignedOptionalParameter getAssignedOptionalParameter)
apps - Get LUIS Azure accounts assigned to the application. Gets the LUIS Azure accounts assigned to the application for the user using his ARM token.- Parameters:
appId
- The application ID.getAssignedOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the observable to the List<AzureAccountInfoObject> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
getAssignedWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<List<AzureAccountInfoObject>>> getAssignedWithServiceResponseAsync(UUID appId, String armToken)
apps - Get LUIS Azure accounts assigned to the application. Gets the LUIS Azure accounts assigned to the application for the user using his ARM token.- Parameters:
appId
- The application ID.armToken
- The custom arm token header to use; containing the user's ARM token used to validate azure accounts information.- Returns:
- the observable to the List<AzureAccountInfoObject> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
getAssigned
public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.AzureAccountsImpl.AzureAccountsGetAssignedParameters getAssigned()
Description copied from interface:AzureAccounts
apps - Get LUIS Azure accounts assigned to the application. Gets the LUIS Azure accounts assigned to the application for the user using his ARM token.- Specified by:
getAssigned
in interfaceAzureAccounts
- Returns:
- the first stage of the getAssigned call
-
removeFromApp
public OperationStatus removeFromApp(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter)
apps - Removes an assigned LUIS Azure account from an application. Removes assigned Azure account from the application.- Specified by:
removeFromApp
in interfaceAzureAccounts
- Parameters:
appId
- The application ID.removeFromAppOptionalParameter
- 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
-
removeFromAppAsync
public com.microsoft.rest.ServiceFuture<OperationStatus> removeFromAppAsync(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter, com.microsoft.rest.ServiceCallback<OperationStatus> serviceCallback)
apps - Removes an assigned LUIS Azure account from an application. Removes assigned Azure account from the application.- Parameters:
appId
- The application ID.removeFromAppOptionalParameter
- 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
-
removeFromAppAsync
public rx.Observable<OperationStatus> removeFromAppAsync(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter)
apps - Removes an assigned LUIS Azure account from an application. Removes assigned Azure account from the application.- Specified by:
removeFromAppAsync
in interfaceAzureAccounts
- Parameters:
appId
- The application ID.removeFromAppOptionalParameter
- 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
-
removeFromAppWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>> removeFromAppWithServiceResponseAsync(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter)
apps - Removes an assigned LUIS Azure account from an application. Removes assigned Azure account from the application.- Parameters:
appId
- The application ID.removeFromAppOptionalParameter
- 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
-
removeFromAppWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<OperationStatus>> removeFromAppWithServiceResponseAsync(UUID appId, String armToken, AzureAccountInfoObject azureAccountInfoObject)
apps - Removes an assigned LUIS Azure account from an application. Removes assigned Azure account from the application.- Parameters:
appId
- The application ID.armToken
- The custom arm token header to use; containing the user's ARM token used to validate azure accounts information.azureAccountInfoObject
- The Azure account information object.- Returns:
- the observable to the OperationStatus object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
removeFromApp
public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.AzureAccountsImpl.AzureAccountsRemoveFromAppParameters removeFromApp()
Description copied from interface:AzureAccounts
apps - Removes an assigned LUIS Azure account from an application. Removes assigned Azure account from the application.- Specified by:
removeFromApp
in interfaceAzureAccounts
- Returns:
- the first stage of the removeFromApp call
-
listUserLUISAccounts
public List<AzureAccountInfoObject> listUserLUISAccounts(ListUserLUISAccountsOptionalParameter listUserLUISAccountsOptionalParameter)
user - Get LUIS Azure accounts. Gets the LUIS Azure accounts for the user using his ARM token.- Specified by:
listUserLUISAccounts
in interfaceAzureAccounts
- Parameters:
listUserLUISAccountsOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the List<AzureAccountInfoObject> 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
-
listUserLUISAccountsAsync
public com.microsoft.rest.ServiceFuture<List<AzureAccountInfoObject>> listUserLUISAccountsAsync(ListUserLUISAccountsOptionalParameter listUserLUISAccountsOptionalParameter, com.microsoft.rest.ServiceCallback<List<AzureAccountInfoObject>> serviceCallback)
user - Get LUIS Azure accounts. Gets the LUIS Azure accounts for the user using his ARM token.- Parameters:
listUserLUISAccountsOptionalParameter
- 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
-
listUserLUISAccountsAsync
public rx.Observable<List<AzureAccountInfoObject>> listUserLUISAccountsAsync(ListUserLUISAccountsOptionalParameter listUserLUISAccountsOptionalParameter)
user - Get LUIS Azure accounts. Gets the LUIS Azure accounts for the user using his ARM token.- Specified by:
listUserLUISAccountsAsync
in interfaceAzureAccounts
- Parameters:
listUserLUISAccountsOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the observable to the List<AzureAccountInfoObject> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listUserLUISAccountsWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<List<AzureAccountInfoObject>>> listUserLUISAccountsWithServiceResponseAsync(ListUserLUISAccountsOptionalParameter listUserLUISAccountsOptionalParameter)
user - Get LUIS Azure accounts. Gets the LUIS Azure accounts for the user using his ARM token.- Parameters:
listUserLUISAccountsOptionalParameter
- the object representing the optional parameters to be set before calling this API- Returns:
- the observable to the List<AzureAccountInfoObject> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listUserLUISAccountsWithServiceResponseAsync
public rx.Observable<com.microsoft.rest.ServiceResponse<List<AzureAccountInfoObject>>> listUserLUISAccountsWithServiceResponseAsync(String armToken)
user - Get LUIS Azure accounts. Gets the LUIS Azure accounts for the user using his ARM token.- Parameters:
armToken
- The custom arm token header to use; containing the user's ARM token used to validate azure accounts information.- Returns:
- the observable to the List<AzureAccountInfoObject> object
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation
-
listUserLUISAccounts
public com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.AzureAccountsImpl.AzureAccountsListUserLUISAccountsParameters listUserLUISAccounts()
Description copied from interface:AzureAccounts
user - Get LUIS Azure accounts. Gets the LUIS Azure accounts for the user using his ARM token.- Specified by:
listUserLUISAccounts
in interfaceAzureAccounts
- Returns:
- the first stage of the listUserLUISAccounts call
-
-