Skip to content

Commit

Permalink
CodeGen from PR 26104 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Release machinelearningservices microsoft.machine learning services 2023 10 01 shadow (Azure#26104)

* Adds base for updating Microsoft.MachineLearningServices from version stable/2023-04-01 to version 2023-10-01

* fix rebase

* Updates API version in new specs and examples

* mfe.json update description to fix linting errors (Azure#24968)

Co-authored-by: Kayla Ames <[email protected]>

* add headers for start/stop/restart compute examples (Azure#25072)

* Adding SubscriptionId and ResourceGroup for Azure Datastore (Azure#25289)

* Add query param in list job api (Azure#25374)

Co-authored-by: Shail Paragbhai Shah <[email protected]>

* [MachineLearning]Try fixing some lint error in 10-01 version (Azure#25519)

* Try fixing some lint error

* bug fix

* remove unused definition

* Update Example

* adding queue settings to Oct 2023 stable api version (Azure#25765)

* adding queue settings to Oct 2023 stable api version

* update new line

---------

Co-authored-by: Aaheli Chattopadhyay <[email protected]>

* remove job priority (Azure#25775)

Co-authored-by: Aaheli Chattopadhyay <[email protected]>

* Adding MachineLearningService workspace resource publish API and registry datareference API (Azure#25619)

* Adding machinelearningservices workspace publish and registry
datareference API

* minimize diff

* minor updates on put job api summary

* remove two unneeded APIs

* remove extra adding long running annotation

* Add managed Vnet to stable version (Azure#25729)

* Add managed Vnet to stable version

* update missing parameter

* Update missing ref

* meaningless commit trigger pipeline again

* Revert "meaningless commit trigger pipeline again"

This reverts commit baa386b8cf0abb96b461a27d9060188e7ed0581e.

* add missing ref

* Update example version

* trigger pipeline

* Revert "trigger pipeline"

This reverts commit f989c4c91ca85dde28fa636ed82ba9c742a05db9.

* add force to purge parameter

* trigger pipeline

* Revert "trigger pipeline"

This reverts commit 42ea0f8c2dc17e42757112b279fae42a4dc6e557.

* Update examples

* Add format and update examples

* [Model Monitoring][GA] - Add model monitoring scenarios (Azure#25801)

* Add model monitoring scenarios

* add

* add

* Update mfe.json

* Update mfe.json

* Update mfe.json

* Update mfe.json

* add ws vnet properties (Azure#25882)

Co-authored-by: Aaheli Chattopadhyay <[email protected]>

* Fix circular reference 2023-10-01 (Azure#25879)

* TriggerType->ComputeTriggerType

* RecurrenceFrequency->ComputeRecurrenceFrequency

* RecurrenceSchedule->ComputeRecurrenceSchedule

* description

---------

Co-authored-by: Kayla Ames <[email protected]>

* Adding proxy resource (Azure#25904)

Co-authored-by: Shail Paragbhai Shah <[email protected]>

* Add feature store api's to GA version (Azure#25594)

* Add examples

* Adding feature store GA api's

* Sync examples

* Add examples

* Converting to ProxyResource

---------

Co-authored-by: Shail Paragbhai Shah <[email protected]>

* add serverless compute settings (Azure#26012)

Co-authored-by: Aaheli Chattopadhyay <[email protected]>

* [MachineLearningService]Add featurestore property to stable version (Azure#26121)

* Add workspace kind and featureStoreSettings

* add description

* Add description for ComputeRuntimeDti

* remove featurestore settings for lint

* remove Kind

* Revert "remove featurestore settings for lint"

This reverts commit f4d7ae352baf966aeba9085bd06df3456bd17bef.

* Update readme

fix

---------

Co-authored-by: Kayla Ames <[email protected]>
Co-authored-by: libc16 <[email protected]>
Co-authored-by: Chunyu Li <[email protected]>
Co-authored-by: shail2208 <[email protected]>
Co-authored-by: Shail Paragbhai Shah <[email protected]>
Co-authored-by: ZhidaLiu <[email protected]>
Co-authored-by: ac923 <[email protected]>
Co-authored-by: Aaheli Chattopadhyay <[email protected]>
Co-authored-by: chaoyu-msft <[email protected]>
Co-authored-by: Mathieu St-Louis <[email protected]>
  • Loading branch information
11 people committed Oct 16, 2023
1 parent 2a9480e commit 8564f35
Show file tree
Hide file tree
Showing 107 changed files with 57,097 additions and 15,767 deletions.
857 changes: 631 additions & 226 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

1,109 changes: 1,100 additions & 9 deletions sdk/machinelearning/arm-machinelearning/CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/machinelearning/arm-machinelearning/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022 Microsoft
Copyright (c) 2023 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
26 changes: 13 additions & 13 deletions sdk/machinelearning/arm-machinelearning/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# AzureMachineLearningWorkspaces client library for JavaScript
# Azure Machine Learning client library for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMachineLearningWorkspaces client.
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Machine Learning client.

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

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

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

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

Install the AzureMachineLearningWorkspaces client library for JavaScript with `npm`:
Install the Azure Machine Learning client library for JavaScript with `npm`:

```bash
npm install @azure/arm-machinelearning
```

### Create and authenticate a `AzureMachineLearningWorkspaces`
### Create and authenticate a `AzureMachineLearningServices`

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.
You can find the endpoint for your AzureMachineLearningWorkspaces resource in the [Azure Portal][azure_portal].
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.
You can find the endpoint for your Azure Machine Learning resource in the [Azure Portal][azure_portal].

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).

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

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).
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).
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`.

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).

```javascript
const { AzureMachineLearningWorkspaces } = require("@azure/arm-machinelearning");
const { AzureMachineLearningServices } = require("@azure/arm-machinelearning");
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 AzureMachineLearningWorkspaces(new DefaultAzureCredential(), subscriptionId);
const client = new AzureMachineLearningServices(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 AzureMachineLearningWorkspaces(credential, subscriptionId);
// const client = new AzureMachineLearningServices(credential, subscriptionId);
```


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

## Key concepts

### AzureMachineLearningWorkspaces
### AzureMachineLearningServices

`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.
`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.

## Troubleshooting

Expand Down
8 changes: 4 additions & 4 deletions sdk/machinelearning/arm-machinelearning/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "1fefe3f5cee88319b17c08a2dbf95e1e983a9f8c",
"commit": "bf7cfe83d54b07c8b6071975188812341eeed976",
"readme": "specification/machinelearningservices/resource-manager/readme.md",
"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",
"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.4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/[email protected].0-rc.3.20221108.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.2",
"use": "@autorest/typescript@^6.0.4"
}
52 changes: 26 additions & 26 deletions sdk/machinelearning/arm-machinelearning/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
"name": "@azure/arm-machinelearning",
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for AzureMachineLearningWorkspaces.",
"version": "2.1.2",
"description": "A generated SDK for AzureMachineLearningServices.",
"version": "3.0.0-beta.1",
"engines": {
"node": ">=16.0.0"
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.6.1",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-rest-pipeline": "^1.12.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -29,22 +29,28 @@
"types": "./types/arm-machinelearning.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^1.0.4",
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^2.1.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~5.0.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^3.3.0",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^10.0.0",
"mocha": "^7.1.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"ts-node": "^10.0.0"
"@types/node": "^14.0.0",
"ts-node": "^10.0.0",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand All @@ -64,20 +70,21 @@
"src/**/*.ts",
"README.md",
"LICENSE",
"rollup.config.js",
"tsconfig.json",
"review/*",
"CHANGELOG.md",
"types/*"
],
"scripts": {
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api",
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"prepack": "npm run build",
"pack": "npm pack 2>&1",
"extract-api": "api-extractor run --local",
"lint": "echo skipped",
"audit": "echo skipped",
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:browser": "echo skipped",
"build:test": "echo skipped",
Expand All @@ -99,18 +106,11 @@
"//metadata": {
"constantPaths": [
{
"path": "src/azureMachineLearningWorkspaces.ts",
"path": "src/azureMachineLearningServices.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning"
}
Loading

0 comments on commit 8564f35

Please sign in to comment.