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
9 changes: 5 additions & 4 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 19 additions & 11 deletions sdk/cognitiveservices/arm-cognitiveservices/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# Release History

## 7.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes


## 7.1.0 (2022-03-28)

**Features**

- Added operation Accounts.listModels
- Added Interface AccountModelListResult
- Added Interface AccountsListModelsNextOptionalParams
- Added Interface AccountsListModelsOptionalParams
- Added Interface ModelDeprecationInfo
- Added Type Alias AccountModel
- Added Type Alias AccountsListModelsNextResponse
- Added Type Alias AccountsListModelsResponse
- Interface AccountProperties has a new optional parameter deletionDate
- Interface AccountProperties has a new optional parameter dynamicThrottlingEnabled
- Interface AccountProperties has a new optional parameter scheduledPurgeDate
- Interface DeploymentScaleSettings has a new optional parameter activeCapacity


## 7.0.0 (2021-12-20)

The package of @azure/arm-cognitiveservices is using our next generation design principles since version 7.0.0, which contains breaking changes.
Expand Down
2 changes: 1 addition & 1 deletion sdk/cognitiveservices/arm-cognitiveservices/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Microsoft
Copyright (c) 2022 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 11 additions & 0 deletions sdk/cognitiveservices/arm-cognitiveservices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Cognitive Services Management Client
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge and Firefox.

See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.

### Prerequisites

- An [Azure subscription][azure_sub].
Expand Down Expand Up @@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
```javascript
const { CognitiveServicesManagementClient } = require("@azure/arm-cognitiveservices");
const { DefaultAzureCredential } = require("@azure/identity");
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new CognitiveServicesManagementClient(new DefaultAzureCredential(), subscriptionId);

// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
// tenantId: "<YOUR_TENANT_ID>",
// clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new CognitiveServicesManagementClient(credential, subscriptionId);
```


Expand Down
7 changes: 4 additions & 3 deletions sdk/cognitiveservices/arm-cognitiveservices/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"commit": "d967edeee8fd6af6d40bffe53cceed1bd053d7ad",
"commit": "d9e9cdfe86eb9f3098d716236b3ba407d8e6e984",
"readme": "specification/cognitiveservices/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/cognitiveservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\cognitiveservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-beta.17 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-alpha.16.20211217.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.1",
"use": "@autorest/typescript@6.0.0-beta.17"
}
25 changes: 19 additions & 6 deletions sdk/cognitiveservices/arm-cognitiveservices/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-cognitiveservices.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
32 changes: 24 additions & 8 deletions sdk/cognitiveservices/arm-cognitiveservices/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for CognitiveServicesManagementClient.",
"version": "7.0.1",
"version": "7.1.0",
"engines": {
"node": ">=12.0.0"
},
Expand All @@ -30,12 +30,12 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^1.0.4",
"rollup": "^2.0.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
Expand Down Expand Up @@ -98,5 +98,21 @@
"docs": "echo skipped"
},
"sideEffects": false,
"autoPublish": true
}
"//metadata": {
"constantPaths": [
{
"path": "src/cognitiveServicesManagementClient.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-cognitiveservices?view=azure-node-preview"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,23 @@ export interface AccountListResult {
readonly value?: Account[];
}

// @public
export type AccountModel = DeploymentModel & {
baseModel?: DeploymentModel;
maxCapacity?: number;
capabilities?: {
[propertyName: string]: string;
};
deprecation?: ModelDeprecationInfo;
readonly systemData?: SystemData;
};

// @public
export interface AccountModelListResult {
nextLink?: string;
value?: AccountModel[];
}

// @public
export interface AccountProperties {
// (undocumented)
Expand All @@ -38,8 +55,10 @@ export interface AccountProperties {
readonly capabilities?: SkuCapability[];
customSubDomainName?: string;
readonly dateCreated?: string;
readonly deletionDate?: string;
// (undocumented)
disableLocalAuth?: boolean;
dynamicThrottlingEnabled?: boolean;
encryption?: Encryption;
readonly endpoint?: string;
readonly endpoints?: {
Expand All @@ -57,6 +76,7 @@ export interface AccountProperties {
restore?: boolean;
// (undocumented)
restrictOutboundNetworkAccess?: boolean;
readonly scheduledPurgeDate?: string;
readonly skuChangeInfo?: SkuChangeInfo;
userOwnedStorage?: UserOwnedStorage[];
}
Expand All @@ -73,6 +93,7 @@ export interface Accounts {
list(options?: AccountsListOptionalParams): PagedAsyncIterableIterator<Account>;
listByResourceGroup(resourceGroupName: string, options?: AccountsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Account>;
listKeys(resourceGroupName: string, accountName: string, options?: AccountsListKeysOptionalParams): Promise<AccountsListKeysResponse>;
listModels(resourceGroupName: string, accountName: string, options?: AccountsListModelsOptionalParams): PagedAsyncIterableIterator<AccountModel>;
listSkus(resourceGroupName: string, accountName: string, options?: AccountsListSkusOptionalParams): Promise<AccountsListSkusResponse>;
listUsages(resourceGroupName: string, accountName: string, options?: AccountsListUsagesOptionalParams): Promise<AccountsListUsagesResponse>;
regenerateKey(resourceGroupName: string, accountName: string, keyName: KeyName, options?: AccountsRegenerateKeyOptionalParams): Promise<AccountsRegenerateKeyResponse>;
Expand Down Expand Up @@ -132,6 +153,20 @@ export interface AccountsListKeysOptionalParams extends coreClient.OperationOpti
// @public
export type AccountsListKeysResponse = ApiKeys;

// @public
export interface AccountsListModelsNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type AccountsListModelsNextResponse = AccountModelListResult;

// @public
export interface AccountsListModelsOptionalParams extends coreClient.OperationOptions {
}

// @public
export type AccountsListModelsResponse = AccountModelListResult;

// @public
export interface AccountsListNextOptionalParams extends coreClient.OperationOptions {
}
Expand Down Expand Up @@ -485,6 +520,7 @@ export interface Deployments {

// @public
export interface DeploymentScaleSettings {
readonly activeCapacity?: number;
capacity?: number;
scaleType?: DeploymentScaleType;
}
Expand Down Expand Up @@ -778,6 +814,12 @@ export interface MetricName {
value?: string;
}

// @public
export interface ModelDeprecationInfo {
fineTune?: string;
inference?: string;
}

// @public
export type NetworkRuleAction = string;

Expand Down
Loading