Skip to content

Commit

Permalink
Generate QnAMaker (#9137)
Browse files Browse the repository at this point in the history
* Generate QnAMaker

* Fix doc error
  • Loading branch information
jianghaolu authored Mar 18, 2020
1 parent cf7335b commit aa9a879
Show file tree
Hide file tree
Showing 78 changed files with 7,558 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eng/.docsettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ known_presence_issues:
- ['sdk/cognitiveservices/ms-azure-cs-luis-authoring', '#2847']
- ['sdk/cognitiveservices/ms-azure-cs-luis-runtime', '#2847']
- ['sdk/cognitiveservices/ms-azure-cs-newssearch', '#2847']
- ['sdk/cognitiveservices/ms-azure-cs-qnamaker', '#2847']
- ['sdk/cognitiveservices/ms-azure-cs-spellcheck', '#2847']
- ['sdk/cognitiveservices/ms-azure-cs-textanalytics', '#2847']
- ['sdk/cognitiveservices/ms-azure-cs-videosearch', '#2847']
Expand Down Expand Up @@ -76,6 +77,7 @@ known_presence_issues:
- ['sdk/cognitiveservices/ms-azure-cs-luis-authoring/CHANGELOG.md', '#2847']
- ['sdk/cognitiveservices/ms-azure-cs-luis-runtime/CHANGELOG.md', '#2847']
- ['sdk/cognitiveservices/ms-azure-cs-newssearch/CHANGELOG.md', '#2847']
- ['sdk/cognitiveservices/ms-azure-cs-qnamaker/CHANGELOG.md', '#2847']
- ['sdk/cognitiveservices/ms-azure-cs-spellcheck/CHANGELOG.md', '#2847']
- ['sdk/cognitiveservices/ms-azure-cs-textanalytics/CHANGELOG.md', '#2847']
- ['sdk/cognitiveservices/ms-azure-cs-videosearch/CHANGELOG.md', '#2847']
Expand Down
1 change: 1 addition & 0 deletions eng/versioning/version_data.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ com.microsoft.azure.cognitiveservices:azure-cognitiveservices-contentmoderator;1
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-customvision-prediction;1.1.0-beta.3;1.1.0-beta.3
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-customvision-training;1.1.0-beta.3;1.1.0-beta.3
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-faceapi;1.1.0-beta.1;1.1.0-beta.1
com.microsoft.azure.cognitiveservices:azure-cognitiveservices-qnamaker;1.0.0-beta;1.0.0-beta
# azure-cosmos-parent doesn't have a dependency management section anymore, it doesn't need to change unless parent pom changes
com.microsoft.azure:azure-cosmos-parent;3.5.0;3.5.0
com.microsoft.azure:azure-cosmos;3.7.0;3.8.0-beta.1
Expand Down
95 changes: 95 additions & 0 deletions sdk/cognitiveservices/ms-azure-cs-qnamaker/pom.xml
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>
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);


}
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);


}
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 {
}

}
Loading

0 comments on commit aa9a879

Please sign in to comment.