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 sdk/cognitiveservices/mgmt-v2017_04_18] Swagger Correctness for Cognitive Services #5371

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions sdk/cognitiveservices/mgmt-v2017_04_18/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.3.2</version>
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-cognitiveservices</artifactId>
<version>1.0.1</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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
import com.microsoft.azure.ProxyResource;

/**
* The resource model definition for a Azure Resource Manager resource with an
* Entity Resource.
* The resource model definition for an Azure Resource Manager resource with an
* etag.
*/
public class AzureEntityResource extends ProxyResource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ public class CognitiveServicesAccountProperties {
@JsonProperty(value = "apiProperties")
private CognitiveServicesAccountApiProperties apiProperties;

/**
* Gets the date of cognitive services account creation.
*/
@JsonProperty(value = "dateCreated", access = JsonProperty.Access.WRITE_ONLY)
private String dateCreated;

/**
* Get gets the status of the cognitive services account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Moving', 'Deleting', 'Succeeded', 'Failed'.
*
Expand Down Expand Up @@ -266,4 +272,13 @@ public CognitiveServicesAccountProperties withApiProperties(CognitiveServicesAcc
return this;
}

/**
* Get gets the date of cognitive services account creation.
*
* @return the dateCreated value
*/
public String dateCreated() {
return this.dateCreated;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class Sku {

/**
* Gets the sku tier. This is based on the SKU name. Possible values
* include: 'Free', 'Standard', 'Premium'.
* include: 'Free', 'Standard', 'Premium', 'Enterprise'.
*/
@JsonProperty(value = "tier", access = JsonProperty.Access.WRITE_ONLY)
private SkuTier tier;
Expand All @@ -49,7 +49,7 @@ public Sku withName(String name) {
}

/**
* Get gets the sku tier. This is based on the SKU name. Possible values include: 'Free', 'Standard', 'Premium'.
* Get gets the sku tier. This is based on the SKU name. Possible values include: 'Free', 'Standard', 'Premium', 'Enterprise'.
*
* @return the tier value
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ public enum SkuTier {
STANDARD("Standard"),

/** Enum value Premium. */
PREMIUM("Premium");
PREMIUM("Premium"),

/** Enum value Enterprise. */
ENTERPRISE("Enterprise");

/** The actual serialized value for a SkuTier instance. */
private String value;
Expand Down