Skip to content

Commit d16e83f

Browse files
authored
[mgmt] cognitiveservice release (#35960)
Azure/sdk-release-request#6508
1 parent 00bc71d commit d16e83f

File tree

390 files changed

+10747
-2437
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

390 files changed

+10747
-2437
lines changed

pnpm-lock.yaml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/cognitiveservices/arm-cognitiveservices/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
# Release History
2+
3+
## 8.0.0 (2025-09-17)
4+
5+
### Features Added
6+
- Added Interface NetworkInjection
7+
8+
### Breaking Changes
9+
- Operation Accounts.beginCreate has a new signature
10+
- Operation Accounts.beginCreateAndWait has a new signature
11+
- Operation Accounts.beginUpdate has a new signature
12+
- Operation Accounts.beginUpdateAndWait has a new signature
13+
- Operation Accounts.get has a new signature
14+
- Operation DeletedAccounts.get has a new signature
15+
- Removed Interface NetworkInjections
16+
- Type of parameter networkInjections of interface AccountProperties is changed from NetworkInjections to NetworkInjection[]
17+
218

319
## 7.7.0 (2025-07-08)
420

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "65e7f567edbbe60f14573dae9e162d1b164ebde5",
2+
"commit": "f19bec6b8f2d2ca2ea4911f85e5228ba0af8c323",
33
"readme": "specification/cognitiveservices/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=C:\\Users\\v-ziweichen.FAREAST\\Documents\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\cognitiveservices\\resource-manager\\readme.md --use=@autorest/[email protected].43 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\cognitiveservices\\resource-manager\\readme.md --use=@autorest/[email protected].47 --generate-sample=true",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.13.0",
7-
"use": "@autorest/[email protected].43"
8-
}
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.14.6",
7+
"use": "@autorest/[email protected].47"
8+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
22
"extends": "../../../api-extractor-base.json"
3-
}
3+
}

sdk/cognitiveservices/arm-cognitiveservices/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "js",
44
"TagPrefix": "js/cognitiveservices/arm-cognitiveservices",
5-
"Tag": "js/cognitiveservices/arm-cognitiveservices_e9338cd3ed"
5+
"Tag": "js/cognitiveservices/arm-cognitiveservices_321eba3aa7"
66
}

sdk/cognitiveservices/arm-cognitiveservices/package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for CognitiveServicesManagementClient.",
6-
"version": "7.7.0",
6+
"version": "8.0.0",
77
"engines": {
88
"node": ">=20.0.0"
99
},
1010
"dependencies": {
1111
"@azure/core-lro": "^2.5.4",
1212
"@azure/abort-controller": "^2.1.2",
1313
"@azure/core-paging": "^1.6.2",
14-
"@azure/core-client": "^1.9.2",
14+
"@azure/core-client": "^1.9.3",
1515
"@azure/core-auth": "^1.9.0",
16-
"@azure/core-rest-pipeline": "^1.19.0",
16+
"@azure/core-rest-pipeline": "^1.19.1",
1717
"tslib": "^2.8.1"
1818
},
1919
"keywords": [
@@ -51,24 +51,23 @@
5151
"files": [
5252
"dist/",
5353
"README.md",
54-
"LICENSE",
55-
"review/*",
56-
"CHANGELOG.md"
54+
"LICENSE"
5755
],
5856
"scripts": {
5957
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
60-
"build:samples": "tsc -p tsconfig.samples.json",
61-
"check-format": "echo skipped",
62-
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
63-
"execute:samples": "echo skipped",
58+
"pack": "npm pack 2>&1",
6459
"extract-api": "dev-tool run extract-api",
65-
"format": "echo skipped",
6660
"lint": "echo skipped",
67-
"pack": "pnpm pack 2>&1",
61+
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
62+
"build:samples": "echo skipped.",
63+
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
64+
"execute:samples": "echo skipped",
65+
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
6866
"test": "npm run test:node && npm run test:browser",
67+
"test:node": "dev-tool run test:vitest",
6968
"test:browser": "echo skipped",
70-
"test:node": "dev-tool run build-test --no-browser-test && dev-tool run test:vitest",
71-
"update-snippets": "dev-tool run update-snippets"
69+
"update-snippets": "dev-tool run update-snippets",
70+
"test:node:esm": "dev-tool run test:vitest --esm"
7271
},
7372
"sideEffects": false,
7473
"//metadata": {

sdk/cognitiveservices/arm-cognitiveservices/review/arm-cognitiveservices-node.api.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ export interface AccountProperties {
209209
locations?: MultiRegionSettings;
210210
migrationToken?: string;
211211
networkAcls?: NetworkRuleSet;
212-
networkInjections?: NetworkInjections;
212+
// (undocumented)
213+
networkInjections?: NetworkInjection[];
213214
readonly privateEndpointConnections?: PrivateEndpointConnection[];
214215
readonly provisioningState?: ProvisioningState;
215216
publicNetworkAccess?: PublicNetworkAccess;
@@ -1960,7 +1961,7 @@ export interface MultiRegionSettings {
19601961
}
19611962

19621963
// @public
1963-
export interface NetworkInjections {
1964+
export interface NetworkInjection {
19641965
scenario?: ScenarioType;
19651966
subnetArmId?: string;
19661967
useMicrosoftManagedNetwork?: boolean;

sdk/cognitiveservices/arm-cognitiveservices/samples-dev/accountCapabilityHostsCreateOrUpdateSample.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
/**
5-
* This sample demonstrates how to Create or update account capabilityHost.
6-
*
7-
* @summary Create or update account capabilityHost.
8-
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-06-01/examples/AccountCapabilityHost/createOrUpdate.json
9-
*/
10-
114
import {
125
CapabilityHost,
136
CognitiveServicesManagementClient,
147
} from "@azure/arm-cognitiveservices";
158
import { DefaultAzureCredential } from "@azure/identity";
169
import "dotenv/config";
1710

11+
/**
12+
* This sample demonstrates how to Create or update account capabilityHost.
13+
*
14+
* @summary Create or update account capabilityHost.
15+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-06-01/examples/AccountCapabilityHost/createOrUpdate.json
16+
*/
1817
async function createOrUpdateAccountCapabilityHost(): Promise<void> {
1918
const subscriptionId =
2019
process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||

sdk/cognitiveservices/arm-cognitiveservices/samples-dev/accountCapabilityHostsDeleteSample.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
5+
import { DefaultAzureCredential } from "@azure/identity";
6+
import "dotenv/config";
7+
48
/**
59
* This sample demonstrates how to Delete account capabilityHost.
610
*
711
* @summary Delete account capabilityHost.
812
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-06-01/examples/AccountCapabilityHost/delete.json
913
*/
10-
11-
import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
12-
import { DefaultAzureCredential } from "@azure/identity";
13-
import "dotenv/config";
14-
1514
async function deleteAccountCapabilityHost(): Promise<void> {
1615
const subscriptionId =
1716
process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||

sdk/cognitiveservices/arm-cognitiveservices/samples-dev/accountCapabilityHostsGetSample.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4+
import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
5+
import { DefaultAzureCredential } from "@azure/identity";
6+
import "dotenv/config";
7+
48
/**
59
* This sample demonstrates how to Get account capabilityHost.
610
*
711
* @summary Get account capabilityHost.
812
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-06-01/examples/AccountCapabilityHost/get.json
913
*/
10-
11-
import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
12-
import { DefaultAzureCredential } from "@azure/identity";
13-
import "dotenv/config";
14-
1514
async function getAccountCapabilityHost(): Promise<void> {
1615
const subscriptionId =
1716
process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||

0 commit comments

Comments
 (0)