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
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
/**
* 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.advisor;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Check SKU availability parameter.
*/
public class CheckSkuAvailabilityParameter {
/**
* The SKU of the resource.
*/
@JsonProperty(value = "skus", required = true)
private List<SkuName> 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'.
*/
@JsonProperty(value = "kind", required = true)
private Kind kind;

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

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

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

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

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

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

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
/**
* 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.advisor;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Check SKU availability result.
*/
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'.
*/
@JsonProperty(value = "kind")
private Kind kind;

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

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

/**
* Indicates the given SKU is available or not.
*/
@JsonProperty(value = "skuAvailable")
private Boolean skuAvailable;

/**
* Reason why the SKU is not available.
*/
@JsonProperty(value = "reason")
private String reason;

/**
* Additional error message.
*/
@JsonProperty(value = "message")
private String message;

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

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

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

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

/**
* Get the skuName value.
*
* @return the skuName value
*/
public SkuName skuName() {
return this.skuName;
}

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

/**
* Get the skuAvailable value.
*
* @return the skuAvailable value
*/
public Boolean skuAvailable() {
return this.skuAvailable;
}

/**
* Set the skuAvailable value.
*
* @param skuAvailable the skuAvailable value to set
* @return the CheckSkuAvailabilityResult object itself.
*/
public CheckSkuAvailabilityResult withSkuAvailable(Boolean skuAvailable) {
this.skuAvailable = skuAvailable;
return this;
}

/**
* Get the reason value.
*
* @return the reason value
*/
public String reason() {
return this.reason;
}

/**
* Set the reason value.
*
* @param reason the reason value to set
* @return the CheckSkuAvailabilityResult object itself.
*/
public CheckSkuAvailabilityResult withReason(String reason) {
this.reason = reason;
return this;
}

/**
* Get the message value.
*
* @return the message value
*/
public String message() {
return this.message;
}

/**
* Set the message value.
*
* @param message the message value to set
* @return the CheckSkuAvailabilityResult object itself.
*/
public CheckSkuAvailabilityResult withMessage(String message) {
this.message = message;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/**
* 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.advisor;

import com.microsoft.azure.management.advisor.implementation.SkuInner;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The parameters to provide for the account.
*/
public class CognitiveServicesAccountUpdateParameters {
/**
* Gets or sets the SKU of the resource.
*/
@JsonProperty(value = "sku")
private SkuInner sku;

/**
* 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.
*/
@JsonProperty(value = "tags")
private Map<String, String> tags;

/**
* Get the sku value.
*
* @return the sku value
*/
public SkuInner sku() {
return this.sku;
}

/**
* Set the sku value.
*
* @param sku the sku value to set
* @return the CognitiveServicesAccountUpdateParameters object itself.
*/
public CognitiveServicesAccountUpdateParameters withSku(SkuInner sku) {
this.sku = sku;
return this;
}

/**
* Get the tags value.
*
* @return the tags value
*/
public Map<String, String> tags() {
return this.tags;
}

/**
* Set the tags value.
*
* @param tags the tags value to set
* @return the CognitiveServicesAccountUpdateParameters object itself.
*/
public CognitiveServicesAccountUpdateParameters withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}

}
Loading