Skip to content

Commit 9950bea

Browse files
author
SDKAuto
committed
CodeGen from PR 29010 in Azure/azure-rest-api-specs
Merge 49b6f68b96565a46c81c1e687cc20621708edba0 into 89a696e00c8de1c0a124cb2520950db2069b19f8
1 parent 8773b12 commit 9950bea

File tree

88 files changed

+35132
-8297
lines changed

Some content is hidden

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

88 files changed

+35132
-8297
lines changed

sdk/machinelearning/arm-machinelearning/CHANGELOG.md

Lines changed: 697 additions & 0 deletions
Large diffs are not rendered by default.

sdk/machinelearning/arm-machinelearning/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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

77
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning) |
88
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-machinelearning) |
9-
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning) |
9+
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview) |
1010
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
1111

1212
## Getting started
@@ -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",
3-
"readme": "specification\\machinelearningservices\\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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\machinelearningservices\\resource-manager\\readme.md --use=../autorest.typescript/packages/autorest.typescript/ --generate-sample=true",
2+
"commit": "7e7004736e03d6ab4db30ceed3e482a763cec4dc",
3+
"readme": "specification/machinelearningservices/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=/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",
66
"release_tool": "@azure-tools/[email protected]",
7-
"use": "../autorest.typescript/packages/autorest.typescript/"
7+
"use": "@autorest/typescript@^6.0.12"
88
}

sdk/machinelearning/arm-machinelearning/package.json

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "@azure/arm-machinelearning",
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
5-
"description": "A generated SDK for AzureMachineLearningWorkspaces.",
6-
"version": "2.2.0",
5+
"description": "A generated SDK for AzureMachineLearningServicesMgmtClient.",
6+
"version": "3.0.0-beta.1",
77
"engines": {
88
"node": ">=18.0.0"
99
},
@@ -37,7 +37,7 @@
3737
"@azure/dev-tool": "^1.0.0",
3838
"@azure/identity": "^4.0.1",
3939
"@azure-tools/test-recorder": "^3.0.0",
40-
"@azure-tools/test-credential": "^1.1.0",
40+
"@azure-tools/test-credential": "^1.0.0",
4141
"mocha": "^10.0.0",
4242
"@types/mocha": "^10.0.0",
4343
"tsx": "^4.7.1",
@@ -100,19 +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-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning",
110-
"//sampleConfiguration": {
111-
"productName": "",
112-
"productSlugs": [
113-
"azure"
114-
],
115-
"disableDocsMs": true,
116-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview"
117-
}
118-
}
109+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning"
110+
}

0 commit comments

Comments
 (0)