Skip to content
Merged
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
64 changes: 13 additions & 51 deletions packages/@azure/arm-cognitiveservices/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ export { BaseResource, CloudError };
*/
export interface Sku {
/**
* @member {SkuName} name 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'
* @member {string} name Gets or sets the sku name. Required for account
* creation, optional for update.
*/
name: SkuName;
name: string;
/**
* @member {SkuTier} [tier] Gets the sku tier. This is based on the SKU name.
* Possible values include: 'Free', 'Standard', 'Premium'
Expand All @@ -48,15 +47,9 @@ export interface CognitiveServicesAccountCreateParameters {
*/
sku: Sku;
/**
* @member {Kind} kind Required. Gets or sets 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'
* @member {string} kind Required. Gets or sets the Kind of the resource.
*/
kind: Kind;
kind: string;
/**
* @member {string} location Required. Gets or sets the location of the
* resource. This will be one of the supported and registered Azure Geo
Expand Down Expand Up @@ -415,18 +408,13 @@ export interface OperationEntity {
*/
export interface CheckSkuAvailabilityParameter {
/**
* @member {SkuName[]} skus The SKU of the resource.
* @member {string[]} skus The SKU of the resource.
*/
skus: SkuName[];
skus: string[];
/**
* @member {Kind} kind 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'
* @member {string} kind The Kind of the resource.
*/
kind: Kind;
kind: string;
/**
* @member {string} type The Type of the resource.
*/
Expand All @@ -441,24 +429,17 @@ export interface CheckSkuAvailabilityParameter {
*/
export interface CheckSkuAvailabilityResult {
/**
* @member {Kind} [kind] 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'
* @member {string} [kind] The Kind of the resource.
*/
kind?: Kind;
kind?: string;
/**
* @member {string} [type] The Type of the resource.
*/
type?: string;
/**
* @member {SkuName} [skuName] The SKU of Cognitive Services account.
* Possible values include: 'F0', 'P0', 'P1', 'P2', 'S0', 'S1', 'S2', 'S3',
* 'S4', 'S5', 'S6'
* @member {string} [skuName] The SKU of Cognitive Services account.
*/
skuName?: SkuName;
skuName?: string;
/**
* @member {boolean} [skuAvailable] Indicates the given SKU is available or
* not.
Expand Down Expand Up @@ -691,14 +672,6 @@ export interface OperationEntityListResult extends Array<OperationEntity> {
nextLink?: string;
}

/**
* Defines values for SkuName.
* Possible values include: 'F0', 'P0', 'P1', 'P2', 'S0', 'S1', 'S2', 'S3', 'S4', 'S5', 'S6'
* @readonly
* @enum {string}
*/
export type SkuName = 'F0' | 'P0' | 'P1' | 'P2' | 'S0' | 'S1' | 'S2' | 'S3' | 'S4' | 'S5' | 'S6';

/**
* Defines values for SkuTier.
* Possible values include: 'Free', 'Standard', 'Premium'
Expand All @@ -707,17 +680,6 @@ export type SkuName = 'F0' | 'P0' | 'P1' | 'P2' | 'S0' | 'S1' | 'S2' | 'S3' | 'S
*/
export type SkuTier = 'Free' | 'Standard' | 'Premium';

/**
* Defines values for Kind.
* 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'
* @readonly
* @enum {string}
*/
export type Kind = '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';

/**
* Defines values for ProvisioningState.
* Possible values include: 'Creating', 'ResolvingDNS', 'Moving', 'Deleting', 'Succeeded', 'Failed'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,42 +30,30 @@ export class CheckSkuAvailability {
* Check available SKUs.
* @param location Resource location.
* @param skus The SKU of the resource.
* @param kind 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'
* @param kind The Kind of the resource.
* @param type The Type of the resource.
* @param [options] The optional parameters
* @returns Promise<Models.CheckSkuAvailabilityListResponse>
*/
list(location: string, skus: Models.SkuName[], kind: Models.Kind, type: string, options?: msRest.RequestOptionsBase): Promise<Models.CheckSkuAvailabilityListResponse>;
list(location: string, skus: string[], kind: string, type: string, options?: msRest.RequestOptionsBase): Promise<Models.CheckSkuAvailabilityListResponse>;
/**
* @param location Resource location.
* @param skus The SKU of the resource.
* @param kind 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'
* @param kind The Kind of the resource.
* @param type The Type of the resource.
* @param callback The callback
*/
list(location: string, skus: Models.SkuName[], kind: Models.Kind, type: string, callback: msRest.ServiceCallback<Models.CheckSkuAvailabilityResultList>): void;
list(location: string, skus: string[], kind: string, type: string, callback: msRest.ServiceCallback<Models.CheckSkuAvailabilityResultList>): void;
/**
* @param location Resource location.
* @param skus The SKU of the resource.
* @param kind 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'
* @param kind The Kind of the resource.
* @param type The Type of the resource.
* @param options The optional parameters
* @param callback The callback
*/
list(location: string, skus: Models.SkuName[], kind: Models.Kind, type: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckSkuAvailabilityResultList>): void;
list(location: string, skus: Models.SkuName[], kind: Models.Kind, type: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckSkuAvailabilityResultList>, callback?: msRest.ServiceCallback<Models.CheckSkuAvailabilityResultList>): Promise<Models.CheckSkuAvailabilityListResponse> {
list(location: string, skus: string[], kind: string, type: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckSkuAvailabilityResultList>): void;
list(location: string, skus: string[], kind: string, type: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckSkuAvailabilityResultList>, callback?: msRest.ServiceCallback<Models.CheckSkuAvailabilityResultList>): Promise<Models.CheckSkuAvailabilityListResponse> {
return this.client.sendOperationRequest(
{
location,
Expand Down