Skip to content

Commit e1a2ad1

Browse files
author
SDKAuto
committed
CodeGen from PR 29007 in Azure/azure-rest-api-specs
Merge 365a99211930055ef1c82ef51b1d23b74fcf2616 into dd1b1d0a58a10c4a34f55231c7035c80dd09b746
1 parent ddd23c6 commit e1a2ad1

File tree

110 files changed

+42122
-15489
lines changed

Some content is hidden

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

110 files changed

+42122
-15489
lines changed

common/config/rush/pnpm-lock.yaml

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

sdk/machinelearning/arm-machinelearning/CHANGELOG.md

Lines changed: 767 additions & 9 deletions
Large diffs are not rendered by default.

sdk/machinelearning/arm-machinelearning/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2022 Microsoft
3+
Copyright (c) 2024 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/machinelearning/arm-machinelearning/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# AzureMachineLearningWorkspaces client library for JavaScript
1+
# AzureMachineLearningServicesMgmt client library for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMachineLearningWorkspaces client.
3+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMachineLearningServicesMgmt client.
44

55
These APIs allow end users to operate on Azure Machine Learning Workspace resources.
66

@@ -24,16 +24,16 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
2424

2525
### Install the `@azure/arm-machinelearning` package
2626

27-
Install the AzureMachineLearningWorkspaces client library for JavaScript with `npm`:
27+
Install the AzureMachineLearningServicesMgmt client library for JavaScript with `npm`:
2828

2929
```bash
3030
npm install @azure/arm-machinelearning
3131
```
3232

33-
### Create and authenticate a `AzureMachineLearningWorkspaces`
33+
### Create and authenticate a `AzureMachineLearningServicesMgmtClient`
3434

35-
To create a client object to access the AzureMachineLearningWorkspaces API, you will need the `endpoint` of your AzureMachineLearningWorkspaces resource and a `credential`. The AzureMachineLearningWorkspaces client can use Azure Active Directory credentials to authenticate.
36-
You can find the endpoint for your AzureMachineLearningWorkspaces resource in the [Azure Portal][azure_portal].
35+
To create a client object to access the AzureMachineLearningServicesMgmt API, you will need the `endpoint` of your AzureMachineLearningServicesMgmt resource and a `credential`. The AzureMachineLearningServicesMgmt client can use Azure Active Directory credentials to authenticate.
36+
You can find the endpoint for your AzureMachineLearningServicesMgmt resource in the [Azure Portal][azure_portal].
3737

3838
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
3939

@@ -43,25 +43,25 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below
4343
npm install @azure/identity
4444
```
4545

46-
You will also need to **register a new AAD application and grant access to AzureMachineLearningWorkspaces** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
46+
You will also need to **register a new AAD application and grant access to AzureMachineLearningServicesMgmt** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
4747
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
4848

4949
For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
5050

5151
```javascript
52-
const { AzureMachineLearningWorkspaces } = require("@azure/arm-machinelearning");
52+
const { AzureMachineLearningServicesMgmtClient } = require("@azure/arm-machinelearning");
5353
const { DefaultAzureCredential } = require("@azure/identity");
5454
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
5555

5656
const subscriptionId = "00000000-0000-0000-0000-000000000000";
57-
const client = new AzureMachineLearningWorkspaces(new DefaultAzureCredential(), subscriptionId);
57+
const client = new AzureMachineLearningServicesMgmtClient(new DefaultAzureCredential(), subscriptionId);
5858

