forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
78 changed files
with
7,558 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<!-- | ||
* 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. | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.azure</groupId> | ||
<artifactId>azure-data-sdk-parent</artifactId> | ||
<version>1.3.0</version> <!-- {x-version-update;com.azure:azure-data-sdk-parent;current} --> | ||
<relativePath>../../../pom.data.xml</relativePath> | ||
</parent> | ||
<artifactId>azure-cognitiveservices-qnamaker</artifactId> | ||
<groupId>com.microsoft.azure.cognitiveservices</groupId> | ||
<version>1.0.0-beta</version> <!-- {x-version-update;com.microsoft.azure.cognitiveservices:azure-cognitiveservices-qnamaker;current} --> | ||
<packaging>jar</packaging> | ||
<name>Microsoft Azure SDK for Cognitive Service Computer Vision</name> | ||
<description>This package contains Microsoft Cognitive Service Computer Vision SDK.</description> | ||
<url>https://github.com/Azure/azure-sdk-for-java/cognitiveservices/data-plane/vision/qnamaker</url> | ||
<licenses> | ||
<license> | ||
<name>The MIT License (MIT)</name> | ||
<url>http://opensource.org/licenses/MIT</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal> | ||
</properties> | ||
<developers> | ||
<developer> | ||
<id>microsoft</id> | ||
<name>Microsoft</name> | ||
</developer> | ||
</developers> | ||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>ossrh</id> | ||
<name>Sonatype Snapshots</name> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots/</url> | ||
<uniqueVersion>true</uniqueVersion> | ||
<layout>default</layout> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.microsoft.azure</groupId> | ||
<artifactId>azure-client-runtime</artifactId> | ||
<version>1.7.2</version> <!-- {x-version-update;com.microsoft.azure:azure-client-runtime;external_dependency} --> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<version>3.1.2</version> <!-- {x-version-update;org.apache.maven.plugins:maven-jar-plugin;external_dependency} --> | ||
<configuration> | ||
<archive> | ||
<manifest> | ||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries> | ||
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> | ||
</manifest> | ||
</archive> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>build-helper-maven-plugin</artifactId> | ||
<version>3.0.0</version> <!-- {x-version-update;org.codehaus.mojo:build-helper-maven-plugin;external_dependency} --> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>3.1.1</version> <!-- {x-version-update;org.apache.maven.plugins:maven-javadoc-plugin;external_dependency} --> | ||
<configuration> | ||
<excludePackageNames>*.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search</excludePackageNames> | ||
<bottom> | ||
<![CDATA[<code> | ||
/** | ||
<br />* Copyright (c) Microsoft Corporation. All rights reserved. | ||
<br />* Licensed under the MIT License. See License.txt in the project root for | ||
<br />* license information. | ||
<br />*/ | ||
</code>]]> | ||
</bottom> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
64 changes: 64 additions & 0 deletions
64
...r/src/main/java/com/microsoft/azure/cognitiveservices/knowledge/qnamaker/Alterations.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/** | ||
* 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.knowledge.qnamaker; | ||
|
||
import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.AlterationsDTO; | ||
import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.ErrorResponseException; | ||
import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.WordAlterationsDTO; | ||
import java.io.IOException; | ||
import java.util.List; | ||
import rx.Observable; | ||
|
||
/** | ||
* An instance of this class provides access to all the operations defined | ||
* in Alterations. | ||
*/ | ||
public interface Alterations { | ||
|
||
/** | ||
* Download alterations from runtime. | ||
* | ||
* @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 WordAlterationsDTO object if successful. | ||
*/ | ||
WordAlterationsDTO get(); | ||
|
||
/** | ||
* Download alterations from runtime. | ||
* | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable to the WordAlterationsDTO object | ||
*/ | ||
Observable<WordAlterationsDTO> getAsync(); | ||
|
||
|
||
|
||
/** | ||
* Replace alterations data. | ||
* | ||
* @param wordAlterations Collection of word alterations. | ||
* @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 | ||
*/ | ||
void replace(List<AlterationsDTO> wordAlterations); | ||
|
||
/** | ||
* Replace alterations data. | ||
* | ||
* @param wordAlterations Collection of word alterations. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return a representation of the deferred computation of this call if successful. | ||
*/ | ||
Observable<Void> replaceAsync(List<AlterationsDTO> wordAlterations); | ||
|
||
|
||
} |
63 changes: 63 additions & 0 deletions
63
.../src/main/java/com/microsoft/azure/cognitiveservices/knowledge/qnamaker/EndpointKeys.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/** | ||
* 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.knowledge.qnamaker; | ||
|
||
import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.EndpointKeysDTO; | ||
import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.ErrorResponseException; | ||
import java.io.IOException; | ||
import rx.Observable; | ||
|
||
/** | ||
* An instance of this class provides access to all the operations defined | ||
* in EndpointKeys. | ||
*/ | ||
public interface EndpointKeys { | ||
|
||
/** | ||
* Gets endpoint keys for an endpoint. | ||
* | ||
* @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 EndpointKeysDTO object if successful. | ||
*/ | ||
EndpointKeysDTO getKeys(); | ||
|
||
/** | ||
* Gets endpoint keys for an endpoint. | ||
* | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable to the EndpointKeysDTO object | ||
*/ | ||
Observable<EndpointKeysDTO> getKeysAsync(); | ||
|
||
|
||
|
||
/** | ||
* Re-generates an endpoint key. | ||
* | ||
* @param keyType Type of Key. | ||
* @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 EndpointKeysDTO object if successful. | ||
*/ | ||
EndpointKeysDTO refreshKeys(String keyType); | ||
|
||
/** | ||
* Re-generates an endpoint key. | ||
* | ||
* @param keyType Type of Key. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable to the EndpointKeysDTO object | ||
*/ | ||
Observable<EndpointKeysDTO> refreshKeysAsync(String keyType); | ||
|
||
|
||
} |
115 changes: 115 additions & 0 deletions
115
.../main/java/com/microsoft/azure/cognitiveservices/knowledge/qnamaker/EndpointSettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
/** | ||
* 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.knowledge.qnamaker; | ||
|
||
import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.UpdateSettingsOptionalParameter; | ||
import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.EndpointSettingsDTO; | ||
import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.EndpointSettingsDTOActiveLearning; | ||
import com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.ErrorResponseException; | ||
import java.io.IOException; | ||
import rx.Observable; | ||
|
||
/** | ||
* An instance of this class provides access to all the operations defined | ||
* in EndpointSettings. | ||
*/ | ||
public interface EndpointSettings { | ||
|
||
/** | ||
* Gets endpoint settings for an endpoint. | ||
* | ||
* @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 EndpointSettingsDTO object if successful. | ||
*/ | ||
EndpointSettingsDTO getSettings(); | ||
|
||
/** | ||
* Gets endpoint settings for an endpoint. | ||
* | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable to the EndpointSettingsDTO object | ||
*/ | ||
Observable<EndpointSettingsDTO> getSettingsAsync(); | ||
|
||
|
||
/** | ||
* Updates endpoint settings for an endpoint. | ||
* | ||
* @param updateSettingsOptionalParameter 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 String object if successful. | ||
*/ | ||
String updateSettings(UpdateSettingsOptionalParameter updateSettingsOptionalParameter); | ||
|
||
/** | ||
* Updates endpoint settings for an endpoint. | ||
* | ||
* @param updateSettingsOptionalParameter 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 String object | ||
*/ | ||
Observable<String> updateSettingsAsync(UpdateSettingsOptionalParameter updateSettingsOptionalParameter); | ||
|
||
/** | ||
* Updates endpoint settings for an endpoint. | ||
* | ||
* @return the first stage of the updateSettings call | ||
*/ | ||
EndpointSettingsUpdateSettingsDefinitionStages.WithExecute updateSettings(); | ||
|
||
/** | ||
* Grouping of updateSettings definition stages. | ||
*/ | ||
interface EndpointSettingsUpdateSettingsDefinitionStages { | ||
|
||
/** | ||
* The stage of the definition which allows for any other optional settings to be specified. | ||
*/ | ||
interface WithAllOptions { | ||
/** | ||
* Active Learning settings of the endpoint. | ||
* | ||
* @return next definition stage | ||
*/ | ||
EndpointSettingsUpdateSettingsDefinitionStages.WithExecute withActiveLearning(EndpointSettingsDTOActiveLearning activeLearning); | ||
|
||
} | ||
|
||
/** | ||
* The last stage of the definition which will make the operation call. | ||
*/ | ||
interface WithExecute extends EndpointSettingsUpdateSettingsDefinitionStages.WithAllOptions { | ||
/** | ||
* Execute the request. | ||
* | ||
* @return the String object if successful. | ||
*/ | ||
String execute(); | ||
|
||
/** | ||
* Execute the request asynchronously. | ||
* | ||
* @return the observable to the String object | ||
*/ | ||
Observable<String> executeAsync(); | ||
} | ||
} | ||
|
||
/** | ||
* The entirety of updateSettings definition. | ||
*/ | ||
interface EndpointSettingsUpdateSettingsDefinition extends | ||
EndpointSettingsUpdateSettingsDefinitionStages.WithExecute { | ||
} | ||
|
||
} |
Oops, something went wrong.