Skip to content
Closed
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
14 changes: 8 additions & 6 deletions sdk/cognitiveservices/mgmt-v2017_04_18/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-2017-04-18</groupId>
<groupId>com.microsoft.azure.cognitiveservices.v2017_04_18</groupId>
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<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:git@github.com:Azure/azure-libraries-for-java.git</connection>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:git@github.com: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
@@ -0,0 +1,69 @@
/**
* 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.management.cognitiveservices.v2017_04_18;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Check Domain availability parameter.
*/
public class CheckDomainAvailabilityParameter {
/**
* The subdomain name to use.
*/
@JsonProperty(value = "subdomainName", required = true)
private String subdomainName;

/**
* The Type of the resource.
*/
@JsonProperty(value = "type", required = true)
private String type;

/**
* Get the subdomain name to use.
*
* @return the subdomainName value
*/
public String subdomainName() {
return this.subdomainName;
}

/**
* Set the subdomain name to use.
*
* @param subdomainName the subdomainName value to set
* @return the CheckDomainAvailabilityParameter object itself.
*/
public CheckDomainAvailabilityParameter withSubdomainName(String subdomainName) {
this.subdomainName = subdomainName;
return this;
}

/**
* Get the Type of the resource.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Set the Type of the resource.
*
* @param type the type value to set
* @return the CheckDomainAvailabilityParameter object itself.
*/
public CheckDomainAvailabilityParameter withType(String type) {
this.type = type;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,13 @@ public class CheckSkuAvailabilityParameter {
* The SKU of the resource.
*/
@JsonProperty(value = "skus", required = true)
private List<SkuName> skus;
private List<String> skus;

/**
* The Kind of the resource. Possible values include:
* 'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search.v7',
* 'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision',
* 'ContentModerator', 'CustomSpeech', 'CustomVision.Prediction',
* 'CustomVision.Training', 'Emotion', 'Face', 'LUIS', 'QnAMaker',
* 'SpeakerRecognition', 'SpeechTranslation', 'TextAnalytics',
* 'TextTranslation', 'WebLM'.
* The Kind of the resource.
*/
@JsonProperty(value = "kind", required = true)
private Kind kind;
private String kind;

/**
* The Type of the resource.
Expand All @@ -40,47 +34,47 @@ public class CheckSkuAvailabilityParameter {
private String type;

/**
* Get the skus value.
* Get the SKU of the resource.
*
* @return the skus value
*/
public List<SkuName> skus() {
public List<String> skus() {
return this.skus;
}

/**
* Set the skus value.
* Set the SKU of the resource.
*
* @param skus the skus value to set
* @return the CheckSkuAvailabilityParameter object itself.
*/
public CheckSkuAvailabilityParameter withSkus(List<SkuName> skus) {
public CheckSkuAvailabilityParameter withSkus(List<String> skus) {
this.skus = skus;
return this;
}

/**
* Get the kind value.
* Get the Kind of the resource.
*
* @return the kind value
*/
public Kind kind() {
public String kind() {
return this.kind;
}

/**
* Set the kind value.
* Set the Kind of the resource.
*
* @param kind the kind value to set
* @return the CheckSkuAvailabilityParameter object itself.
*/
public CheckSkuAvailabilityParameter withKind(Kind kind) {
public CheckSkuAvailabilityParameter withKind(String kind) {
this.kind = kind;
return this;
}

/**
* Get the type value.
* Get the Type of the resource.
*
* @return the type value
*/
Expand All @@ -89,7 +83,7 @@ public String type() {
}

/**
* Set the type value.
* Set the Type of the resource.
*
* @param type the type value to set
* @return the CheckSkuAvailabilityParameter object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,10 @@
*/
public class CheckSkuAvailabilityResult {
/**
* The Kind of the resource. Possible values include:
* 'Bing.Autosuggest.v7', 'Bing.CustomSearch', 'Bing.Search.v7',
* 'Bing.Speech', 'Bing.SpellCheck.v7', 'ComputerVision',
* 'ContentModerator', 'CustomSpeech', 'CustomVision.Prediction',
* 'CustomVision.Training', 'Emotion', 'Face', 'LUIS', 'QnAMaker',
* 'SpeakerRecognition', 'SpeechTranslation', 'TextAnalytics',
* 'TextTranslation', 'WebLM'.
* The Kind of the resource.
*/
@JsonProperty(value = "kind")
private Kind kind;
private String kind;

/**
* The Type of the resource.
Expand All @@ -33,11 +27,10 @@ public class CheckSkuAvailabilityResult {
private String type;

/**
* The SKU of Cognitive Services account. Possible values include: 'F0',
* 'P0', 'P1', 'P2', 'S0', 'S1', 'S2', 'S3', 'S4', 'S5', 'S6'.
* The SKU of Cognitive Services account.
*/
@JsonProperty(value = "skuName")
private SkuName skuName;
private String skuName;

/**
* Indicates the given SKU is available or not.
Expand All @@ -58,27 +51,27 @@ public class CheckSkuAvailabilityResult {
private String message;

/**
* Get the kind value.
* Get the Kind of the resource.
*
* @return the kind value
*/
public Kind kind() {
public String kind() {
return this.kind;
}

/**
* Set the kind value.
* Set the Kind of the resource.
*
* @param kind the kind value to set
* @return the CheckSkuAvailabilityResult object itself.
*/
public CheckSkuAvailabilityResult withKind(Kind kind) {
public CheckSkuAvailabilityResult withKind(String kind) {
this.kind = kind;
return this;
}

/**
* Get the type value.
* Get the Type of the resource.
*
* @return the type value
*/
Expand All @@ -87,7 +80,7 @@ public String type() {
}

/**
* Set the type value.
* Set the Type of the resource.
*
* @param type the type value to set
* @return the CheckSkuAvailabilityResult object itself.
Expand All @@ -98,27 +91,27 @@ public CheckSkuAvailabilityResult withType(String type) {
}

/**
* Get the skuName value.
* Get the SKU of Cognitive Services account.
*
* @return the skuName value
*/
public SkuName skuName() {
public String skuName() {
return this.skuName;
}

/**
* Set the skuName value.
* Set the SKU of Cognitive Services account.
*
* @param skuName the skuName value to set
* @return the CheckSkuAvailabilityResult object itself.
*/
public CheckSkuAvailabilityResult withSkuName(SkuName skuName) {
public CheckSkuAvailabilityResult withSkuName(String skuName) {
this.skuName = skuName;
return this;
}

/**
* Get the skuAvailable value.
* Get indicates the given SKU is available or not.
*
* @return the skuAvailable value
*/
Expand All @@ -127,7 +120,7 @@ public Boolean skuAvailable() {
}

/**
* Set the skuAvailable value.
* Set indicates the given SKU is available or not.
*
* @param skuAvailable the skuAvailable value to set
* @return the CheckSkuAvailabilityResult object itself.
Expand All @@ -138,7 +131,7 @@ public CheckSkuAvailabilityResult withSkuAvailable(Boolean skuAvailable) {
}

/**
* Get the reason value.
* Get reason why the SKU is not available.
*
* @return the reason value
*/
Expand All @@ -147,7 +140,7 @@ public String reason() {
}

/**
* Set the reason value.
* Set reason why the SKU is not available.
*
* @param reason the reason value to set
* @return the CheckSkuAvailabilityResult object itself.
Expand All @@ -158,7 +151,7 @@ public CheckSkuAvailabilityResult withReason(String reason) {
}

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

/**
* Set the message value.
* Set additional error message.
*
* @param message the message value to set
* @return the CheckSkuAvailabilityResult object itself.
Expand Down
Loading