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
Expand Up @@ -34,6 +34,7 @@ export {
RegenerateKeyParameters,
Resource,
Sku,
SkuCapability,
TrackedResource,
Usage,
UsagesResult,
Expand Down
20 changes: 20 additions & 0 deletions sdk/cognitiveservices/arm-cognitiveservices/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ export interface Sku {
readonly tier?: SkuTier;
}

/**
* SkuCapability indicates the capability of a certain feature.
*/
export interface SkuCapability {
/**
* The name of the SkuCapability.
*/
name?: string;
/**
* The value of the SkuCapability.
*/
value?: string;
}

/**
* A rule governing the accessibility from a specific ip address or ip range.
*/
Expand Down Expand Up @@ -245,6 +259,12 @@ export interface CognitiveServicesAccountProperties {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly internalId?: string;
/**
* Gets the capabilities of the cognitive services account. Each item indicates the capability of
* a specific feature. The values are read-only and for reference only.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly capabilities?: SkuCapability[];
/**
* Optional subdomain name used for token-based authentication.
*/
Expand Down
35 changes: 35 additions & 0 deletions sdk/cognitiveservices/arm-cognitiveservices/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,28 @@ export const Sku: msRest.CompositeMapper = {
}
};

export const SkuCapability: msRest.CompositeMapper = {
serializedName: "SkuCapability",
type: {
name: "Composite",
className: "SkuCapability",
modelProperties: {
name: {
serializedName: "name",
type: {
name: "String"
}
},
value: {
serializedName: "value",
type: {
name: "String"
}
}
}
}
};

export const IpRule: msRest.CompositeMapper = {
serializedName: "IpRule",
type: {
Expand Down Expand Up @@ -394,6 +416,19 @@ export const CognitiveServicesAccountProperties: msRest.CompositeMapper = {
name: "String"
}
},
capabilities: {
readOnly: true,
serializedName: "capabilities",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "SkuCapability"
}
}
}
},
customSubDomainName: {
serializedName: "customSubDomainName",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export {
ProxyResource,
Resource,
Sku,
SkuCapability,
TrackedResource,
UserAssignedIdentity,
UserOwnedStorage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export {
ProxyResource,
Resource,
Sku,
SkuCapability,
TrackedResource,
UserAssignedIdentity,
UserOwnedStorage,
Expand Down