Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR mgmt-v2016_02_01_preview] add cognitiveservice track2 config #6500

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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
16 changes: 9 additions & 7 deletions sdk/cognitiveservices/mgmt-v2016_02_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
-->
<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>
<groupId>com.microsoft.azure.azure-mgmt-cognitiveservices-2016-02-01-preview</groupId>
<groupId>com.microsoft.azure.cognitiveservices.v2016_02_01_preview</groupId>
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-cognitiveservices</artifactId>
<version>1.0.0-beta-SNAPSHOT</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for CognitiveServices Management</name>
<description>This package contains Microsoft CognitiveServices Management SDK.</description>
<url>https://github.com/Azure/azure-libraries-for-java</url>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
Expand All @@ -28,8 +28,8 @@
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/Azure/azure-libraries-for-java</url>
<connection>scm:git:[email protected]:Azure/azure-libraries-for-java.git</connection>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>
<properties>
Expand Down Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.Resource;
import com.microsoft.azure.arm.resources.models.GroupableResourceCore;
import com.microsoft.azure.arm.resources.models.HasResourceGroup;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.GroupableResourceCore;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.cognitiveservices.v2016_02_01_preview.implementation.CognitiveServicesManager;
import java.util.Map;
import com.microsoft.azure.management.cognitiveservices.v2016_02_01_preview.implementation.CognitiveServicesAccountInner;

/**
Expand Down Expand Up @@ -77,7 +78,9 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<Wit
interface WithKind {
/**
* Specifies kind.
*/
* @param kind Required. Indicates the type of cognitive service account. Possible values include: 'Academic', 'Bing.Autosuggest', 'Bing.Search', 'Bing.Speech', 'Bing.SpellCheck', 'ComputerVision', 'ContentModerator', 'Emotion', 'Face', 'LUIS', 'Recommendations', 'SpeakerRecognition', 'Speech', 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM'
* @return the next definition stage
*/
WithProperties withKind(Kind kind);
}