5959
// For client-side applications running in the browser, use this code instead:
6060
// const credential = new InteractiveBrowserCredential({
6161
// tenantId: "<YOUR_TENANT_ID>",
6262
// clientId: "<YOUR_CLIENT_ID>"
6363
// });
64-
// const client = new AzureMachineLearningWorkspaces(credential, subscriptionId);
64+
// const client = new AzureMachineLearningServicesMgmtClient(credential, subscriptionId);
6565
```
6666

6767

@@ -70,9 +70,9 @@ To use this client library in the browser, first you need to use a bundler. For
7070

7171
## Key concepts
7272

73-
### AzureMachineLearningWorkspaces
73+
### AzureMachineLearningServicesMgmtClient
7474

75-
`AzureMachineLearningWorkspaces` is the primary interface for developers using the AzureMachineLearningWorkspaces client library. Explore the methods on this client object to understand the different features of the AzureMachineLearningWorkspaces service that you can access.
75+
`AzureMachineLearningServicesMgmtClient` is the primary interface for developers using the AzureMachineLearningServicesMgmt client library. Explore the methods on this client object to understand the different features of the AzureMachineLearningServicesMgmt service that you can access.
7676

7777
## Troubleshooting
7878

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "1fefe3f5cee88319b17c08a2dbf95e1e983a9f8c",
2+
"commit": "edd9229b0db9dadb30a4eca4539757dbd20daafc",
33
"readme": "specification/machinelearningservices/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.8.4 --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\\machinelearningservices\\resource-manager\\readme.md --use=@autorest/[email protected].0-rc.3.20221108.1 --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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
7-
"use": "@autorest/[email protected].0-rc.3.20221108.1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.8",
7+
"use": "@autorest/typescript@^6.0.12"
88
}

sdk/machinelearning/arm-machinelearning/package.json

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
"name": "@azure/arm-machinelearning",
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
5-
"description": "A generated SDK for AzureMachineLearningWorkspaces.",
6-
"version": "2.1.2",
5+
"description": "A generated SDK for AzureMachineLearningServicesMgmtClient.",
6+
"version": "3.0.0",
77
"engines": {
88
"node": ">=18.0.0"
99
},
1010
"dependencies": {
11-
"@azure/core-lro": "^2.2.0",
11+
"@azure/core-lro": "^2.5.4",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
14-
"@azure/core-client": "^1.6.1",
15-
"@azure/core-auth": "^1.3.0",
16-
"@azure/core-rest-pipeline": "^1.8.0",
14+
"@azure/core-client": "^1.7.0",
15+
"@azure/core-auth": "^1.6.0",
16+
"@azure/core-rest-pipeline": "^1.14.0",
1717
"tslib": "^2.2.0"
1818
},
1919
"keywords": [
@@ -32,20 +32,21 @@
3232
"mkdirp": "^3.0.1",
3333
"typescript": "~5.4.5",
3434
"uglify-js": "^3.4.9",
35-
"rimraf": "^5.0.5",
35+
"rimraf": "^5.0.0",
36+
"dotenv": "^16.0.0",
37+
"@azure/dev-tool": "^1.0.0",
3638
"@azure/identity": "^4.0.1",
3739
"@azure-tools/test-recorder": "^3.0.0",
3840
"@azure-tools/test-credential": "^1.0.0",
3941
"mocha": "^10.0.0",
42+
"@types/mocha": "^10.0.0",
43+
"tsx": "^4.7.1",
4044
"@types/chai": "^4.2.8",
4145
"chai": "^4.2.0",
4246
"cross-env": "^7.0.2",
4347
"@types/node": "^18.0.0",
44-
"@azure/dev-tool": "^1.0.0",
45-
"ts-node": "^10.0.0",
46-
"@types/mocha": "^10.0.0"
48+
"ts-node": "^10.0.0"
4749
},
48-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning",
4950
"repository": {
5051
"type": "git",
5152
"url": "https://github.com/Azure/azure-sdk-for-js.git"
@@ -77,7 +78,6 @@
7778
"pack": "npm pack 2>&1",
7879
"extract-api": "dev-tool run extract-api",
7980
"lint": "echo skipped",
80-
"audit": "echo skipped",
8181
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
8282
"build:node": "echo skipped",
8383
"build:browser": "echo skipped",
@@ -100,18 +100,11 @@
100100
"//metadata": {
101101
"constantPaths": [
102102
{
103-
"path": "src/azureMachineLearningWorkspaces.ts",
103+
"path": "src/azureMachineLearningServicesMgmtClient.ts",
104104
"prefix": "packageDetails"
105105
}
106106
]
107107
},
108108
"autoPublish": true,
109-
"//sampleConfiguration": {
110-
"productName": "",
111-
"productSlugs": [
112-
"azure"
113-
],
114-
"disableDocsMs": true,
115-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview"
116-
}
117-
}
109+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning"
110+
}

0 commit comments

Comments
 (0)