Class 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.
    • 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 interface AzureAccounts
        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 validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - 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 API
        serviceCallback - 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 interface AzureAccounts
        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 interface AzureAccounts
        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 interface AzureAccounts
        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 validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - 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 API
        serviceCallback - 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 interface AzureAccounts
        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 interface AzureAccounts
        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 interface AzureAccounts
        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 validation
        ErrorResponseException - thrown if the request is rejected by server
        RuntimeException - 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 API
        serviceCallback - 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 interface AzureAccounts
        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 interface AzureAccounts
        Returns:
        the first stage of the removeFromApp call
      • 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 API
        serviceCallback - 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 interface AzureAccounts
        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 interface AzureAccounts
        Returns:
        the first stage of the listUserLUISAccounts call