Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/versioning/version_data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ com.microsoft.azure:azure-applicationinsights-query;1.0.0-beta-2;1.0.0-beta-2
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-spellcheck;1.1.0-beta.1;1.1.0-beta.1
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-textanalytics;1.1.0-beta.1;1.1.0-beta.1
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-luis-runtime;1.1.0-beta.1;1.1.0-beta.1
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-luis-authoring;1.1.0-beta.1;1.1.0-beta.1
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-luis-authoring;1.0.4-beta;1.0.4-beta1
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-autosuggest;1.1.0-beta.1;1.1.0-beta.1
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-customimagesearch;1.1.0-beta.1;1.1.0-beta.1
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-customsearch;1.1.0-beta.1;1.1.0-beta.1
Expand Down
2 changes: 1 addition & 1 deletion sdk/cognitiveservices/ms-azure-cs-luis-authoring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</parent>
<artifactId>azure-cognitiveservices-luis-authoring</artifactId>
<groupId>com.microsoft.azure.cognitiveservices</groupId>
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.microsoft.azure.cognitiveservices:azure-cognitiveservices-luis-authoring;current} -->
<version>1.0.3-beta</version> <!-- {x-version-update;com.microsoft.azure.cognitiveservices:azure-cognitiveservices-luis-authoring;current} -->
<packaging>jar</packaging>
<name>Microsoft Azure SDK for Cognitive Service Language Understanding (LUIS)</name>
<description>This package contains Microsoft Cognitive Service Language Understanding (LUIS).</description>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.cognitiveservices.language.luis.authoring;

import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AssignToAppOptionalParameter;
import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.RemoveFromAppOptionalParameter;
import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AzureAccountInfoObject;
import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ErrorResponseException;
import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationStatus;
import java.io.IOException;
import java.util.List;
import java.util.UUID;
import rx.Observable;

