Skip to content

Commit 065b01a

Browse files
author
SDKAuto
committed
CodeGen from PR 23164 in Azure/azure-rest-api-specs
Merge 668499f066e856b2f29a1fb815eed498da0e63b6 into e8258cbf829873fb9ba7edff69d6ea0f8958399c
1 parent 76d2e29 commit 065b01a

File tree

75 files changed

+18457
-6295
lines changed

Some content is hidden

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

75 files changed

+18457
-6295
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 7 additions & 5 deletions
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: 306 additions & 8 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) 2023 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+
# Azure Machine Learning 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 Azure Machine Learning 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 Azure Machine Learning 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 `AzureMachineLearningServices`
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 Azure Machine Learning API, you will need the `endpoint` of your Azure Machine Learning resource and a `credential`. The Azure Machine Learning client can use Azure Active Directory credentials to authenticate.
36+
You can find the endpoint for your Azure Machine Learning 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 Azure Machine Learning** 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 { AzureMachineLearningServices } = 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 AzureMachineLearningServices(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 AzureMachineLearningServices(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+
### AzureMachineLearningServices
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+
`AzureMachineLearningServices` is the primary interface for developers using the Azure Machine Learning client library. Explore the methods on this client object to understand the different features of the Azure Machine Learning 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": "0586c14c141a59c8ba9e709ef0dc2538ff398659",
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].3.20221108.1 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.9.3 --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/[email protected].10",
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].3.20221108.1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
7+
"use": "@autorest/[email protected].10"
88
}

sdk/machinelearning/arm-machinelearning/package.json

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
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 AzureMachineLearningServices.",
6+
"version": "3.0.0",
77
"engines": {
88
"node": ">=14.0.0"
99
},
1010
"dependencies": {
11-
"@azure/core-lro": "^2.2.0",
11+
"@azure/core-lro": "^2.5.0",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
14-
"@azure/core-client": "^1.6.1",
14+
"@azure/core-client": "^1.7.0",
1515
"@azure/core-auth": "^1.3.0",
1616
"@azure/core-rest-pipeline": "^1.8.0",
1717
"tslib": "^2.2.0"
@@ -33,12 +33,13 @@
3333
"@rollup/plugin-json": "^6.0.0",
3434
"@rollup/plugin-multi-entry": "^6.0.0",
3535
"@rollup/plugin-node-resolve": "^13.1.3",
36-
"mkdirp": "^1.0.4",
36+
"mkdirp": "^2.1.2",
3737
"rollup": "^2.66.1",
3838
"rollup-plugin-sourcemaps": "^0.6.3",
3939
"typescript": "~4.8.0",
4040
"uglify-js": "^3.4.9",
4141
"rimraf": "^3.0.0",
42+
"dotenv": "^16.0.0",
4243
"@azure/identity": "^2.0.1",
4344
"@azure-tools/test-recorder": "^3.0.0",
4445
"@azure-tools/test-credential": "^1.0.0",
@@ -49,7 +50,6 @@
4950
"@types/node": "^14.0.0",
5051
"@azure/dev-tool": "^1.0.0"
5152
},
52-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning",
5353
"repository": {
5454
"type": "git",
5555
"url": "https://github.com/Azure/azure-sdk-for-js.git"
@@ -105,18 +105,11 @@
105105
"//metadata": {
106106
"constantPaths": [
107107
{
108-
"path": "src/azureMachineLearningWorkspaces.ts",
108+
"path": "src/azureMachineLearningServices.ts",
109109
"prefix": "packageDetails"
110110
}
111111
]
112112
},
113113
"autoPublish": true,
114-
"//sampleConfiguration": {
115-
"productName": "",
116-
"productSlugs": [
117-
"azure"
118-
],
119-
"disableDocsMs": true,
120-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview"
121-
}
122-
}
114+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning"
115+
}

0 commit comments

Comments
 (0)