Expand All @@ -87,7 +90,9 @@ interface WithKind {
interface WithProperties {
/**
* Specifies properties.
*/
* @param properties Must exist in the request. Must not be null
* @return the next definition stage
*/
WithSku withProperties(Object properties);
}

Expand All @@ -97,7 +102,9 @@ interface WithProperties {
interface WithSku {
/**
* Specifies sku.
*/
* @param sku the sku parameter value
* @return the next definition stage
*/
WithCreate withSku(Sku sku);
}

Expand All @@ -112,12 +119,36 @@ interface WithCreate extends Creatable<CognitiveServicesAccount>, Resource.Defin
/**
* The template for a CognitiveServicesAccount update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<CognitiveServicesAccount>, Resource.UpdateWithTags<Update> {
interface Update extends Appliable<CognitiveServicesAccount>, Resource.UpdateWithTags<Update>, UpdateStages.WithSku, UpdateStages.WithTags {
}

/**
* Grouping of CognitiveServicesAccount update stages.
*/
interface UpdateStages {
/**
* The stage of the cognitiveservicesaccount update allowing to specify Sku.
*/
interface WithSku {
/**
* Specifies sku.
* @param sku the sku parameter value
* @return the next update stage
*/
Update withSku(Sku sku);
}

/**
* The stage of the cognitiveservicesaccount update allowing to specify Tags.
*/
interface WithTags {
/**
* Specifies tags.
* @param tags Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters
* @return the next update stage
*/
Update withTags(Map<String, String> tags);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public CognitiveServicesAccountCreateParameters withSku(Sku sku) {
}

/**
* Get the kind value.
* Get required. Indicates the type of cognitive service account. Possible values include: 'Academic', 'Bing.Autosuggest', 'Bing.Search', 'Bing.Speech', 'Bing.SpellCheck', 'ComputerVision', 'ContentModerator', 'Emotion', 'Face', 'LUIS', 'Recommendations', 'SpeakerRecognition', 'Speech', 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM'.
*
* @return the kind value
*/
Expand All @@ -88,7 +88,7 @@ public Kind kind() {
}

/**
* Set the kind value.
* Set required. Indicates the type of cognitive service account. Possible values include: 'Academic', 'Bing.Autosuggest', 'Bing.Search', 'Bing.Speech', 'Bing.SpellCheck', 'ComputerVision', 'ContentModerator', 'Emotion', 'Face', 'LUIS', 'Recommendations', 'SpeakerRecognition', 'Speech', 'SpeechTranslation', 'TextAnalytics', 'TextTranslation', 'WebLM'.
*
* @param kind the kind value to set
* @return the CognitiveServicesAccountCreateParameters object itself.
Expand All @@ -99,7 +99,7 @@ public CognitiveServicesAccountCreateParameters withKind(Kind kind) {
}

/**
* Get the location value.
* Get required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update the request will succeed.
*
* @return the location value
*/
Expand All @@ -108,7 +108,7 @@ public String location() {
}

/**
* Set the location value.
* Set required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update the request will succeed.
*
* @param location the location value to set
* @return the CognitiveServicesAccountCreateParameters object itself.
Expand All @@ -119,7 +119,7 @@ public CognitiveServicesAccountCreateParameters withLocation(String location) {
}

/**
* Get the tags value.
* Get gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters.
*
* @return the tags value
*/
Expand All @@ -128,7 +128,7 @@ public Map<String, String> tags() {
}

/**
* Set the tags value.
* Set gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters.
*
* @param tags the tags value to set
* @return the CognitiveServicesAccountCreateParameters object itself.
Expand All @@ -139,7 +139,7 @@ public CognitiveServicesAccountCreateParameters withTags(Map<String, String> tag
}

/**
* Get the properties value.
* Get must exist in the request. Must not be null.
*
* @return the properties value
*/
Expand All @@ -148,7 +148,7 @@ public Object properties() {
}

/**
* Set the properties value.
* Set must exist in the request. Must not be null.
*
* @param properties the properties value to set
* @return the CognitiveServicesAccountCreateParameters object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public CognitiveServicesAccountUpdateParameters withSku(Sku sku) {
}

/**
* Get the tags value.
* Get gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters.
*
* @return the tags value
*/
Expand All @@ -61,7 +61,7 @@ public Map<String, String> tags() {
}

/**
* Set the tags value.
* Set gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters.
*
* @param tags the tags value to set
* @return the CognitiveServicesAccountUpdateParameters object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
* Type representing CognitiveServicesAccounts.
*/
public interface CognitiveServicesAccounts {
/**
* Begins definition for a new Account resource.
* @param name resource name.
* @return the first stage of the new Account definition.
*/
CognitiveServicesAccount.DefinitionStages.Blank defineAccount(String name);

/**
Expand Down Expand Up @@ -59,7 +64,7 @@ public interface CognitiveServicesAccounts {
* Lists the account keys for the specified Cognitive Services account.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param accountName The name of the cognitive services account within the specified resource group. Congitive Services account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @param accountName The name of the cognitive services account within the specified resource group. Cognitive Services account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class CognitiveServicesResourceAndSku {
private Sku sku;

/**
* Get the resourceType value.
* Get resource Namespace and Type.
*
* @return the resourceType value
*/
Expand All @@ -36,7 +36,7 @@ public String resourceType() {
}

/**
* Set the resourceType value.
* Set resource Namespace and Type.
*
* @param resourceType the resourceType value to set
* @return the CognitiveServicesResourceAndSku object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class ErrorBody {
private String message;

/**
* Get the code value.
* Get error code.
*
* @return the code value
*/
Expand All @@ -36,7 +36,7 @@ public String code() {
}

/**
* Set the code value.
* Set error code.
*
* @param code the code value to set
* @return the ErrorBody object itself.
Expand All @@ -47,7 +47,7 @@ public ErrorBody withCode(String code) {
}

/**
* Get the message value.
* Get error message.
*
* @return the message value
*/
Expand All @@ -56,7 +56,7 @@ public String message() {
}

/**
* Set the message value.
* Set error message.
*
* @param message the message value to set
* @return the ErrorBody object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class RegenerateKeyParameters {
private KeyName keyName;

/**
* Get the keyName value.
* Get key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2'.
*
* @return the keyName value
*/
Expand All @@ -31,7 +31,7 @@ public KeyName keyName() {
}

/**
* Set the keyName value.
* Set key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2'.
*
* @param keyName the keyName value to set
* @return the RegenerateKeyParameters object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class Sku {
private SkuTier tier;

/**
* Get the name value.
* Get gets or sets the sku name. Required for account creation, optional for update. Possible values include: 'F0', 'P0', 'P1', 'P2', 'S0', 'S1', 'S2', 'S3', 'S4', 'S5', 'S6'.
*
* @return the name value
*/
Expand All @@ -39,7 +39,7 @@ public SkuName name() {
}

/**
* Set the name value.
* Set gets or sets the sku name. Required for account creation, optional for update. Possible values include: 'F0', 'P0', 'P1', 'P2', 'S0', 'S1', 'S2', 'S3', 'S4', 'S5', 'S6'.
*
* @param name the name value to set
* @return the Sku object itself.
Expand All @@ -50,7 +50,7 @@ public Sku withName(SkuName name) {
}

/**
* Get the tier value.
* Get gets the sku tier. This is based on the SKU name. Possible values include: 'Free', 'Standard', 'Premium'.
*
* @return the tier value
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class CognitiveServicesAccountEnumerateSkusResultInner {
private List<CognitiveServicesResourceAndSku> value;

/**
* Get the value value.
* Get gets the list of Cognitive Services accounts and their properties.
*
* @return the value value
*/
Expand Down
Loading