/**
* An instance of this class provides access to all the operations defined
* in AzureAccounts.
*/
public interface AzureAccounts {
/**
* apps - Assign a LUIS Azure account to an application.
* Assigns an Azure account to the application.
*
* @param appId The application ID.
* @param assignToAppOptionalParameter the object representing the optional parameters to be set before calling this API
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the OperationStatus object if successful.
*/
OperationStatus assignToApp(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter);

/**
* apps - Assign a LUIS Azure account to an application.
* Assigns an Azure account to the application.
*
* @param appId The application ID.
* @param assignToAppOptionalParameter the object representing the optional parameters to be set before calling this API
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the OperationStatus object
*/
Observable<OperationStatus> assignToAppAsync(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter);

/**
* apps - Assign a LUIS Azure account to an application.
* Assigns an Azure account to the application.
*
* @return the first stage of the assignToApp call
*/
AzureAccountsAssignToAppDefinitionStages.WithAppId assignToApp();

/**
* Grouping of assignToApp definition stages.
*/
interface AzureAccountsAssignToAppDefinitionStages {
/**
* The stage of the definition to be specify appId.
*/
interface WithAppId {
/**
* The application ID.
*
* @return next definition stage
*/
AzureAccountsAssignToAppDefinitionStages.WithExecute withAppId(UUID appId);
}

/**
* The stage of the definition which allows for any other optional settings to be specified.
*/
interface WithAllOptions {
/**
* The Azure account information object.
*
* @return next definition stage
*/
AzureAccountsAssignToAppDefinitionStages.WithExecute withAzureAccountInfoObject(AzureAccountInfoObject azureAccountInfoObject);

}

/**
* The last stage of the definition which will make the operation call.
*/
interface WithExecute extends AzureAccountsAssignToAppDefinitionStages.WithAllOptions {
/**
* Execute the request.
*
* @return the OperationStatus object if successful.
*/
OperationStatus execute();

/**
* Execute the request asynchronously.
*
* @return the observable to the OperationStatus object
*/
Observable<OperationStatus> executeAsync();
}
}

/**
* The entirety of assignToApp definition.
*/
interface AzureAccountsAssignToAppDefinition extends
AzureAccountsAssignToAppDefinitionStages.WithAppId,
AzureAccountsAssignToAppDefinitionStages.WithExecute {
}


/**
* 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.
*
* @param appId The application ID.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the List&lt;AzureAccountInfoObject&gt; object if successful.
*/
List<AzureAccountInfoObject> getAssigned(UUID appId);

/**
* 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.
*
* @param appId The application ID.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the List&lt;AzureAccountInfoObject&gt; object
*/
Observable<List<AzureAccountInfoObject>> getAssignedAsync(UUID appId);


/**
* apps - Removes an assigned LUIS Azure account from an application.
* Removes assigned Azure account from the application.
*
* @param appId The application ID.
* @param removeFromAppOptionalParameter the object representing the optional parameters to be set before calling this API
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the OperationStatus object if successful.
*/
OperationStatus removeFromApp(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter);

/**
* apps - Removes an assigned LUIS Azure account from an application.
* Removes assigned Azure account from the application.
*
* @param appId The application ID.
* @param removeFromAppOptionalParameter the object representing the optional parameters to be set before calling this API
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the OperationStatus object
*/
Observable<OperationStatus> removeFromAppAsync(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter);

/**
* apps - Removes an assigned LUIS Azure account from an application.
* Removes assigned Azure account from the application.
*
* @return the first stage of the removeFromApp call
*/
AzureAccountsRemoveFromAppDefinitionStages.WithAppId removeFromApp();

/**
* Grouping of removeFromApp definition stages.
*/
interface AzureAccountsRemoveFromAppDefinitionStages {
/**
* The stage of the definition to be specify appId.
*/
interface WithAppId {
/**
* The application ID.
*
* @return next definition stage
*/
AzureAccountsRemoveFromAppDefinitionStages.WithExecute withAppId(UUID appId);
}

/**
* The stage of the definition which allows for any other optional settings to be specified.
*/
interface WithAllOptions {
/**
* The Azure account information object.
*
* @return next definition stage
*/
AzureAccountsRemoveFromAppDefinitionStages.WithExecute withAzureAccountInfoObject(AzureAccountInfoObject azureAccountInfoObject);

}

/**
* The last stage of the definition which will make the operation call.
*/
interface WithExecute extends AzureAccountsRemoveFromAppDefinitionStages.WithAllOptions {
/**
* Execute the request.
*
* @return the OperationStatus object if successful.
*/
OperationStatus execute();

/**
* Execute the request asynchronously.
*
* @return the observable to the OperationStatus object
*/
Observable<OperationStatus> executeAsync();
}
}

/**
* The entirety of removeFromApp definition.
*/
interface AzureAccountsRemoveFromAppDefinition extends
AzureAccountsRemoveFromAppDefinitionStages.WithAppId,
AzureAccountsRemoveFromAppDefinitionStages.WithExecute {
}


/**
* user - Get LUIS Azure accounts.
* Gets the LUIS Azure accounts for the user using his ARM token.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the List&lt;AzureAccountInfoObject&gt; object if successful.
*/
List<AzureAccountInfoObject> listUserLUISAccounts();

/**
* user - Get LUIS Azure accounts.
* Gets the LUIS Azure accounts for the user using his ARM token.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the List&lt;AzureAccountInfoObject&gt; object
*/
Observable<List<AzureAccountInfoObject>> listUserLUISAccountsAsync();


}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.LabeledUtterance;
import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.LabelExampleResponse;
import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationStatus;
import java.io.IOException;
import java.util.List;
import java.util.UUID;
import rx.Observable;
Expand All @@ -26,11 +27,11 @@
public interface Examples {

/**
* Adds a labeled example to the application.
* Adds a labeled example utterance in a version of the application.
*
* @param appId The application ID.
* @param versionId The version ID.
* @param exampleLabelObject An example label with the expected intent and entities.
* @param exampleLabelObject A labeled example utterance with the expected intent and entities.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
Expand All @@ -39,11 +40,11 @@ public interface Examples {
LabelExampleResponse add(UUID appId, String versionId, ExampleLabelObject exampleLabelObject);

/**
* Adds a labeled example to the application.
* Adds a labeled example utterance in a version of the application.
*
* @param appId The application ID.
* @param versionId The version ID.
* @param exampleLabelObject An example label with the expected intent and entities.
* @param exampleLabelObject A labeled example utterance with the expected intent and entities.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the LabelExampleResponse object
*/
Expand All @@ -52,11 +53,11 @@ public interface Examples {


/**
* Adds a batch of labeled examples to the application.
* Adds a batch of labeled example utterances to a version of the application.
*
* @param appId The application ID.
* @param versionId The version ID.
* @param exampleLabelObjectArray Array of examples.
* @param exampleLabelObjectArray Array of example utterances.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws ErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
Expand All @@ -65,19 +66,19 @@ public interface Examples {
List<BatchLabelExample> batch(UUID appId, String versionId, List<ExampleLabelObject> exampleLabelObjectArray);

/**
* Adds a batch of labeled examples to the application.
* Adds a batch of labeled example utterances to a version of the application.
*
* @param appId The application ID.
* @param versionId The version ID.
* @param exampleLabelObjectArray Array of examples.
* @param exampleLabelObjectArray Array of example utterances.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the List&lt;BatchLabelExample&gt; object
*/
Observable<List<BatchLabelExample>> batchAsync(UUID appId, String versionId, List<ExampleLabelObject> exampleLabelObjectArray);


/**
* Returns examples to be reviewed.
* Returns example utterances to be reviewed from a version of the application.
*
* @param appId The application ID.
* @param versionId The version ID.
Expand All @@ -87,23 +88,21 @@ public interface Examples {
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the List&lt;LabeledUtterance&gt; object if successful.
*/
@Deprecated
List<LabeledUtterance> list(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter);

/**
* Returns examples to be reviewed.
* Returns example utterances to be reviewed from a version of the application.
*
* @param appId The application ID.
* @param versionId The version ID.
* @param listOptionalParameter the object representing the optional parameters to be set before calling this API
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the List&lt;LabeledUtterance&gt; object
*/
@Deprecated
Observable<List<LabeledUtterance>> listAsync(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter);

/**
* Returns examples to be reviewed.
* Returns example utterances to be reviewed from a version of the application.
*
* @return the first stage of the list call
*/
Expand Down Expand Up @@ -187,7 +186,7 @@ interface ExamplesListDefinition extends


/**
* Deletes the labeled example with the specified ID.
* Deletes the labeled example utterances with the specified ID from a version of the application.
*
* @param appId The application ID.
* @param versionId The version ID.
Expand All @@ -200,7 +199,7 @@ interface ExamplesListDefinition extends
OperationStatus delete(UUID appId, String versionId, int exampleId);

/**
* Deletes the labeled example with the specified ID.
* Deletes the labeled example utterances with the specified ID from a version of the application.
*
* @param appId The application ID.
* @param versionId The version ID.
Expand Down
Loading