diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index 72da6923b8ad..627cb0853854 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -66,6 +66,8 @@ specifiers:
'@rush-temp/arm-loadtestservice': file:./projects/arm-loadtestservice.tgz
'@rush-temp/arm-locks': file:./projects/arm-locks.tgz
'@rush-temp/arm-logic': file:./projects/arm-logic.tgz
+ '@rush-temp/arm-machinelearningcompute': file:./projects/arm-machinelearningcompute.tgz
+ '@rush-temp/arm-machinelearningexperimentation': file:./projects/arm-machinelearningexperimentation.tgz
'@rush-temp/arm-managedapplications': file:./projects/arm-managedapplications.tgz
'@rush-temp/arm-managementgroups': file:./projects/arm-managementgroups.tgz
'@rush-temp/arm-mediaservices': file:./projects/arm-mediaservices.tgz
@@ -269,6 +271,8 @@ dependencies:
'@rush-temp/arm-loadtestservice': file:projects/arm-loadtestservice.tgz
'@rush-temp/arm-locks': file:projects/arm-locks.tgz
'@rush-temp/arm-logic': file:projects/arm-logic.tgz
+ '@rush-temp/arm-machinelearningcompute': file:projects/arm-machinelearningcompute.tgz
+ '@rush-temp/arm-machinelearningexperimentation': file:projects/arm-machinelearningexperimentation.tgz
'@rush-temp/arm-managedapplications': file:projects/arm-managedapplications.tgz
'@rush-temp/arm-managementgroups': file:projects/arm-managementgroups.tgz
'@rush-temp/arm-mediaservices': file:projects/arm-mediaservices.tgz
@@ -9863,6 +9867,54 @@ packages:
- supports-color
dev: false
+ file:projects/arm-machinelearningcompute.tgz:
+ resolution: {integrity: sha512-MASxoXTGPlsyS9vTB2LQkDGH9XAv1ex3a2A2GrU/T35OX6DXyLrnyZwLfxhdoGuNLoUN1AiZaMNzxusu3G9dqQ==, tarball: file:projects/arm-machinelearningcompute.tgz}
+ name: '@rush-temp/arm-machinelearningcompute'
+ version: 0.0.0
+ dependencies:
+ '@azure-tools/test-recorder': 1.0.2
+ '@microsoft/api-extractor': 7.19.2
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rimraf: 3.0.2
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.5
+ transitivePeerDependencies:
+ - supports-color
+ dev: false
+
+ file:projects/arm-machinelearningexperimentation.tgz:
+ resolution: {integrity: sha512-4wPXhneS7lXw2+23j715k1lKUvHwEfe3a/LqYGlJb42+RK57JAzojgxPyhBpDeDgJniYIT3jT6nzkzjM071FqA==, tarball: file:projects/arm-machinelearningexperimentation.tgz}
+ name: '@rush-temp/arm-machinelearningexperimentation'
+ version: 0.0.0
+ dependencies:
+ '@azure-tools/test-recorder': 1.0.2
+ '@microsoft/api-extractor': 7.19.2
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rimraf: 3.0.2
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.5
+ transitivePeerDependencies:
+ - supports-color
+ dev: false
+
file:projects/arm-managedapplications.tgz:
resolution: {integrity: sha512-oX2g+2gmn9C7tEb4bEGrjA6yXkP2RR7PG1NlAHDksrDPwmbsRR03139eUDIcF0Hb+quKuRseakzCDYMRcNEP0A==, tarball: file:projects/arm-managedapplications.tgz}
name: '@rush-temp/arm-managedapplications'
diff --git a/rush.json b/rush.json
index 1b3e98d8514a..f6a4dab1109b 100644
--- a/rush.json
+++ b/rush.json
@@ -1325,6 +1325,16 @@
"packageName": "@azure/arm-labservices",
"projectFolder": "sdk/labservices/arm-labservices",
"versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-machinelearningcompute",
+ "projectFolder": "sdk/machinelearningcompute/arm-machinelearningcompute",
+ "versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-machinelearningexperimentation",
+ "projectFolder": "sdk/machinelearningexperimentation/arm-machinelearningexperimentation",
+ "versionPolicyName": "management"
}
]
}
\ No newline at end of file
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/CHANGELOG.md b/sdk/machinelearningcompute/arm-machinelearningcompute/CHANGELOG.md
new file mode 100644
index 000000000000..6415f38377dd
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/CHANGELOG.md
@@ -0,0 +1,11 @@
+# Release History
+
+## 3.0.0-beta.1 (2022-01-17)
+
+The package of @azure/arm-machinelearningcompute is using our next generation design principles since version 3.0.0-beta.1, which contains breaking changes.
+
+To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
+
+To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
+
+To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/LICENSE b/sdk/machinelearningcompute/arm-machinelearningcompute/LICENSE
new file mode 100644
index 000000000000..5d1d36e0af80
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2022 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
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/README.md b/sdk/machinelearningcompute/arm-machinelearningcompute/README.md
index 9daae84d5b66..27321ef8835f 100644
--- a/sdk/machinelearningcompute/arm-machinelearningcompute/README.md
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/README.md
@@ -1,102 +1,98 @@
-## Azure MachineLearningComputeManagementClient SDK for JavaScript
+# Azure Machine Learning Compute Management client library for JavaScript
-This package contains an isomorphic SDK for MachineLearningComputeManagementClient.
+This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Machine Learning Compute Management client.
+
+These APIs allow end users to operate on Azure Machine Learning Compute resources. They support the following operations:
- Create or update a cluster
- Get a cluster
- Patch a cluster
- Delete a cluster
- Get keys for a cluster
- Check if updates are available for system services in a cluster
- Update system services in a cluster
- Get all clusters in a resource group
- Get all clusters in a subscription
+
+[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningcompute/arm-machinelearningcompute) |
+[Package (NPM)](https://www.npmjs.com/package/@azure/arm-machinelearningcompute) |
+[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-machinelearningcompute?view=azure-node-preview) |
+[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
+
+## Getting started
### Currently supported environments
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
-- Latest versions of Safari, Chrome, Edge, and Firefox.
+- Latest versions of Safari, Chrome, Edge and Firefox.
+
+### Prerequisites
+
+- An [Azure subscription][azure_sub].
+
+### Install the `@azure/arm-machinelearningcompute` package
-### How to Install
+Install the Azure Machine Learning Compute Management client library for JavaScript with `npm`:
```bash
npm install @azure/arm-machinelearningcompute
```
-### How to use
+### Create and authenticate a `MachineLearningComputeManagementClient`
-#### nodejs - client creation and get operationalizationClusters as an example written in TypeScript.
+To create a client object to access the Azure Machine Learning Compute Management API, you will need the `endpoint` of your Azure Machine Learning Compute Management resource and a `credential`. The Azure Machine Learning Compute Management client can use Azure Active Directory credentials to authenticate.
+You can find the endpoint for your Azure Machine Learning Compute Management resource in the [Azure Portal][azure_portal].
-##### Install @azure/ms-rest-nodeauth
+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).
+
+To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
-- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
```bash
-npm install @azure/ms-rest-nodeauth@"^3.0.0"
+npm install @azure/identity
```
-##### Sample code
+You will also need to **register a new AAD application and grant access to Azure Machine Learning Compute Management** 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).
-While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
-```typescript
-const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
+```javascript
const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
-const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-
-msRestNodeAuth.interactiveLogin().then((creds) => {
- const client = new MachineLearningComputeManagementClient(creds, subscriptionId);
- const resourceGroupName = "testresourceGroupName";
- const clusterName = "testclusterName";
- client.operationalizationClusters.get(resourceGroupName, clusterName).then((result) => {
- console.log("The result is:");
- console.log(result);
- });
-}).catch((err) => {
- console.error(err);
-});
+const { DefaultAzureCredential } = require("@azure/identity");
+const subscriptionId = "00000000-0000-0000-0000-000000000000";
+const client = new MachineLearningComputeManagementClient(new DefaultAzureCredential(), subscriptionId);
```
-#### browser - Authentication, client creation and get operationalizationClusters as an example written in JavaScript.
-##### Install @azure/ms-rest-browserauth
+### JavaScript Bundle
+To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
-```bash
-npm install @azure/ms-rest-browserauth
-```
+## Key concepts
+
+### MachineLearningComputeManagementClient
-##### Sample code
-
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
-- index.html
-```html
-
-
-
- @azure/arm-machinelearningcompute sample
-
-
-
-
-
-
-
-
+`MachineLearningComputeManagementClient` is the primary interface for developers using the Azure Machine Learning Compute Management client library. Explore the methods on this client object to understand the different features of the Azure Machine Learning Compute Management service that you can access.
+
+## Troubleshooting
+
+### Logging
+
+Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
+
+```javascript
+const { setLogLevel } = require("@azure/logger");
+setLogLevel("info");
```
+For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
+
+## Next steps
+
+Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
+
+## Contributing
+
+If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
+
## Related projects
-- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
+
+![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmachinelearningcompute%2Farm-machinelearningcompute%2FREADME.png)
-![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/machinelearningcompute/arm-machinelearningcompute/README.png)
+[azure_cli]: https://docs.microsoft.com/cli/azure
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_portal]: https://portal.azure.com
+[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
+[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/_meta.json b/sdk/machinelearningcompute/arm-machinelearningcompute/_meta.json
new file mode 100644
index 000000000000..7ed08d3246f6
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/_meta.json
@@ -0,0 +1,7 @@
+{
+ "commit": "6dd1d6d39dd0a7fc67ee53429d7c4ed084a0bac2",
+ "readme": "specification/machinelearningexperimentation/resource-manager/readme.md",
+ "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/machinelearningexperimentation/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --generate-sample=true",
+ "repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
+ "use": "@autorest/typescript@6.0.0-alpha.16.20220114.1"
+}
\ No newline at end of file
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/api-extractor.json b/sdk/machinelearningcompute/arm-machinelearningcompute/api-extractor.json
new file mode 100644
index 000000000000..8d402a2ad323
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/api-extractor.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
+ "mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
+ "docModel": { "enabled": true },
+ "apiReport": { "enabled": true, "reportFolder": "./review" },
+ "dtsRollup": {
+ "enabled": true,
+ "untrimmedFilePath": "",
+ "publicTrimmedFilePath": "./types/arm-machinelearningcompute.d.ts"
+ },
+ "messages": {
+ "tsdocMessageReporting": { "default": { "logLevel": "none" } },
+ "extractorMessageReporting": {
+ "ae-missing-release-tag": { "logLevel": "none" },
+ "ae-unresolved-link": { "logLevel": "none" }
+ }
+ }
+}
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/package.json b/sdk/machinelearningcompute/arm-machinelearningcompute/package.json
index bf49b90c74d0..7e489f78d9b3 100644
--- a/sdk/machinelearningcompute/arm-machinelearningcompute/package.json
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/package.json
@@ -1,58 +1,106 @@
{
"name": "@azure/arm-machinelearningcompute",
+ "sdk-type": "mgmt",
"author": "Microsoft Corporation",
- "description": "MachineLearningComputeManagementClient Library with typescript type definitions for node.js and browser.",
- "version": "2.0.0",
+ "description": "A generated SDK for MachineLearningComputeManagementClient.",
+ "version": "3.0.0-beta.1",
+ "engines": { "node": ">=12.0.0" },
"dependencies": {
- "@azure/ms-rest-azure-js": "^2.0.1",
- "@azure/ms-rest-js": "^2.0.4",
- "tslib": "^1.10.0"
+ "@azure/core-lro": "^2.2.0",
+ "@azure/abort-controller": "^1.0.0",
+ "@azure/core-paging": "^1.2.0",
+ "@azure/core-client": "^1.0.0",
+ "@azure/core-auth": "^1.3.0",
+ "@azure/core-rest-pipeline": "^1.1.0",
+ "tslib": "^2.2.0"
},
- "keywords": [
- "node",
- "azure",
- "typescript",
- "browser",
- "isomorphic"
- ],
+ "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
- "main": "./dist/arm-machinelearningcompute.js",
- "module": "./esm/machineLearningComputeManagementClient.js",
- "types": "./esm/machineLearningComputeManagementClient.d.ts",
+ "main": "./dist/index.js",
+ "module": "./dist-esm/src/index.js",
+ "types": "./types/arm-machinelearningcompute.d.ts",
"devDependencies": {
- "typescript": "^3.5.3",
- "rollup": "^1.18.0",
- "rollup-plugin-node-resolve": "^5.2.0",
+ "@microsoft/api-extractor": "^7.18.11",
+ "@rollup/plugin-commonjs": "11.0.2",
+ "@rollup/plugin-json": "^4.0.0",
+ "@rollup/plugin-multi-entry": "^3.0.0",
+ "@rollup/plugin-node-resolve": "^8.0.0",
+ "mkdirp": "^1.0.4",
+ "rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
- "uglify-js": "^3.6.0"
+ "typescript": "~4.2.0",
+ "uglify-js": "^3.4.9",
+ "rimraf": "^3.0.0",
+ "@azure/identity": "^2.0.1",
+ "@azure-tools/test-recorder": "^1.0.0",
+ "mocha": "^7.1.1",
+ "cross-env": "^7.0.2"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningcompute/arm-machinelearningcompute",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
- "bugs": {
- "url": "https://github.com/Azure/azure-sdk-for-js/issues"
- },
+ "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
- "esm/**/*.js",
- "esm/**/*.js.map",
- "esm/**/*.d.ts",
- "esm/**/*.d.ts.map",
+ "dist-esm/**/*.js",
+ "dist-esm/**/*.js.map",
+ "dist-esm/**/*.d.ts",
+ "dist-esm/**/*.d.ts.map",
"src/**/*.ts",
"README.md",
+ "LICENSE",
"rollup.config.js",
- "tsconfig.json"
+ "tsconfig.json",
+ "review/*",
+ "CHANGELOG.md",
+ "types/*"
],
"scripts": {
- "build": "tsc && rollup -c rollup.config.js && npm run minify",
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-machinelearningcompute.js.map'\" -o ./dist/arm-machinelearningcompute.min.js ./dist/arm-machinelearningcompute.js",
- "prepack": "npm install && npm run build"
+ "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",
+ "build:node": "echo skipped",
+ "build:browser": "echo skipped",
+ "build:test": "echo skipped",
+ "build:samples": "echo skipped.",
+ "check-format": "echo skipped",
+ "execute:samples": "echo skipped",
+ "format": "echo skipped",
+ "test": "npm run integration-test",
+ "test:node": "echo skipped",
+ "test:browser": "echo skipped",
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:browser": "echo skipped",
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
+ "integration-test:browser": "echo skipped",
+ "docs": "echo skipped"
},
"sideEffects": false,
- "autoPublish": true
+ "//metadata": {
+ "constantPaths": [
+ {
+ "path": "src/MachineLearningComputeManagementClient.ts",
+ "prefix": "packageDetails"
+ }
+ ]
+ },
+ "autoPublish": true,
+ "//sampleConfiguration": {
+ "productName": "",
+ "productSlugs": ["azure"],
+ "disableDocsMs": true,
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearningcompute?view=azure-node-preview"
+ }
}
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/recordings/node/my_test/recording_sample_test.js b/sdk/machinelearningcompute/arm-machinelearningcompute/recordings/node/my_test/recording_sample_test.js
new file mode 100644
index 000000000000..0f6ecb857acf
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/recordings/node/my_test/recording_sample_test.js
@@ -0,0 +1,5 @@
+let nock = require('nock');
+
+module.exports.hash = "7a6be38bb8cb644d64b4094802301751";
+
+module.exports.testInfo = {"uniqueName":{},"newDate":{}}
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/review/arm-machinelearningcompute.api.md b/sdk/machinelearningcompute/arm-machinelearningcompute/review/arm-machinelearningcompute.api.md
new file mode 100644
index 000000000000..5be11a4d6673
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/review/arm-machinelearningcompute.api.md
@@ -0,0 +1,545 @@
+## API Report File for "@azure/arm-machinelearningcompute"
+
+> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
+
+```ts
+
+import * as coreAuth from '@azure/core-auth';
+import * as coreClient from '@azure/core-client';
+import { PagedAsyncIterableIterator } from '@azure/core-paging';
+import { PollerLike } from '@azure/core-lro';
+import { PollOperationState } from '@azure/core-lro';
+
+// @public
+export interface AcsClusterProperties {
+ agentCount?: number;
+ agentVmSize?: AgentVMSizeTypes;
+ readonly clusterFqdn?: string;
+ masterCount?: number;
+ orchestratorProperties?: KubernetesClusterProperties;
+ orchestratorType: OrchestratorType;
+ systemServices?: SystemService[];
+}
+
+// @public
+export type AgentVMSizeTypes = string;
+
+// @public
+export interface AppInsightsCredentials {
+ appId?: string;
+ instrumentationKey?: string;
+}
+
+// @public
+export interface AppInsightsProperties {
+ resourceId?: string;
+}
+
+// @public
+export interface AutoScaleConfiguration {
+ maxReplicas?: number;
+ minReplicas?: number;
+ refreshPeriodInSeconds?: number;
+ status?: Status;
+ targetUtilization?: number;
+}
+
+// @public
+export interface AvailableOperations {
+ value?: ResourceOperation[];
+}
+
+// @public
+export interface CheckSystemServicesUpdatesAvailableResponse {
+ readonly updatesAvailable?: UpdatesAvailable;
+}
+
+// @public
+export type ClusterType = string;
+
+// @public
+export interface ContainerRegistryCredentials {
+ readonly loginServer?: string;
+ readonly password?: string;
+ readonly password2?: string;
+ readonly username?: string;
+}
+
+// @public
+export interface ContainerRegistryProperties {
+ resourceId?: string;
+}
+
+// @public
+export interface ContainerServiceCredentials {
+ readonly acsKubeConfig?: string;
+ readonly imagePullSecretName?: string;
+ readonly servicePrincipalConfiguration?: ServicePrincipalProperties;
+}
+
+// @public
+export interface ErrorDetail {
+ code: string;
+ message: string;
+}
+
+// @public
+export interface ErrorResponse {
+ code: string;
+ details?: ErrorDetail[];
+ message: string;
+}
+
+// @public
+export interface ErrorResponseWrapper {
+ error?: ErrorResponse;
+}
+
+// @public
+export interface GlobalServiceConfiguration {
+ [property: string]: any;
+ autoScale?: AutoScaleConfiguration;
+ etag?: string;
+ serviceAuth?: ServiceAuthConfiguration;
+ ssl?: SslConfiguration;
+}
+
+// @public
+export enum KnownAgentVMSizeTypes {
+ // (undocumented)
+ StandardA0 = "Standard_A0",
+ // (undocumented)
+ StandardA1 = "Standard_A1",
+ // (undocumented)
+ StandardA10 = "Standard_A10",
+ // (undocumented)
+ StandardA11 = "Standard_A11",
+ // (undocumented)
+ StandardA2 = "Standard_A2",
+ // (undocumented)
+ StandardA3 = "Standard_A3",
+ // (undocumented)
+ StandardA4 = "Standard_A4",
+ // (undocumented)
+ StandardA5 = "Standard_A5",
+ // (undocumented)
+ StandardA6 = "Standard_A6",
+ // (undocumented)
+ StandardA7 = "Standard_A7",
+ // (undocumented)
+ StandardA8 = "Standard_A8",
+ // (undocumented)
+ StandardA9 = "Standard_A9",
+ // (undocumented)
+ StandardD1 = "Standard_D1",
+ // (undocumented)
+ StandardD11 = "Standard_D11",
+ // (undocumented)
+ StandardD11V2 = "Standard_D11_v2",
+ // (undocumented)
+ StandardD12 = "Standard_D12",
+ // (undocumented)
+ StandardD12V2 = "Standard_D12_v2",
+ // (undocumented)
+ StandardD13 = "Standard_D13",
+ // (undocumented)
+ StandardD13V2 = "Standard_D13_v2",
+ // (undocumented)
+ StandardD14 = "Standard_D14",
+ // (undocumented)
+ StandardD14V2 = "Standard_D14_v2",
+ // (undocumented)
+ StandardD1V2 = "Standard_D1_v2",
+ // (undocumented)
+ StandardD2 = "Standard_D2",
+ // (undocumented)
+ StandardD2V2 = "Standard_D2_v2",
+ // (undocumented)
+ StandardD3 = "Standard_D3",
+ // (undocumented)
+ StandardD3V2 = "Standard_D3_v2",
+ // (undocumented)
+ StandardD4 = "Standard_D4",
+ // (undocumented)
+ StandardD4V2 = "Standard_D4_v2",
+ // (undocumented)
+ StandardD5V2 = "Standard_D5_v2",
+ // (undocumented)
+ StandardDS1 = "Standard_DS1",
+ // (undocumented)
+ StandardDS11 = "Standard_DS11",
+ // (undocumented)
+ StandardDS12 = "Standard_DS12",
+ // (undocumented)
+ StandardDS13 = "Standard_DS13",
+ // (undocumented)
+ StandardDS14 = "Standard_DS14",
+ // (undocumented)
+ StandardDS2 = "Standard_DS2",
+ // (undocumented)
+ StandardDS3 = "Standard_DS3",
+ // (undocumented)
+ StandardDS4 = "Standard_DS4",
+ // (undocumented)
+ StandardG1 = "Standard_G1",
+ // (undocumented)
+ StandardG2 = "Standard_G2",
+ // (undocumented)
+ StandardG3 = "Standard_G3",
+ // (undocumented)
+ StandardG4 = "Standard_G4",
+ // (undocumented)
+ StandardG5 = "Standard_G5",
+ // (undocumented)
+ StandardGS1 = "Standard_GS1",
+ // (undocumented)
+ StandardGS2 = "Standard_GS2",
+ // (undocumented)
+ StandardGS3 = "Standard_GS3",
+ // (undocumented)
+ StandardGS4 = "Standard_GS4",
+ // (undocumented)
+ StandardGS5 = "Standard_GS5"
+}
+
+// @public
+export enum KnownClusterType {
+ // (undocumented)
+ ACS = "ACS",
+ // (undocumented)
+ Local = "Local"
+}
+
+// @public
+export enum KnownOperationStatus {
+ // (undocumented)
+ Canceled = "Canceled",
+ // (undocumented)
+ Creating = "Creating",
+ // (undocumented)
+ Deleting = "Deleting",
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ Succeeded = "Succeeded",
+ // (undocumented)
+ Unknown = "Unknown",
+ // (undocumented)
+ Updating = "Updating"
+}
+
+// @public
+export enum KnownOrchestratorType {
+ // (undocumented)
+ Kubernetes = "Kubernetes",
+ // (undocumented)
+ None = "None"
+}
+
+// @public
+export enum KnownStatus {
+ // (undocumented)
+ Disabled = "Disabled",
+ // (undocumented)
+ Enabled = "Enabled"
+}
+
+// @public
+export enum KnownSystemServiceType {
+ // (undocumented)
+ BatchFrontEnd = "BatchFrontEnd",
+ // (undocumented)
+ None = "None",
+ // (undocumented)
+ ScoringFrontEnd = "ScoringFrontEnd"
+}
+
+// @public
+export enum KnownUpdatesAvailable {
+ // (undocumented)
+ No = "No",
+ // (undocumented)
+ Yes = "Yes"
+}
+
+// @public
+export interface KubernetesClusterProperties {
+ servicePrincipal?: ServicePrincipalProperties;
+}
+
+// @public
+export interface MachineLearningCompute {
+ listAvailableOperations(options?: MachineLearningComputeListAvailableOperationsOptionalParams): Promise;
+}
+
+// @public
+export interface MachineLearningComputeListAvailableOperationsOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type MachineLearningComputeListAvailableOperationsResponse = AvailableOperations;
+
+// @public (undocumented)
+export class MachineLearningComputeManagementClient extends coreClient.ServiceClient {
+ // (undocumented)
+ $host: string;
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MachineLearningComputeManagementClientOptionalParams);
+ // (undocumented)
+ apiVersion: string;
+ // (undocumented)
+ machineLearningCompute: MachineLearningCompute;
+ // (undocumented)
+ operationalizationClusters: OperationalizationClusters;
+ // (undocumented)
+ subscriptionId: string;
+}
+
+// @public
+export interface MachineLearningComputeManagementClientOptionalParams extends coreClient.ServiceClientOptions {
+ $host?: string;
+ apiVersion?: string;
+ endpoint?: string;
+}
+
+// @public
+export type OperationalizationCluster = Resource & {
+ description?: string;
+ readonly createdOn?: Date;
+ readonly modifiedOn?: Date;
+ readonly provisioningState?: OperationStatus;
+ readonly provisioningErrors?: ErrorResponseWrapper[];
+ clusterType?: ClusterType;
+ storageAccount?: StorageAccountProperties;
+ containerRegistry?: ContainerRegistryProperties;
+ containerService?: AcsClusterProperties;
+ appInsights?: AppInsightsProperties;
+ globalServiceConfiguration?: GlobalServiceConfiguration;
+};
+
+// @public
+export interface OperationalizationClusterCredentials {
+ appInsights?: AppInsightsCredentials;
+ containerRegistry?: ContainerRegistryCredentials;
+ containerService?: ContainerServiceCredentials;
+ serviceAuthConfiguration?: ServiceAuthConfiguration;
+ sslConfiguration?: SslConfiguration;
+ storageAccount?: StorageAccountCredentials;
+}
+
+// @public
+export interface OperationalizationClusters {
+ beginCreateOrUpdate(resourceGroupName: string, clusterName: string, parameters: OperationalizationCluster, options?: OperationalizationClustersCreateOrUpdateOptionalParams): Promise, OperationalizationClustersCreateOrUpdateResponse>>;
+ beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, parameters: OperationalizationCluster, options?: OperationalizationClustersCreateOrUpdateOptionalParams): Promise;
+ beginDelete(resourceGroupName: string, clusterName: string, options?: OperationalizationClustersDeleteOptionalParams): Promise, OperationalizationClustersDeleteResponse>>;
+ beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: OperationalizationClustersDeleteOptionalParams): Promise;
+ beginUpdateSystemServices(resourceGroupName: string, clusterName: string, options?: OperationalizationClustersUpdateSystemServicesOptionalParams): Promise, OperationalizationClustersUpdateSystemServicesResponse>>;
+ beginUpdateSystemServicesAndWait(resourceGroupName: string, clusterName: string, options?: OperationalizationClustersUpdateSystemServicesOptionalParams): Promise;
+ checkSystemServicesUpdatesAvailable(resourceGroupName: string, clusterName: string, options?: OperationalizationClustersCheckSystemServicesUpdatesAvailableOptionalParams): Promise;
+ get(resourceGroupName: string, clusterName: string, options?: OperationalizationClustersGetOptionalParams): Promise;
+ listByResourceGroup(resourceGroupName: string, options?: OperationalizationClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ listBySubscriptionId(options?: OperationalizationClustersListBySubscriptionIdOptionalParams): PagedAsyncIterableIterator;
+ listKeys(resourceGroupName: string, clusterName: string, options?: OperationalizationClustersListKeysOptionalParams): Promise;
+ update(resourceGroupName: string, clusterName: string, parameters: OperationalizationClusterUpdateParameters, options?: OperationalizationClustersUpdateOptionalParams): Promise;
+}
+
+// @public
+export interface OperationalizationClustersCheckSystemServicesUpdatesAvailableOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationalizationClustersCheckSystemServicesUpdatesAvailableResponse = CheckSystemServicesUpdatesAvailableResponse;
+
+// @public
+export interface OperationalizationClustersCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type OperationalizationClustersCreateOrUpdateResponse = OperationalizationCluster;
+
+// @public
+export interface OperationalizationClustersDeleteHeaders {
+ location?: string;
+}
+
+// @public
+export interface OperationalizationClustersDeleteOptionalParams extends coreClient.OperationOptions {
+ deleteAll?: boolean;
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type OperationalizationClustersDeleteResponse = OperationalizationClustersDeleteHeaders;
+
+// @public
+export interface OperationalizationClustersGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationalizationClustersGetResponse = OperationalizationCluster;
+
+// @public
+export interface OperationalizationClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+ skiptoken?: string;
+}
+
+// @public
+export type OperationalizationClustersListByResourceGroupNextResponse = PaginatedOperationalizationClustersList;
+
+// @public
+export interface OperationalizationClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {
+ skiptoken?: string;
+}
+
+// @public
+export type OperationalizationClustersListByResourceGroupResponse = PaginatedOperationalizationClustersList;
+
+// @public
+export interface OperationalizationClustersListBySubscriptionIdNextOptionalParams extends coreClient.OperationOptions {
+ skiptoken?: string;
+}
+
+// @public
+export type OperationalizationClustersListBySubscriptionIdNextResponse = PaginatedOperationalizationClustersList;
+
+// @public
+export interface OperationalizationClustersListBySubscriptionIdOptionalParams extends coreClient.OperationOptions {
+ skiptoken?: string;
+}
+
+// @public
+export type OperationalizationClustersListBySubscriptionIdResponse = PaginatedOperationalizationClustersList;
+
+// @public
+export interface OperationalizationClustersListKeysOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationalizationClustersListKeysResponse = OperationalizationClusterCredentials;
+
+// @public
+export interface OperationalizationClustersUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationalizationClustersUpdateResponse = OperationalizationCluster;
+
+// @public
+export interface OperationalizationClustersUpdateSystemServicesHeaders {
+ location?: string;
+}
+
+// @public
+export interface OperationalizationClustersUpdateSystemServicesOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type OperationalizationClustersUpdateSystemServicesResponse = UpdateSystemServicesResponse;
+
+// @public
+export interface OperationalizationClusterUpdateParameters {
+ tags?: {
+ [propertyName: string]: string;
+ };
+}
+
+// @public
+export type OperationStatus = string;
+
+// @public
+export type OrchestratorType = string;
+
+// @public
+export interface PaginatedOperationalizationClustersList {
+ nextLink?: string;
+ value?: OperationalizationCluster[];
+}
+
+// @public
+export interface Resource {
+ readonly id?: string;
+ location: string;
+ readonly name?: string;
+ tags?: {
+ [propertyName: string]: string;
+ };
+ readonly type?: string;
+}
+
+// @public
+export interface ResourceOperation {
+ display?: ResourceOperationDisplay;
+ name?: string;
+ origin?: string;
+}
+
+// @public
+export interface ResourceOperationDisplay {
+ description?: string;
+ operation?: string;
+ provider?: string;
+ resource?: string;
+}
+
+// @public
+export interface ServiceAuthConfiguration {
+ primaryAuthKeyHash: string;
+ secondaryAuthKeyHash: string;
+}
+
+// @public
+export interface ServicePrincipalProperties {
+ clientId: string;
+ secret: string;
+}
+
+// @public
+export interface SslConfiguration {
+ cert?: string;
+ cname?: string;
+ key?: string;
+ status?: Status;
+}
+
+// @public
+export type Status = string;
+
+// @public
+export interface StorageAccountCredentials {
+ readonly primaryKey?: string;
+ readonly resourceId?: string;
+ readonly secondaryKey?: string;
+}
+
+// @public
+export interface StorageAccountProperties {
+ resourceId?: string;
+}
+
+// @public
+export interface SystemService {
+ readonly publicIpAddress?: string;
+ systemServiceType: SystemServiceType;
+ readonly version?: string;
+}
+
+// @public
+export type SystemServiceType = string;
+
+// @public
+export type UpdatesAvailable = string;
+
+// @public
+export interface UpdateSystemServicesResponse {
+ readonly updateCompletedOn?: Date;
+ readonly updateStartedOn?: Date;
+ readonly updateStatus?: OperationStatus;
+}
+
+// (No @packageDocumentation comment for this package)
+
+```
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/rollup.config.js b/sdk/machinelearningcompute/arm-machinelearningcompute/rollup.config.js
index 23cc8bd84ab1..9be1955eb7f1 100644
--- a/sdk/machinelearningcompute/arm-machinelearningcompute/rollup.config.js
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/rollup.config.js
@@ -1,37 +1,188 @@
-import rollup from "rollup";
-import nodeResolve from "rollup-plugin-node-resolve";
-import sourcemaps from "rollup-plugin-sourcemaps";
-
-/**
- * @type {rollup.RollupFileOptions}
- */
-const config = {
- input: "./esm/machineLearningComputeManagementClient.js",
- external: [
- "@azure/ms-rest-js",
- "@azure/ms-rest-azure-js"
- ],
- output: {
- file: "./dist/arm-machinelearningcompute.js",
- format: "umd",
- name: "Azure.ArmMachinelearningcompute",
- sourcemap: true,
- globals: {
- "@azure/ms-rest-js": "msRest",
- "@azure/ms-rest-azure-js": "msRestAzure"
- },
- banner: `/*
+/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */`
- },
- plugins: [
- nodeResolve({ mainFields: ['module', 'main'] }),
- sourcemaps()
- ]
+ */
+
+import nodeResolve from "@rollup/plugin-node-resolve";
+import cjs from "@rollup/plugin-commonjs";
+import sourcemaps from "rollup-plugin-sourcemaps";
+import multiEntry from "@rollup/plugin-multi-entry";
+import json from "@rollup/plugin-json";
+
+import nodeBuiltins from "builtin-modules";
+
+/**
+ * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
+ *
+ * NOTE: this manual configuration is only needed because OpenTelemetry uses an
+ * __exportStar downleveled helper function to declare its exports which confuses
+ * rollup's automatic discovery mechanism.
+ *
+ * @returns an object reference that can be `...`'d into your cjs() configuration.
+ */
+export function openTelemetryCommonJs() {
+ const namedExports = {};
+
+ for (const key of [
+ "@opentelemetry/api",
+ "@azure/core-tracing/node_modules/@opentelemetry/api"
+ ]) {
+ namedExports[key] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "SpanStatusCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
+
+ for (const version of releasedOpenTelemetryVersions) {
+ namedExports[
+ // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
+ `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
+ ] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "StatusCode",
+ "CanonicalCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ return namedExports;
+}
+
+// #region Warning Handler
+
+/**
+ * A function that can determine whether a rollupwarning should be ignored. If
+ * the function returns `true`, then the warning will not be displayed.
+ */
+
+function ignoreNiseSinonEvalWarnings(warning) {
+ return (
+ warning.code === "EVAL" &&
+ warning.id &&
+ (warning.id.includes("node_modules/nise") ||
+ warning.id.includes("node_modules/sinon")) === true
+ );
+}
+
+function ignoreChaiCircularDependencyWarnings(warning) {
+ return (
+ warning.code === "CIRCULAR_DEPENDENCY" &&
+ warning.importer && warning.importer.includes("node_modules/chai") === true
+ );
+}
+
+const warningInhibitors = [
+ ignoreChaiCircularDependencyWarnings,
+ ignoreNiseSinonEvalWarnings
+];
+
+/**
+ * Construct a warning handler for the shared rollup configuration
+ * that ignores certain warnings that are not relevant to testing.
+ */
+function makeOnWarnForTesting() {
+ return (warning, warn) => {
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
+ warn(warning);
+ }
+ };
+}
+
+// #endregion
+
+function makeBrowserTestConfig() {
+ const config = {
+ input: {
+ include: ["dist-esm/test/**/*.spec.js"],
+ exclude: ["dist-esm/test/**/node/**"]
+ },
+ output: {
+ file: `dist-test/index.browser.js`,
+ format: "umd",
+ sourcemap: true
+ },
+ preserveSymlinks: false,
+ plugins: [
+ multiEntry({ exports: false }),
+ nodeResolve({
+ mainFields: ["module", "browser"]
+ }),
+ cjs({
+ namedExports: {
+ // Chai's strange internal architecture makes it impossible to statically
+ // analyze its exports.
+ chai: [
+ "version",
+ "use",
+ "util",
+ "config",
+ "expect",
+ "should",
+ "assert"
+ ],
+ ...openTelemetryCommonJs()
+ }
+ }),
+ json(),
+ sourcemaps()
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
+ ],
+ onwarn: makeOnWarnForTesting(),
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
+ // rollup started respecting the "sideEffects" field in package.json. Since
+ // our package.json sets "sideEffects=false", this also applies to test
+ // code, which causes all tests to be removed by tree-shaking.
+ treeshake: false
+ };
+
+ return config;
+}
+
+const defaultConfigurationOptions = {
+ disableBrowserBundle: false
};
-export default config;
+export function makeConfig(pkg, options) {
+ options = {
+ ...defaultConfigurationOptions,
+ ...(options || {})
+ };
+
+ const baseConfig = {
+ // Use the package's module field if it has one
+ input: pkg["module"] || "dist-esm/src/index.js",
+ external: [
+ ...nodeBuiltins,
+ ...Object.keys(pkg.dependencies),
+ ...Object.keys(pkg.devDependencies)
+ ],
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
+ preserveSymlinks: false,
+ plugins: [sourcemaps(), nodeResolve(), cjs()]
+ };
+
+ const config = [baseConfig];
+
+ if (!options.disableBrowserBundle) {
+ config.push(makeBrowserTestConfig());
+ }
+
+ return config;
+}
+
+export default makeConfig(require("./package.json"));
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/sample.env b/sdk/machinelearningcompute/arm-machinelearningcompute/sample.env
new file mode 100644
index 000000000000..672847a3fea0
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/sample.env
@@ -0,0 +1,4 @@
+# App registration secret for AAD authentication
+AZURE_CLIENT_SECRET=
+AZURE_CLIENT_ID=
+AZURE_TENANT_ID=
\ No newline at end of file
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/checkUpdateForAnOperationalizationCluster.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/checkUpdateForAnOperationalizationCluster.ts
new file mode 100644
index 000000000000..0c8c760f3e5b
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/checkUpdateForAnOperationalizationCluster.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Checks if updates are available for system services in the cluster.
+ *
+ * @summary Checks if updates are available for system services in the cluster.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_CheckSystemServicesUpdatesAvailable.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function checkUpdateForAnOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.operationalizationClusters.checkSystemServicesUpdatesAvailable(
+ resourceGroupName,
+ clusterName
+ );
+ console.log(result);
+}
+
+checkUpdateForAnOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/deleteOperationalizationCluster.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/deleteOperationalizationCluster.ts
new file mode 100644
index 000000000000..ac8b9a2b82ff
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/deleteOperationalizationCluster.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Deletes the specified cluster.
+ *
+ * @summary Deletes the specified cluster.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Delete.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function deleteOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.operationalizationClusters.beginDeleteAndWait(
+ resourceGroupName,
+ clusterName
+ );
+ console.log(result);
+}
+
+deleteOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/getOperationalizationCluster.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/getOperationalizationCluster.ts
new file mode 100644
index 000000000000..1e39f364ffcc
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/getOperationalizationCluster.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the operationalization cluster resource view. Note that the credentials are not returned by this call. Call ListKeys to get them.
+ *
+ * @summary Gets the operationalization cluster resource view. Note that the credentials are not returned by this call. Call ListKeys to get them.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Get.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function getOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.operationalizationClusters.get(
+ resourceGroupName,
+ clusterName
+ );
+ console.log(result);
+}
+
+getOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/listKeysOfAnOperationalizationCluster.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/listKeysOfAnOperationalizationCluster.ts
new file mode 100644
index 000000000000..53005c133af7
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/listKeysOfAnOperationalizationCluster.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the credentials for the specified cluster such as Storage, ACR and ACS credentials. This is a long running operation because it fetches keys from dependencies.
+ *
+ * @summary Gets the credentials for the specified cluster such as Storage, ACR and ACS credentials. This is a long running operation because it fetches keys from dependencies.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListKeys.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function listKeysOfAnOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.operationalizationClusters.listKeys(
+ resourceGroupName,
+ clusterName
+ );
+ console.log(result);
+}
+
+listKeysOfAnOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/listOperationalizationClustersByResourceGroup.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/listOperationalizationClustersByResourceGroup.ts
new file mode 100644
index 000000000000..eb3c0780f2bd
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/listOperationalizationClustersByResourceGroup.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the clusters in the specified resource group.
+ *
+ * @summary Gets the clusters in the specified resource group.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListByResourceGroup.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function listOperationalizationClustersByResourceGroup() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const resArray = new Array();
+ for await (let item of client.operationalizationClusters.listByResourceGroup(
+ resourceGroupName
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+listOperationalizationClustersByResourceGroup().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/listOperationalizationClustersBySubscription.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/listOperationalizationClustersBySubscription.ts
new file mode 100644
index 000000000000..42a3629d07e8
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/listOperationalizationClustersBySubscription.ts
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the operationalization clusters in the specified subscription.
+ *
+ * @summary Gets the operationalization clusters in the specified subscription.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListBySubscription.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function listOperationalizationClustersBySubscription() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const resArray = new Array();
+ for await (let item of client.operationalizationClusters.listBySubscriptionId()) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+listOperationalizationClustersBySubscription().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/machineLearningComputeListAvailableOperations.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/machineLearningComputeListAvailableOperations.ts
new file mode 100644
index 000000000000..840744f74a54
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/machineLearningComputeListAvailableOperations.ts
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets all available operations.
+ *
+ * @summary Gets all available operations.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/MachineLearningCompute_ListAvailableOperations.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function machineLearningComputeListAvailableOperations() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.machineLearningCompute.listAvailableOperations();
+ console.log(result);
+}
+
+machineLearningComputeListAvailableOperations().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/patchOperationalizationCluster.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/patchOperationalizationCluster.ts
new file mode 100644
index 000000000000..548f6b11403a
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/patchOperationalizationCluster.ts
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update other properties.
+ *
+ * @summary The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update other properties.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Update.json
+ */
+import {
+ OperationalizationClusterUpdateParameters,
+ MachineLearningComputeManagementClient
+} from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function patchOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const parameters: OperationalizationClusterUpdateParameters = {
+ tags: { key1: "value1" }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.operationalizationClusters.update(
+ resourceGroupName,
+ clusterName,
+ parameters
+ );
+ console.log(result);
+}
+
+patchOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/putOperationalizationCluster.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/putOperationalizationCluster.ts
new file mode 100644
index 000000000000..1db5b02c4e53
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/putOperationalizationCluster.ts
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Create or update an operationalization cluster.
+ *
+ * @summary Create or update an operationalization cluster.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_CreateOrUpdate.json
+ */
+import {
+ OperationalizationCluster,
+ MachineLearningComputeManagementClient
+} from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function putOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const parameters: OperationalizationCluster = {
+ description: "My Operationalization Cluster",
+ clusterType: "ACS",
+ containerService: {
+ orchestratorProperties: {
+ servicePrincipal: {
+ clientId: "abcdefghijklmnopqrt",
+ secret: ""
+ }
+ },
+ orchestratorType: "Kubernetes"
+ },
+ globalServiceConfiguration: {
+ ssl: {
+ cert: "afjdklq2131casfakld=",
+ cname: "foo.bar.com",
+ key: "flksdafkldsajf=",
+ status: "Enabled"
+ }
+ },
+ location: "West US",
+ tags: { key1: "alpha", key2: "beta" }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.operationalizationClusters.beginCreateOrUpdateAndWait(
+ resourceGroupName,
+ clusterName,
+ parameters
+ );
+ console.log(result);
+}
+
+putOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/updateSystemServicesInAnOperationalizationCluster.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/updateSystemServicesInAnOperationalizationCluster.ts
new file mode 100644
index 000000000000..04ea13039818
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples-dev/updateSystemServicesInAnOperationalizationCluster.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates system services in a cluster.
+ *
+ * @summary Updates system services in a cluster.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_UpdateSystemServices.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function updateSystemServicesInAnOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.operationalizationClusters.beginUpdateSystemServicesAndWait(
+ resourceGroupName,
+ clusterName
+ );
+ console.log(result);
+}
+
+updateSystemServicesInAnOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/README.md b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/README.md
new file mode 100644
index 000000000000..8924eb76c290
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/README.md
@@ -0,0 +1,68 @@
+# client library samples for JavaScript (Beta)
+
+These sample programs show how to use the JavaScript client libraries for in some common scenarios.
+
+| **File Name** | **Description** |
+| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| [checkUpdateForAnOperationalizationCluster.js][checkupdateforanoperationalizationcluster] | Checks if updates are available for system services in the cluster. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_CheckSystemServicesUpdatesAvailable.json |
+| [deleteOperationalizationCluster.js][deleteoperationalizationcluster] | Deletes the specified cluster. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Delete.json |
+| [getOperationalizationCluster.js][getoperationalizationcluster] | Gets the operationalization cluster resource view. Note that the credentials are not returned by this call. Call ListKeys to get them. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Get.json |
+| [listKeysOfAnOperationalizationCluster.js][listkeysofanoperationalizationcluster] | Gets the credentials for the specified cluster such as Storage, ACR and ACS credentials. This is a long running operation because it fetches keys from dependencies. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListKeys.json |
+| [listOperationalizationClustersByResourceGroup.js][listoperationalizationclustersbyresourcegroup] | Gets the clusters in the specified resource group. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListByResourceGroup.json |
+| [listOperationalizationClustersBySubscription.js][listoperationalizationclustersbysubscription] | Gets the operationalization clusters in the specified subscription. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListBySubscription.json |
+| [machineLearningComputeListAvailableOperations.js][machinelearningcomputelistavailableoperations] | Gets all available operations. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/MachineLearningCompute_ListAvailableOperations.json |
+| [patchOperationalizationCluster.js][patchoperationalizationcluster] | The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update other properties. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Update.json |
+| [putOperationalizationCluster.js][putoperationalizationcluster] | Create or update an operationalization cluster. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_CreateOrUpdate.json |
+| [updateSystemServicesInAnOperationalizationCluster.js][updatesystemservicesinanoperationalizationcluster] | Updates system services in a cluster. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_UpdateSystemServices.json |
+
+## Prerequisites
+
+The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/).
+
+You need [an Azure subscription][freesub] to run these sample programs.
+
+Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.
+
+Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package].
+
+## Setup
+
+To run the samples using the published version of the package:
+
+1. Install the dependencies using `npm`:
+
+```bash
+npm install
+```
+
+2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.
+
+3. Run whichever samples you like (note that some samples may require additional setup, see the table above):
+
+```bash
+node checkUpdateForAnOperationalizationCluster.js
+```
+
+Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
+
+```bash
+npx cross-env node checkUpdateForAnOperationalizationCluster.js
+```
+
+## Next Steps
+
+Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
+
+[checkupdateforanoperationalizationcluster]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/checkUpdateForAnOperationalizationCluster.js
+[deleteoperationalizationcluster]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/deleteOperationalizationCluster.js
+[getoperationalizationcluster]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/getOperationalizationCluster.js
+[listkeysofanoperationalizationcluster]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/listKeysOfAnOperationalizationCluster.js
+[listoperationalizationclustersbyresourcegroup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/listOperationalizationClustersByResourceGroup.js
+[listoperationalizationclustersbysubscription]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/listOperationalizationClustersBySubscription.js
+[machinelearningcomputelistavailableoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/machineLearningComputeListAvailableOperations.js
+[patchoperationalizationcluster]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/patchOperationalizationCluster.js
+[putoperationalizationcluster]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/putOperationalizationCluster.js
+[updatesystemservicesinanoperationalizationcluster]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/updateSystemServicesInAnOperationalizationCluster.js
+[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-machinelearningcompute?view=azure-node-preview
+[freesub]: https://azure.microsoft.com/free/
+[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningcompute/arm-machinelearningcompute/README.md
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/checkUpdateForAnOperationalizationCluster.js b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/checkUpdateForAnOperationalizationCluster.js
new file mode 100644
index 000000000000..b61722b6adc9
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/checkUpdateForAnOperationalizationCluster.js
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Checks if updates are available for system services in the cluster.
+ *
+ * @summary Checks if updates are available for system services in the cluster.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_CheckSystemServicesUpdatesAvailable.json
+ */
+const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function checkUpdateForAnOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
+ const result = await client.operationalizationClusters.checkSystemServicesUpdatesAvailable(
+ resourceGroupName,
+ clusterName
+ );
+ console.log(result);
+}
+
+checkUpdateForAnOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/deleteOperationalizationCluster.js b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/deleteOperationalizationCluster.js
new file mode 100644
index 000000000000..470db7e630e1
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/deleteOperationalizationCluster.js
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Deletes the specified cluster.
+ *
+ * @summary Deletes the specified cluster.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Delete.json
+ */
+const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function deleteOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
+ const result = await client.operationalizationClusters.beginDeleteAndWait(
+ resourceGroupName,
+ clusterName
+ );
+ console.log(result);
+}
+
+deleteOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/getOperationalizationCluster.js b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/getOperationalizationCluster.js
new file mode 100644
index 000000000000..69f4b7ffe405
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/getOperationalizationCluster.js
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the operationalization cluster resource view. Note that the credentials are not returned by this call. Call ListKeys to get them.
+ *
+ * @summary Gets the operationalization cluster resource view. Note that the credentials are not returned by this call. Call ListKeys to get them.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Get.json
+ */
+const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function getOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
+ const result = await client.operationalizationClusters.get(resourceGroupName, clusterName);
+ console.log(result);
+}
+
+getOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/listKeysOfAnOperationalizationCluster.js b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/listKeysOfAnOperationalizationCluster.js
new file mode 100644
index 000000000000..39e51522361e
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/listKeysOfAnOperationalizationCluster.js
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the credentials for the specified cluster such as Storage, ACR and ACS credentials. This is a long running operation because it fetches keys from dependencies.
+ *
+ * @summary Gets the credentials for the specified cluster such as Storage, ACR and ACS credentials. This is a long running operation because it fetches keys from dependencies.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListKeys.json
+ */
+const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function listKeysOfAnOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
+ const result = await client.operationalizationClusters.listKeys(resourceGroupName, clusterName);
+ console.log(result);
+}
+
+listKeysOfAnOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/listOperationalizationClustersByResourceGroup.js b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/listOperationalizationClustersByResourceGroup.js
new file mode 100644
index 000000000000..c170c7894724
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/listOperationalizationClustersByResourceGroup.js
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the clusters in the specified resource group.
+ *
+ * @summary Gets the clusters in the specified resource group.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListByResourceGroup.json
+ */
+const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function listOperationalizationClustersByResourceGroup() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
+ const resArray = new Array();
+ for await (let item of client.operationalizationClusters.listByResourceGroup(resourceGroupName)) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+listOperationalizationClustersByResourceGroup().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/listOperationalizationClustersBySubscription.js b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/listOperationalizationClustersBySubscription.js
new file mode 100644
index 000000000000..c4a4988d28a1
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/listOperationalizationClustersBySubscription.js
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the operationalization clusters in the specified subscription.
+ *
+ * @summary Gets the operationalization clusters in the specified subscription.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListBySubscription.json
+ */
+const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function listOperationalizationClustersBySubscription() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
+ const resArray = new Array();
+ for await (let item of client.operationalizationClusters.listBySubscriptionId()) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+listOperationalizationClustersBySubscription().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/machineLearningComputeListAvailableOperations.js b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/machineLearningComputeListAvailableOperations.js
new file mode 100644
index 000000000000..d0e6a887c993
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/machineLearningComputeListAvailableOperations.js
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets all available operations.
+ *
+ * @summary Gets all available operations.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/MachineLearningCompute_ListAvailableOperations.json
+ */
+const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function machineLearningComputeListAvailableOperations() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
+ const result = await client.machineLearningCompute.listAvailableOperations();
+ console.log(result);
+}
+
+machineLearningComputeListAvailableOperations().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/package.json b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/package.json
new file mode 100644
index 000000000000..aa59eb173f2d
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/package.json
@@ -0,0 +1,32 @@
+{
+ "name": "azure-arm-machinelearningcompute-samples-js-beta",
+ "private": true,
+ "version": "1.0.0",
+ "description": " client library samples for JavaScript (Beta)",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/Azure/azure-sdk-for-js.git",
+ "directory": "sdk/machinelearningcompute/arm-machinelearningcompute"
+ },
+ "keywords": [
+ "node",
+ "azure",
+ "typescript",
+ "browser",
+ "isomorphic"
+ ],
+ "author": "Microsoft Corporation",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
+ },
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningcompute/arm-machinelearningcompute",
+ "dependencies": {
+ "@azure/arm-machinelearningcompute": "next",
+ "dotenv": "latest",
+ "@azure/identity": "^2.0.1"
+ }
+}
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/patchOperationalizationCluster.js b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/patchOperationalizationCluster.js
new file mode 100644
index 000000000000..c134596aeccc
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/patchOperationalizationCluster.js
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update other properties.
+ *
+ * @summary The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update other properties.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Update.json
+ */
+const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function patchOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const parameters = {
+ tags: { key1: "value1" },
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
+ const result = await client.operationalizationClusters.update(
+ resourceGroupName,
+ clusterName,
+ parameters
+ );
+ console.log(result);
+}
+
+patchOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/putOperationalizationCluster.js b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/putOperationalizationCluster.js
new file mode 100644
index 000000000000..9b8c6a47e72f
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/putOperationalizationCluster.js
@@ -0,0 +1,57 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Create or update an operationalization cluster.
+ *
+ * @summary Create or update an operationalization cluster.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_CreateOrUpdate.json
+ */
+const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function putOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const parameters = {
+ description: "My Operationalization Cluster",
+ clusterType: "ACS",
+ containerService: {
+ orchestratorProperties: {
+ servicePrincipal: {
+ clientId: "abcdefghijklmnopqrt",
+ secret: "",
+ },
+ },
+ orchestratorType: "Kubernetes",
+ },
+ globalServiceConfiguration: {
+ ssl: {
+ cert: "afjdklq2131casfakld=",
+ cname: "foo.bar.com",
+ key: "flksdafkldsajf=",
+ status: "Enabled",
+ },
+ },
+ location: "West US",
+ tags: { key1: "alpha", key2: "beta" },
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
+ const result = await client.operationalizationClusters.beginCreateOrUpdateAndWait(
+ resourceGroupName,
+ clusterName,
+ parameters
+ );
+ console.log(result);
+}
+
+putOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/sample.env b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/sample.env
new file mode 100644
index 000000000000..672847a3fea0
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/sample.env
@@ -0,0 +1,4 @@
+# App registration secret for AAD authentication
+AZURE_CLIENT_SECRET=
+AZURE_CLIENT_ID=
+AZURE_TENANT_ID=
\ No newline at end of file
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/updateSystemServicesInAnOperationalizationCluster.js b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/updateSystemServicesInAnOperationalizationCluster.js
new file mode 100644
index 000000000000..23f5c1fd8d9f
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/javascript/updateSystemServicesInAnOperationalizationCluster.js
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates system services in a cluster.
+ *
+ * @summary Updates system services in a cluster.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_UpdateSystemServices.json
+ */
+const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function updateSystemServicesInAnOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
+ const result = await client.operationalizationClusters.beginUpdateSystemServicesAndWait(
+ resourceGroupName,
+ clusterName
+ );
+ console.log(result);
+}
+
+updateSystemServicesInAnOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/README.md b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/README.md
new file mode 100644
index 000000000000..836b02a89b8f
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/README.md
@@ -0,0 +1,81 @@
+# client library samples for TypeScript (Beta)
+
+These sample programs show how to use the TypeScript client libraries for in some common scenarios.
+
+| **File Name** | **Description** |
+| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| [checkUpdateForAnOperationalizationCluster.ts][checkupdateforanoperationalizationcluster] | Checks if updates are available for system services in the cluster. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_CheckSystemServicesUpdatesAvailable.json |
+| [deleteOperationalizationCluster.ts][deleteoperationalizationcluster] | Deletes the specified cluster. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Delete.json |
+| [getOperationalizationCluster.ts][getoperationalizationcluster] | Gets the operationalization cluster resource view. Note that the credentials are not returned by this call. Call ListKeys to get them. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Get.json |
+| [listKeysOfAnOperationalizationCluster.ts][listkeysofanoperationalizationcluster] | Gets the credentials for the specified cluster such as Storage, ACR and ACS credentials. This is a long running operation because it fetches keys from dependencies. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListKeys.json |
+| [listOperationalizationClustersByResourceGroup.ts][listoperationalizationclustersbyresourcegroup] | Gets the clusters in the specified resource group. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListByResourceGroup.json |
+| [listOperationalizationClustersBySubscription.ts][listoperationalizationclustersbysubscription] | Gets the operationalization clusters in the specified subscription. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListBySubscription.json |
+| [machineLearningComputeListAvailableOperations.ts][machinelearningcomputelistavailableoperations] | Gets all available operations. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/MachineLearningCompute_ListAvailableOperations.json |
+| [patchOperationalizationCluster.ts][patchoperationalizationcluster] | The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update other properties. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Update.json |
+| [putOperationalizationCluster.ts][putoperationalizationcluster] | Create or update an operationalization cluster. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_CreateOrUpdate.json |
+| [updateSystemServicesInAnOperationalizationCluster.ts][updatesystemservicesinanoperationalizationcluster] | Updates system services in a cluster. x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_UpdateSystemServices.json |
+
+## Prerequisites
+
+The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/).
+
+Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using:
+
+```bash
+npm install -g typescript
+```
+
+You need [an Azure subscription][freesub] to run these sample programs.
+
+Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.
+
+Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package].
+
+## Setup
+
+To run the samples using the published version of the package:
+
+1. Install the dependencies using `npm`:
+
+```bash
+npm install
+```
+
+2. Compile the samples:
+
+```bash
+npm run build
+```
+
+3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.
+
+4. Run whichever samples you like (note that some samples may require additional setup, see the table above):
+
+```bash
+node dist/checkUpdateForAnOperationalizationCluster.js
+```
+
+Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
+
+```bash
+npx cross-env node dist/checkUpdateForAnOperationalizationCluster.js
+```
+
+## Next Steps
+
+Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
+
+[checkupdateforanoperationalizationcluster]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/checkUpdateForAnOperationalizationCluster.ts
+[deleteoperationalizationcluster]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/deleteOperationalizationCluster.ts
+[getoperationalizationcluster]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/getOperationalizationCluster.ts
+[listkeysofanoperationalizationcluster]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/listKeysOfAnOperationalizationCluster.ts
+[listoperationalizationclustersbyresourcegroup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/listOperationalizationClustersByResourceGroup.ts
+[listoperationalizationclustersbysubscription]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/listOperationalizationClustersBySubscription.ts
+[machinelearningcomputelistavailableoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/machineLearningComputeListAvailableOperations.ts
+[patchoperationalizationcluster]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/patchOperationalizationCluster.ts
+[putoperationalizationcluster]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/putOperationalizationCluster.ts
+[updatesystemservicesinanoperationalizationcluster]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/updateSystemServicesInAnOperationalizationCluster.ts
+[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-machinelearningcompute?view=azure-node-preview
+[freesub]: https://azure.microsoft.com/free/
+[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningcompute/arm-machinelearningcompute/README.md
+[typescript]: https://www.typescriptlang.org/docs/home.html
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/package.json b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/package.json
new file mode 100644
index 000000000000..accd0298eea2
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/package.json
@@ -0,0 +1,41 @@
+{
+ "name": "azure-arm-machinelearningcompute-samples-ts-beta",
+ "private": true,
+ "version": "1.0.0",
+ "description": " client library samples for TypeScript (Beta)",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "scripts": {
+ "build": "tsc",
+ "prebuild": "rimraf dist/"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/Azure/azure-sdk-for-js.git",
+ "directory": "sdk/machinelearningcompute/arm-machinelearningcompute"
+ },
+ "keywords": [
+ "node",
+ "azure",
+ "typescript",
+ "browser",
+ "isomorphic"
+ ],
+ "author": "Microsoft Corporation",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
+ },
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningcompute/arm-machinelearningcompute",
+ "dependencies": {
+ "@azure/arm-machinelearningcompute": "next",
+ "dotenv": "latest",
+ "@azure/identity": "^2.0.1"
+ },
+ "devDependencies": {
+ "@types/node": "^12.0.0",
+ "typescript": "~4.4.0",
+ "rimraf": "latest"
+ }
+}
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/sample.env b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/sample.env
new file mode 100644
index 000000000000..672847a3fea0
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/sample.env
@@ -0,0 +1,4 @@
+# App registration secret for AAD authentication
+AZURE_CLIENT_SECRET=
+AZURE_CLIENT_ID=
+AZURE_TENANT_ID=
\ No newline at end of file
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/checkUpdateForAnOperationalizationCluster.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/checkUpdateForAnOperationalizationCluster.ts
new file mode 100644
index 000000000000..0c8c760f3e5b
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/checkUpdateForAnOperationalizationCluster.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Checks if updates are available for system services in the cluster.
+ *
+ * @summary Checks if updates are available for system services in the cluster.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_CheckSystemServicesUpdatesAvailable.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function checkUpdateForAnOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.operationalizationClusters.checkSystemServicesUpdatesAvailable(
+ resourceGroupName,
+ clusterName
+ );
+ console.log(result);
+}
+
+checkUpdateForAnOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/deleteOperationalizationCluster.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/deleteOperationalizationCluster.ts
new file mode 100644
index 000000000000..ac8b9a2b82ff
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/deleteOperationalizationCluster.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Deletes the specified cluster.
+ *
+ * @summary Deletes the specified cluster.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Delete.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function deleteOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.operationalizationClusters.beginDeleteAndWait(
+ resourceGroupName,
+ clusterName
+ );
+ console.log(result);
+}
+
+deleteOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/getOperationalizationCluster.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/getOperationalizationCluster.ts
new file mode 100644
index 000000000000..1e39f364ffcc
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/getOperationalizationCluster.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the operationalization cluster resource view. Note that the credentials are not returned by this call. Call ListKeys to get them.
+ *
+ * @summary Gets the operationalization cluster resource view. Note that the credentials are not returned by this call. Call ListKeys to get them.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Get.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function getOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.operationalizationClusters.get(
+ resourceGroupName,
+ clusterName
+ );
+ console.log(result);
+}
+
+getOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/listKeysOfAnOperationalizationCluster.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/listKeysOfAnOperationalizationCluster.ts
new file mode 100644
index 000000000000..53005c133af7
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/listKeysOfAnOperationalizationCluster.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the credentials for the specified cluster such as Storage, ACR and ACS credentials. This is a long running operation because it fetches keys from dependencies.
+ *
+ * @summary Gets the credentials for the specified cluster such as Storage, ACR and ACS credentials. This is a long running operation because it fetches keys from dependencies.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListKeys.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function listKeysOfAnOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.operationalizationClusters.listKeys(
+ resourceGroupName,
+ clusterName
+ );
+ console.log(result);
+}
+
+listKeysOfAnOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/listOperationalizationClustersByResourceGroup.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/listOperationalizationClustersByResourceGroup.ts
new file mode 100644
index 000000000000..eb3c0780f2bd
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/listOperationalizationClustersByResourceGroup.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the clusters in the specified resource group.
+ *
+ * @summary Gets the clusters in the specified resource group.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListByResourceGroup.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function listOperationalizationClustersByResourceGroup() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const resArray = new Array();
+ for await (let item of client.operationalizationClusters.listByResourceGroup(
+ resourceGroupName
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+listOperationalizationClustersByResourceGroup().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/listOperationalizationClustersBySubscription.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/listOperationalizationClustersBySubscription.ts
new file mode 100644
index 000000000000..42a3629d07e8
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/listOperationalizationClustersBySubscription.ts
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the operationalization clusters in the specified subscription.
+ *
+ * @summary Gets the operationalization clusters in the specified subscription.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_ListBySubscription.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function listOperationalizationClustersBySubscription() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const resArray = new Array();
+ for await (let item of client.operationalizationClusters.listBySubscriptionId()) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+listOperationalizationClustersBySubscription().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/machineLearningComputeListAvailableOperations.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/machineLearningComputeListAvailableOperations.ts
new file mode 100644
index 000000000000..840744f74a54
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/machineLearningComputeListAvailableOperations.ts
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets all available operations.
+ *
+ * @summary Gets all available operations.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/MachineLearningCompute_ListAvailableOperations.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function machineLearningComputeListAvailableOperations() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.machineLearningCompute.listAvailableOperations();
+ console.log(result);
+}
+
+machineLearningComputeListAvailableOperations().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/patchOperationalizationCluster.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/patchOperationalizationCluster.ts
new file mode 100644
index 000000000000..548f6b11403a
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/patchOperationalizationCluster.ts
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update other properties.
+ *
+ * @summary The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update other properties.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Update.json
+ */
+import {
+ OperationalizationClusterUpdateParameters,
+ MachineLearningComputeManagementClient
+} from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function patchOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const parameters: OperationalizationClusterUpdateParameters = {
+ tags: { key1: "value1" }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.operationalizationClusters.update(
+ resourceGroupName,
+ clusterName,
+ parameters
+ );
+ console.log(result);
+}
+
+patchOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/putOperationalizationCluster.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/putOperationalizationCluster.ts
new file mode 100644
index 000000000000..1db5b02c4e53
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/putOperationalizationCluster.ts
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Create or update an operationalization cluster.
+ *
+ * @summary Create or update an operationalization cluster.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_CreateOrUpdate.json
+ */
+import {
+ OperationalizationCluster,
+ MachineLearningComputeManagementClient
+} from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function putOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const parameters: OperationalizationCluster = {
+ description: "My Operationalization Cluster",
+ clusterType: "ACS",
+ containerService: {
+ orchestratorProperties: {
+ servicePrincipal: {
+ clientId: "abcdefghijklmnopqrt",
+ secret: ""
+ }
+ },
+ orchestratorType: "Kubernetes"
+ },
+ globalServiceConfiguration: {
+ ssl: {
+ cert: "afjdklq2131casfakld=",
+ cname: "foo.bar.com",
+ key: "flksdafkldsajf=",
+ status: "Enabled"
+ }
+ },
+ location: "West US",
+ tags: { key1: "alpha", key2: "beta" }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.operationalizationClusters.beginCreateOrUpdateAndWait(
+ resourceGroupName,
+ clusterName,
+ parameters
+ );
+ console.log(result);
+}
+
+putOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/updateSystemServicesInAnOperationalizationCluster.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/updateSystemServicesInAnOperationalizationCluster.ts
new file mode 100644
index 000000000000..04ea13039818
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/src/updateSystemServicesInAnOperationalizationCluster.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates system services in a cluster.
+ *
+ * @summary Updates system services in a cluster.
+ * x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_UpdateSystemServices.json
+ */
+import { MachineLearningComputeManagementClient } from "@azure/arm-machinelearningcompute";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function updateSystemServicesInAnOperationalizationCluster() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const clusterName = "myCluster";
+ const credential = new DefaultAzureCredential();
+ const client = new MachineLearningComputeManagementClient(
+ credential,
+ subscriptionId
+ );
+ const result = await client.operationalizationClusters.beginUpdateSystemServicesAndWait(
+ resourceGroupName,
+ clusterName
+ );
+ console.log(result);
+}
+
+updateSystemServicesInAnOperationalizationCluster().catch(console.error);
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/tsconfig.json b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/tsconfig.json
new file mode 100644
index 000000000000..416c2dd82e00
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/samples/v3-beta/typescript/tsconfig.json
@@ -0,0 +1,17 @@
+{
+ "compilerOptions": {
+ "target": "ES2018",
+ "module": "commonjs",
+ "moduleResolution": "node",
+ "resolveJsonModule": true,
+ "esModuleInterop": true,
+ "allowSyntheticDefaultImports": true,
+ "strict": true,
+ "alwaysStrict": true,
+ "outDir": "dist",
+ "rootDir": "src"
+ },
+ "include": [
+ "src/**.ts"
+ ]
+}
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/index.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/index.ts
new file mode 100644
index 000000000000..4381fecffde6
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/src/index.ts
@@ -0,0 +1,12 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+///
+export * from "./models";
+export { MachineLearningComputeManagementClient } from "./machineLearningComputeManagementClient";
+export * from "./operationsInterfaces";
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/lroImpl.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/lroImpl.ts
new file mode 100644
index 000000000000..518d5f053b4e
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/src/lroImpl.ts
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import { LongRunningOperation, LroResponse } from "@azure/core-lro";
+
+export class LroImpl implements LongRunningOperation {
+ constructor(
+ private sendOperationFn: (args: any, spec: any) => Promise>,
+ private args: Record,
+ private spec: {
+ readonly requestBody?: unknown;
+ readonly path?: string;
+ readonly httpMethod: string;
+ } & Record,
+ public requestPath: string = spec.path!,
+ public requestMethod: string = spec.httpMethod
+ ) {}
+ public async sendInitialRequest(): Promise> {
+ return this.sendOperationFn(this.args, this.spec);
+ }
+ public async sendPollRequest(path: string): Promise> {
+ const { requestBody, ...restSpec } = this.spec;
+ return this.sendOperationFn(this.args, {
+ ...restSpec,
+ path,
+ httpMethod: "GET"
+ });
+ }
+}
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClient.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClient.ts
index 16b9439a801c..bfeafb09aff3 100644
--- a/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClient.ts
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClient.ts
@@ -3,41 +3,81 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "./models";
-import * as Mappers from "./models/mappers";
-import * as operations from "./operations";
-import { MachineLearningComputeManagementClientContext } from "./machineLearningComputeManagementClientContext";
+import * as coreClient from "@azure/core-client";
+import * as coreAuth from "@azure/core-auth";
+import {
+ OperationalizationClustersImpl,
+ MachineLearningComputeImpl
+} from "./operations";
+import {
+ OperationalizationClusters,
+ MachineLearningCompute
+} from "./operationsInterfaces";
+import { MachineLearningComputeManagementClientOptionalParams } from "./models";
-
-class MachineLearningComputeManagementClient extends MachineLearningComputeManagementClientContext {
- // Operation groups
- operationalizationClusters: operations.OperationalizationClusters;
- machineLearningCompute: operations.MachineLearningCompute;
+export class MachineLearningComputeManagementClient extends coreClient.ServiceClient {
+ $host: string;
+ apiVersion: string;
+ subscriptionId: string;
/**
* Initializes a new instance of the MachineLearningComputeManagementClient class.
- * @param credentials Credentials needed for the client to connect to Azure.
+ * @param credentials Subscription credentials which uniquely identify client subscription.
* @param subscriptionId The Azure subscription ID.
- * @param [options] The parameter options
+ * @param options The parameter options
*/
- constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MachineLearningComputeManagementClientOptions) {
- super(credentials, subscriptionId, options);
- this.operationalizationClusters = new operations.OperationalizationClusters(this);
- this.machineLearningCompute = new operations.MachineLearningCompute(this);
- }
-}
+ constructor(
+ credentials: coreAuth.TokenCredential,
+ subscriptionId: string,
+ options?: MachineLearningComputeManagementClientOptionalParams
+ ) {
+ if (credentials === undefined) {
+ throw new Error("'credentials' cannot be null");
+ }
+ if (subscriptionId === undefined) {
+ throw new Error("'subscriptionId' cannot be null");
+ }
+
+ // Initializing default values for options
+ if (!options) {
+ options = {};
+ }
+ const defaults: MachineLearningComputeManagementClientOptionalParams = {
+ requestContentType: "application/json; charset=utf-8",
+ credential: credentials
+ };
-// Operation Specifications
+ const packageDetails = `azsdk-js-arm-machinelearningcompute/3.0.0-beta.1`;
+ const userAgentPrefix =
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
+ : `${packageDetails}`;
-export {
- MachineLearningComputeManagementClient,
- MachineLearningComputeManagementClientContext,
- Models as MachineLearningComputeManagementModels,
- Mappers as MachineLearningComputeManagementMappers
-};
-export * from "./operations";
+ if (!options.credentialScopes) {
+ options.credentialScopes = ["https://management.azure.com/.default"];
+ }
+ const optionsWithDefaults = {
+ ...defaults,
+ ...options,
+ userAgentOptions: {
+ userAgentPrefix
+ },
+ baseUri: options.endpoint || "https://management.azure.com"
+ };
+ super(optionsWithDefaults);
+ // Parameter assignments
+ this.subscriptionId = subscriptionId;
+
+ // Assigning values to Constant parameters
+ this.$host = options.$host || "https://management.azure.com";
+ this.apiVersion = options.apiVersion || "2017-08-01-preview";
+ this.operationalizationClusters = new OperationalizationClustersImpl(this);
+ this.machineLearningCompute = new MachineLearningComputeImpl(this);
+ }
+
+ operationalizationClusters: OperationalizationClusters;
+ machineLearningCompute: MachineLearningCompute;
+}
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClientContext.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClientContext.ts
deleted file mode 100644
index d914d3831fcf..000000000000
--- a/sdk/machinelearningcompute/arm-machinelearningcompute/src/machineLearningComputeManagementClientContext.ts
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-import * as Models from "./models";
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-
-const packageName = "@azure/arm-machinelearningcompute";
-const packageVersion = "2.0.0";
-
-export class MachineLearningComputeManagementClientContext extends msRestAzure.AzureServiceClient {
- credentials: msRest.ServiceClientCredentials;
- subscriptionId: string;
- apiVersion?: string;
-
- /**
- * Initializes a new instance of the MachineLearningComputeManagementClient class.
- * @param credentials Credentials needed for the client to connect to Azure.
- * @param subscriptionId The Azure subscription ID.
- * @param [options] The parameter options
- */
- constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MachineLearningComputeManagementClientOptions) {
- if (credentials == undefined) {
- throw new Error('\'credentials\' cannot be null.');
- }
- if (subscriptionId == undefined) {
- throw new Error('\'subscriptionId\' cannot be null.');
- }
-
- if (!options) {
- options = {};
- }
- if (!options.userAgent) {
- const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
- }
-
- super(credentials, options);
-
- this.apiVersion = '2017-08-01-preview';
- this.acceptLanguage = 'en-US';
- this.longRunningOperationRetryTimeout = 30;
- this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
- this.requestContentType = "application/json; charset=utf-8";
- this.credentials = credentials;
- this.subscriptionId = subscriptionId;
-
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
- this.acceptLanguage = options.acceptLanguage;
- }
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
- this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
- }
- }
-}
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/index.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/index.ts
index 5b97faccbfca..594b24042420 100644
--- a/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/index.ts
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/index.ts
@@ -6,994 +6,712 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export { BaseResource, CloudError };
-
-/**
- * Azure resource
- */
-export interface Resource extends BaseResource {
- /**
- * Specifies the resource ID.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * Specifies the name of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
- /**
- * Specifies the location of the resource.
- */
- location: string;
- /**
- * Specifies the type of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
- /**
- * Contains resource tags defined as key/value pairs.
- */
- tags?: { [propertyName: string]: string };
-}
-
-/**
- * Error detail information.
- */
-export interface ErrorDetail {
- /**
- * Error code.
- */
- code: string;
- /**
- * Error message.
- */
- message: string;
+/** Wrapper for error response to follow ARM guidelines. */
+export interface ErrorResponseWrapper {
+ /** The error response. */
+ error?: ErrorResponse;
}
-/**
- * Error response information.
- */
+/** Error response information. */
export interface ErrorResponse {
- /**
- * Error code.
- */
+ /** Error code. */
code: string;
- /**
- * Error message.
- */
+ /** Error message. */
message: string;
- /**
- * An array of error detail objects.
- */
+ /** An array of error detail objects. */
details?: ErrorDetail[];
}
-/**
- * Wrapper for error response to follow ARM guidelines.
- */
-export interface ErrorResponseWrapper {
- /**
- * The error response.
- */
- error?: ErrorResponse;
+/** Error detail information. */
+export interface ErrorDetail {
+ /** Error code. */
+ code: string;
+ /** Error message. */
+ message: string;
}
-/**
- * Properties of Storage Account.
- */
+/** Properties of Storage Account. */
export interface StorageAccountProperties {
- /**
- * ARM resource ID of the Azure Storage Account to store CLI specific files. If not provided one
- * will be created. This cannot be changed once the cluster is created.
- */
+ /** ARM resource ID of the Azure Storage Account to store CLI specific files. If not provided one will be created. This cannot be changed once the cluster is created. */
resourceId?: string;
}
-/**
- * Properties of Azure Container Registry.
- */
+/** Properties of Azure Container Registry. */
export interface ContainerRegistryProperties {
- /**
- * ARM resource ID of the Azure Container Registry used to store Docker images for web services
- * in the cluster. If not provided one will be created. This cannot be changed once the cluster
- * is created.
- */
+ /** ARM resource ID of the Azure Container Registry used to store Docker images for web services in the cluster. If not provided one will be created. This cannot be changed once the cluster is created. */
resourceId?: string;
}
-/**
- * The Azure service principal used by Kubernetes for configuring load balancers
- */
-export interface ServicePrincipalProperties {
- /**
- * The service principal client ID
- */
- clientId: string;
+/** Information about the container service backing the cluster */
+export interface AcsClusterProperties {
/**
- * The service principal secret. This is not returned in response of GET/PUT on the resource. To
- * see this please call listKeys.
+ * The FQDN of the cluster.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- secret: string;
+ readonly clusterFqdn?: string;
+ /** Type of orchestrator. It cannot be changed once the cluster is created. */
+ orchestratorType: OrchestratorType;
+ /** Orchestrator specific properties */
+ orchestratorProperties?: KubernetesClusterProperties;
+ /** The system services deployed to the cluster */
+ systemServices?: SystemService[];
+ /** The number of master nodes in the container service. */
+ masterCount?: number;
+ /** The number of agent nodes in the Container Service. This can be changed to scale the cluster. */
+ agentCount?: number;
+ /** The Azure VM size of the agent VM nodes. This cannot be changed once the cluster is created. This list is non exhaustive; refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes for the possible VM sizes. */
+ agentVmSize?: AgentVMSizeTypes;
}
-/**
- * Kubernetes cluster specific properties
- */
+/** Kubernetes cluster specific properties */
export interface KubernetesClusterProperties {
- /**
- * The Azure Service Principal used by Kubernetes
- */
+ /** The Azure Service Principal used by Kubernetes */
servicePrincipal?: ServicePrincipalProperties;
}
-/**
- * Information about a system service deployed in the cluster
- */
+/** The Azure service principal used by Kubernetes for configuring load balancers */
+export interface ServicePrincipalProperties {
+ /** The service principal client ID */
+ clientId: string;
+ /** The service principal secret. This is not returned in response of GET/PUT on the resource. To see this please call listKeys. */
+ secret: string;
+}
+
+/** Information about a system service deployed in the cluster */
export interface SystemService {
- /**
- * The system service type. Possible values include: 'None', 'ScoringFrontEnd', 'BatchFrontEnd'
- */
+ /** The system service type */
systemServiceType: SystemServiceType;
/**
* The public IP address of the system service
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly publicIpAddress?: string;
/**
* The state of the system service
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly version?: string;
}
-/**
- * Information about the container service backing the cluster
- */
-export interface AcsClusterProperties {
- /**
- * The FQDN of the cluster.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly clusterFqdn?: string;
- /**
- * Type of orchestrator. It cannot be changed once the cluster is created. Possible values
- * include: 'Kubernetes', 'None'
- */
- orchestratorType: OrchestratorType;
- /**
- * Orchestrator specific properties
- */
- orchestratorProperties?: KubernetesClusterProperties;
- /**
- * The system services deployed to the cluster
- */
- systemServices?: SystemService[];
- /**
- * The number of master nodes in the container service. Default value: 1.
- */
- masterCount?: number;
- /**
- * The number of agent nodes in the Container Service. This can be changed to scale the cluster.
- * Default value: 2.
- */
- agentCount?: number;
- /**
- * The Azure VM size of the agent VM nodes. This cannot be changed once the cluster is created.
- * This list is non exhaustive; refer to
- * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes for the possible VM
- * sizes. Possible values include: 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3',
- * 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9',
- * 'Standard_A10', 'Standard_A11', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4',
- * 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2',
- * 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D11_v2',
- * 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_G1', 'Standard_G2',
- * 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3',
- * 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14',
- * 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5'. Default value:
- * 'Standard_D3_v2'.
- */
- agentVmSize?: AgentVMSizeTypes;
-}
-
-/**
- * Properties of App Insights.
- */
+/** Properties of App Insights. */
export interface AppInsightsProperties {
- /**
- * ARM resource ID of the App Insights.
- */
+ /** ARM resource ID of the App Insights. */
resourceId?: string;
}
-/**
- * SSL configuration. If configured data-plane calls to user services will be exposed over SSL
- * only.
- */
+/** Global configuration for services in the cluster. */
+export interface GlobalServiceConfiguration {
+ /** Describes unknown properties. The value of an unknown property can be of "any" type. */
+ [property: string]: any;
+ /** The configuration ETag for updates. */
+ etag?: string;
+ /** The SSL configuration properties */
+ ssl?: SslConfiguration;
+ /** Optional global authorization keys for all user services deployed in cluster. These are used if the service does not have auth keys. */
+ serviceAuth?: ServiceAuthConfiguration;
+ /** The auto-scale configuration */
+ autoScale?: AutoScaleConfiguration;
+}
+
+/** SSL configuration. If configured data-plane calls to user services will be exposed over SSL only. */
export interface SslConfiguration {
- /**
- * SSL status. Allowed values are Enabled and Disabled. Possible values include: 'Enabled',
- * 'Disabled'. Default value: 'Enabled'.
- */
+ /** SSL status. Allowed values are Enabled and Disabled. */
status?: Status;
- /**
- * The SSL cert data in PEM format.
- */
+ /** The SSL cert data in PEM format. */
cert?: string;
- /**
- * The SSL key data in PEM format. This is not returned in response of GET/PUT on the resource.
- * To see this please call listKeys API.
- */
+ /** The SSL key data in PEM format. This is not returned in response of GET/PUT on the resource. To see this please call listKeys API. */
key?: string;
- /**
- * The CName of the certificate.
- */
+ /** The CName of the certificate. */
cname?: string;
}
-/**
- * Global service auth configuration properties. These are the data-plane authorization keys and
- * are used if a service doesn't define it's own.
- */
+/** Global service auth configuration properties. These are the data-plane authorization keys and are used if a service doesn't define it's own. */
export interface ServiceAuthConfiguration {
- /**
- * The primary auth key hash. This is not returned in response of GET/PUT on the resource.. To
- * see this please call listKeys API.
- */
+ /** The primary auth key hash. This is not returned in response of GET/PUT on the resource.. To see this please call listKeys API. */
primaryAuthKeyHash: string;
- /**
- * The secondary auth key hash. This is not returned in response of GET/PUT on the resource.. To
- * see this please call listKeys API.
- */
+ /** The secondary auth key hash. This is not returned in response of GET/PUT on the resource.. To see this please call listKeys API. */
secondaryAuthKeyHash: string;
}
-/**
- * AutoScale configuration properties.
- */
+/** AutoScale configuration properties. */
export interface AutoScaleConfiguration {
- /**
- * If auto-scale is enabled for all services. Each service can turn it off individually. Possible
- * values include: 'Enabled', 'Disabled'. Default value: 'Disabled'.
- */
+ /** If auto-scale is enabled for all services. Each service can turn it off individually. */
status?: Status;
- /**
- * The minimum number of replicas for each service. Default value: 1.
- */
+ /** The minimum number of replicas for each service. */
minReplicas?: number;
- /**
- * The maximum number of replicas for each service. Default value: 100.
- */
+ /** The maximum number of replicas for each service. */
maxReplicas?: number;
- /**
- * The target utilization.
- */
+ /** The target utilization. */
targetUtilization?: number;
- /**
- * Refresh period in seconds.
- */
+ /** Refresh period in seconds. */
refreshPeriodInSeconds?: number;
}
-/**
- * Global configuration for services in the cluster.
- */
-export interface GlobalServiceConfiguration {
- /**
- * The configuration ETag for updates.
- */
- etag?: string;
- /**
- * The SSL configuration properties
- */
- ssl?: SslConfiguration;
- /**
- * Optional global authorization keys for all user services deployed in cluster. These are used
- * if the service does not have auth keys.
- */
- serviceAuth?: ServiceAuthConfiguration;
- /**
- * The auto-scale configuration
- */
- autoScale?: AutoScaleConfiguration;
- /**
- * Describes unknown properties. The value of an unknown property can be of "any" type.
- */
- [property: string]: any;
-}
-
-/**
- * Instance of an Azure ML Operationalization Cluster resource.
- */
-export interface OperationalizationCluster extends Resource {
- /**
- * The description of the cluster.
- */
- description?: string;
+/** Azure resource */
+export interface Resource {
/**
- * The date and time when the cluster was created.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly createdOn?: Date;
- /**
- * The date and time when the cluster was last modified.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly modifiedOn?: Date;
- /**
- * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning,
- * Succeeded, and Failed. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting',
- * 'Succeeded', 'Failed', 'Canceled'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly provisioningState?: OperationStatus;
- /**
- * List of provisioning errors reported by the resource provider.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly provisioningErrors?: ErrorResponseWrapper[];
- /**
- * The cluster type. Possible values include: 'ACS', 'Local'
- */
- clusterType: ClusterType;
- /**
- * Storage Account properties.
- */
- storageAccount?: StorageAccountProperties;
- /**
- * Container Registry properties.
- */
- containerRegistry?: ContainerRegistryProperties;
- /**
- * Parameters for the Azure Container Service cluster.
+ * Specifies the resource ID.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- containerService?: AcsClusterProperties;
+ readonly id?: string;
/**
- * AppInsights configuration.
+ * Specifies the name of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- appInsights?: AppInsightsProperties;
+ readonly name?: string;
+ /** Specifies the location of the resource. */
+ location: string;
/**
- * Contains global configuration for the web services in the cluster.
+ * Specifies the type of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- globalServiceConfiguration?: GlobalServiceConfiguration;
+ readonly type?: string;
+ /** Contains resource tags defined as key/value pairs. */
+ tags?: { [propertyName: string]: string };
}
-/**
- * Parameters for PATCH operation on an operationalization cluster
- */
+/** Parameters for PATCH operation on an operationalization cluster */
export interface OperationalizationClusterUpdateParameters {
- /**
- * Gets or sets a list of key value pairs that describe the resource. These tags can be used in
- * viewing and grouping this resource (across resource groups). A maximum of 15 tags can be
- * provided for a resource. Each tag must have a key no greater in length than 128 characters and
- * a value no greater in length than 256 characters.
- */
+ /** Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. */
tags?: { [propertyName: string]: string };
}
-/**
- * Access information for the storage account.
- */
+/** Credentials to resources in the cluster. */
+export interface OperationalizationClusterCredentials {
+ /** Credentials for the Storage Account. */
+ storageAccount?: StorageAccountCredentials;
+ /** Credentials for Azure Container Registry. */
+ containerRegistry?: ContainerRegistryCredentials;
+ /** Credentials for Azure Container Service. */
+ containerService?: ContainerServiceCredentials;
+ /** Credentials for Azure AppInsights. */
+ appInsights?: AppInsightsCredentials;
+ /** Global authorization keys for all user services deployed in cluster. These are used if the service does not have auth keys. */
+ serviceAuthConfiguration?: ServiceAuthConfiguration;
+ /** The SSL configuration for the services. */
+ sslConfiguration?: SslConfiguration;
+}
+
+/** Access information for the storage account. */
export interface StorageAccountCredentials {
/**
* The ARM resource ID of the storage account.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly resourceId?: string;
/**
* The primary key of the storage account.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly primaryKey?: string;
/**
* The secondary key of the storage account.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly secondaryKey?: string;
}
-/**
- * Information about the Azure Container Registry which contains the images deployed to the
- * cluster.
- */
+/** Information about the Azure Container Registry which contains the images deployed to the cluster. */
export interface ContainerRegistryCredentials {
/**
* The ACR login server name. User name is the first part of the FQDN.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly loginServer?: string;
/**
* The ACR primary password.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly password?: string;
/**
* The ACR secondary password.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly password2?: string;
/**
* The ACR login username.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly username?: string;
}
-/**
- * Information about the Azure Container Registry which contains the images deployed to the
- * cluster.
- */
+/** Information about the Azure Container Registry which contains the images deployed to the cluster. */
export interface ContainerServiceCredentials {
/**
* The ACS kube config file.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly acsKubeConfig?: string;
/**
* Service principal configuration used by Kubernetes.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly servicePrincipalConfiguration?: ServicePrincipalProperties;
/**
* The ACR image pull secret name which was created in Kubernetes.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly imagePullSecretName?: string;
}
-/**
- * AppInsights credentials.
- */
+/** AppInsights credentials. */
export interface AppInsightsCredentials {
- /**
- * The AppInsights application ID.
- */
+ /** The AppInsights application ID. */
appId?: string;
- /**
- * The AppInsights instrumentation key. This is not returned in response of GET/PUT on the
- * resource. To see this please call listKeys API.
- */
+ /** The AppInsights instrumentation key. This is not returned in response of GET/PUT on the resource. To see this please call listKeys API. */
instrumentationKey?: string;
}
-/**
- * Credentials to resources in the cluster.
- */
-export interface OperationalizationClusterCredentials {
- /**
- * Credentials for the Storage Account.
- */
- storageAccount?: StorageAccountCredentials;
- /**
- * Credentials for Azure Container Registry.
- */
- containerRegistry?: ContainerRegistryCredentials;
- /**
- * Credentials for Azure Container Service.
- */
- containerService?: ContainerServiceCredentials;
- /**
- * Credentials for Azure AppInsights.
- */
- appInsights?: AppInsightsCredentials;
- /**
- * Global authorization keys for all user services deployed in cluster. These are used if the
- * service does not have auth keys.
- */
- serviceAuthConfiguration?: ServiceAuthConfiguration;
- /**
- * The SSL configuration for the services.
- */
- sslConfiguration?: SslConfiguration;
-}
-
-/**
- * Information about updates available for system services in a cluster.
- */
+/** Information about updates available for system services in a cluster. */
export interface CheckSystemServicesUpdatesAvailableResponse {
/**
- * Yes if updates are available for the system services, No if not. Possible values include:
- * 'Yes', 'No'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * Yes if updates are available for the system services, No if not.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly updatesAvailable?: UpdatesAvailable;
}
-/**
- * Response of the update system services API
- */
+/** Response of the update system services API */
export interface UpdateSystemServicesResponse {
/**
- * Update status. Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting',
- * 'Succeeded', 'Failed', 'Canceled'
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * Update status
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly updateStatus?: OperationStatus;
/**
* The date and time when the last system services update was started.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly updateStartedOn?: Date;
/**
* The date and time when the last system services update completed.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly updateCompletedOn?: Date;
}
-/**
- * Display of the operation.
- */
-export interface ResourceOperationDisplay {
- /**
- * The resource provider name.
- */
- provider?: string;
- /**
- * The resource name.
- */
- resource?: string;
- /**
- * The operation.
- */
- operation?: string;
- /**
- * The description of the operation.
- */
- description?: string;
-}
-
-/**
- * Resource operation.
- */
-export interface ResourceOperation {
- /**
- * Name of this operation.
- */
- name?: string;
- /**
- * Display of the operation.
- */
- display?: ResourceOperationDisplay;
- /**
- * The operation origin.
- */
- origin?: string;
+/** Paginated list of operationalization clusters. */
+export interface PaginatedOperationalizationClustersList {
+ /** An array of cluster objects. */
+ value?: OperationalizationCluster[];
+ /** A continuation link (absolute URI) to the next page of results in the list. */
+ nextLink?: string;
}
-/**
- * Available operation list.
- */
+/** Available operation list. */
export interface AvailableOperations {
- /**
- * An array of available operations.
- */
+ /** An array of available operations. */
value?: ResourceOperation[];
}
-/**
- * Optional Parameters.
- */
-export interface OperationalizationClustersDeleteMethodOptionalParams extends msRest.RequestOptionsBase {
- /**
- * If true, deletes all resources associated with this cluster.
- */
- deleteAll?: boolean;
+/** Resource operation. */
+export interface ResourceOperation {
+ /** Name of this operation. */
+ name?: string;
+ /** Display of the operation. */
+ display?: ResourceOperationDisplay;
+ /** The operation origin. */
+ origin?: string;
}
-/**
- * Optional Parameters.
- */
-export interface OperationalizationClustersListByResourceGroupOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Continuation token for pagination.
- */
- skiptoken?: string;
+/** Display of the operation. */
+export interface ResourceOperationDisplay {
+ /** The resource provider name. */
+ provider?: string;
+ /** The resource name. */
+ resource?: string;
+ /** The operation. */
+ operation?: string;
+ /** The description of the operation. */
+ description?: string;
}
-/**
- * Optional Parameters.
- */
-export interface OperationalizationClustersListBySubscriptionIdOptionalParams extends msRest.RequestOptionsBase {
+/** Instance of an Azure ML Operationalization Cluster resource. */
+export type OperationalizationCluster = Resource & {
+ /** The description of the cluster. */
+ description?: string;
/**
- * Continuation token for pagination.
+ * The date and time when the cluster was created.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- skiptoken?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface OperationalizationClustersBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase {
+ readonly createdOn?: Date;
/**
- * If true, deletes all resources associated with this cluster.
+ * The date and time when the cluster was last modified.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- deleteAll?: boolean;
-}
-
-/**
- * Optional Parameters.
- */
-export interface OperationalizationClustersListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase {
+ readonly modifiedOn?: Date;
/**
- * Continuation token for pagination.
+ * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- skiptoken?: string;
-}
-
-/**
- * Optional Parameters.
- */
-export interface OperationalizationClustersListBySubscriptionIdNextOptionalParams extends msRest.RequestOptionsBase {
+ readonly provisioningState?: OperationStatus;
/**
- * Continuation token for pagination.
+ * List of provisioning errors reported by the resource provider.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- skiptoken?: string;
-}
-
-/**
- * An interface representing MachineLearningComputeManagementClientOptions.
- */
-export interface MachineLearningComputeManagementClientOptions extends AzureServiceClientOptions {
- baseUri?: string;
-}
+ readonly provisioningErrors?: ErrorResponseWrapper[];
+ /** The cluster type. */
+ clusterType?: ClusterType;
+ /** Storage Account properties. */
+ storageAccount?: StorageAccountProperties;
+ /** Container Registry properties. */
+ containerRegistry?: ContainerRegistryProperties;
+ /** Parameters for the Azure Container Service cluster. */
+ containerService?: AcsClusterProperties;
+ /** AppInsights configuration. */
+ appInsights?: AppInsightsProperties;
+ /** Contains global configuration for the web services in the cluster. */
+ globalServiceConfiguration?: GlobalServiceConfiguration;
+};
-/**
- * Defines headers for Delete operation.
- */
+/** Defines headers for OperationalizationClusters_delete operation. */
export interface OperationalizationClustersDeleteHeaders {
- /**
- * URI of the async operation.
- */
- location: string;
+ /** URI of the async operation. */
+ location?: string;
}
-/**
- * Defines headers for UpdateSystemServices operation.
- */
+/** Defines headers for OperationalizationClusters_updateSystemServices operation. */
export interface OperationalizationClustersUpdateSystemServicesHeaders {
- /**
- * URI of the async operation.
- */
- location: string;
-}
-
-/**
- * @interface
- * Paginated list of operationalization clusters.
- * @extends Array
- */
-export interface PaginatedOperationalizationClustersList extends Array {
- /**
- * A continuation link (absolute URI) to the next page of results in the list.
- */
- nextLink?: string;
+ /** URI of the async operation. */
+ location?: string;
+}
+
+/** Known values of {@link OperationStatus} that the service accepts. */
+export enum KnownOperationStatus {
+ Unknown = "Unknown",
+ Updating = "Updating",
+ Creating = "Creating",
+ Deleting = "Deleting",
+ Succeeded = "Succeeded",
+ Failed = "Failed",
+ Canceled = "Canceled"
+}
+
+/**
+ * Defines values for OperationStatus. \
+ * {@link KnownOperationStatus} can be used interchangeably with OperationStatus,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Unknown** \
+ * **Updating** \
+ * **Creating** \
+ * **Deleting** \
+ * **Succeeded** \
+ * **Failed** \
+ * **Canceled**
+ */
+export type OperationStatus = string;
+
+/** Known values of {@link ClusterType} that the service accepts. */
+export enum KnownClusterType {
+ ACS = "ACS",
+ Local = "Local"
+}
+
+/**
+ * Defines values for ClusterType. \
+ * {@link KnownClusterType} can be used interchangeably with ClusterType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **ACS** \
+ * **Local**
+ */
+export type ClusterType = string;
+
+/** Known values of {@link OrchestratorType} that the service accepts. */
+export enum KnownOrchestratorType {
+ Kubernetes = "Kubernetes",
+ None = "None"
+}
+
+/**
+ * Defines values for OrchestratorType. \
+ * {@link KnownOrchestratorType} can be used interchangeably with OrchestratorType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Kubernetes** \
+ * **None**
+ */
+export type OrchestratorType = string;
+
+/** Known values of {@link SystemServiceType} that the service accepts. */
+export enum KnownSystemServiceType {
+ None = "None",
+ ScoringFrontEnd = "ScoringFrontEnd",
+ BatchFrontEnd = "BatchFrontEnd"
+}
+
+/**
+ * Defines values for SystemServiceType. \
+ * {@link KnownSystemServiceType} can be used interchangeably with SystemServiceType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **None** \
+ * **ScoringFrontEnd** \
+ * **BatchFrontEnd**
+ */
+export type SystemServiceType = string;
+
+/** Known values of {@link AgentVMSizeTypes} that the service accepts. */
+export enum KnownAgentVMSizeTypes {
+ StandardA0 = "Standard_A0",
+ StandardA1 = "Standard_A1",
+ StandardA2 = "Standard_A2",
+ StandardA3 = "Standard_A3",
+ StandardA4 = "Standard_A4",
+ StandardA5 = "Standard_A5",
+ StandardA6 = "Standard_A6",
+ StandardA7 = "Standard_A7",
+ StandardA8 = "Standard_A8",
+ StandardA9 = "Standard_A9",
+ StandardA10 = "Standard_A10",
+ StandardA11 = "Standard_A11",
+ StandardD1 = "Standard_D1",
+ StandardD2 = "Standard_D2",
+ StandardD3 = "Standard_D3",
+ StandardD4 = "Standard_D4",
+ StandardD11 = "Standard_D11",
+ StandardD12 = "Standard_D12",
+ StandardD13 = "Standard_D13",
+ StandardD14 = "Standard_D14",
+ StandardD1V2 = "Standard_D1_v2",
+ StandardD2V2 = "Standard_D2_v2",
+ StandardD3V2 = "Standard_D3_v2",
+ StandardD4V2 = "Standard_D4_v2",
+ StandardD5V2 = "Standard_D5_v2",
+ StandardD11V2 = "Standard_D11_v2",
+ StandardD12V2 = "Standard_D12_v2",
+ StandardD13V2 = "Standard_D13_v2",
+ StandardD14V2 = "Standard_D14_v2",
+ StandardG1 = "Standard_G1",
+ StandardG2 = "Standard_G2",
+ StandardG3 = "Standard_G3",
+ StandardG4 = "Standard_G4",
+ StandardG5 = "Standard_G5",
+ StandardDS1 = "Standard_DS1",
+ StandardDS2 = "Standard_DS2",
+ StandardDS3 = "Standard_DS3",
+ StandardDS4 = "Standard_DS4",
+ StandardDS11 = "Standard_DS11",
+ StandardDS12 = "Standard_DS12",
+ StandardDS13 = "Standard_DS13",
+ StandardDS14 = "Standard_DS14",
+ StandardGS1 = "Standard_GS1",
+ StandardGS2 = "Standard_GS2",
+ StandardGS3 = "Standard_GS3",
+ StandardGS4 = "Standard_GS4",
+ StandardGS5 = "Standard_GS5"
+}
+
+/**
+ * Defines values for AgentVMSizeTypes. \
+ * {@link KnownAgentVMSizeTypes} can be used interchangeably with AgentVMSizeTypes,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Standard_A0** \
+ * **Standard_A1** \
+ * **Standard_A2** \
+ * **Standard_A3** \
+ * **Standard_A4** \
+ * **Standard_A5** \
+ * **Standard_A6** \
+ * **Standard_A7** \
+ * **Standard_A8** \
+ * **Standard_A9** \
+ * **Standard_A10** \
+ * **Standard_A11** \
+ * **Standard_D1** \
+ * **Standard_D2** \
+ * **Standard_D3** \
+ * **Standard_D4** \
+ * **Standard_D11** \
+ * **Standard_D12** \
+ * **Standard_D13** \
+ * **Standard_D14** \
+ * **Standard_D1_v2** \
+ * **Standard_D2_v2** \
+ * **Standard_D3_v2** \
+ * **Standard_D4_v2** \
+ * **Standard_D5_v2** \
+ * **Standard_D11_v2** \
+ * **Standard_D12_v2** \
+ * **Standard_D13_v2** \
+ * **Standard_D14_v2** \
+ * **Standard_G1** \
+ * **Standard_G2** \
+ * **Standard_G3** \
+ * **Standard_G4** \
+ * **Standard_G5** \
+ * **Standard_DS1** \
+ * **Standard_DS2** \
+ * **Standard_DS3** \
+ * **Standard_DS4** \
+ * **Standard_DS11** \
+ * **Standard_DS12** \
+ * **Standard_DS13** \
+ * **Standard_DS14** \
+ * **Standard_GS1** \
+ * **Standard_GS2** \
+ * **Standard_GS3** \
+ * **Standard_GS4** \
+ * **Standard_GS5**
+ */
+export type AgentVMSizeTypes = string;
+
+/** Known values of {@link Status} that the service accepts. */
+export enum KnownStatus {
+ Enabled = "Enabled",
+ Disabled = "Disabled"
+}
+
+/**
+ * Defines values for Status. \
+ * {@link KnownStatus} can be used interchangeably with Status,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Enabled** \
+ * **Disabled**
+ */
+export type Status = string;
+
+/** Known values of {@link UpdatesAvailable} that the service accepts. */
+export enum KnownUpdatesAvailable {
+ Yes = "Yes",
+ No = "No"
+}
+
+/**
+ * Defines values for UpdatesAvailable. \
+ * {@link KnownUpdatesAvailable} can be used interchangeably with UpdatesAvailable,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Yes** \
+ * **No**
+ */
+export type UpdatesAvailable = string;
+
+/** Optional parameters. */
+export interface OperationalizationClustersCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the createOrUpdate operation. */
+export type OperationalizationClustersCreateOrUpdateResponse = OperationalizationCluster;
+
+/** Optional parameters. */
+export interface OperationalizationClustersGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type OperationalizationClustersGetResponse = OperationalizationCluster;
+
+/** Optional parameters. */
+export interface OperationalizationClustersUpdateOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the update operation. */
+export type OperationalizationClustersUpdateResponse = OperationalizationCluster;
+
+/** Optional parameters. */
+export interface OperationalizationClustersDeleteOptionalParams
+ extends coreClient.OperationOptions {
+ /** If true, deletes all resources associated with this cluster. */
+ deleteAll?: boolean;
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
}
-/**
- * Defines values for OperationStatus.
- * Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', 'Succeeded', 'Failed',
- * 'Canceled'
- * @readonly
- * @enum {string}
- */
-export type OperationStatus = 'Unknown' | 'Updating' | 'Creating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled';
-
-/**
- * Defines values for ClusterType.
- * Possible values include: 'ACS', 'Local'
- * @readonly
- * @enum {string}
- */
-export type ClusterType = 'ACS' | 'Local';
-
-/**
- * Defines values for OrchestratorType.
- * Possible values include: 'Kubernetes', 'None'
- * @readonly
- * @enum {string}
- */
-export type OrchestratorType = 'Kubernetes' | 'None';
+/** Contains response data for the delete operation. */
+export type OperationalizationClustersDeleteResponse = OperationalizationClustersDeleteHeaders;
-/**
- * Defines values for SystemServiceType.
- * Possible values include: 'None', 'ScoringFrontEnd', 'BatchFrontEnd'
- * @readonly
- * @enum {string}
- */
-export type SystemServiceType = 'None' | 'ScoringFrontEnd' | 'BatchFrontEnd';
+/** Optional parameters. */
+export interface OperationalizationClustersListKeysOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Defines values for AgentVMSizeTypes.
- * Possible values include: 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3',
- * 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A9',
- * 'Standard_A10', 'Standard_A11', 'Standard_D1', 'Standard_D2', 'Standard_D3', 'Standard_D4',
- * 'Standard_D11', 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2',
- * 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D11_v2',
- * 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_G1', 'Standard_G2',
- * 'Standard_G3', 'Standard_G4', 'Standard_G5', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3',
- * 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13', 'Standard_DS14',
- * 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5'
- * @readonly
- * @enum {string}
- */
-export type AgentVMSizeTypes = 'Standard_A0' | 'Standard_A1' | 'Standard_A2' | 'Standard_A3' | 'Standard_A4' | 'Standard_A5' | 'Standard_A6' | 'Standard_A7' | 'Standard_A8' | 'Standard_A9' | 'Standard_A10' | 'Standard_A11' | 'Standard_D1' | 'Standard_D2' | 'Standard_D3' | 'Standard_D4' | 'Standard_D11' | 'Standard_D12' | 'Standard_D13' | 'Standard_D14' | 'Standard_D1_v2' | 'Standard_D2_v2' | 'Standard_D3_v2' | 'Standard_D4_v2' | 'Standard_D5_v2' | 'Standard_D11_v2' | 'Standard_D12_v2' | 'Standard_D13_v2' | 'Standard_D14_v2' | 'Standard_G1' | 'Standard_G2' | 'Standard_G3' | 'Standard_G4' | 'Standard_G5' | 'Standard_DS1' | 'Standard_DS2' | 'Standard_DS3' | 'Standard_DS4' | 'Standard_DS11' | 'Standard_DS12' | 'Standard_DS13' | 'Standard_DS14' | 'Standard_GS1' | 'Standard_GS2' | 'Standard_GS3' | 'Standard_GS4' | 'Standard_GS5';
+/** Contains response data for the listKeys operation. */
+export type OperationalizationClustersListKeysResponse = OperationalizationClusterCredentials;
-/**
- * Defines values for Status.
- * Possible values include: 'Enabled', 'Disabled'
- * @readonly
- * @enum {string}
- */
-export type Status = 'Enabled' | 'Disabled';
+/** Optional parameters. */
+export interface OperationalizationClustersCheckSystemServicesUpdatesAvailableOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Defines values for UpdatesAvailable.
- * Possible values include: 'Yes', 'No'
- * @readonly
- * @enum {string}
- */
-export type UpdatesAvailable = 'Yes' | 'No';
+/** Contains response data for the checkSystemServicesUpdatesAvailable operation. */
+export type OperationalizationClustersCheckSystemServicesUpdatesAvailableResponse = CheckSystemServicesUpdatesAvailableResponse;
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type OperationalizationClustersCreateOrUpdateResponse = OperationalizationCluster & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationalizationCluster;
- };
-};
+/** Optional parameters. */
+export interface OperationalizationClustersUpdateSystemServicesOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
-/**
- * Contains response data for the get operation.
- */
-export type OperationalizationClustersGetResponse = OperationalizationCluster & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationalizationCluster;
- };
-};
+/** Contains response data for the updateSystemServices operation. */
+export type OperationalizationClustersUpdateSystemServicesResponse = UpdateSystemServicesResponse;
-/**
- * Contains response data for the update operation.
- */
-export type OperationalizationClustersUpdateResponse = OperationalizationCluster & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationalizationCluster;
- };
-};
+/** Optional parameters. */
+export interface OperationalizationClustersListByResourceGroupOptionalParams
+ extends coreClient.OperationOptions {
+ /** Continuation token for pagination. */
+ skiptoken?: string;
+}
-/**
- * Contains response data for the deleteMethod operation.
- */
-export type OperationalizationClustersDeleteResponse = OperationalizationClustersDeleteHeaders & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The parsed HTTP response headers.
- */
- parsedHeaders: OperationalizationClustersDeleteHeaders;
- };
-};
+/** Contains response data for the listByResourceGroup operation. */
+export type OperationalizationClustersListByResourceGroupResponse = PaginatedOperationalizationClustersList;
-/**
- * Contains response data for the listKeys operation.
- */
-export type OperationalizationClustersListKeysResponse = OperationalizationClusterCredentials & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationalizationClusterCredentials;
- };
-};
+/** Optional parameters. */
+export interface OperationalizationClustersListBySubscriptionIdOptionalParams
+ extends coreClient.OperationOptions {
+ /** Continuation token for pagination. */
+ skiptoken?: string;
+}
-/**
- * Contains response data for the checkSystemServicesUpdatesAvailable operation.
- */
-export type OperationalizationClustersCheckSystemServicesUpdatesAvailableResponse = CheckSystemServicesUpdatesAvailableResponse & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: CheckSystemServicesUpdatesAvailableResponse;
- };
-};
+/** Contains response data for the listBySubscriptionId operation. */
+export type OperationalizationClustersListBySubscriptionIdResponse = PaginatedOperationalizationClustersList;
-/**
- * Contains response data for the updateSystemServices operation.
- */
-export type OperationalizationClustersUpdateSystemServicesResponse = UpdateSystemServicesResponse & OperationalizationClustersUpdateSystemServicesHeaders & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The parsed HTTP response headers.
- */
- parsedHeaders: OperationalizationClustersUpdateSystemServicesHeaders;
-
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: UpdateSystemServicesResponse;
- };
-};
+/** Optional parameters. */
+export interface OperationalizationClustersListByResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Continuation token for pagination. */
+ skiptoken?: string;
+}
-/**
- * Contains response data for the listByResourceGroup operation.
- */
-export type OperationalizationClustersListByResourceGroupResponse = PaginatedOperationalizationClustersList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PaginatedOperationalizationClustersList;
- };
-};
+/** Contains response data for the listByResourceGroupNext operation. */
+export type OperationalizationClustersListByResourceGroupNextResponse = PaginatedOperationalizationClustersList;
-/**
- * Contains response data for the listBySubscriptionId operation.
- */
-export type OperationalizationClustersListBySubscriptionIdResponse = PaginatedOperationalizationClustersList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PaginatedOperationalizationClustersList;
- };
-};
+/** Optional parameters. */
+export interface OperationalizationClustersListBySubscriptionIdNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** Continuation token for pagination. */
+ skiptoken?: string;
+}
-/**
- * Contains response data for the beginCreateOrUpdate operation.
- */
-export type OperationalizationClustersBeginCreateOrUpdateResponse = OperationalizationCluster & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationalizationCluster;
- };
-};
+/** Contains response data for the listBySubscriptionIdNext operation. */
+export type OperationalizationClustersListBySubscriptionIdNextResponse = PaginatedOperationalizationClustersList;
-/**
- * Contains response data for the listByResourceGroupNext operation.
- */
-export type OperationalizationClustersListByResourceGroupNextResponse = PaginatedOperationalizationClustersList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PaginatedOperationalizationClustersList;
- };
-};
+/** Optional parameters. */
+export interface MachineLearningComputeListAvailableOperationsOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listBySubscriptionIdNext operation.
- */
-export type OperationalizationClustersListBySubscriptionIdNextResponse = PaginatedOperationalizationClustersList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: PaginatedOperationalizationClustersList;
- };
-};
+/** Contains response data for the listAvailableOperations operation. */
+export type MachineLearningComputeListAvailableOperationsResponse = AvailableOperations;
-/**
- * Contains response data for the listAvailableOperations operation.
- */
-export type MachineLearningComputeListAvailableOperationsResponse = AvailableOperations & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AvailableOperations;
- };
-};
+/** Optional parameters. */
+export interface MachineLearningComputeManagementClientOptionalParams
+ extends coreClient.ServiceClientOptions {
+ /** server parameter */
+ $host?: string;
+ /** Api Version */
+ apiVersion?: string;
+ /** Overrides client endpoint. */
+ endpoint?: string;
+}
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/mappers.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/mappers.ts
index 7f00bf5f201a..408c06677b53 100644
--- a/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/mappers.ts
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/mappers.ts
@@ -6,101 +6,39 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export const CloudError = CloudErrorMapper;
-export const BaseResource = BaseResourceMapper;
-
-export const Resource: msRest.CompositeMapper = {
- serializedName: "Resource",
- type: {
- name: "Composite",
- className: "Resource",
- modelProperties: {
- id: {
- readOnly: true,
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- location: {
- required: true,
- serializedName: "location",
- type: {
- name: "String"
- }
- },
- type: {
- readOnly: true,
- serializedName: "type",
- type: {
- name: "String"
- }
- },
- tags: {
- serializedName: "tags",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- }
- }
- }
-};
-
-export const ErrorDetail: msRest.CompositeMapper = {
- serializedName: "ErrorDetail",
+export const ErrorResponseWrapper: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ErrorDetail",
+ className: "ErrorResponseWrapper",
modelProperties: {
- code: {
- required: true,
- serializedName: "code",
- type: {
- name: "String"
- }
- },
- message: {
- required: true,
- serializedName: "message",
+ error: {
+ serializedName: "error",
type: {
- name: "String"
+ name: "Composite",
+ className: "ErrorResponse"
}
}
}
}
};
-export const ErrorResponse: msRest.CompositeMapper = {
- serializedName: "ErrorResponse",
+export const ErrorResponse: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ErrorResponse",
modelProperties: {
code: {
- required: true,
serializedName: "code",
+ required: true,
type: {
name: "String"
}
},
message: {
- required: true,
serializedName: "message",
+ required: true,
type: {
name: "String"
}
@@ -121,25 +59,30 @@ export const ErrorResponse: msRest.CompositeMapper = {
}
};
-export const ErrorResponseWrapper: msRest.CompositeMapper = {
- serializedName: "ErrorResponseWrapper",
+export const ErrorDetail: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ErrorResponseWrapper",
+ className: "ErrorDetail",
modelProperties: {
- error: {
- serializedName: "error",
+ code: {
+ serializedName: "code",
+ required: true,
type: {
- name: "Composite",
- className: "ErrorResponse"
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ required: true,
+ type: {
+ name: "String"
}
}
}
}
};
-export const StorageAccountProperties: msRest.CompositeMapper = {
- serializedName: "StorageAccountProperties",
+export const StorageAccountProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "StorageAccountProperties",
@@ -154,8 +97,7 @@ export const StorageAccountProperties: msRest.CompositeMapper = {
}
};
-export const ContainerRegistryProperties: msRest.CompositeMapper = {
- serializedName: "ContainerRegistryProperties",
+export const ContainerRegistryProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ContainerRegistryProperties",
@@ -170,22 +112,69 @@ export const ContainerRegistryProperties: msRest.CompositeMapper = {
}
};
-export const ServicePrincipalProperties: msRest.CompositeMapper = {
- serializedName: "ServicePrincipalProperties",
+export const AcsClusterProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ServicePrincipalProperties",
+ className: "AcsClusterProperties",
modelProperties: {
- clientId: {
- required: true,
- serializedName: "clientId",
+ clusterFqdn: {
+ serializedName: "clusterFqdn",
+ readOnly: true,
type: {
name: "String"
}
},
- secret: {
+ orchestratorType: {
+ serializedName: "orchestratorType",
required: true,
- serializedName: "secret",
+ type: {
+ name: "String"
+ }
+ },
+ orchestratorProperties: {
+ serializedName: "orchestratorProperties",
+ type: {
+ name: "Composite",
+ className: "KubernetesClusterProperties"
+ }
+ },
+ systemServices: {
+ serializedName: "systemServices",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SystemService"
+ }
+ }
+ }
+ },
+ masterCount: {
+ defaultValue: 1,
+ constraints: {
+ InclusiveMaximum: 5,
+ InclusiveMinimum: 1
+ },
+ serializedName: "masterCount",
+ type: {
+ name: "Number"
+ }
+ },
+ agentCount: {
+ defaultValue: 2,
+ constraints: {
+ InclusiveMaximum: 100,
+ InclusiveMinimum: 1
+ },
+ serializedName: "agentCount",
+ type: {
+ name: "Number"
+ }
+ },
+ agentVmSize: {
+ defaultValue: "Standard_D3_v2",
+ serializedName: "agentVmSize",
type: {
name: "String"
}
@@ -194,7 +183,7 @@ export const ServicePrincipalProperties: msRest.CompositeMapper = {
}
};
-export const KubernetesClusterProperties: msRest.CompositeMapper = {
+export const KubernetesClusterProperties: coreClient.CompositeMapper = {
serializedName: "Kubernetes",
type: {
name: "Composite",
@@ -211,29 +200,51 @@ export const KubernetesClusterProperties: msRest.CompositeMapper = {
}
};
-export const SystemService: msRest.CompositeMapper = {
- serializedName: "SystemService",
+export const ServicePrincipalProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ServicePrincipalProperties",
+ modelProperties: {
+ clientId: {
+ serializedName: "clientId",
+ required: true,
+ type: {
+ name: "String"
+ }
+ },
+ secret: {
+ serializedName: "secret",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const SystemService: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "SystemService",
modelProperties: {
systemServiceType: {
- required: true,
serializedName: "systemServiceType",
+ required: true,
type: {
name: "String"
}
},
publicIpAddress: {
- readOnly: true,
serializedName: "publicIpAddress",
+ readOnly: true,
type: {
name: "String"
}
},
version: {
- readOnly: true,
serializedName: "version",
+ readOnly: true,
type: {
name: "String"
}
@@ -242,103 +253,65 @@ export const SystemService: msRest.CompositeMapper = {
}
};
-export const AcsClusterProperties: msRest.CompositeMapper = {
- serializedName: "AcsClusterProperties",
+export const AppInsightsProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "AcsClusterProperties",
+ className: "AppInsightsProperties",
modelProperties: {
- clusterFqdn: {
- readOnly: true,
- serializedName: "clusterFqdn",
+ resourceId: {
+ serializedName: "resourceId",
type: {
name: "String"
}
- },
- orchestratorType: {
- required: true,
- serializedName: "orchestratorType",
+ }
+ }
+ }
+};
+
+export const GlobalServiceConfiguration: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "GlobalServiceConfiguration",
+ additionalProperties: { type: { name: "Object" } },
+ modelProperties: {
+ etag: {
+ serializedName: "etag",
type: {
name: "String"
}
},
- orchestratorProperties: {
- serializedName: "orchestratorProperties",
+ ssl: {
+ serializedName: "ssl",
type: {
name: "Composite",
- className: "KubernetesClusterProperties"
- }
- },
- systemServices: {
- serializedName: "systemServices",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "SystemService"
- }
- }
- }
- },
- masterCount: {
- serializedName: "masterCount",
- defaultValue: 1,
- constraints: {
- InclusiveMaximum: 5,
- InclusiveMinimum: 1
- },
- type: {
- name: "Number"
+ className: "SslConfiguration"
}
},
- agentCount: {
- serializedName: "agentCount",
- defaultValue: 2,
- constraints: {
- InclusiveMaximum: 100,
- InclusiveMinimum: 1
- },
+ serviceAuth: {
+ serializedName: "serviceAuth",
type: {
- name: "Number"
+ name: "Composite",
+ className: "ServiceAuthConfiguration"
}
},
- agentVmSize: {
- serializedName: "agentVmSize",
- defaultValue: 'Standard_D3_v2',
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const AppInsightsProperties: msRest.CompositeMapper = {
- serializedName: "AppInsightsProperties",
- type: {
- name: "Composite",
- className: "AppInsightsProperties",
- modelProperties: {
- resourceId: {
- serializedName: "resourceId",
+ autoScale: {
+ serializedName: "autoScale",
type: {
- name: "String"
+ name: "Composite",
+ className: "AutoScaleConfiguration"
}
}
}
}
};
-export const SslConfiguration: msRest.CompositeMapper = {
- serializedName: "SslConfiguration",
+export const SslConfiguration: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "SslConfiguration",
modelProperties: {
status: {
serializedName: "status",
- defaultValue: 'Enabled',
type: {
name: "String"
}
@@ -365,22 +338,21 @@ export const SslConfiguration: msRest.CompositeMapper = {
}
};
-export const ServiceAuthConfiguration: msRest.CompositeMapper = {
- serializedName: "ServiceAuthConfiguration",
+export const ServiceAuthConfiguration: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ServiceAuthConfiguration",
modelProperties: {
primaryAuthKeyHash: {
- required: true,
serializedName: "primaryAuthKeyHash",
+ required: true,
type: {
name: "String"
}
},
secondaryAuthKeyHash: {
- required: true,
serializedName: "secondaryAuthKeyHash",
+ required: true,
type: {
name: "String"
}
@@ -389,35 +361,33 @@ export const ServiceAuthConfiguration: msRest.CompositeMapper = {
}
};
-export const AutoScaleConfiguration: msRest.CompositeMapper = {
- serializedName: "AutoScaleConfiguration",
+export const AutoScaleConfiguration: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "AutoScaleConfiguration",
modelProperties: {
status: {
serializedName: "status",
- defaultValue: 'Disabled',
type: {
name: "String"
}
},
minReplicas: {
- serializedName: "minReplicas",
defaultValue: 1,
constraints: {
InclusiveMinimum: 1
},
+ serializedName: "minReplicas",
type: {
name: "Number"
}
},
maxReplicas: {
- serializedName: "maxReplicas",
defaultValue: 100,
constraints: {
InclusiveMinimum: 1
},
+ serializedName: "maxReplicas",
type: {
name: "Number"
}
@@ -438,190 +408,139 @@ export const AutoScaleConfiguration: msRest.CompositeMapper = {
}
};
-export const GlobalServiceConfiguration: msRest.CompositeMapper = {
- serializedName: "GlobalServiceConfiguration",
+export const Resource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "GlobalServiceConfiguration",
+ className: "Resource",
modelProperties: {
- etag: {
- serializedName: "etag",
+ id: {
+ serializedName: "id",
+ readOnly: true,
type: {
name: "String"
}
},
- ssl: {
- serializedName: "ssl",
+ name: {
+ serializedName: "name",
+ readOnly: true,
type: {
- name: "Composite",
- className: "SslConfiguration"
+ name: "String"
}
},
- serviceAuth: {
- serializedName: "serviceAuth",
+ location: {
+ serializedName: "location",
+ required: true,
type: {
- name: "Composite",
- className: "ServiceAuthConfiguration"
+ name: "String"
}
},
- autoScale: {
- serializedName: "autoScale",
+ type: {
+ serializedName: "type",
+ readOnly: true,
type: {
- name: "Composite",
- className: "AutoScaleConfiguration"
+ name: "String"
+ }
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
- }
- },
- additionalProperties: {
- type: {
- name: "Object"
}
}
}
};
-export const OperationalizationCluster: msRest.CompositeMapper = {
- serializedName: "OperationalizationCluster",
+export const OperationalizationClusterUpdateParameters: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "OperationalizationCluster",
+ className: "OperationalizationClusterUpdateParameters",
modelProperties: {
- ...Resource.type.modelProperties,
- description: {
- serializedName: "properties.description",
- type: {
- name: "String"
- }
- },
- createdOn: {
- readOnly: true,
- serializedName: "properties.createdOn",
- type: {
- name: "DateTime"
- }
- },
- modifiedOn: {
- readOnly: true,
- serializedName: "properties.modifiedOn",
- type: {
- name: "DateTime"
- }
- },
- provisioningState: {
- readOnly: true,
- serializedName: "properties.provisioningState",
- type: {
- name: "String"
- }
- },
- provisioningErrors: {
- readOnly: true,
- serializedName: "properties.provisioningErrors",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ErrorResponseWrapper"
- }
- }
- }
- },
- clusterType: {
- required: true,
- serializedName: "properties.clusterType",
+ tags: {
+ serializedName: "tags",
type: {
- name: "String"
+ name: "Dictionary",
+ value: { type: { name: "String" } }
}
- },
+ }
+ }
+ }
+};
+
+export const OperationalizationClusterCredentials: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "OperationalizationClusterCredentials",
+ modelProperties: {
storageAccount: {
- serializedName: "properties.storageAccount",
+ serializedName: "storageAccount",
type: {
name: "Composite",
- className: "StorageAccountProperties"
+ className: "StorageAccountCredentials"
}
},
containerRegistry: {
- serializedName: "properties.containerRegistry",
+ serializedName: "containerRegistry",
type: {
name: "Composite",
- className: "ContainerRegistryProperties"
+ className: "ContainerRegistryCredentials"
}
},
containerService: {
- serializedName: "properties.containerService",
+ serializedName: "containerService",
type: {
name: "Composite",
- className: "AcsClusterProperties"
+ className: "ContainerServiceCredentials"
}
},
appInsights: {
- serializedName: "properties.appInsights",
- type: {
- name: "Composite",
- className: "AppInsightsProperties"
- }
- },
- globalServiceConfiguration: {
- serializedName: "properties.globalServiceConfiguration",
+ serializedName: "appInsights",
type: {
name: "Composite",
- className: "GlobalServiceConfiguration",
- additionalProperties: {
- type: {
- name: "Object"
- }
- }
- }
- }
- }
- }
-};
-
-export const OperationalizationClusterUpdateParameters: msRest.CompositeMapper = {
- serializedName: "OperationalizationClusterUpdateParameters",
- type: {
- name: "Composite",
- className: "OperationalizationClusterUpdateParameters",
- modelProperties: {
- tags: {
- serializedName: "tags",
+ className: "AppInsightsCredentials"
+ }
+ },
+ serviceAuthConfiguration: {
+ serializedName: "serviceAuthConfiguration",
type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
+ name: "Composite",
+ className: "ServiceAuthConfiguration"
+ }
+ },
+ sslConfiguration: {
+ serializedName: "sslConfiguration",
+ type: {
+ name: "Composite",
+ className: "SslConfiguration"
}
}
}
}
};
-export const StorageAccountCredentials: msRest.CompositeMapper = {
- serializedName: "StorageAccountCredentials",
+export const StorageAccountCredentials: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "StorageAccountCredentials",
modelProperties: {
resourceId: {
- readOnly: true,
serializedName: "resourceId",
+ readOnly: true,
type: {
name: "String"
}
},
primaryKey: {
- readOnly: true,
serializedName: "primaryKey",
+ readOnly: true,
type: {
name: "String"
}
},
secondaryKey: {
- readOnly: true,
serializedName: "secondaryKey",
+ readOnly: true,
type: {
name: "String"
}
@@ -630,36 +549,35 @@ export const StorageAccountCredentials: msRest.CompositeMapper = {
}
};
-export const ContainerRegistryCredentials: msRest.CompositeMapper = {
- serializedName: "ContainerRegistryCredentials",
+export const ContainerRegistryCredentials: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ContainerRegistryCredentials",
modelProperties: {
loginServer: {
- readOnly: true,
serializedName: "loginServer",
+ readOnly: true,
type: {
name: "String"
}
},
password: {
- readOnly: true,
serializedName: "password",
+ readOnly: true,
type: {
name: "String"
}
},
password2: {
- readOnly: true,
serializedName: "password2",
+ readOnly: true,
type: {
name: "String"
}
},
username: {
- readOnly: true,
serializedName: "username",
+ readOnly: true,
type: {
name: "String"
}
@@ -668,21 +586,19 @@ export const ContainerRegistryCredentials: msRest.CompositeMapper = {
}
};
-export const ContainerServiceCredentials: msRest.CompositeMapper = {
- serializedName: "ContainerServiceCredentials",
+export const ContainerServiceCredentials: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ContainerServiceCredentials",
modelProperties: {
acsKubeConfig: {
- readOnly: true,
serializedName: "acsKubeConfig",
+ readOnly: true,
type: {
name: "String"
}
},
servicePrincipalConfiguration: {
- readOnly: true,
serializedName: "servicePrincipalConfiguration",
type: {
name: "Composite",
@@ -690,8 +606,8 @@ export const ContainerServiceCredentials: msRest.CompositeMapper = {
}
},
imagePullSecretName: {
- readOnly: true,
serializedName: "imagePullSecretName",
+ readOnly: true,
type: {
name: "String"
}
@@ -700,8 +616,7 @@ export const ContainerServiceCredentials: msRest.CompositeMapper = {
}
};
-export const AppInsightsCredentials: msRest.CompositeMapper = {
- serializedName: "AppInsightsCredentials",
+export const AppInsightsCredentials: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "AppInsightsCredentials",
@@ -722,108 +637,129 @@ export const AppInsightsCredentials: msRest.CompositeMapper = {
}
};
-export const OperationalizationClusterCredentials: msRest.CompositeMapper = {
- serializedName: "OperationalizationClusterCredentials",
+export const CheckSystemServicesUpdatesAvailableResponse: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "OperationalizationClusterCredentials",
+ className: "CheckSystemServicesUpdatesAvailableResponse",
modelProperties: {
- storageAccount: {
- serializedName: "storageAccount",
+ updatesAvailable: {
+ serializedName: "updatesAvailable",
+ readOnly: true,
type: {
- name: "Composite",
- className: "StorageAccountCredentials"
+ name: "String"
}
- },
- containerRegistry: {
- serializedName: "containerRegistry",
+ }
+ }
+ }
+};
+
+export const UpdateSystemServicesResponse: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "UpdateSystemServicesResponse",
+ modelProperties: {
+ updateStatus: {
+ serializedName: "updateStatus",
+ readOnly: true,
type: {
- name: "Composite",
- className: "ContainerRegistryCredentials"
+ name: "String"
}
},
- containerService: {
- serializedName: "containerService",
+ updateStartedOn: {
+ serializedName: "updateStartedOn",
+ readOnly: true,
type: {
- name: "Composite",
- className: "ContainerServiceCredentials"
+ name: "DateTime"
}
},
- appInsights: {
- serializedName: "appInsights",
+ updateCompletedOn: {
+ serializedName: "updateCompletedOn",
+ readOnly: true,
type: {
- name: "Composite",
- className: "AppInsightsCredentials"
+ name: "DateTime"
}
- },
- serviceAuthConfiguration: {
- serializedName: "serviceAuthConfiguration",
+ }
+ }
+ }
+};
+
+export const PaginatedOperationalizationClustersList: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "PaginatedOperationalizationClustersList",
+ modelProperties: {
+ value: {
+ serializedName: "value",
type: {
- name: "Composite",
- className: "ServiceAuthConfiguration"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "OperationalizationCluster"
+ }
+ }
}
},
- sslConfiguration: {
- serializedName: "sslConfiguration",
+ nextLink: {
+ serializedName: "nextLink",
type: {
- name: "Composite",
- className: "SslConfiguration"
+ name: "String"
}
}
}
}
};
-export const CheckSystemServicesUpdatesAvailableResponse: msRest.CompositeMapper = {
- serializedName: "CheckSystemServicesUpdatesAvailableResponse",
+export const AvailableOperations: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "CheckSystemServicesUpdatesAvailableResponse",
+ className: "AvailableOperations",
modelProperties: {
- updatesAvailable: {
- readOnly: true,
- serializedName: "updatesAvailable",
+ value: {
+ serializedName: "value",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ResourceOperation"
+ }
+ }
}
}
}
}
};
-export const UpdateSystemServicesResponse: msRest.CompositeMapper = {
- serializedName: "UpdateSystemServicesResponse",
+export const ResourceOperation: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "UpdateSystemServicesResponse",
+ className: "ResourceOperation",
modelProperties: {
- updateStatus: {
- readOnly: true,
- serializedName: "updateStatus",
+ name: {
+ serializedName: "name",
type: {
name: "String"
}
},
- updateStartedOn: {
- readOnly: true,
- serializedName: "updateStartedOn",
+ display: {
+ serializedName: "display",
type: {
- name: "DateTime"
+ name: "Composite",
+ className: "ResourceOperationDisplay"
}
},
- updateCompletedOn: {
- readOnly: true,
- serializedName: "updateCompletedOn",
+ origin: {
+ serializedName: "origin",
type: {
- name: "DateTime"
+ name: "String"
}
}
}
}
};
-export const ResourceOperationDisplay: msRest.CompositeMapper = {
- serializedName: "ResourceOperation_display",
+export const ResourceOperationDisplay: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ResourceOperationDisplay",
@@ -856,59 +792,98 @@ export const ResourceOperationDisplay: msRest.CompositeMapper = {
}
};
-export const ResourceOperation: msRest.CompositeMapper = {
- serializedName: "ResourceOperation",
+export const OperationalizationCluster: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ResourceOperation",
+ className: "OperationalizationCluster",
modelProperties: {
- name: {
- serializedName: "name",
+ ...Resource.type.modelProperties,
+ description: {
+ serializedName: "properties.description",
type: {
name: "String"
}
},
- display: {
- serializedName: "display",
+ createdOn: {
+ serializedName: "properties.createdOn",
+ readOnly: true,
type: {
- name: "Composite",
- className: "ResourceOperationDisplay"
+ name: "DateTime"
}
},
- origin: {
- serializedName: "origin",
+ modifiedOn: {
+ serializedName: "properties.modifiedOn",
+ readOnly: true,
+ type: {
+ name: "DateTime"
+ }
+ },
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const AvailableOperations: msRest.CompositeMapper = {
- serializedName: "AvailableOperations",
- type: {
- name: "Composite",
- className: "AvailableOperations",
- modelProperties: {
- value: {
- serializedName: "value",
+ },
+ provisioningErrors: {
+ serializedName: "properties.provisioningErrors",
+ readOnly: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "ResourceOperation"
+ className: "ErrorResponseWrapper"
}
}
}
+ },
+ clusterType: {
+ serializedName: "properties.clusterType",
+ type: {
+ name: "String"
+ }
+ },
+ storageAccount: {
+ serializedName: "properties.storageAccount",
+ type: {
+ name: "Composite",
+ className: "StorageAccountProperties"
+ }
+ },
+ containerRegistry: {
+ serializedName: "properties.containerRegistry",
+ type: {
+ name: "Composite",
+ className: "ContainerRegistryProperties"
+ }
+ },
+ containerService: {
+ serializedName: "properties.containerService",
+ type: {
+ name: "Composite",
+ className: "AcsClusterProperties"
+ }
+ },
+ appInsights: {
+ serializedName: "properties.appInsights",
+ type: {
+ name: "Composite",
+ className: "AppInsightsProperties"
+ }
+ },
+ globalServiceConfiguration: {
+ serializedName: "properties.globalServiceConfiguration",
+ type: {
+ name: "Composite",
+ className: "GlobalServiceConfiguration"
+ }
}
}
}
};
-export const OperationalizationClustersDeleteHeaders: msRest.CompositeMapper = {
- serializedName: "operationalizationclusters-delete-headers",
+export const OperationalizationClustersDeleteHeaders: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "OperationalizationClustersDeleteHeaders",
@@ -923,8 +898,7 @@ export const OperationalizationClustersDeleteHeaders: msRest.CompositeMapper = {
}
};
-export const OperationalizationClustersUpdateSystemServicesHeaders: msRest.CompositeMapper = {
- serializedName: "operationalizationclusters-updatesystemservices-headers",
+export const OperationalizationClustersUpdateSystemServicesHeaders: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "OperationalizationClustersUpdateSystemServicesHeaders",
@@ -938,31 +912,3 @@ export const OperationalizationClustersUpdateSystemServicesHeaders: msRest.Compo
}
}
};
-
-export const PaginatedOperationalizationClustersList: msRest.CompositeMapper = {
- serializedName: "PaginatedOperationalizationClustersList",
- type: {
- name: "Composite",
- className: "PaginatedOperationalizationClustersList",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "OperationalizationCluster"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
-};
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/operationalizationClustersMappers.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/operationalizationClustersMappers.ts
deleted file mode 100644
index 0708d315b936..000000000000
--- a/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/operationalizationClustersMappers.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AcsClusterProperties,
- AppInsightsCredentials,
- AppInsightsProperties,
- AutoScaleConfiguration,
- BaseResource,
- CheckSystemServicesUpdatesAvailableResponse,
- CloudError,
- ContainerRegistryCredentials,
- ContainerRegistryProperties,
- ContainerServiceCredentials,
- ErrorDetail,
- ErrorResponse,
- ErrorResponseWrapper,
- GlobalServiceConfiguration,
- KubernetesClusterProperties,
- OperationalizationCluster,
- OperationalizationClusterCredentials,
- OperationalizationClustersDeleteHeaders,
- OperationalizationClustersUpdateSystemServicesHeaders,
- OperationalizationClusterUpdateParameters,
- PaginatedOperationalizationClustersList,
- Resource,
- ServiceAuthConfiguration,
- ServicePrincipalProperties,
- SslConfiguration,
- StorageAccountCredentials,
- StorageAccountProperties,
- SystemService,
- UpdateSystemServicesResponse
-} from "../models/mappers";
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/parameters.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/parameters.ts
index 55e0a8bb89a7..bc4cb7a6be93 100644
--- a/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/parameters.ts
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/parameters.ts
@@ -3,90 +3,132 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import {
+ OperationParameter,
+ OperationURLParameter,
+ OperationQueryParameter
+} from "@azure/core-client";
+import {
+ OperationalizationCluster as OperationalizationClusterMapper,
+ OperationalizationClusterUpdateParameters as OperationalizationClusterUpdateParametersMapper
+} from "../models/mappers";
-export const acceptLanguage: msRest.OperationParameter = {
- parameterPath: "acceptLanguage",
+export const contentType: OperationParameter = {
+ parameterPath: ["options", "contentType"],
mapper: {
- serializedName: "accept-language",
- defaultValue: 'en-US',
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Content-Type",
type: {
name: "String"
}
}
};
-export const apiVersion: msRest.OperationQueryParameter = {
- parameterPath: "apiVersion",
+
+export const parameters: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: OperationalizationClusterMapper
+};
+
+export const accept: OperationParameter = {
+ parameterPath: "accept",
mapper: {
- required: true,
- serializedName: "api-version",
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Accept",
type: {
name: "String"
}
}
};
-export const clusterName: msRest.OperationURLParameter = {
- parameterPath: "clusterName",
+
+export const $host: OperationURLParameter = {
+ parameterPath: "$host",
mapper: {
+ serializedName: "$host",
required: true,
- serializedName: "clusterName",
- constraints: {
- MaxLength: 90,
- MinLength: 1,
- Pattern: /^[a-zA-Z][-\w\._\(\)]+[a-zA-Z0-9]$/
- },
type: {
name: "String"
}
- }
+ },
+ skipEncoding: true
};
-export const deleteAll: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "deleteAll"
- ],
+
+export const apiVersion: OperationQueryParameter = {
+ parameterPath: "apiVersion",
mapper: {
- serializedName: "deleteAll",
+ defaultValue: "2017-08-01-preview",
+ isConstant: true,
+ serializedName: "api-version",
type: {
- name: "Boolean"
+ name: "String"
}
}
};
-export const nextPageLink: msRest.OperationURLParameter = {
- parameterPath: "nextPageLink",
+
+export const subscriptionId: OperationURLParameter = {
+ parameterPath: "subscriptionId",
mapper: {
+ serializedName: "subscriptionId",
required: true,
- serializedName: "nextLink",
type: {
name: "String"
}
- },
- skipEncoding: true
+ }
};
-export const resourceGroupName: msRest.OperationURLParameter = {
+
+export const resourceGroupName: OperationURLParameter = {
parameterPath: "resourceGroupName",
mapper: {
- required: true,
+ constraints: {
+ Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
+ MaxLength: 90,
+ MinLength: 1
+ },
serializedName: "resourceGroupName",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const clusterName: OperationURLParameter = {
+ parameterPath: "clusterName",
+ mapper: {
constraints: {
+ Pattern: new RegExp("^[a-zA-Z][-\\w\\._\\(\\)]+[a-zA-Z0-9]$"),
MaxLength: 90,
- MinLength: 1,
- Pattern: /^[-\w\._\(\)]+$/
+ MinLength: 1
},
+ serializedName: "clusterName",
+ required: true,
type: {
name: "String"
}
}
};
-export const skiptoken: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "skiptoken"
- ],
+
+export const parameters1: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: OperationalizationClusterUpdateParametersMapper
+};
+
+export const deleteAll: OperationQueryParameter = {
+ parameterPath: ["options", "deleteAll"],
+ mapper: {
+ serializedName: "deleteAll",
+ type: {
+ name: "Boolean"
+ }
+ }
+};
+
+export const skiptoken: OperationQueryParameter = {
+ parameterPath: ["options", "skiptoken"],
mapper: {
serializedName: "$skiptoken",
type: {
@@ -94,13 +136,15 @@ export const skiptoken: msRest.OperationQueryParameter = {
}
}
};
-export const subscriptionId: msRest.OperationURLParameter = {
- parameterPath: "subscriptionId",
+
+export const nextLink: OperationURLParameter = {
+ parameterPath: "nextLink",
mapper: {
+ serializedName: "nextLink",
required: true,
- serializedName: "subscriptionId",
type: {
name: "String"
}
- }
+ },
+ skipEncoding: true
};
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/operations/index.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/operations/index.ts
index be793de6556b..58cb6b885a8e 100644
--- a/sdk/machinelearningcompute/arm-machinelearningcompute/src/operations/index.ts
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/src/operations/index.ts
@@ -3,8 +3,7 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export * from "./operationalizationClusters";
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/operations/machineLearningCompute.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/operations/machineLearningCompute.ts
index 66a822e66156..9b2b1dff0149 100644
--- a/sdk/machinelearningcompute/arm-machinelearningcompute/src/operations/machineLearningCompute.ts
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/src/operations/machineLearningCompute.ts
@@ -3,71 +3,57 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/machineLearningComputeMappers";
+import { MachineLearningCompute } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { MachineLearningComputeManagementClientContext } from "../machineLearningComputeManagementClientContext";
+import { MachineLearningComputeManagementClient } from "../machineLearningComputeManagementClient";
+import {
+ MachineLearningComputeListAvailableOperationsOptionalParams,
+ MachineLearningComputeListAvailableOperationsResponse
+} from "../models";
-/** Class representing a MachineLearningCompute. */
-export class MachineLearningCompute {
- private readonly client: MachineLearningComputeManagementClientContext;
+/** Class containing MachineLearningCompute operations. */
+export class MachineLearningComputeImpl implements MachineLearningCompute {
+ private readonly client: MachineLearningComputeManagementClient;
/**
- * Create a MachineLearningCompute.
- * @param {MachineLearningComputeManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class MachineLearningCompute class.
+ * @param client Reference to the service client
*/
- constructor(client: MachineLearningComputeManagementClientContext) {
+ constructor(client: MachineLearningComputeManagementClient) {
this.client = client;
}
/**
* Gets all available operations.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listAvailableOperations(options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param callback The callback
- */
- listAvailableOperations(callback: msRest.ServiceCallback): void;
- /**
- * @param options The optional parameters
- * @param callback The callback
- */
- listAvailableOperations(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listAvailableOperations(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ listAvailableOperations(
+ options?: MachineLearningComputeListAvailableOperationsOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- options
- },
- listAvailableOperationsOperationSpec,
- callback) as Promise;
+ { options },
+ listAvailableOperationsOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const listAvailableOperationsOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const listAvailableOperationsOperationSpec: coreClient.OperationSpec = {
+ path: "/providers/Microsoft.MachineLearningCompute/operations",
httpMethod: "GET",
- path: "providers/Microsoft.MachineLearningCompute/operations",
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.AvailableOperations
- },
- default: {
- bodyMapper: Mappers.CloudError
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/operations/operationalizationClusters.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/operations/operationalizationClusters.ts
index 3869dc6cd5c8..01275c3b8dae 100644
--- a/sdk/machinelearningcompute/arm-machinelearningcompute/src/operations/operationalizationClusters.ts
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/src/operations/operationalizationClusters.ts
@@ -3,414 +3,590 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import * as Models from "../models";
-import * as Mappers from "../models/operationalizationClustersMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { OperationalizationClusters } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { MachineLearningComputeManagementClientContext } from "../machineLearningComputeManagementClientContext";
+import { MachineLearningComputeManagementClient } from "../machineLearningComputeManagementClient";
+import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
+import { LroImpl } from "../lroImpl";
+import {
+ OperationalizationCluster,
+ OperationalizationClustersListByResourceGroupNextOptionalParams,
+ OperationalizationClustersListByResourceGroupOptionalParams,
+ OperationalizationClustersListBySubscriptionIdNextOptionalParams,
+ OperationalizationClustersListBySubscriptionIdOptionalParams,
+ OperationalizationClustersCreateOrUpdateOptionalParams,
+ OperationalizationClustersCreateOrUpdateResponse,
+ OperationalizationClustersGetOptionalParams,
+ OperationalizationClustersGetResponse,
+ OperationalizationClusterUpdateParameters,
+ OperationalizationClustersUpdateOptionalParams,
+ OperationalizationClustersUpdateResponse,
+ OperationalizationClustersDeleteOptionalParams,
+ OperationalizationClustersDeleteResponse,
+ OperationalizationClustersListKeysOptionalParams,
+ OperationalizationClustersListKeysResponse,
+ OperationalizationClustersCheckSystemServicesUpdatesAvailableOptionalParams,
+ OperationalizationClustersCheckSystemServicesUpdatesAvailableResponse,
+ OperationalizationClustersUpdateSystemServicesOptionalParams,
+ OperationalizationClustersUpdateSystemServicesResponse,
+ OperationalizationClustersListByResourceGroupResponse,
+ OperationalizationClustersListBySubscriptionIdResponse,
+ OperationalizationClustersListByResourceGroupNextResponse,
+ OperationalizationClustersListBySubscriptionIdNextResponse
+} from "../models";
-/** Class representing a OperationalizationClusters. */
-export class OperationalizationClusters {
- private readonly client: MachineLearningComputeManagementClientContext;
+///
+/** Class containing OperationalizationClusters operations. */
+export class OperationalizationClustersImpl
+ implements OperationalizationClusters {
+ private readonly client: MachineLearningComputeManagementClient;
/**
- * Create a OperationalizationClusters.
- * @param {MachineLearningComputeManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class OperationalizationClusters class.
+ * @param client Reference to the service client
*/
- constructor(client: MachineLearningComputeManagementClientContext) {
+ constructor(client: MachineLearningComputeManagementClient) {
this.client = client;
}
/**
- * Create or update an operationalization cluster.
+ * Gets the clusters in the specified resource group.
* @param resourceGroupName Name of the resource group in which the cluster is located.
- * @param clusterName The name of the cluster.
- * @param parameters Parameters supplied to create or update an Operationalization cluster.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- createOrUpdate(resourceGroupName: string, clusterName: string, parameters: Models.OperationalizationCluster, options?: msRest.RequestOptionsBase): Promise {
- return this.beginCreateOrUpdate(resourceGroupName,clusterName,parameters,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ public listByResourceGroup(
+ resourceGroupName: string,
+ options?: OperationalizationClustersListByResourceGroupOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
+ }
+ };
}
- /**
- * Gets the operationalization cluster resource view. Note that the credentials are not returned by
- * this call. Call ListKeys to get them.
- * @param resourceGroupName Name of the resource group in which the cluster is located.
- * @param clusterName The name of the cluster.
- * @param [options] The optional parameters
- * @returns Promise
- */
- get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName Name of the resource group in which the cluster is located.
- * @param clusterName The name of the cluster.
- * @param callback The callback
- */
- get(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName Name of the resource group in which the cluster is located.
- * @param clusterName The name of the cluster.
- * @param options The optional parameters
- * @param callback The callback
- */
- get(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ private async *listByResourceGroupPagingPage(
+ resourceGroupName: string,
+ options?: OperationalizationClustersListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listByResourceGroup(resourceGroupName, options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listByResourceGroupNext(
resourceGroupName,
- clusterName,
+ continuationToken,
options
- },
- getOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listByResourceGroupPagingAll(
+ resourceGroupName: string,
+ options?: OperationalizationClustersListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listByResourceGroupPagingPage(
+ resourceGroupName,
+ options
+ )) {
+ yield* page;
+ }
}
/**
- * The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to
- * update other properties.
- * @param resourceGroupName Name of the resource group in which the cluster is located.
- * @param clusterName The name of the cluster.
- * @param parameters The parameters supplied to patch the cluster.
- * @param [options] The optional parameters
- * @returns Promise
- */
- update(resourceGroupName: string, clusterName: string, parameters: Models.OperationalizationClusterUpdateParameters, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName Name of the resource group in which the cluster is located.
- * @param clusterName The name of the cluster.
- * @param parameters The parameters supplied to patch the cluster.
- * @param callback The callback
- */
- update(resourceGroupName: string, clusterName: string, parameters: Models.OperationalizationClusterUpdateParameters, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName Name of the resource group in which the cluster is located.
- * @param clusterName The name of the cluster.
- * @param parameters The parameters supplied to patch the cluster.
- * @param options The optional parameters
- * @param callback The callback
+ * Gets the operationalization clusters in the specified subscription.
+ * @param options The options parameters.
*/
- update(resourceGroupName: string, clusterName: string, parameters: Models.OperationalizationClusterUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- update(resourceGroupName: string, clusterName: string, parameters: Models.OperationalizationClusterUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- clusterName,
- parameters,
- options
+ public listBySubscriptionId(
+ options?: OperationalizationClustersListBySubscriptionIdOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listBySubscriptionIdPagingAll(options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
},
- updateOperationSpec,
- callback) as Promise;
+ byPage: () => {
+ return this.listBySubscriptionIdPagingPage(options);
+ }
+ };
}
- /**
- * Deletes the specified cluster.
- * @param resourceGroupName Name of the resource group in which the cluster is located.
- * @param clusterName The name of the cluster.
- * @param [options] The optional parameters
- * @returns Promise
- */
- deleteMethod(resourceGroupName: string, clusterName: string, options?: Models.OperationalizationClustersDeleteMethodOptionalParams): Promise {
- return this.beginDeleteMethod(resourceGroupName,clusterName,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ private async *listBySubscriptionIdPagingPage(
+ options?: OperationalizationClustersListBySubscriptionIdOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listBySubscriptionId(options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listBySubscriptionIdNext(continuationToken, options);
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listBySubscriptionIdPagingAll(
+ options?: OperationalizationClustersListBySubscriptionIdOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listBySubscriptionIdPagingPage(options)) {
+ yield* page;
+ }
}
/**
- * Gets the credentials for the specified cluster such as Storage, ACR and ACS credentials. This is
- * a long running operation because it fetches keys from dependencies.
+ * Create or update an operationalization cluster.
* @param resourceGroupName Name of the resource group in which the cluster is located.
* @param clusterName The name of the cluster.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param parameters Parameters supplied to create or update an Operationalization cluster.
+ * @param options The options parameters.
*/
- listKeys(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise;
+ async beginCreateOrUpdate(
+ resourceGroupName: string,
+ clusterName: string,
+ parameters: OperationalizationCluster,
+ options?: OperationalizationClustersCreateOrUpdateOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ OperationalizationClustersCreateOrUpdateResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, parameters, options },
+ createOrUpdateOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs
+ });
+ }
+
/**
+ * Create or update an operationalization cluster.
* @param resourceGroupName Name of the resource group in which the cluster is located.
* @param clusterName The name of the cluster.
- * @param callback The callback
+ * @param parameters Parameters supplied to create or update an Operationalization cluster.
+ * @param options The options parameters.
*/
- listKeys(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void;
+ async beginCreateOrUpdateAndWait(
+ resourceGroupName: string,
+ clusterName: string,
+ parameters: OperationalizationCluster,
+ options?: OperationalizationClustersCreateOrUpdateOptionalParams
+ ): Promise {
+ const poller = await this.beginCreateOrUpdate(
+ resourceGroupName,
+ clusterName,
+ parameters,
+ options
+ );
+ return poller.pollUntilDone();
+ }
+
/**
+ * Gets the operationalization cluster resource view. Note that the credentials are not returned by
+ * this call. Call ListKeys to get them.
* @param resourceGroupName Name of the resource group in which the cluster is located.
* @param clusterName The name of the cluster.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- listKeys(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listKeys(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ get(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: OperationalizationClustersGetOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- clusterName,
- options
- },
- listKeysOperationSpec,
- callback) as Promise;
+ { resourceGroupName, clusterName, options },
+ getOperationSpec
+ );
}
/**
- * Checks if updates are available for system services in the cluster.
+ * The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update
+ * other properties.
* @param resourceGroupName Name of the resource group in which the cluster is located.
* @param clusterName The name of the cluster.
- * @param [options] The optional parameters
- * @returns Promise
- */
- checkSystemServicesUpdatesAvailable(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName Name of the resource group in which the cluster is located.
- * @param clusterName The name of the cluster.
- * @param callback The callback
- */
- checkSystemServicesUpdatesAvailable(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName Name of the resource group in which the cluster is located.
- * @param clusterName The name of the cluster.
- * @param options The optional parameters
- * @param callback The callback
+ * @param parameters The parameters supplied to patch the cluster.
+ * @param options The options parameters.
*/
- checkSystemServicesUpdatesAvailable(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- checkSystemServicesUpdatesAvailable(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ update(
+ resourceGroupName: string,
+ clusterName: string,
+ parameters: OperationalizationClusterUpdateParameters,
+ options?: OperationalizationClustersUpdateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- clusterName,
- options
- },
- checkSystemServicesUpdatesAvailableOperationSpec,
- callback) as Promise;
+ { resourceGroupName, clusterName, parameters, options },
+ updateOperationSpec
+ );
}
/**
- * Updates system services in a cluster.
+ * Deletes the specified cluster.
* @param resourceGroupName Name of the resource group in which the cluster is located.
* @param clusterName The name of the cluster.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- updateSystemServices(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise {
- return this.beginUpdateSystemServices(resourceGroupName,clusterName,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ async beginDelete(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: OperationalizationClustersDeleteOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ OperationalizationClustersDeleteResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, options },
+ deleteOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs
+ });
}
/**
- * Gets the clusters in the specified resource group.
- * @param resourceGroupName Name of the resource group in which the cluster is located.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByResourceGroup(resourceGroupName: string, options?: Models.OperationalizationClustersListByResourceGroupOptionalParams): Promise;
- /**
- * @param resourceGroupName Name of the resource group in which the cluster is located.
- * @param callback The callback
- */
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void;
- /**
+ * Deletes the specified cluster.
* @param resourceGroupName Name of the resource group in which the cluster is located.
- * @param options The optional parameters
- * @param callback The callback
+ * @param clusterName The name of the cluster.
+ * @param options The options parameters.
*/
- listByResourceGroup(resourceGroupName: string, options: Models.OperationalizationClustersListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void;
- listByResourceGroup(resourceGroupName: string, options?: Models.OperationalizationClustersListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- resourceGroupName,
- options
- },
- listByResourceGroupOperationSpec,
- callback) as Promise;
+ async beginDeleteAndWait(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: OperationalizationClustersDeleteOptionalParams
+ ): Promise {
+ const poller = await this.beginDelete(
+ resourceGroupName,
+ clusterName,
+ options
+ );
+ return poller.pollUntilDone();
}
/**
- * Gets the operationalization clusters in the specified subscription.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listBySubscriptionId(options?: Models.OperationalizationClustersListBySubscriptionIdOptionalParams): Promise;
- /**
- * @param callback The callback
- */
- listBySubscriptionId(callback: msRest.ServiceCallback): void;
- /**
- * @param options The optional parameters
- * @param callback The callback
+ * Gets the credentials for the specified cluster such as Storage, ACR and ACS credentials. This is a
+ * long running operation because it fetches keys from dependencies.
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
+ * @param clusterName The name of the cluster.
+ * @param options The options parameters.
*/
- listBySubscriptionId(options: Models.OperationalizationClustersListBySubscriptionIdOptionalParams, callback: msRest.ServiceCallback): void;
- listBySubscriptionId(options?: Models.OperationalizationClustersListBySubscriptionIdOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ listKeys(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: OperationalizationClustersListKeysOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- options
- },
- listBySubscriptionIdOperationSpec,
- callback) as Promise;
+ { resourceGroupName, clusterName, options },
+ listKeysOperationSpec
+ );
}
/**
- * Create or update an operationalization cluster.
+ * Checks if updates are available for system services in the cluster.
* @param resourceGroupName Name of the resource group in which the cluster is located.
* @param clusterName The name of the cluster.
- * @param parameters Parameters supplied to create or update an Operationalization cluster.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- beginCreateOrUpdate(resourceGroupName: string, clusterName: string, parameters: Models.OperationalizationCluster, options?: msRest.RequestOptionsBase): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- clusterName,
- parameters,
- options
- },
- beginCreateOrUpdateOperationSpec,
- options);
+ checkSystemServicesUpdatesAvailable(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: OperationalizationClustersCheckSystemServicesUpdatesAvailableOptionalParams
+ ): Promise<
+ OperationalizationClustersCheckSystemServicesUpdatesAvailableResponse
+ > {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, clusterName, options },
+ checkSystemServicesUpdatesAvailableOperationSpec
+ );
}
/**
- * Deletes the specified cluster.
+ * Updates system services in a cluster.
* @param resourceGroupName Name of the resource group in which the cluster is located.
* @param clusterName The name of the cluster.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- beginDeleteMethod(resourceGroupName: string, clusterName: string, options?: Models.OperationalizationClustersBeginDeleteMethodOptionalParams): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- clusterName,
- options
- },
- beginDeleteMethodOperationSpec,
- options);
+ async beginUpdateSystemServices(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: OperationalizationClustersUpdateSystemServicesOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState<
+ OperationalizationClustersUpdateSystemServicesResponse
+ >,
+ OperationalizationClustersUpdateSystemServicesResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { resourceGroupName, clusterName, options },
+ updateSystemServicesOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs
+ });
}
/**
* Updates system services in a cluster.
* @param resourceGroupName Name of the resource group in which the cluster is located.
* @param clusterName The name of the cluster.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- beginUpdateSystemServices(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise {
- return this.client.sendLRORequest(
- {
- resourceGroupName,
- clusterName,
- options
- },
- beginUpdateSystemServicesOperationSpec,
- options);
+ async beginUpdateSystemServicesAndWait(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: OperationalizationClustersUpdateSystemServicesOptionalParams
+ ): Promise {
+ const poller = await this.beginUpdateSystemServices(
+ resourceGroupName,
+ clusterName,
+ options
+ );
+ return poller.pollUntilDone();
}
/**
* Gets the clusters in the specified resource group.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByResourceGroupNext(nextPageLink: string, options?: Models.OperationalizationClustersListByResourceGroupNextOptionalParams): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
+ * @param options The options parameters.
*/
- listByResourceGroupNext(nextPageLink: string, options: Models.OperationalizationClustersListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void;
- listByResourceGroupNext(nextPageLink: string, options?: Models.OperationalizationClustersListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listByResourceGroup(
+ resourceGroupName: string,
+ options?: OperationalizationClustersListByResourceGroupOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listByResourceGroupNextOperationSpec,
- callback) as Promise;
+ { resourceGroupName, options },
+ listByResourceGroupOperationSpec
+ );
}
/**
* Gets the operationalization clusters in the specified subscription.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listBySubscriptionIdNext(nextPageLink: string, options?: Models.OperationalizationClustersListBySubscriptionIdNextOptionalParams): Promise;
+ private _listBySubscriptionId(
+ options?: OperationalizationClustersListBySubscriptionIdOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { options },
+ listBySubscriptionIdOperationSpec
+ );
+ }
+
/**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
+ * ListByResourceGroupNext
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
+ * @param options The options parameters.
*/
- listBySubscriptionIdNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ private _listByResourceGroupNext(
+ resourceGroupName: string,
+ nextLink: string,
+ options?: OperationalizationClustersListByResourceGroupNextOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, nextLink, options },
+ listByResourceGroupNextOperationSpec
+ );
+ }
+
/**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * ListBySubscriptionIdNext
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscriptionId method.
+ * @param options The options parameters.
*/
- listBySubscriptionIdNext(nextPageLink: string, options: Models.OperationalizationClustersListBySubscriptionIdNextOptionalParams, callback: msRest.ServiceCallback): void;
- listBySubscriptionIdNext(nextPageLink: string, options?: Models.OperationalizationClustersListBySubscriptionIdNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listBySubscriptionIdNext(
+ nextLink: string,
+ options?: OperationalizationClustersListBySubscriptionIdNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listBySubscriptionIdNextOperationSpec,
- callback) as Promise;
+ { nextLink, options },
+ listBySubscriptionIdNextOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const getOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.clusterName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const createOrUpdateOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
+ httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.OperationalizationCluster
},
+ 201: {
+ bodyMapper: Mappers.OperationalizationCluster
+ },
+ 202: {
+ bodyMapper: Mappers.OperationalizationCluster
+ },
+ 204: {
+ bodyMapper: Mappers.OperationalizationCluster
+ },
default: {
bodyMapper: Mappers.ErrorResponseWrapper
}
},
- serializer
-};
-
-const updateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PATCH",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
+ requestBody: Parameters.parameters,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.clusterName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.OperationalizationClusterUpdateParameters,
- required: true
- }
- },
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const getOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.OperationalizationCluster
@@ -419,249 +595,201 @@ const updateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponseWrapper
}
},
- serializer
-};
-
-const listKeysOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/listKeys",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.clusterName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const updateOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
+ httpMethod: "PATCH",
responses: {
200: {
- bodyMapper: Mappers.OperationalizationClusterCredentials
+ bodyMapper: Mappers.OperationalizationCluster
},
default: {
- bodyMapper: Mappers.CloudError
+ bodyMapper: Mappers.ErrorResponseWrapper
}
},
- serializer
-};
-
-const checkSystemServicesUpdatesAvailableOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/checkSystemServicesUpdatesAvailable",
+ requestBody: Parameters.parameters1,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.clusterName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const deleteOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
+ httpMethod: "DELETE",
responses: {
200: {
- bodyMapper: Mappers.CheckSystemServicesUpdatesAvailableResponse
+ headersMapper: Mappers.OperationalizationClustersDeleteHeaders
+ },
+ 201: {
+ headersMapper: Mappers.OperationalizationClustersDeleteHeaders
+ },
+ 202: {
+ headersMapper: Mappers.OperationalizationClustersDeleteHeaders
+ },
+ 204: {
+ headersMapper: Mappers.OperationalizationClustersDeleteHeaders
},
default: {
- bodyMapper: Mappers.CloudError
+ bodyMapper: Mappers.ErrorResponseWrapper
}
},
- serializer
-};
-
-const listByResourceGroupOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters",
+ queryParameters: [Parameters.apiVersion, Parameters.deleteAll],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
- Parameters.resourceGroupName
- ],
- queryParameters: [
- Parameters.apiVersion,
- Parameters.skiptoken
- ],
- headerParameters: [
- Parameters.acceptLanguage
+ Parameters.resourceGroupName,
+ Parameters.clusterName
],
- responses: {
- 200: {
- bodyMapper: Mappers.PaginatedOperationalizationClustersList
- },
- default: {
- bodyMapper: Mappers.CloudError
- }
- },
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listBySubscriptionIdOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningCompute/operationalizationClusters",
- urlParameters: [
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion,
- Parameters.skiptoken
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+const listKeysOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/listKeys",
+ httpMethod: "POST",
responses: {
200: {
- bodyMapper: Mappers.PaginatedOperationalizationClustersList
- },
- default: {
- bodyMapper: Mappers.CloudError
+ bodyMapper: Mappers.OperationalizationClusterCredentials
}
},
- serializer
-};
-
-const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.clusterName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.OperationalizationCluster,
- required: true
- }
- },
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const checkSystemServicesUpdatesAvailableOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/checkSystemServicesUpdatesAvailable",
+ httpMethod: "POST",
responses: {
200: {
- bodyMapper: Mappers.OperationalizationCluster
- },
- 201: {
- bodyMapper: Mappers.OperationalizationCluster
- },
- default: {
- bodyMapper: Mappers.ErrorResponseWrapper
+ bodyMapper: Mappers.CheckSystemServicesUpdatesAvailableResponse
}
},
- serializer
-};
-
-const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.clusterName
],
- queryParameters: [
- Parameters.apiVersion,
- Parameters.deleteAll
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const updateSystemServicesOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/updateSystemServices",
+ httpMethod: "POST",
responses: {
+ 200: {
+ bodyMapper: Mappers.UpdateSystemServicesResponse
+ },
+ 201: {
+ bodyMapper: Mappers.UpdateSystemServicesResponse
+ },
202: {
- headersMapper: Mappers.OperationalizationClustersDeleteHeaders
+ bodyMapper: Mappers.UpdateSystemServicesResponse
},
204: {
- headersMapper: Mappers.OperationalizationClustersDeleteHeaders
- },
- default: {
- bodyMapper: Mappers.ErrorResponseWrapper,
- headersMapper: Mappers.OperationalizationClustersDeleteHeaders
+ bodyMapper: Mappers.UpdateSystemServicesResponse
}
},
- serializer
-};
-
-const beginUpdateSystemServicesOperationSpec: msRest.OperationSpec = {
- httpMethod: "POST",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters/{clusterName}/updateSystemServices",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.clusterName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningCompute/operationalizationClusters",
+ httpMethod: "GET",
responses: {
200: {
- bodyMapper: Mappers.UpdateSystemServicesResponse,
- headersMapper: Mappers.OperationalizationClustersUpdateSystemServicesHeaders
- },
- 202: {
- headersMapper: Mappers.OperationalizationClustersUpdateSystemServicesHeaders
- },
- default: {
- bodyMapper: Mappers.CloudError,
- headersMapper: Mappers.OperationalizationClustersUpdateSystemServicesHeaders
+ bodyMapper: Mappers.PaginatedOperationalizationClustersList
}
},
+ queryParameters: [Parameters.apiVersion, Parameters.skiptoken],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
+const listBySubscriptionIdOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningCompute/operationalizationClusters",
httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- queryParameters: [
- Parameters.apiVersion,
- Parameters.skiptoken
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.PaginatedOperationalizationClustersList
- },
- default: {
- bodyMapper: Mappers.CloudError
}
},
+ queryParameters: [Parameters.apiVersion, Parameters.skiptoken],
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listBySubscriptionIdNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
+ httpMethod: "GET",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.PaginatedOperationalizationClustersList
+ }
+ },
+ queryParameters: [Parameters.apiVersion, Parameters.skiptoken],
urlParameters: [
- Parameters.nextPageLink
- ],
- queryParameters: [
- Parameters.apiVersion,
- Parameters.skiptoken
- ],
- headerParameters: [
- Parameters.acceptLanguage
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.nextLink
],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const listBySubscriptionIdNextOperationSpec: coreClient.OperationSpec = {
+ path: "{nextLink}",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.PaginatedOperationalizationClustersList
- },
- default: {
- bodyMapper: Mappers.CloudError
}
},
+ queryParameters: [Parameters.apiVersion, Parameters.skiptoken],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.nextLink
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/machineLearningComputeMappers.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/operationsInterfaces/index.ts
similarity index 65%
rename from sdk/machinelearningcompute/arm-machinelearningcompute/src/models/machineLearningComputeMappers.ts
rename to sdk/machinelearningcompute/arm-machinelearningcompute/src/operationsInterfaces/index.ts
index 48d7b6a26464..58cb6b885a8e 100644
--- a/sdk/machinelearningcompute/arm-machinelearningcompute/src/models/machineLearningComputeMappers.ts
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/src/operationsInterfaces/index.ts
@@ -6,9 +6,5 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export {
- AvailableOperations,
- CloudError,
- ResourceOperation,
- ResourceOperationDisplay
-} from "../models/mappers";
+export * from "./operationalizationClusters";
+export * from "./machineLearningCompute";
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/operationsInterfaces/machineLearningCompute.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/operationsInterfaces/machineLearningCompute.ts
new file mode 100644
index 000000000000..986d1b3439d4
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/src/operationsInterfaces/machineLearningCompute.ts
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import {
+ MachineLearningComputeListAvailableOperationsOptionalParams,
+ MachineLearningComputeListAvailableOperationsResponse
+} from "../models";
+
+/** Interface representing a MachineLearningCompute. */
+export interface MachineLearningCompute {
+ /**
+ * Gets all available operations.
+ * @param options The options parameters.
+ */
+ listAvailableOperations(
+ options?: MachineLearningComputeListAvailableOperationsOptionalParams
+ ): Promise;
+}
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/src/operationsInterfaces/operationalizationClusters.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/src/operationsInterfaces/operationalizationClusters.ts
new file mode 100644
index 000000000000..652945113d7b
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/src/operationsInterfaces/operationalizationClusters.ts
@@ -0,0 +1,189 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { PollerLike, PollOperationState } from "@azure/core-lro";
+import {
+ OperationalizationCluster,
+ OperationalizationClustersListByResourceGroupOptionalParams,
+ OperationalizationClustersListBySubscriptionIdOptionalParams,
+ OperationalizationClustersCreateOrUpdateOptionalParams,
+ OperationalizationClustersCreateOrUpdateResponse,
+ OperationalizationClustersGetOptionalParams,
+ OperationalizationClustersGetResponse,
+ OperationalizationClusterUpdateParameters,
+ OperationalizationClustersUpdateOptionalParams,
+ OperationalizationClustersUpdateResponse,
+ OperationalizationClustersDeleteOptionalParams,
+ OperationalizationClustersDeleteResponse,
+ OperationalizationClustersListKeysOptionalParams,
+ OperationalizationClustersListKeysResponse,
+ OperationalizationClustersCheckSystemServicesUpdatesAvailableOptionalParams,
+ OperationalizationClustersCheckSystemServicesUpdatesAvailableResponse,
+ OperationalizationClustersUpdateSystemServicesOptionalParams,
+ OperationalizationClustersUpdateSystemServicesResponse
+} from "../models";
+
+///
+/** Interface representing a OperationalizationClusters. */
+export interface OperationalizationClusters {
+ /**
+ * Gets the clusters in the specified resource group.
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
+ * @param options The options parameters.
+ */
+ listByResourceGroup(
+ resourceGroupName: string,
+ options?: OperationalizationClustersListByResourceGroupOptionalParams
+ ): PagedAsyncIterableIterator;
+ /**
+ * Gets the operationalization clusters in the specified subscription.
+ * @param options The options parameters.
+ */
+ listBySubscriptionId(
+ options?: OperationalizationClustersListBySubscriptionIdOptionalParams
+ ): PagedAsyncIterableIterator;
+ /**
+ * Create or update an operationalization cluster.
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
+ * @param clusterName The name of the cluster.
+ * @param parameters Parameters supplied to create or update an Operationalization cluster.
+ * @param options The options parameters.
+ */
+ beginCreateOrUpdate(
+ resourceGroupName: string,
+ clusterName: string,
+ parameters: OperationalizationCluster,
+ options?: OperationalizationClustersCreateOrUpdateOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ OperationalizationClustersCreateOrUpdateResponse
+ >
+ >;
+ /**
+ * Create or update an operationalization cluster.
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
+ * @param clusterName The name of the cluster.
+ * @param parameters Parameters supplied to create or update an Operationalization cluster.
+ * @param options The options parameters.
+ */
+ beginCreateOrUpdateAndWait(
+ resourceGroupName: string,
+ clusterName: string,
+ parameters: OperationalizationCluster,
+ options?: OperationalizationClustersCreateOrUpdateOptionalParams
+ ): Promise;
+ /**
+ * Gets the operationalization cluster resource view. Note that the credentials are not returned by
+ * this call. Call ListKeys to get them.
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
+ * @param clusterName The name of the cluster.
+ * @param options The options parameters.
+ */
+ get(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: OperationalizationClustersGetOptionalParams
+ ): Promise;
+ /**
+ * The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update
+ * other properties.
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
+ * @param clusterName The name of the cluster.
+ * @param parameters The parameters supplied to patch the cluster.
+ * @param options The options parameters.
+ */
+ update(
+ resourceGroupName: string,
+ clusterName: string,
+ parameters: OperationalizationClusterUpdateParameters,
+ options?: OperationalizationClustersUpdateOptionalParams
+ ): Promise;
+ /**
+ * Deletes the specified cluster.
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
+ * @param clusterName The name of the cluster.
+ * @param options The options parameters.
+ */
+ beginDelete(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: OperationalizationClustersDeleteOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ OperationalizationClustersDeleteResponse
+ >
+ >;
+ /**
+ * Deletes the specified cluster.
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
+ * @param clusterName The name of the cluster.
+ * @param options The options parameters.
+ */
+ beginDeleteAndWait(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: OperationalizationClustersDeleteOptionalParams
+ ): Promise;
+ /**
+ * Gets the credentials for the specified cluster such as Storage, ACR and ACS credentials. This is a
+ * long running operation because it fetches keys from dependencies.
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
+ * @param clusterName The name of the cluster.
+ * @param options The options parameters.
+ */
+ listKeys(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: OperationalizationClustersListKeysOptionalParams
+ ): Promise;
+ /**
+ * Checks if updates are available for system services in the cluster.
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
+ * @param clusterName The name of the cluster.
+ * @param options The options parameters.
+ */
+ checkSystemServicesUpdatesAvailable(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: OperationalizationClustersCheckSystemServicesUpdatesAvailableOptionalParams
+ ): Promise<
+ OperationalizationClustersCheckSystemServicesUpdatesAvailableResponse
+ >;
+ /**
+ * Updates system services in a cluster.
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
+ * @param clusterName The name of the cluster.
+ * @param options The options parameters.
+ */
+ beginUpdateSystemServices(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: OperationalizationClustersUpdateSystemServicesOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState<
+ OperationalizationClustersUpdateSystemServicesResponse
+ >,
+ OperationalizationClustersUpdateSystemServicesResponse
+ >
+ >;
+ /**
+ * Updates system services in a cluster.
+ * @param resourceGroupName Name of the resource group in which the cluster is located.
+ * @param clusterName The name of the cluster.
+ * @param options The options parameters.
+ */
+ beginUpdateSystemServicesAndWait(
+ resourceGroupName: string,
+ clusterName: string,
+ options?: OperationalizationClustersUpdateSystemServicesOptionalParams
+ ): Promise;
+}
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/test/sampleTest.ts b/sdk/machinelearningcompute/arm-machinelearningcompute/test/sampleTest.ts
new file mode 100644
index 000000000000..7ed89b043e1b
--- /dev/null
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/test/sampleTest.ts
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import {
+ env,
+ record,
+ RecorderEnvironmentSetup,
+ Recorder
+} from "@azure-tools/test-recorder";
+import * as assert from "assert";
+
+const recorderEnvSetup: RecorderEnvironmentSetup = {
+ replaceableVariables: {
+ AZURE_CLIENT_ID: "azure_client_id",
+ AZURE_CLIENT_SECRET: "azure_client_secret",
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
+ SUBSCRIPTION_ID: "azure_subscription_id"
+ },
+ customizationsOnRecordings: [
+ (recording: any): any =>
+ recording.replace(
+ /"access_token":"[^"]*"/g,
+ `"access_token":"access_token"`
+ )
+ ],
+ queryParametersToSkip: []
+};
+
+describe("My test", () => {
+ let recorder: Recorder;
+
+ beforeEach(async function() {
+ recorder = record(this, recorderEnvSetup);
+ });
+
+ afterEach(async function() {
+ await recorder.stop();
+ });
+
+ it("sample test", async function() {
+ console.log("Hi, I'm a test!");
+ });
+});
diff --git a/sdk/machinelearningcompute/arm-machinelearningcompute/tsconfig.json b/sdk/machinelearningcompute/arm-machinelearningcompute/tsconfig.json
index 422b584abd5e..7973e324aa41 100644
--- a/sdk/machinelearningcompute/arm-machinelearningcompute/tsconfig.json
+++ b/sdk/machinelearningcompute/arm-machinelearningcompute/tsconfig.json
@@ -3,7 +3,7 @@
"module": "es6",
"moduleResolution": "node",
"strict": true,
- "target": "es5",
+ "target": "es6",
"sourceMap": true,
"declarationMap": true,
"esModuleInterop": true,
@@ -11,9 +11,10 @@
"forceConsistentCasingInFileNames": true,
"lib": ["es6", "dom"],
"declaration": true,
- "outDir": "./esm",
- "importHelpers": true
+ "outDir": "./dist-esm",
+ "importHelpers": true,
+ "paths": { "@azure/arm-machinelearningcompute": ["./src/index"] }
},
- "include": ["./src/**/*.ts"],
+ "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"],
"exclude": ["node_modules"]
}
diff --git a/sdk/machinelearningcompute/ci.yml b/sdk/machinelearningcompute/ci.yml
new file mode 100644
index 000000000000..eb3f5779f203
--- /dev/null
+++ b/sdk/machinelearningcompute/ci.yml
@@ -0,0 +1,30 @@
+# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
+
+trigger:
+ branches:
+ include:
+ - main
+ - release/*
+ - hotfix/*
+ paths:
+ include:
+ - sdk/machinelearningcompute/
+
+pr:
+ branches:
+ include:
+ - main
+ - release/*
+ - hotfix/*
+ paths:
+ include:
+ - sdk/machinelearningcompute/
+
+extends:
+ template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
+ parameters:
+ ServiceDirectory: machinelearningcompute
+ Artifacts:
+ - name: azure-arm-machinelearningcompute
+ safeName: azurearmmachinelearningcompute
+
\ No newline at end of file
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/CHANGELOG.md b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/CHANGELOG.md
new file mode 100644
index 000000000000..03bcb607e9e2
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/CHANGELOG.md
@@ -0,0 +1,11 @@
+# Release History
+
+## 2.0.0-beta.1 (2022-01-17)
+
+The package of @azure/arm-machinelearningexperimentation is using our next generation design principles since version 2.0.0-beta.1, which contains breaking changes.
+
+To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
+
+To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
+
+To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/LICENSE b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/LICENSE
new file mode 100644
index 000000000000..5d1d36e0af80
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2022 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
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/README.md b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/README.md
index 0f67cbacf9e0..bebce5b8e757 100644
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/README.md
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/README.md
@@ -1,99 +1,98 @@
-## Azure MLTeamAccountManagementClient SDK for JavaScript
+# Azure ML Team Account Management client library for JavaScript
-This package contains an isomorphic SDK for MLTeamAccountManagementClient.
+This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ML Team Account Management client.
+
+These APIs allow end users to operate on Azure Machine Learning Team Account resources. They support CRUD operations for Azure Machine Learning Team Accounts.
+
+[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation) |
+[Package (NPM)](https://www.npmjs.com/package/@azure/arm-machinelearningexperimentation) |
+[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-machinelearningexperimentation?view=azure-node-preview) |
+[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
+
+## Getting started
### Currently supported environments
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
-- Latest versions of Safari, Chrome, Edge, and Firefox.
+- Latest versions of Safari, Chrome, Edge and Firefox.
-### How to Install
+### Prerequisites
-```
+- An [Azure subscription][azure_sub].
+
+### Install the `@azure/arm-machinelearningexperimentation` package
+
+Install the Azure ML Team Account Management client library for JavaScript with `npm`:
+
+```bash
npm install @azure/arm-machinelearningexperimentation
```
-### How to use
+### Create and authenticate a `MLTeamAccountManagementClient`
-#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.
+To create a client object to access the Azure ML Team Account Management API, you will need the `endpoint` of your Azure ML Team Account Management resource and a `credential`. The Azure ML Team Account Management client can use Azure Active Directory credentials to authenticate.
+You can find the endpoint for your Azure ML Team Account Management resource in the [Azure Portal][azure_portal].
-##### Install @azure/ms-rest-nodeauth
+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).
-```
-npm install @azure/ms-rest-nodeauth
-```
+To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
-##### Sample code
-
-```ts
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
-import { MLTeamAccountManagementClient, MLTeamAccountManagementModels, MLTeamAccountManagementMappers } from "@azure/arm-machinelearningexperimentation";
-const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-
-msRestNodeAuth.interactiveLogin().then((creds) => {
- const client = new MLTeamAccountManagementClient(creds, subscriptionId);
- client.operations.list().then((result) => {
- console.log("The result is:");
- console.log(result);
- });
-}).catch((err) => {
- console.error(err);
-});
+```bash
+npm install @azure/identity
```
-#### browser - Authentication, client creation and list operations as an example written in JavaScript.
+You will also need to **register a new AAD application and grant access to Azure ML Team Account Management** 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`.
-##### Install @azure/ms-rest-browserauth
+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 { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation");
+const { DefaultAzureCredential } = require("@azure/identity");
+const subscriptionId = "00000000-0000-0000-0000-000000000000";
+const client = new MLTeamAccountManagementClient(new DefaultAzureCredential(), subscriptionId);
```
-npm install @azure/ms-rest-browserauth
-```
-##### Sample code
-
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
-- index.html
-```html
-
-
-
- @azure/arm-machinelearningexperimentation sample
-
-
-
-
-
-
-
-
+
+### JavaScript Bundle
+To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
+
+## Key concepts
+
+### MLTeamAccountManagementClient
+
+`MLTeamAccountManagementClient` is the primary interface for developers using the Azure ML Team Account Management client library. Explore the methods on this client object to understand the different features of the Azure ML Team Account Management service that you can access.
+
+## Troubleshooting
+
+### Logging
+
+Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
+
+```javascript
+const { setLogLevel } = require("@azure/logger");
+setLogLevel("info");
```
-## Related projects
+For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
-- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+## Next steps
+Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
+
+## Contributing
+
+If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
+
+## Related projects
+
+- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmachinelearningexperimentation%2Farm-machinelearningexperimentation%2FREADME.png)
+
+[azure_cli]: https://docs.microsoft.com/cli/azure
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_portal]: https://portal.azure.com
+[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
+[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/_meta.json b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/_meta.json
new file mode 100644
index 000000000000..7ed08d3246f6
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/_meta.json
@@ -0,0 +1,7 @@
+{
+ "commit": "6dd1d6d39dd0a7fc67ee53429d7c4ed084a0bac2",
+ "readme": "specification/machinelearningexperimentation/resource-manager/readme.md",
+ "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/machinelearningexperimentation/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --generate-sample=true",
+ "repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
+ "use": "@autorest/typescript@6.0.0-alpha.16.20220114.1"
+}
\ No newline at end of file
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/api-extractor.json b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/api-extractor.json
new file mode 100644
index 000000000000..988705ba8df3
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/api-extractor.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
+ "mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
+ "docModel": { "enabled": true },
+ "apiReport": { "enabled": true, "reportFolder": "./review" },
+ "dtsRollup": {
+ "enabled": true,
+ "untrimmedFilePath": "",
+ "publicTrimmedFilePath": "./types/arm-machinelearningexperimentation.d.ts"
+ },
+ "messages": {
+ "tsdocMessageReporting": { "default": { "logLevel": "none" } },
+ "extractorMessageReporting": {
+ "ae-missing-release-tag": { "logLevel": "none" },
+ "ae-unresolved-link": { "logLevel": "none" }
+ }
+ }
+}
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/package.json b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/package.json
index 9b6aed6ca161..f9d6259ce1bb 100644
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/package.json
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/package.json
@@ -1,56 +1,104 @@
{
"name": "@azure/arm-machinelearningexperimentation",
+ "sdk-type": "mgmt",
"author": "Microsoft Corporation",
- "description": "MLTeamAccountManagementClient Library with typescript type definitions for node.js and browser.",
- "version": "1.1.0",
+ "description": "A generated SDK for MLTeamAccountManagementClient.",
+ "version": "2.0.0-beta.1",
+ "engines": { "node": ">=12.0.0" },
"dependencies": {
- "@azure/ms-rest-azure-js": "^1.1.0",
- "@azure/ms-rest-js": "^1.1.0",
- "tslib": "^1.9.3"
+ "@azure/core-paging": "^1.2.0",
+ "@azure/core-client": "^1.0.0",
+ "@azure/core-auth": "^1.3.0",
+ "@azure/core-rest-pipeline": "^1.1.0",
+ "tslib": "^2.2.0"
},
- "keywords": [
- "node",
- "azure",
- "typescript",
- "browser",
- "isomorphic"
- ],
+ "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
- "main": "./dist/arm-machinelearningexperimentation.js",
- "module": "./esm/mLTeamAccountManagementClient.js",
- "types": "./esm/mLTeamAccountManagementClient.d.ts",
+ "main": "./dist/index.js",
+ "module": "./dist-esm/src/index.js",
+ "types": "./types/arm-machinelearningexperimentation.d.ts",
"devDependencies": {
- "typescript": "^3.1.1",
- "rollup": "^0.66.2",
- "rollup-plugin-node-resolve": "^3.4.0",
- "uglify-js": "^3.4.9"
+ "@microsoft/api-extractor": "^7.18.11",
+ "@rollup/plugin-commonjs": "11.0.2",
+ "@rollup/plugin-json": "^4.0.0",
+ "@rollup/plugin-multi-entry": "^3.0.0",
+ "@rollup/plugin-node-resolve": "^8.0.0",
+ "mkdirp": "^1.0.4",
+ "rollup": "^1.16.3",
+ "rollup-plugin-sourcemaps": "^0.4.2",
+ "typescript": "~4.2.0",
+ "uglify-js": "^3.4.9",
+ "rimraf": "^3.0.0",
+ "@azure/identity": "^2.0.1",
+ "@azure-tools/test-recorder": "^1.0.0",
+ "mocha": "^7.1.1",
+ "cross-env": "^7.0.2"
},
- "homepage": "https://github.com/azure/azure-sdk-for-js/tree/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation",
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation",
"repository": {
"type": "git",
- "url": "https://github.com/azure/azure-sdk-for-js.git"
- },
- "bugs": {
- "url": "https://github.com/azure/azure-sdk-for-js/issues"
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
},
+ "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
- "esm/**/*.js",
- "esm/**/*.js.map",
- "esm/**/*.d.ts",
- "esm/**/*.d.ts.map",
+ "dist-esm/**/*.js",
+ "dist-esm/**/*.js.map",
+ "dist-esm/**/*.d.ts",
+ "dist-esm/**/*.d.ts.map",
"src/**/*.ts",
+ "README.md",
+ "LICENSE",
"rollup.config.js",
- "tsconfig.json"
+ "tsconfig.json",
+ "review/*",
+ "CHANGELOG.md",
+ "types/*"
],
"scripts": {
- "build": "tsc && rollup -c rollup.config.js && npm run minify",
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-machinelearningexperimentation.js.map'\" -o ./dist/arm-machinelearningexperimentation.min.js ./dist/arm-machinelearningexperimentation.js",
- "prepack": "npm install && npm run build"
+ "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",
+ "build:node": "echo skipped",
+ "build:browser": "echo skipped",
+ "build:test": "echo skipped",
+ "build:samples": "echo skipped.",
+ "check-format": "echo skipped",
+ "execute:samples": "echo skipped",
+ "format": "echo skipped",
+ "test": "npm run integration-test",
+ "test:node": "echo skipped",
+ "test:browser": "echo skipped",
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:browser": "echo skipped",
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
+ "integration-test:browser": "echo skipped",
+ "docs": "echo skipped"
},
"sideEffects": false,
- "autoPublish": true
+ "//metadata": {
+ "constantPaths": [
+ {
+ "path": "src/MLTeamAccountManagementClient.ts",
+ "prefix": "packageDetails"
+ }
+ ]
+ },
+ "autoPublish": true,
+ "//sampleConfiguration": {
+ "productName": "",
+ "productSlugs": ["azure"],
+ "disableDocsMs": true,
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearningexperimentation?view=azure-node-preview"
+ }
}
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/recordings/node/my_test/recording_sample_test.js b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/recordings/node/my_test/recording_sample_test.js
new file mode 100644
index 000000000000..0f6ecb857acf
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/recordings/node/my_test/recording_sample_test.js
@@ -0,0 +1,5 @@
+let nock = require('nock');
+
+module.exports.hash = "7a6be38bb8cb644d64b4094802301751";
+
+module.exports.testInfo = {"uniqueName":{},"newDate":{}}
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/review/arm-machinelearningexperimentation.api.md b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/review/arm-machinelearningexperimentation.api.md
new file mode 100644
index 000000000000..7de2550a006e
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/review/arm-machinelearningexperimentation.api.md
@@ -0,0 +1,339 @@
+## API Report File for "@azure/arm-machinelearningexperimentation"
+
+> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
+
+```ts
+
+import * as coreAuth from '@azure/core-auth';
+import * as coreClient from '@azure/core-client';
+import { PagedAsyncIterableIterator } from '@azure/core-paging';
+
+// @public
+export type Account = Resource & {
+ vsoAccountId?: string;
+ readonly accountId?: string;
+ description?: string;
+ friendlyName?: string;
+ keyVaultId?: string;
+ seats?: string;
+ readonly discoveryUri?: string;
+ readonly creationDate?: Date;
+ storageAccount?: StorageAccountProperties;
+ readonly provisioningState?: ProvisioningState;
+};
+
+// @public
+export interface AccountListResult {
+ nextLink?: string;
+ value?: Account[];
+}
+
+// @public
+export interface Accounts {
+ createOrUpdate(resourceGroupName: string, accountName: string, parameters: Account, options?: AccountsCreateOrUpdateOptionalParams): Promise;
+ delete(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, accountName: string, options?: AccountsGetOptionalParams): Promise;
+ list(options?: AccountsListOptionalParams): PagedAsyncIterableIterator;
+ listByResourceGroup(resourceGroupName: string, options?: AccountsListByResourceGroupOptionalParams): PagedAsyncIterableIterator;
+ update(resourceGroupName: string, accountName: string, parameters: AccountUpdateParameters, options?: AccountsUpdateOptionalParams): Promise;
+}
+
+// @public
+export interface AccountsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsCreateOrUpdateResponse = Account;
+
+// @public
+export interface AccountsDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface AccountsGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsGetResponse = Account;
+
+// @public
+export interface AccountsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsListByResourceGroupNextResponse = AccountListResult;
+
+// @public
+export interface AccountsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsListByResourceGroupResponse = AccountListResult;
+
+// @public
+export interface AccountsListNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsListNextResponse = AccountListResult;
+
+// @public
+export interface AccountsListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsListResponse = AccountListResult;
+
+// @public
+export interface AccountsUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type AccountsUpdateResponse = Account;
+
+// @public
+export interface AccountUpdateParameters {
+ description?: string;
+ friendlyName?: string;
+ seats?: string;
+ storageAccountKey?: string;
+ tags?: {
+ [propertyName: string]: string;
+ };
+}
+
+// @public
+export interface ErrorResponse {
+ code: string;
+ message: string;
+}
+
+// @public (undocumented)
+export class MLTeamAccountManagementClient extends coreClient.ServiceClient {
+ // (undocumented)
+ $host: string;
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: MLTeamAccountManagementClientOptionalParams);
+ // (undocumented)
+ accounts: Accounts;
+ // (undocumented)
+ apiVersion: string;
+ // (undocumented)
+ operations: Operations;
+ // (undocumented)
+ projects: Projects;
+ // (undocumented)
+ subscriptionId: string;
+ // (undocumented)
+ workspaces: Workspaces;
+}
+
+// @public
+export interface MLTeamAccountManagementClientOptionalParams extends coreClient.ServiceClientOptions {
+ $host?: string;
+ apiVersion?: string;
+ endpoint?: string;
+}
+
+// @public
+export interface Operation {
+ display?: OperationDisplay;
+ name?: string;
+}
+
+// @public
+export interface OperationDisplay {
+ description?: string;
+ operation?: string;
+ provider?: string;
+ resource?: string;
+}
+
+// @public
+export interface OperationListResult {
+ value?: Operation[];
+}
+
+// @public
+export interface Operations {
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface OperationsListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationsListResponse = OperationListResult;
+
+// @public
+export type Project = Resource & {
+ description?: string;
+ readonly accountId?: string;
+ readonly workspaceId?: string;
+ readonly projectId?: string;
+ gitrepo?: string;
+ friendlyName?: string;
+ readonly creationDate?: Date;
+ readonly provisioningState?: ProvisioningState;
+};
+
+// @public
+export interface ProjectListResult {
+ nextLink?: string;
+ value?: Project[];
+}
+
+// @public
+export interface Projects {
+ createOrUpdate(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, parameters: Project, options?: ProjectsCreateOrUpdateOptionalParams): Promise;
+ delete(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, options?: ProjectsDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, options?: ProjectsGetOptionalParams): Promise;
+ listByWorkspace(accountName: string, workspaceName: string, resourceGroupName: string, options?: ProjectsListByWorkspaceOptionalParams): PagedAsyncIterableIterator;
+ update(resourceGroupName: string, accountName: string, workspaceName: string, projectName: string, parameters: ProjectUpdateParameters, options?: ProjectsUpdateOptionalParams): Promise;
+}
+
+// @public
+export interface ProjectsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ProjectsCreateOrUpdateResponse = Project;
+
+// @public
+export interface ProjectsDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface ProjectsGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ProjectsGetResponse = Project;
+
+// @public
+export interface ProjectsListByWorkspaceNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ProjectsListByWorkspaceNextResponse = ProjectListResult;
+
+// @public
+export interface ProjectsListByWorkspaceOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ProjectsListByWorkspaceResponse = ProjectListResult;
+
+// @public
+export interface ProjectsUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ProjectsUpdateResponse = Project;
+
+// @public
+export interface ProjectUpdateParameters {
+ description?: string;
+ friendlyName?: string;
+ gitrepo?: string;
+ tags?: {
+ [propertyName: string]: string;
+ };
+}
+
+// @public
+export type ProvisioningState = "Creating" | "Succeeded" | "Updating" | "Deleting" | "Failed";
+
+// @public
+export interface Resource {
+ readonly id?: string;
+ location: string;
+ readonly name?: string;
+ tags?: {
+ [propertyName: string]: string;
+ };
+ readonly type?: string;
+}
+
+// @public
+export interface StorageAccountProperties {
+ accessKey: string;
+ storageAccountId: string;
+}
+
+// @public
+export type Workspace = Resource & {
+ description?: string;
+ readonly accountId?: string;
+ readonly workspaceId?: string;
+ friendlyName?: string;
+ readonly creationDate?: Date;
+ readonly provisioningState?: ProvisioningState;
+};
+
+// @public
+export interface WorkspaceListResult {
+ nextLink?: string;
+ value?: Workspace[];
+}
+
+// @public
+export interface Workspaces {
+ createOrUpdate(resourceGroupName: string, accountName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise;
+ delete(resourceGroupName: string, accountName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise;
+ get(resourceGroupName: string, accountName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise;
+ listByAccounts(accountName: string, resourceGroupName: string, options?: WorkspacesListByAccountsOptionalParams): PagedAsyncIterableIterator;
+ update(resourceGroupName: string, accountName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise;
+}
+
+// @public
+export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type WorkspacesCreateOrUpdateResponse = Workspace;
+
+// @public
+export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export interface WorkspacesGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type WorkspacesGetResponse = Workspace;
+
+// @public
+export interface WorkspacesListByAccountsNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type WorkspacesListByAccountsNextResponse = WorkspaceListResult;
+
+// @public
+export interface WorkspacesListByAccountsOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type WorkspacesListByAccountsResponse = WorkspaceListResult;
+
+// @public
+export interface WorkspacesUpdateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type WorkspacesUpdateResponse = Workspace;
+
+// @public
+export interface WorkspaceUpdateParameters {
+ description?: string;
+ friendlyName?: string;
+ tags?: {
+ [propertyName: string]: string;
+ };
+}
+
+// (No @packageDocumentation comment for this package)
+
+```
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/rollup.config.js b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/rollup.config.js
index 56c1614af7f6..9be1955eb7f1 100644
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/rollup.config.js
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/rollup.config.js
@@ -1,31 +1,188 @@
-import nodeResolve from "rollup-plugin-node-resolve";
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import nodeResolve from "@rollup/plugin-node-resolve";
+import cjs from "@rollup/plugin-commonjs";
+import sourcemaps from "rollup-plugin-sourcemaps";
+import multiEntry from "@rollup/plugin-multi-entry";
+import json from "@rollup/plugin-json";
+
+import nodeBuiltins from "builtin-modules";
+
+/**
+ * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
+ *
+ * NOTE: this manual configuration is only needed because OpenTelemetry uses an
+ * __exportStar downleveled helper function to declare its exports which confuses
+ * rollup's automatic discovery mechanism.
+ *
+ * @returns an object reference that can be `...`'d into your cjs() configuration.
+ */
+export function openTelemetryCommonJs() {
+ const namedExports = {};
+
+ for (const key of [
+ "@opentelemetry/api",
+ "@azure/core-tracing/node_modules/@opentelemetry/api"
+ ]) {
+ namedExports[key] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "SpanStatusCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
+
+ for (const version of releasedOpenTelemetryVersions) {
+ namedExports[
+ // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
+ `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
+ ] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "StatusCode",
+ "CanonicalCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ return namedExports;
+}
+
+// #region Warning Handler
+
+/**
+ * A function that can determine whether a rollupwarning should be ignored. If
+ * the function returns `true`, then the warning will not be displayed.
+ */
+
+function ignoreNiseSinonEvalWarnings(warning) {
+ return (
+ warning.code === "EVAL" &&
+ warning.id &&
+ (warning.id.includes("node_modules/nise") ||
+ warning.id.includes("node_modules/sinon")) === true
+ );
+}
+
+function ignoreChaiCircularDependencyWarnings(warning) {
+ return (
+ warning.code === "CIRCULAR_DEPENDENCY" &&
+ warning.importer && warning.importer.includes("node_modules/chai") === true
+ );
+}
+
+const warningInhibitors = [
+ ignoreChaiCircularDependencyWarnings,
+ ignoreNiseSinonEvalWarnings
+];
+
/**
- * @type {import('rollup').RollupFileOptions}
+ * Construct a warning handler for the shared rollup configuration
+ * that ignores certain warnings that are not relevant to testing.
*/
-const config = {
- input: './esm/mLTeamAccountManagementClient.js',
- external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
- output: {
- file: "./dist/arm-machinelearningexperimentation.js",
- format: "umd",
- name: "Azure.ArmMachinelearningexperimentation",
- sourcemap: true,
- globals: {
- "@azure/ms-rest-js": "msRest",
- "@azure/ms-rest-azure-js": "msRestAzure"
+function makeOnWarnForTesting() {
+ return (warning, warn) => {
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
+ warn(warning);
+ }
+ };
+}
+
+// #endregion
+
+function makeBrowserTestConfig() {
+ const config = {
+ input: {
+ include: ["dist-esm/test/**/*.spec.js"],
+ exclude: ["dist-esm/test/**/node/**"]
},
- banner: `/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */`
- },
- plugins: [
- nodeResolve({ module: true })
- ]
+ output: {
+ file: `dist-test/index.browser.js`,
+ format: "umd",
+ sourcemap: true
+ },
+ preserveSymlinks: false,
+ plugins: [
+ multiEntry({ exports: false }),
+ nodeResolve({
+ mainFields: ["module", "browser"]
+ }),
+ cjs({
+ namedExports: {
+ // Chai's strange internal architecture makes it impossible to statically
+ // analyze its exports.
+ chai: [
+ "version",
+ "use",
+ "util",
+ "config",
+ "expect",
+ "should",
+ "assert"
+ ],
+ ...openTelemetryCommonJs()
+ }
+ }),
+ json(),
+ sourcemaps()
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
+ ],
+ onwarn: makeOnWarnForTesting(),
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
+ // rollup started respecting the "sideEffects" field in package.json. Since
+ // our package.json sets "sideEffects=false", this also applies to test
+ // code, which causes all tests to be removed by tree-shaking.
+ treeshake: false
+ };
+
+ return config;
+}
+
+const defaultConfigurationOptions = {
+ disableBrowserBundle: false
};
-export default config;
+
+export function makeConfig(pkg, options) {
+ options = {
+ ...defaultConfigurationOptions,
+ ...(options || {})
+ };
+
+ const baseConfig = {
+ // Use the package's module field if it has one
+ input: pkg["module"] || "dist-esm/src/index.js",
+ external: [
+ ...nodeBuiltins,
+ ...Object.keys(pkg.dependencies),
+ ...Object.keys(pkg.devDependencies)
+ ],
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
+ preserveSymlinks: false,
+ plugins: [sourcemaps(), nodeResolve(), cjs()]
+ };
+
+ const config = [baseConfig];
+
+ if (!options.disableBrowserBundle) {
+ config.push(makeBrowserTestConfig());
+ }
+
+ return config;
+}
+
+export default makeConfig(require("./package.json"));
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/sample.env b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/sample.env
new file mode 100644
index 000000000000..672847a3fea0
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/sample.env
@@ -0,0 +1,4 @@
+# App registration secret for AAD authentication
+AZURE_CLIENT_SECRET=
+AZURE_CLIENT_ID=
+AZURE_TENANT_ID=
\ No newline at end of file
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/accountCreate.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/accountCreate.ts
new file mode 100644
index 000000000000..88ba36fb0ac9
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/accountCreate.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Deletes a project.
+ *
+ * @summary Deletes a project.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/DeleteProject.json
+ */
+import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function accountCreate() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const accountName = "myAccount";
+ const workspaceName = "testworkspace";
+ const projectName = "testProject";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.projects.delete(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ projectName
+ );
+ console.log(result);
+}
+
+accountCreate().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/accountGet.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/accountGet.ts
new file mode 100644
index 000000000000..3565098324da
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/accountGet.ts
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the properties of the specified machine learning team account.
+ *
+ * @summary Gets the properties of the specified machine learning team account.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/GetAccount.json
+ */
+import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function accountGet() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.accounts.get(resourceGroupName, accountName);
+ console.log(result);
+}
+
+accountGet().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/accountUpdate.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/accountUpdate.ts
new file mode 100644
index 000000000000..0996cebd486a
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/accountUpdate.ts
@@ -0,0 +1,41 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates a machine learning team account with the specified parameters.
+ *
+ * @summary Updates a machine learning team account with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/UpdateAccount.json
+ */
+import {
+ AccountUpdateParameters,
+ MLTeamAccountManagementClient
+} from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function accountUpdate() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const parameters: AccountUpdateParameters = {
+ description: "new description",
+ tags: { tagKey1: "TagValue1" }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.accounts.update(
+ resourceGroupName,
+ accountName,
+ parameters
+ );
+ console.log(result);
+}
+
+accountUpdate().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/createProject.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/createProject.ts
new file mode 100644
index 000000000000..e27dc4cbcee1
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/createProject.ts
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Creates or updates a project with the specified parameters.
+ *
+ * @summary Creates or updates a project with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/CreateProject.json
+ */
+import {
+ Project,
+ MLTeamAccountManagementClient
+} from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function createProject() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const accountName = "testaccount";
+ const workspaceName = "testworkspace";
+ const projectName = "testProject";
+ const parameters: Project = {
+ friendlyName: "testName",
+ gitrepo: "https://github/abc",
+ location: "East US",
+ tags: { tagKey1: "TagValue1" }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.projects.createOrUpdate(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ projectName,
+ parameters
+ );
+ console.log(result);
+}
+
+createProject().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/getProject.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/getProject.ts
new file mode 100644
index 000000000000..b7044e0b219f
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/getProject.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the properties of the specified machine learning project.
+ *
+ * @summary Gets the properties of the specified machine learning project.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/GetProject.json
+ */
+import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function getProject() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const workspaceName = "testworkspace";
+ const projectName = "testProject";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.projects.get(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ projectName
+ );
+ console.log(result);
+}
+
+getProject().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/listWorkspacesByAccounts.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/listWorkspacesByAccounts.ts
new file mode 100644
index 000000000000..b98678f6c3b3
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/listWorkspacesByAccounts.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Lists all the available machine learning workspaces under the specified team account.
+ *
+ * @summary Lists all the available machine learning workspaces under the specified team account.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/ListWorkspacesByAccounts.json
+ */
+import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function listWorkspacesByAccounts() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const accountName = "testaccount";
+ const resourceGroupName = "accountcrud-1234";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const resArray = new Array();
+ for await (let item of client.workspaces.listByAccounts(
+ accountName,
+ resourceGroupName
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+listWorkspacesByAccounts().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/projectListByWorkspaces.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/projectListByWorkspaces.ts
new file mode 100644
index 000000000000..21359e0f8d40
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/projectListByWorkspaces.ts
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Lists all the available machine learning projects under the specified workspace.
+ *
+ * @summary Lists all the available machine learning projects under the specified workspace.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/ProjectListByWorkspaces.json
+ */
+import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function projectListByWorkspaces() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const accountName = "testaccount";
+ const workspaceName = "testworkspace";
+ const resourceGroupName = "testrg";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const resArray = new Array();
+ for await (let item of client.projects.listByWorkspace(
+ accountName,
+ workspaceName,
+ resourceGroupName
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+projectListByWorkspaces().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/updateProject.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/updateProject.ts
new file mode 100644
index 000000000000..58af192865b0
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/updateProject.ts
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates a project with the specified parameters.
+ *
+ * @summary Updates a project with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/UpdateProject.json
+ */
+import {
+ ProjectUpdateParameters,
+ MLTeamAccountManagementClient
+} from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function updateProject() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const workspaceName = "testworkspace";
+ const projectName = "testProject";
+ const parameters: ProjectUpdateParameters = {
+ friendlyName: "testName",
+ tags: { tagKey1: "TagValue1" }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.projects.update(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ projectName,
+ parameters
+ );
+ console.log(result);
+}
+
+updateProject().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/workspaceCreate.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/workspaceCreate.ts
new file mode 100644
index 000000000000..78fa11c2199e
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/workspaceCreate.ts
@@ -0,0 +1,44 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Creates or updates a machine learning workspace with the specified parameters.
+ *
+ * @summary Creates or updates a machine learning workspace with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceCreate.json
+ */
+import {
+ Workspace,
+ MLTeamAccountManagementClient
+} from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function workspaceCreate() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const accountName = "testaccount";
+ const workspaceName = "testworkspace";
+ const parameters: Workspace = {
+ friendlyName: "testName",
+ location: "East US",
+ tags: { tagKey1: "TagValue1" }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.workspaces.createOrUpdate(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ parameters
+ );
+ console.log(result);
+}
+
+workspaceCreate().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/workspaceDelete.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/workspaceDelete.ts
new file mode 100644
index 000000000000..6693905f4b5f
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/workspaceDelete.ts
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Deletes a machine learning workspace.
+ *
+ * @summary Deletes a machine learning workspace.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceDelete.json
+ */
+import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function workspaceDelete() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const accountName = "myAccount";
+ const workspaceName = "testworkspace";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.workspaces.delete(
+ resourceGroupName,
+ accountName,
+ workspaceName
+ );
+ console.log(result);
+}
+
+workspaceDelete().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/workspaceGet.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/workspaceGet.ts
new file mode 100644
index 000000000000..48513f0864c1
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/workspaceGet.ts
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the properties of the specified machine learning workspace.
+ *
+ * @summary Gets the properties of the specified machine learning workspace.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceGet.json
+ */
+import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function workspaceGet() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const workspaceName = "testworkspace";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.workspaces.get(
+ resourceGroupName,
+ accountName,
+ workspaceName
+ );
+ console.log(result);
+}
+
+workspaceGet().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/workspaceUpdate.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/workspaceUpdate.ts
new file mode 100644
index 000000000000..d08062b42e44
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples-dev/workspaceUpdate.ts
@@ -0,0 +1,40 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates a machine learning workspace with the specified parameters.
+ *
+ * @summary Updates a machine learning workspace with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceUpdate.json
+ */
+import {
+ WorkspaceUpdateParameters,
+ MLTeamAccountManagementClient
+} from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function workspaceUpdate() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const workspaceName = "testworkspace";
+ const parameters: WorkspaceUpdateParameters = { friendlyName: "testNameNew" };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.workspaces.update(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ parameters
+ );
+ console.log(result);
+}
+
+workspaceUpdate().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/README.md b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/README.md
new file mode 100644
index 000000000000..c62180c33c84
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/README.md
@@ -0,0 +1,72 @@
+# client library samples for JavaScript (Beta)
+
+These sample programs show how to use the JavaScript client libraries for in some common scenarios.
+
+| **File Name** | **Description** |
+| ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| [accountCreate.js][accountcreate] | Deletes a project. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/DeleteProject.json |
+| [accountGet.js][accountget] | Gets the properties of the specified machine learning team account. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/GetAccount.json |
+| [accountUpdate.js][accountupdate] | Updates a machine learning team account with the specified parameters. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/UpdateAccount.json |
+| [createProject.js][createproject] | Creates or updates a project with the specified parameters. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/CreateProject.json |
+| [getProject.js][getproject] | Gets the properties of the specified machine learning project. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/GetProject.json |
+| [listWorkspacesByAccounts.js][listworkspacesbyaccounts] | Lists all the available machine learning workspaces under the specified team account. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/ListWorkspacesByAccounts.json |
+| [projectListByWorkspaces.js][projectlistbyworkspaces] | Lists all the available machine learning projects under the specified workspace. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/ProjectListByWorkspaces.json |
+| [updateProject.js][updateproject] | Updates a project with the specified parameters. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/UpdateProject.json |
+| [workspaceCreate.js][workspacecreate] | Creates or updates a machine learning workspace with the specified parameters. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceCreate.json |
+| [workspaceDelete.js][workspacedelete] | Deletes a machine learning workspace. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceDelete.json |
+| [workspaceGet.js][workspaceget] | Gets the properties of the specified machine learning workspace. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceGet.json |
+| [workspaceUpdate.js][workspaceupdate] | Updates a machine learning workspace with the specified parameters. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceUpdate.json |
+
+## Prerequisites
+
+The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/).
+
+You need [an Azure subscription][freesub] to run these sample programs.
+
+Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.
+
+Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package].
+
+## Setup
+
+To run the samples using the published version of the package:
+
+1. Install the dependencies using `npm`:
+
+```bash
+npm install
+```
+
+2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.
+
+3. Run whichever samples you like (note that some samples may require additional setup, see the table above):
+
+```bash
+node accountCreate.js
+```
+
+Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
+
+```bash
+npx cross-env node accountCreate.js
+```
+
+## Next Steps
+
+Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
+
+[accountcreate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/accountCreate.js
+[accountget]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/accountGet.js
+[accountupdate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/accountUpdate.js
+[createproject]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/createProject.js
+[getproject]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/getProject.js
+[listworkspacesbyaccounts]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/listWorkspacesByAccounts.js
+[projectlistbyworkspaces]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/projectListByWorkspaces.js
+[updateproject]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/updateProject.js
+[workspacecreate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceCreate.js
+[workspacedelete]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceDelete.js
+[workspaceget]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceGet.js
+[workspaceupdate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceUpdate.js
+[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-machinelearningexperimentation?view=azure-node-preview
+[freesub]: https://azure.microsoft.com/free/
+[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/README.md
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/accountCreate.js b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/accountCreate.js
new file mode 100644
index 000000000000..da6fca83b2e0
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/accountCreate.js
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Deletes a project.
+ *
+ * @summary Deletes a project.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/DeleteProject.json
+ */
+const { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function accountCreate() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const accountName = "myAccount";
+ const workspaceName = "testworkspace";
+ const projectName = "testProject";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.projects.delete(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ projectName
+ );
+ console.log(result);
+}
+
+accountCreate().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/accountGet.js b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/accountGet.js
new file mode 100644
index 000000000000..d81120d57ac7
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/accountGet.js
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the properties of the specified machine learning team account.
+ *
+ * @summary Gets the properties of the specified machine learning team account.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/GetAccount.json
+ */
+const { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function accountGet() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.accounts.get(resourceGroupName, accountName);
+ console.log(result);
+}
+
+accountGet().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/accountUpdate.js b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/accountUpdate.js
new file mode 100644
index 000000000000..f95341e84bf0
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/accountUpdate.js
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates a machine learning team account with the specified parameters.
+ *
+ * @summary Updates a machine learning team account with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/UpdateAccount.json
+ */
+const { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function accountUpdate() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const parameters = {
+ description: "new description",
+ tags: { tagKey1: "TagValue1" },
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.accounts.update(resourceGroupName, accountName, parameters);
+ console.log(result);
+}
+
+accountUpdate().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/createProject.js b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/createProject.js
new file mode 100644
index 000000000000..c8b4051a990b
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/createProject.js
@@ -0,0 +1,44 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Creates or updates a project with the specified parameters.
+ *
+ * @summary Creates or updates a project with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/CreateProject.json
+ */
+const { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function createProject() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const accountName = "testaccount";
+ const workspaceName = "testworkspace";
+ const projectName = "testProject";
+ const parameters = {
+ friendlyName: "testName",
+ gitrepo: "https://github/abc",
+ location: "East US",
+ tags: { tagKey1: "TagValue1" },
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.projects.createOrUpdate(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ projectName,
+ parameters
+ );
+ console.log(result);
+}
+
+createProject().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/getProject.js b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/getProject.js
new file mode 100644
index 000000000000..ff52122792c7
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/getProject.js
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the properties of the specified machine learning project.
+ *
+ * @summary Gets the properties of the specified machine learning project.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/GetProject.json
+ */
+const { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function getProject() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const workspaceName = "testworkspace";
+ const projectName = "testProject";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.projects.get(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ projectName
+ );
+ console.log(result);
+}
+
+getProject().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/listWorkspacesByAccounts.js b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/listWorkspacesByAccounts.js
new file mode 100644
index 000000000000..4012476c57e6
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/listWorkspacesByAccounts.js
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Lists all the available machine learning workspaces under the specified team account.
+ *
+ * @summary Lists all the available machine learning workspaces under the specified team account.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/ListWorkspacesByAccounts.json
+ */
+const { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function listWorkspacesByAccounts() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const accountName = "testaccount";
+ const resourceGroupName = "accountcrud-1234";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const resArray = new Array();
+ for await (let item of client.workspaces.listByAccounts(accountName, resourceGroupName)) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+listWorkspacesByAccounts().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/package.json b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/package.json
new file mode 100644
index 000000000000..857f60618675
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/package.json
@@ -0,0 +1,32 @@
+{
+ "name": "azure-arm-machinelearningexperimentation-samples-js-beta",
+ "private": true,
+ "version": "1.0.0",
+ "description": " client library samples for JavaScript (Beta)",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/Azure/azure-sdk-for-js.git",
+ "directory": "sdk/machinelearningexperimentation/arm-machinelearningexperimentation"
+ },
+ "keywords": [
+ "node",
+ "azure",
+ "typescript",
+ "browser",
+ "isomorphic"
+ ],
+ "author": "Microsoft Corporation",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
+ },
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation",
+ "dependencies": {
+ "@azure/arm-machinelearningexperimentation": "next",
+ "dotenv": "latest",
+ "@azure/identity": "^2.0.1"
+ }
+}
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/projectListByWorkspaces.js b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/projectListByWorkspaces.js
new file mode 100644
index 000000000000..48fff3d98ccb
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/projectListByWorkspaces.js
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Lists all the available machine learning projects under the specified workspace.
+ *
+ * @summary Lists all the available machine learning projects under the specified workspace.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/ProjectListByWorkspaces.json
+ */
+const { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function projectListByWorkspaces() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const accountName = "testaccount";
+ const workspaceName = "testworkspace";
+ const resourceGroupName = "testrg";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const resArray = new Array();
+ for await (let item of client.projects.listByWorkspace(
+ accountName,
+ workspaceName,
+ resourceGroupName
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+projectListByWorkspaces().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/sample.env b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/sample.env
new file mode 100644
index 000000000000..672847a3fea0
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/sample.env
@@ -0,0 +1,4 @@
+# App registration secret for AAD authentication
+AZURE_CLIENT_SECRET=
+AZURE_CLIENT_ID=
+AZURE_TENANT_ID=
\ No newline at end of file
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/updateProject.js b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/updateProject.js
new file mode 100644
index 000000000000..8a2c346e1efa
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/updateProject.js
@@ -0,0 +1,42 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates a project with the specified parameters.
+ *
+ * @summary Updates a project with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/UpdateProject.json
+ */
+const { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function updateProject() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const workspaceName = "testworkspace";
+ const projectName = "testProject";
+ const parameters = {
+ friendlyName: "testName",
+ tags: { tagKey1: "TagValue1" },
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.projects.update(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ projectName,
+ parameters
+ );
+ console.log(result);
+}
+
+updateProject().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceCreate.js b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceCreate.js
new file mode 100644
index 000000000000..8939da0ee244
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceCreate.js
@@ -0,0 +1,41 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Creates or updates a machine learning workspace with the specified parameters.
+ *
+ * @summary Creates or updates a machine learning workspace with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceCreate.json
+ */
+const { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function workspaceCreate() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const accountName = "testaccount";
+ const workspaceName = "testworkspace";
+ const parameters = {
+ friendlyName: "testName",
+ location: "East US",
+ tags: { tagKey1: "TagValue1" },
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.workspaces.createOrUpdate(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ parameters
+ );
+ console.log(result);
+}
+
+workspaceCreate().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceDelete.js b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceDelete.js
new file mode 100644
index 000000000000..30c5089311f7
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceDelete.js
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Deletes a machine learning workspace.
+ *
+ * @summary Deletes a machine learning workspace.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceDelete.json
+ */
+const { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function workspaceDelete() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const accountName = "myAccount";
+ const workspaceName = "testworkspace";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.workspaces.delete(resourceGroupName, accountName, workspaceName);
+ console.log(result);
+}
+
+workspaceDelete().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceGet.js b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceGet.js
new file mode 100644
index 000000000000..859bd08a561b
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceGet.js
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the properties of the specified machine learning workspace.
+ *
+ * @summary Gets the properties of the specified machine learning workspace.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceGet.json
+ */
+const { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function workspaceGet() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const workspaceName = "testworkspace";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.workspaces.get(resourceGroupName, accountName, workspaceName);
+ console.log(result);
+}
+
+workspaceGet().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceUpdate.js b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceUpdate.js
new file mode 100644
index 000000000000..5cf2f0ac51cd
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/javascript/workspaceUpdate.js
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates a machine learning workspace with the specified parameters.
+ *
+ * @summary Updates a machine learning workspace with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceUpdate.json
+ */
+const { MLTeamAccountManagementClient } = require("@azure/arm-machinelearningexperimentation");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function workspaceUpdate() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const workspaceName = "testworkspace";
+ const parameters = { friendlyName: "testNameNew" };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.workspaces.update(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ parameters
+ );
+ console.log(result);
+}
+
+workspaceUpdate().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/README.md b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/README.md
new file mode 100644
index 000000000000..748ca5d2eebb
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/README.md
@@ -0,0 +1,85 @@
+# client library samples for TypeScript (Beta)
+
+These sample programs show how to use the TypeScript client libraries for in some common scenarios.
+
+| **File Name** | **Description** |
+| ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| [accountCreate.ts][accountcreate] | Deletes a project. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/DeleteProject.json |
+| [accountGet.ts][accountget] | Gets the properties of the specified machine learning team account. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/GetAccount.json |
+| [accountUpdate.ts][accountupdate] | Updates a machine learning team account with the specified parameters. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/UpdateAccount.json |
+| [createProject.ts][createproject] | Creates or updates a project with the specified parameters. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/CreateProject.json |
+| [getProject.ts][getproject] | Gets the properties of the specified machine learning project. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/GetProject.json |
+| [listWorkspacesByAccounts.ts][listworkspacesbyaccounts] | Lists all the available machine learning workspaces under the specified team account. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/ListWorkspacesByAccounts.json |
+| [projectListByWorkspaces.ts][projectlistbyworkspaces] | Lists all the available machine learning projects under the specified workspace. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/ProjectListByWorkspaces.json |
+| [updateProject.ts][updateproject] | Updates a project with the specified parameters. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/UpdateProject.json |
+| [workspaceCreate.ts][workspacecreate] | Creates or updates a machine learning workspace with the specified parameters. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceCreate.json |
+| [workspaceDelete.ts][workspacedelete] | Deletes a machine learning workspace. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceDelete.json |
+| [workspaceGet.ts][workspaceget] | Gets the properties of the specified machine learning workspace. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceGet.json |
+| [workspaceUpdate.ts][workspaceupdate] | Updates a machine learning workspace with the specified parameters. x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceUpdate.json |
+
+## Prerequisites
+
+The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/).
+
+Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using:
+
+```bash
+npm install -g typescript
+```
+
+You need [an Azure subscription][freesub] to run these sample programs.
+
+Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.
+
+Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package].
+
+## Setup
+
+To run the samples using the published version of the package:
+
+1. Install the dependencies using `npm`:
+
+```bash
+npm install
+```
+
+2. Compile the samples:
+
+```bash
+npm run build
+```
+
+3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.
+
+4. Run whichever samples you like (note that some samples may require additional setup, see the table above):
+
+```bash
+node dist/accountCreate.js
+```
+
+Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
+
+```bash
+npx cross-env node dist/accountCreate.js
+```
+
+## Next Steps
+
+Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
+
+[accountcreate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/accountCreate.ts
+[accountget]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/accountGet.ts
+[accountupdate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/accountUpdate.ts
+[createproject]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/createProject.ts
+[getproject]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/getProject.ts
+[listworkspacesbyaccounts]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/listWorkspacesByAccounts.ts
+[projectlistbyworkspaces]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/projectListByWorkspaces.ts
+[updateproject]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/updateProject.ts
+[workspacecreate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceCreate.ts
+[workspacedelete]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceDelete.ts
+[workspaceget]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceGet.ts
+[workspaceupdate]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceUpdate.ts
+[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-machinelearningexperimentation?view=azure-node-preview
+[freesub]: https://azure.microsoft.com/free/
+[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/README.md
+[typescript]: https://www.typescriptlang.org/docs/home.html
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/package.json b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/package.json
new file mode 100644
index 000000000000..928a2f744259
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/package.json
@@ -0,0 +1,41 @@
+{
+ "name": "azure-arm-machinelearningexperimentation-samples-ts-beta",
+ "private": true,
+ "version": "1.0.0",
+ "description": " client library samples for TypeScript (Beta)",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "scripts": {
+ "build": "tsc",
+ "prebuild": "rimraf dist/"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/Azure/azure-sdk-for-js.git",
+ "directory": "sdk/machinelearningexperimentation/arm-machinelearningexperimentation"
+ },
+ "keywords": [
+ "node",
+ "azure",
+ "typescript",
+ "browser",
+ "isomorphic"
+ ],
+ "author": "Microsoft Corporation",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
+ },
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningexperimentation/arm-machinelearningexperimentation",
+ "dependencies": {
+ "@azure/arm-machinelearningexperimentation": "next",
+ "dotenv": "latest",
+ "@azure/identity": "^2.0.1"
+ },
+ "devDependencies": {
+ "@types/node": "^12.0.0",
+ "typescript": "~4.4.0",
+ "rimraf": "latest"
+ }
+}
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/sample.env b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/sample.env
new file mode 100644
index 000000000000..672847a3fea0
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/sample.env
@@ -0,0 +1,4 @@
+# App registration secret for AAD authentication
+AZURE_CLIENT_SECRET=
+AZURE_CLIENT_ID=
+AZURE_TENANT_ID=
\ No newline at end of file
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/accountCreate.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/accountCreate.ts
new file mode 100644
index 000000000000..88ba36fb0ac9
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/accountCreate.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Deletes a project.
+ *
+ * @summary Deletes a project.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/DeleteProject.json
+ */
+import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function accountCreate() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const accountName = "myAccount";
+ const workspaceName = "testworkspace";
+ const projectName = "testProject";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.projects.delete(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ projectName
+ );
+ console.log(result);
+}
+
+accountCreate().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/accountGet.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/accountGet.ts
new file mode 100644
index 000000000000..3565098324da
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/accountGet.ts
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the properties of the specified machine learning team account.
+ *
+ * @summary Gets the properties of the specified machine learning team account.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/GetAccount.json
+ */
+import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function accountGet() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.accounts.get(resourceGroupName, accountName);
+ console.log(result);
+}
+
+accountGet().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/accountUpdate.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/accountUpdate.ts
new file mode 100644
index 000000000000..0996cebd486a
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/accountUpdate.ts
@@ -0,0 +1,41 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates a machine learning team account with the specified parameters.
+ *
+ * @summary Updates a machine learning team account with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/UpdateAccount.json
+ */
+import {
+ AccountUpdateParameters,
+ MLTeamAccountManagementClient
+} from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function accountUpdate() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const parameters: AccountUpdateParameters = {
+ description: "new description",
+ tags: { tagKey1: "TagValue1" }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.accounts.update(
+ resourceGroupName,
+ accountName,
+ parameters
+ );
+ console.log(result);
+}
+
+accountUpdate().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/createProject.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/createProject.ts
new file mode 100644
index 000000000000..e27dc4cbcee1
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/createProject.ts
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Creates or updates a project with the specified parameters.
+ *
+ * @summary Creates or updates a project with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/CreateProject.json
+ */
+import {
+ Project,
+ MLTeamAccountManagementClient
+} from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function createProject() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const accountName = "testaccount";
+ const workspaceName = "testworkspace";
+ const projectName = "testProject";
+ const parameters: Project = {
+ friendlyName: "testName",
+ gitrepo: "https://github/abc",
+ location: "East US",
+ tags: { tagKey1: "TagValue1" }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.projects.createOrUpdate(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ projectName,
+ parameters
+ );
+ console.log(result);
+}
+
+createProject().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/getProject.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/getProject.ts
new file mode 100644
index 000000000000..b7044e0b219f
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/getProject.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the properties of the specified machine learning project.
+ *
+ * @summary Gets the properties of the specified machine learning project.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/GetProject.json
+ */
+import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function getProject() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const workspaceName = "testworkspace";
+ const projectName = "testProject";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.projects.get(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ projectName
+ );
+ console.log(result);
+}
+
+getProject().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/listWorkspacesByAccounts.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/listWorkspacesByAccounts.ts
new file mode 100644
index 000000000000..b98678f6c3b3
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/listWorkspacesByAccounts.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Lists all the available machine learning workspaces under the specified team account.
+ *
+ * @summary Lists all the available machine learning workspaces under the specified team account.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/ListWorkspacesByAccounts.json
+ */
+import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function listWorkspacesByAccounts() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const accountName = "testaccount";
+ const resourceGroupName = "accountcrud-1234";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const resArray = new Array();
+ for await (let item of client.workspaces.listByAccounts(
+ accountName,
+ resourceGroupName
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+listWorkspacesByAccounts().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/projectListByWorkspaces.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/projectListByWorkspaces.ts
new file mode 100644
index 000000000000..21359e0f8d40
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/projectListByWorkspaces.ts
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Lists all the available machine learning projects under the specified workspace.
+ *
+ * @summary Lists all the available machine learning projects under the specified workspace.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/ProjectListByWorkspaces.json
+ */
+import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function projectListByWorkspaces() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const accountName = "testaccount";
+ const workspaceName = "testworkspace";
+ const resourceGroupName = "testrg";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const resArray = new Array();
+ for await (let item of client.projects.listByWorkspace(
+ accountName,
+ workspaceName,
+ resourceGroupName
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+projectListByWorkspaces().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/updateProject.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/updateProject.ts
new file mode 100644
index 000000000000..58af192865b0
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/updateProject.ts
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates a project with the specified parameters.
+ *
+ * @summary Updates a project with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/UpdateProject.json
+ */
+import {
+ ProjectUpdateParameters,
+ MLTeamAccountManagementClient
+} from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function updateProject() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const workspaceName = "testworkspace";
+ const projectName = "testProject";
+ const parameters: ProjectUpdateParameters = {
+ friendlyName: "testName",
+ tags: { tagKey1: "TagValue1" }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.projects.update(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ projectName,
+ parameters
+ );
+ console.log(result);
+}
+
+updateProject().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceCreate.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceCreate.ts
new file mode 100644
index 000000000000..78fa11c2199e
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceCreate.ts
@@ -0,0 +1,44 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Creates or updates a machine learning workspace with the specified parameters.
+ *
+ * @summary Creates or updates a machine learning workspace with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceCreate.json
+ */
+import {
+ Workspace,
+ MLTeamAccountManagementClient
+} from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function workspaceCreate() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const accountName = "testaccount";
+ const workspaceName = "testworkspace";
+ const parameters: Workspace = {
+ friendlyName: "testName",
+ location: "East US",
+ tags: { tagKey1: "TagValue1" }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.workspaces.createOrUpdate(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ parameters
+ );
+ console.log(result);
+}
+
+workspaceCreate().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceDelete.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceDelete.ts
new file mode 100644
index 000000000000..6693905f4b5f
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceDelete.ts
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Deletes a machine learning workspace.
+ *
+ * @summary Deletes a machine learning workspace.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceDelete.json
+ */
+import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function workspaceDelete() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const resourceGroupName = "myResourceGroup";
+ const accountName = "myAccount";
+ const workspaceName = "testworkspace";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.workspaces.delete(
+ resourceGroupName,
+ accountName,
+ workspaceName
+ );
+ console.log(result);
+}
+
+workspaceDelete().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceGet.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceGet.ts
new file mode 100644
index 000000000000..48513f0864c1
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceGet.ts
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets the properties of the specified machine learning workspace.
+ *
+ * @summary Gets the properties of the specified machine learning workspace.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceGet.json
+ */
+import { MLTeamAccountManagementClient } from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function workspaceGet() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const workspaceName = "testworkspace";
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.workspaces.get(
+ resourceGroupName,
+ accountName,
+ workspaceName
+ );
+ console.log(result);
+}
+
+workspaceGet().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceUpdate.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceUpdate.ts
new file mode 100644
index 000000000000..d08062b42e44
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/src/workspaceUpdate.ts
@@ -0,0 +1,40 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates a machine learning workspace with the specified parameters.
+ *
+ * @summary Updates a machine learning workspace with the specified parameters.
+ * x-ms-original-file: specification/machinelearningexperimentation/resource-manager/Microsoft.MachineLearningExperimentation/preview/2017-05-01-preview/examples/WorkspaceUpdate.json
+ */
+import {
+ WorkspaceUpdateParameters,
+ MLTeamAccountManagementClient
+} from "@azure/arm-machinelearningexperimentation";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function workspaceUpdate() {
+ const subscriptionId = "00000000-1111-2222-3333-444444444444";
+ const resourceGroupName = "accountcrud-1234";
+ const accountName = "accountcrud5678";
+ const workspaceName = "testworkspace";
+ const parameters: WorkspaceUpdateParameters = { friendlyName: "testNameNew" };
+ const credential = new DefaultAzureCredential();
+ const client = new MLTeamAccountManagementClient(credential, subscriptionId);
+ const result = await client.workspaces.update(
+ resourceGroupName,
+ accountName,
+ workspaceName,
+ parameters
+ );
+ console.log(result);
+}
+
+workspaceUpdate().catch(console.error);
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/tsconfig.json b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/tsconfig.json
new file mode 100644
index 000000000000..416c2dd82e00
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/samples/v2-beta/typescript/tsconfig.json
@@ -0,0 +1,17 @@
+{
+ "compilerOptions": {
+ "target": "ES2018",
+ "module": "commonjs",
+ "moduleResolution": "node",
+ "resolveJsonModule": true,
+ "esModuleInterop": true,
+ "allowSyntheticDefaultImports": true,
+ "strict": true,
+ "alwaysStrict": true,
+ "outDir": "dist",
+ "rootDir": "src"
+ },
+ "include": [
+ "src/**.ts"
+ ]
+}
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/index.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/index.ts
new file mode 100644
index 000000000000..cd2233443441
--- /dev/null
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/index.ts
@@ -0,0 +1,12 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+///
+export * from "./models";
+export { MLTeamAccountManagementClient } from "./mLTeamAccountManagementClient";
+export * from "./operationsInterfaces";
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClient.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClient.ts
index 32fbbae3b408..2ea8d9eba06a 100644
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClient.ts
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClient.ts
@@ -1,48 +1,91 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "./models";
-import * as Mappers from "./models/mappers";
-import * as operations from "./operations";
-import { MLTeamAccountManagementClientContext } from "./mLTeamAccountManagementClientContext";
+import * as coreClient from "@azure/core-client";
+import * as coreAuth from "@azure/core-auth";
+import {
+ OperationsImpl,
+ AccountsImpl,
+ WorkspacesImpl,
+ ProjectsImpl
+} from "./operations";
+import {
+ Operations,
+ Accounts,
+ Workspaces,
+ Projects
+} from "./operationsInterfaces";
+import { MLTeamAccountManagementClientOptionalParams } from "./models";
-
-class MLTeamAccountManagementClient extends MLTeamAccountManagementClientContext {
- // Operation groups
- operations: operations.Operations;
- accounts: operations.Accounts;
- workspaces: operations.Workspaces;
- projects: operations.Projects;
+export class MLTeamAccountManagementClient extends coreClient.ServiceClient {
+ $host: string;
+ apiVersion: string;
+ subscriptionId: string;
/**
* Initializes a new instance of the MLTeamAccountManagementClient class.
- * @param credentials Credentials needed for the client to connect to Azure.
+ * @param credentials Subscription credentials which uniquely identify client subscription.
* @param subscriptionId The Microsoft Azure subscription ID.
- * @param [options] The parameter options
+ * @param options The parameter options
*/
- constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MLTeamAccountManagementClientOptions) {
- super(credentials, subscriptionId, options);
- this.operations = new operations.Operations(this);
- this.accounts = new operations.Accounts(this);
- this.workspaces = new operations.Workspaces(this);
- this.projects = new operations.Projects(this);
- }
-}
+ constructor(
+ credentials: coreAuth.TokenCredential,
+ subscriptionId: string,
+ options?: MLTeamAccountManagementClientOptionalParams
+ ) {
+ if (credentials === undefined) {
+ throw new Error("'credentials' cannot be null");
+ }
+ if (subscriptionId === undefined) {
+ throw new Error("'subscriptionId' cannot be null");
+ }
+
+ // Initializing default values for options
+ if (!options) {
+ options = {};
+ }
+ const defaults: MLTeamAccountManagementClientOptionalParams = {
+ requestContentType: "application/json; charset=utf-8",
+ credential: credentials
+ };
-// Operation Specifications
+ const packageDetails = `azsdk-js-arm-machinelearningexperimentation/2.0.0-beta.1`;
+ const userAgentPrefix =
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
+ : `${packageDetails}`;
-export {
- MLTeamAccountManagementClient,
- MLTeamAccountManagementClientContext,
- Models as MLTeamAccountManagementModels,
- Mappers as MLTeamAccountManagementMappers
-};
-export * from "./operations";
+ if (!options.credentialScopes) {
+ options.credentialScopes = ["https://management.azure.com/.default"];
+ }
+ const optionsWithDefaults = {
+ ...defaults,
+ ...options,
+ userAgentOptions: {
+ userAgentPrefix
+ },
+ baseUri: options.endpoint || "https://management.azure.com"
+ };
+ super(optionsWithDefaults);
+ // Parameter assignments
+ this.subscriptionId = subscriptionId;
+
+ // Assigning values to Constant parameters
+ this.$host = options.$host || "https://management.azure.com";
+ this.apiVersion = options.apiVersion || "2017-05-01-preview";
+ this.operations = new OperationsImpl(this);
+ this.accounts = new AccountsImpl(this);
+ this.workspaces = new WorkspacesImpl(this);
+ this.projects = new ProjectsImpl(this);
+ }
+
+ operations: Operations;
+ accounts: Accounts;
+ workspaces: Workspaces;
+ projects: Projects;
+}
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClientContext.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClientContext.ts
deleted file mode 100644
index 8c047305aa14..000000000000
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/mLTeamAccountManagementClientContext.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-import * as Models from "./models";
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-
-const packageName = "@azure/arm-machinelearningexperimentation";
-const packageVersion = "0.1.0";
-
-export class MLTeamAccountManagementClientContext extends msRestAzure.AzureServiceClient {
- credentials: msRest.ServiceClientCredentials;
- subscriptionId: string;
- apiVersion?: string;
-
- /**
- * Initializes a new instance of the MLTeamAccountManagementClient class.
- * @param credentials Credentials needed for the client to connect to Azure.
- * @param subscriptionId The Microsoft Azure subscription ID.
- * @param [options] The parameter options
- */
- constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MLTeamAccountManagementClientOptions) {
- if (credentials == undefined) {
- throw new Error('\'credentials\' cannot be null.');
- }
- if (subscriptionId == undefined) {
- throw new Error('\'subscriptionId\' cannot be null.');
- }
-
- if (!options) {
- options = {};
- }
- if(!options.userAgent) {
- const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
- }
-
- super(credentials, options);
-
- this.apiVersion = '2017-05-01-preview';
- this.acceptLanguage = 'en-US';
- this.longRunningOperationRetryTimeout = 30;
- this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
- this.requestContentType = "application/json; charset=utf-8";
- this.credentials = credentials;
- this.subscriptionId = subscriptionId;
-
- if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
- this.acceptLanguage = options.acceptLanguage;
- }
- if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
- this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
- }
- }
-}
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/accountsMappers.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/accountsMappers.ts
deleted file mode 100644
index 97b5ff301b81..000000000000
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/accountsMappers.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- Account,
- Resource,
- BaseResource,
- StorageAccountProperties,
- ErrorResponse,
- AccountUpdateParameters,
- AccountListResult,
- Workspace,
- Project
-} from "../models/mappers";
-
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/index.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/index.ts
index 49624c045245..bf7cd788c17d 100644
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/index.ts
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/index.ts
@@ -1,809 +1,389 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export { BaseResource, CloudError };
+/** An array of operations supported by the resource provider. */
+export interface OperationListResult {
+ /** List of AML team account operations supported by the AML team account resource provider. */
+ value?: Operation[];
+}
+/** Azure Machine Learning team account REST API operation */
+export interface Operation {
+ /** Operation name: {provider}/{resource}/{operation} */
+ name?: string;
+ /** Display name of operation */
+ display?: OperationDisplay;
+}
-/**
- * @interface
- * An interface representing Resource.
- * An Azure resource.
- *
- * @extends BaseResource
- */
-export interface Resource extends BaseResource {
+/** Display name of operation */
+export interface OperationDisplay {
+ /** The resource provider name: Microsoft.MachineLearningExperimentation */
+ provider?: string;
+ /** The resource on which the operation is performed. */
+ resource?: string;
+ /** The operation that users can perform. */
+ operation?: string;
+ /** The description for the operation. */
+ description?: string;
+}
+
+/** The error response send when an operation fails. */
+export interface ErrorResponse {
+ /** error code */
+ code: string;
+ /** error message */
+ message: string;
+}
+
+/** The properties of a storage account for a machine learning team account. */
+export interface StorageAccountProperties {
+ /** The fully qualified arm Id of the storage account. */
+ storageAccountId: string;
+ /** The access key to the storage account. */
+ accessKey: string;
+}
+
+/** An Azure resource. */
+export interface Resource {
/**
- * @member {string} [id] The resource ID.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * The resource ID.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
- * @member {string} [name] The name of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * The name of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
- * @member {string} [type] The type of the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * The type of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
- /**
- * @member {string} location The location of the resource. This cannot be
- * changed after the resource is created.
- */
+ /** The location of the resource. This cannot be changed after the resource is created. */
location: string;
- /**
- * @member {{ [propertyName: string]: string }} [tags] The tags of the
- * resource.
- */
+ /** The tags of the resource. */
tags?: { [propertyName: string]: string };
}
-/**
- * @interface
- * An interface representing Workspace.
- * An object that represents a machine learning team account workspace.
- *
- * @extends Resource
- */
-export interface Workspace extends Resource {
- /**
- * @member {string} [description] The description of this workspace.
- */
+/** The parameters for updating a machine learning team account. */
+export interface AccountUpdateParameters {
+ /** The resource tags for the machine learning team account. */
+ tags?: { [propertyName: string]: string };
+ /** The description of this workspace. */
description?: string;
- /**
- * @member {string} [accountId] The immutable id of the team account which
- * contains this workspace.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly accountId?: string;
- /**
- * @member {string} [workspaceId] The immutable id of this workspace.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly workspaceId?: string;
- /**
- * @member {string} friendlyName The friendly name for this workspace. This
- * will be the workspace name in the arm id when the workspace object gets
- * created
- */
- friendlyName: string;
- /**
- * @member {Date} [creationDate] The creation date of the machine learning
- * workspace in ISO8601 format.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly creationDate?: Date;
- /**
- * @member {ProvisioningState} [provisioningState] The current deployment
- * state of team account workspace resource. The provisioningState is to
- * indicate states for resource provisioning. Possible values include:
- * 'Creating', 'Succeeded', 'Updating', 'Deleting', 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly provisioningState?: ProvisioningState;
+ /** The friendly name for this workspace. This will be the workspace name in the arm id when the workspace object gets created */
+ friendlyName?: string;
+ /** The no of users/seats who can access this team account. This property defines the charge on the team account. */
+ seats?: string;
+ /** The key for storage account associated with this team account */
+ storageAccountKey?: string;
}
-/**
- * @interface
- * An interface representing WorkspaceUpdateParameters.
- * The parameters for updating a machine learning team account workspace.
- *
- */
+/** The result of a request to list machine learning team accounts. */
+export interface AccountListResult {
+ /** The list of machine learning team accounts. Since this list may be incomplete, the nextLink field should be used to request the next list of machine learning team accounts. */
+ value?: Account[];
+ /** The URI that can be used to request the next list of machine learning team accounts. */
+ nextLink?: string;
+}
+
+/** The parameters for updating a machine learning team account workspace. */
export interface WorkspaceUpdateParameters {
- /**
- * @member {{ [propertyName: string]: string }} [tags] The resource tags for
- * the machine learning team account workspace.
- */
+ /** The resource tags for the machine learning team account workspace. */
tags?: { [propertyName: string]: string };
- /**
- * @member {string} [friendlyName] Friendly name of this workspace.
- */
+ /** Friendly name of this workspace. */
friendlyName?: string;
- /**
- * @member {string} [description] Description for this workspace.
- */
+ /** Description for this workspace. */
description?: string;
}
-/**
- * @interface
- * An interface representing Project.
- * An object that represents a machine learning project.
- *
- * @extends Resource
- */
-export interface Project extends Resource {
- /**
- * @member {string} [description] The description of this project.
- */
- description?: string;
- /**
- * @member {string} [accountId] The immutable id of the team account which
- * contains this project.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly accountId?: string;
- /**
- * @member {string} [workspaceId] The immutable id of the workspace which
- * contains this project.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly workspaceId?: string;
- /**
- * @member {string} [projectId] The immutable id of this project.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly projectId?: string;
- /**
- * @member {string} [gitrepo] The reference to git repo for this project.
- */
- gitrepo?: string;
- /**
- * @member {string} friendlyName The friendly name for this project.
- */
- friendlyName: string;
- /**
- * @member {Date} [creationDate] The creation date of the project in ISO8601
- * format.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly creationDate?: Date;
- /**
- * @member {ProvisioningState} [provisioningState] The current deployment
- * state of project resource. The provisioningState is to indicate states for
- * resource provisioning. Possible values include: 'Creating', 'Succeeded',
- * 'Updating', 'Deleting', 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly provisioningState?: ProvisioningState;
+/** The result of a request to list machine learning team account workspaces. */
+export interface WorkspaceListResult {
+ /** The list of machine learning team account workspaces. Since this list may be incomplete, the nextLink field should be used to request the next list of machine learning team accounts. */
+ value?: Workspace[];
+ /** The URI that can be used to request the next list of machine learning workspaces. */
+ nextLink?: string;
}
-/**
- * @interface
- * An interface representing ProjectUpdateParameters.
- * The parameters for updating a machine learning project.
- *
- */
+/** The parameters for updating a machine learning project. */
export interface ProjectUpdateParameters {
- /**
- * @member {{ [propertyName: string]: string }} [tags] The resource tags for
- * the machine learning project.
- */
+ /** The resource tags for the machine learning project. */
tags?: { [propertyName: string]: string };
- /**
- * @member {string} [friendlyName] The friendly name for this project.
- */
+ /** The friendly name for this project. */
friendlyName?: string;
- /**
- * @member {string} [description] The description of this project.
- */
+ /** The description of this project. */
description?: string;
- /**
- * @member {string} [gitrepo] The reference to git repo for this project.
- */
+ /** The reference to git repo for this project. */
gitrepo?: string;
}
-/**
- * @interface
- * An interface representing ErrorResponse.
- * The error response send when an operation fails.
- *
- */
-export interface ErrorResponse {
- /**
- * @member {string} code error code
- */
- code: string;
- /**
- * @member {string} message error message
- */
- message: string;
-}
-
-/**
- * @interface
- * An interface representing StorageAccountProperties.
- * The properties of a storage account for a machine learning team account.
- *
- */
-export interface StorageAccountProperties {
- /**
- * @member {string} storageAccountId The fully qualified arm Id of the
- * storage account.
- */
- storageAccountId: string;
- /**
- * @member {string} accessKey The access key to the storage account.
- */
- accessKey: string;
+/** The result of a request to list projects. */
+export interface ProjectListResult {
+ /** The list of projects. Since this list may be incomplete, the nextLink field should be used to request the next list of projects. */
+ value?: Project[];
+ /** The URI that can be used to request the next list of projects. */
+ nextLink?: string;
}
-/**
- * @interface
- * An interface representing Account.
- * An object that represents a machine learning team account.
- *
- * @extends Resource
- */
-export interface Account extends Resource {
+/** An object that represents a machine learning team account. */
+export type Account = Resource & {
+ /** The fully qualified arm id of the vso account to be used for this team account. */
+ vsoAccountId?: string;
/**
- * @member {string} vsoAccountId The fully qualified arm id of the vso
- * account to be used for this team account.
- */
- vsoAccountId: string;
- /**
- * @member {string} [accountId] The immutable id associated with this team
- * account.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * The immutable id associated with this team account.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly accountId?: string;
- /**
- * @member {string} [description] The description of this workspace.
- */
+ /** The description of this workspace. */
description?: string;
- /**
- * @member {string} [friendlyName] The friendly name for this workspace. This
- * will be the workspace name in the arm id when the workspace object gets
- * created
- */
+ /** The friendly name for this workspace. This will be the workspace name in the arm id when the workspace object gets created */
friendlyName?: string;
- /**
- * @member {string} keyVaultId The fully qualified arm id of the user key
- * vault.
- */
- keyVaultId: string;
- /**
- * @member {string} [seats] The no of users/seats who can access this team
- * account. This property defines the charge on the team account.
- */
+ /** The fully qualified arm id of the user key vault. */
+ keyVaultId?: string;
+ /** The no of users/seats who can access this team account. This property defines the charge on the team account. */
seats?: string;
/**
- * @member {string} [discoveryUri] The uri for this machine learning team
- * account.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * The uri for this machine learning team account.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly discoveryUri?: string;
/**
- * @member {Date} [creationDate] The creation date of the machine learning
- * team account in ISO8601 format.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * The creation date of the machine learning team account in ISO8601 format.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly creationDate?: Date;
+ /** The properties of the storage account for the machine learning team account. */
+ storageAccount?: StorageAccountProperties;
/**
- * @member {StorageAccountProperties} storageAccount The properties of the
- * storage account for the machine learning team account.
- */
- storageAccount: StorageAccountProperties;
- /**
- * @member {ProvisioningState} [provisioningState] The current deployment
- * state of team account resource. The provisioningState is to indicate
- * states for resource provisioning. Possible values include: 'Creating',
- * 'Succeeded', 'Updating', 'Deleting', 'Failed'
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
+ * The current deployment state of team account resource. The provisioningState is to indicate states for resource provisioning.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: ProvisioningState;
-}
+};
-/**
- * @interface
- * An interface representing AccountUpdateParameters.
- * The parameters for updating a machine learning team account.
- *
- */
-export interface AccountUpdateParameters {
- /**
- * @member {{ [propertyName: string]: string }} [tags] The resource tags for
- * the machine learning team account.
- */
- tags?: { [propertyName: string]: string };
+/** An object that represents a machine learning team account workspace. */
+export type Workspace = Resource & {
+ /** The description of this workspace. */
+ description?: string;
/**
- * @member {string} [description] The description of this workspace.
+ * The immutable id of the team account which contains this workspace.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- description?: string;
+ readonly accountId?: string;
/**
- * @member {string} [friendlyName] The friendly name for this workspace. This
- * will be the workspace name in the arm id when the workspace object gets
- * created
+ * The immutable id of this workspace.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
+ readonly workspaceId?: string;
+ /** The friendly name for this workspace. This will be the workspace name in the arm id when the workspace object gets created */
friendlyName?: string;
/**
- * @member {string} [seats] The no of users/seats who can access this team
- * account. This property defines the charge on the team account.
+ * The creation date of the machine learning workspace in ISO8601 format.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- seats?: string;
+ readonly creationDate?: Date;
/**
- * @member {string} [storageAccountKey] The key for storage account
- * associated with this team account
+ * The current deployment state of team account workspace resource. The provisioningState is to indicate states for resource provisioning.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- storageAccountKey?: string;
-}
+ readonly provisioningState?: ProvisioningState;
+};
-/**
- * @interface
- * An interface representing OperationDisplay.
- * Display name of operation
- *
- */
-export interface OperationDisplay {
- /**
- * @member {string} [provider] The resource provider name:
- * Microsoft.MachineLearningExperimentation
- */
- provider?: string;
+/** An object that represents a machine learning project. */
+export type Project = Resource & {
+ /** The description of this project. */
+ description?: string;
/**
- * @member {string} [resource] The resource on which the operation is
- * performed.
+ * The immutable id of the team account which contains this project.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- resource?: string;
+ readonly accountId?: string;
/**
- * @member {string} [operation] The operation that users can perform.
+ * The immutable id of the workspace which contains this project.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- operation?: string;
+ readonly workspaceId?: string;
/**
- * @member {string} [description] The description for the operation.
+ * The immutable id of this project.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- description?: string;
-}
-
-/**
- * @interface
- * An interface representing Operation.
- * Azure Machine Learning team account REST API operation
- *
- */
-export interface Operation {
+ readonly projectId?: string;
+ /** The reference to git repo for this project. */
+ gitrepo?: string;
+ /** The friendly name for this project. */
+ friendlyName?: string;
/**
- * @member {string} [name] Operation name: {provider}/{resource}/{operation}
+ * The creation date of the project in ISO8601 format.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- name?: string;
+ readonly creationDate?: Date;
/**
- * @member {OperationDisplay} [display] Display name of operation
+ * The current deployment state of project resource. The provisioningState is to indicate states for resource provisioning.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- display?: OperationDisplay;
-}
+ readonly provisioningState?: ProvisioningState;
+};
+/** Defines values for ProvisioningState. */
+export type ProvisioningState =
+ | "Creating"
+ | "Succeeded"
+ | "Updating"
+ | "Deleting"
+ | "Failed";
-/**
- * @interface
- * An interface representing MLTeamAccountManagementClientOptions.
- * @extends AzureServiceClientOptions
- */
-export interface MLTeamAccountManagementClientOptions extends AzureServiceClientOptions {
- /**
- * @member {string} [baseUri]
- */
- baseUri?: string;
-}
+/** Optional parameters. */
+export interface OperationsListOptionalParams
+ extends coreClient.OperationOptions {}
+/** Contains response data for the list operation. */
+export type OperationsListResponse = OperationListResult;
-/**
- * @interface
- * An interface representing the OperationListResult.
- * An array of operations supported by the resource provider.
- *
- * @extends Array
- */
-export interface OperationListResult extends Array {
-}
+/** Optional parameters. */
+export interface AccountsGetOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * @interface
- * An interface representing the AccountListResult.
- * The result of a request to list machine learning team accounts.
- *
- * @extends Array
- */
-export interface AccountListResult extends Array {
- /**
- * @member {string} [nextLink] The URI that can be used to request the next
- * list of machine learning team accounts.
- */
- nextLink?: string;
-}
+/** Contains response data for the get operation. */
+export type AccountsGetResponse = Account;
-/**
- * @interface
- * An interface representing the WorkspaceListResult.
- * The result of a request to list machine learning team account workspaces.
- *
- * @extends Array
- */
-export interface WorkspaceListResult extends Array {
- /**
- * @member {string} [nextLink] The URI that can be used to request the next
- * list of machine learning workspaces.
- */
- nextLink?: string;
-}
+/** Optional parameters. */
+export interface AccountsCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * @interface
- * An interface representing the ProjectListResult.
- * The result of a request to list projects.
- *
- * @extends Array
- */
-export interface ProjectListResult extends Array {
- /**
- * @member {string} [nextLink] The URI that can be used to request the next
- * list of projects.
- */
- nextLink?: string;
-}
+/** Contains response data for the createOrUpdate operation. */
+export type AccountsCreateOrUpdateResponse = Account;
-/**
- * Defines values for ProvisioningState.
- * Possible values include: 'Creating', 'Succeeded', 'Updating', 'Deleting', 'Failed'
- * @readonly
- * @enum {string}
- */
-export type ProvisioningState = 'Creating' | 'Succeeded' | 'Updating' | 'Deleting' | 'Failed';
+/** Optional parameters. */
+export interface AccountsDeleteOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the list operation.
- */
-export type OperationsListResponse = OperationListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationListResult;
- };
-};
+/** Optional parameters. */
+export interface AccountsUpdateOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the get operation.
- */
-export type AccountsGetResponse = Account & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Account;
- };
-};
+/** Contains response data for the update operation. */
+export type AccountsUpdateResponse = Account;
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type AccountsCreateOrUpdateResponse = Account & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Account;
- };
-};
+/** Optional parameters. */
+export interface AccountsListByResourceGroupOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the update operation.
- */
-export type AccountsUpdateResponse = Account & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Account;
- };
-};
+/** Contains response data for the listByResourceGroup operation. */
+export type AccountsListByResourceGroupResponse = AccountListResult;
-/**
- * Contains response data for the listByResourceGroup operation.
- */
-export type AccountsListByResourceGroupResponse = AccountListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AccountListResult;
- };
-};
+/** Optional parameters. */
+export interface AccountsListOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the list operation.
- */
-export type AccountsListResponse = AccountListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AccountListResult;
- };
-};
+/** Contains response data for the list operation. */
+export type AccountsListResponse = AccountListResult;
-/**
- * Contains response data for the listByResourceGroupNext operation.
- */
-export type AccountsListByResourceGroupNextResponse = AccountListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AccountListResult;
- };
-};
+/** Optional parameters. */
+export interface AccountsListByResourceGroupNextOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listNext operation.
- */
-export type AccountsListNextResponse = AccountListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AccountListResult;
- };
-};
+/** Contains response data for the listByResourceGroupNext operation. */
+export type AccountsListByResourceGroupNextResponse = AccountListResult;
-/**
- * Contains response data for the get operation.
- */
-export type WorkspacesGetResponse = Workspace & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Workspace;
- };
-};
+/** Optional parameters. */
+export interface AccountsListNextOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type WorkspacesCreateOrUpdateResponse = Workspace & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Workspace;
- };
-};
+/** Contains response data for the listNext operation. */
+export type AccountsListNextResponse = AccountListResult;
-/**
- * Contains response data for the update operation.
- */
-export type WorkspacesUpdateResponse = Workspace & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Workspace;
- };
-};
+/** Optional parameters. */
+export interface WorkspacesGetOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listByAccounts operation.
- */
-export type WorkspacesListByAccountsResponse = WorkspaceListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: WorkspaceListResult;
- };
-};
+/** Contains response data for the get operation. */
+export type WorkspacesGetResponse = Workspace;
-/**
- * Contains response data for the listByAccountsNext operation.
- */
-export type WorkspacesListByAccountsNextResponse = WorkspaceListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: WorkspaceListResult;
- };
-};
+/** Optional parameters. */
+export interface WorkspacesCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the get operation.
- */
-export type ProjectsGetResponse = Project & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Project;
- };
-};
+/** Contains response data for the createOrUpdate operation. */
+export type WorkspacesCreateOrUpdateResponse = Workspace;
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type ProjectsCreateOrUpdateResponse = Project & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Project;
- };
-};
+/** Optional parameters. */
+export interface WorkspacesDeleteOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the update operation.
- */
-export type ProjectsUpdateResponse = Project & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Project;
- };
-};
+/** Optional parameters. */
+export interface WorkspacesUpdateOptionalParams
+ extends coreClient.OperationOptions {}
-/**
- * Contains response data for the listByWorkspace operation.
- */
-export type ProjectsListByWorkspaceResponse = ProjectListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ProjectListResult;
- };
-};
+/** Contains response data for the update operation. */
+export type WorkspacesUpdateResponse = Workspace;
-/**
- * Contains response data for the listByWorkspaceNext operation.
- */
-export type ProjectsListByWorkspaceNextResponse = ProjectListResult & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ProjectListResult;
- };
-};
+/** Optional parameters. */
+export interface WorkspacesListByAccountsOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByAccounts operation. */
+export type WorkspacesListByAccountsResponse = WorkspaceListResult;
+
+/** Optional parameters. */
+export interface WorkspacesListByAccountsNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByAccountsNext operation. */
+export type WorkspacesListByAccountsNextResponse = WorkspaceListResult;
+
+/** Optional parameters. */
+export interface ProjectsGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type ProjectsGetResponse = Project;
+
+/** Optional parameters. */
+export interface ProjectsCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the createOrUpdate operation. */
+export type ProjectsCreateOrUpdateResponse = Project;
+
+/** Optional parameters. */
+export interface ProjectsDeleteOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Optional parameters. */
+export interface ProjectsUpdateOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the update operation. */
+export type ProjectsUpdateResponse = Project;
+
+/** Optional parameters. */
+export interface ProjectsListByWorkspaceOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByWorkspace operation. */
+export type ProjectsListByWorkspaceResponse = ProjectListResult;
+
+/** Optional parameters. */
+export interface ProjectsListByWorkspaceNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listByWorkspaceNext operation. */
+export type ProjectsListByWorkspaceNextResponse = ProjectListResult;
+
+/** Optional parameters. */
+export interface MLTeamAccountManagementClientOptionalParams
+ extends coreClient.ServiceClientOptions {
+ /** server parameter */
+ $host?: string;
+ /** Api Version */
+ apiVersion?: string;
+ /** Overrides client endpoint. */
+ endpoint?: string;
+}
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/mappers.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/mappers.ts
index e52a5deaf6b0..02df9916f3f3 100644
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/mappers.ts
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/mappers.ts
@@ -1,152 +1,127 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export const CloudError = CloudErrorMapper;
-export const BaseResource = BaseResourceMapper;
-
-export const Resource: msRest.CompositeMapper = {
- serializedName: "Resource",
+export const OperationListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Resource",
+ className: "OperationListResult",
modelProperties: {
- id: {
- readOnly: true,
- serializedName: "id",
+ value: {
+ serializedName: "value",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Operation"
+ }
+ }
}
- },
+ }
+ }
+ }
+};
+
+export const Operation: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "Operation",
+ modelProperties: {
name: {
- readOnly: true,
serializedName: "name",
type: {
name: "String"
}
},
- type: {
- readOnly: true,
- serializedName: "type",
- type: {
- name: "String"
- }
- },
- location: {
- required: true,
- serializedName: "location",
- type: {
- name: "String"
- }
- },
- tags: {
- serializedName: "tags",
+ display: {
+ serializedName: "display",
type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
+ name: "Composite",
+ className: "OperationDisplay"
}
}
}
}
};
-export const Workspace: msRest.CompositeMapper = {
- serializedName: "Workspace",
+export const OperationDisplay: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Workspace",
+ className: "OperationDisplay",
modelProperties: {
- ...Resource.type.modelProperties,
- description: {
- serializedName: "properties.description",
+ provider: {
+ serializedName: "provider",
type: {
name: "String"
}
},
- accountId: {
- readOnly: true,
- serializedName: "properties.accountId",
+ resource: {
+ serializedName: "resource",
type: {
name: "String"
}
},
- workspaceId: {
- readOnly: true,
- serializedName: "properties.workspaceId",
+ operation: {
+ serializedName: "operation",
type: {
name: "String"
}
},
- friendlyName: {
- required: true,
- serializedName: "properties.friendlyName",
+ description: {
+ serializedName: "description",
type: {
name: "String"
}
- },
- creationDate: {
- readOnly: true,
- serializedName: "properties.creationDate",
+ }
+ }
+ }
+};
+
+export const ErrorResponse: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ErrorResponse",
+ modelProperties: {
+ code: {
+ serializedName: "code",
+ required: true,
type: {
- name: "DateTime"
+ name: "String"
}
},
- provisioningState: {
- readOnly: true,
- serializedName: "properties.provisioningState",
+ message: {
+ serializedName: "message",
+ required: true,
type: {
- name: "Enum",
- allowedValues: [
- "Creating",
- "Succeeded",
- "Updating",
- "Deleting",
- "Failed"
- ]
+ name: "String"
}
}
}
}
};
-export const WorkspaceUpdateParameters: msRest.CompositeMapper = {
- serializedName: "WorkspaceUpdateParameters",
+export const StorageAccountProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "WorkspaceUpdateParameters",
+ className: "StorageAccountProperties",
modelProperties: {
- tags: {
- serializedName: "tags",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- },
- friendlyName: {
- serializedName: "properties.friendlyName",
+ storageAccountId: {
+ serializedName: "storageAccountId",
+ required: true,
type: {
name: "String"
}
},
- description: {
- serializedName: "properties.description",
+ accessKey: {
+ serializedName: "accessKey",
+ required: true,
type: {
name: "String"
}
@@ -155,95 +130,129 @@ export const WorkspaceUpdateParameters: msRest.CompositeMapper = {
}
};
-export const Project: msRest.CompositeMapper = {
- serializedName: "Project",
+export const Resource: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Project",
+ className: "Resource",
modelProperties: {
- ...Resource.type.modelProperties,
- description: {
- serializedName: "properties.description",
+ id: {
+ serializedName: "id",
+ readOnly: true,
type: {
name: "String"
}
},
- accountId: {
+ name: {
+ serializedName: "name",
readOnly: true,
- serializedName: "properties.accountId",
type: {
name: "String"
}
},
- workspaceId: {
+ type: {
+ serializedName: "type",
readOnly: true,
- serializedName: "properties.workspaceId",
type: {
name: "String"
}
},
- projectId: {
- readOnly: true,
- serializedName: "properties.projectId",
+ location: {
+ serializedName: "location",
+ required: true,
type: {
name: "String"
}
},
- gitrepo: {
- serializedName: "properties.gitrepo",
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ }
+ }
+ }
+};
+
+export const AccountUpdateParameters: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "AccountUpdateParameters",
+ modelProperties: {
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ },
+ description: {
+ serializedName: "properties.description",
type: {
name: "String"
}
},
friendlyName: {
- required: true,
serializedName: "properties.friendlyName",
type: {
name: "String"
}
},
- creationDate: {
- readOnly: true,
- serializedName: "properties.creationDate",
+ seats: {
+ serializedName: "properties.seats",
type: {
- name: "DateTime"
+ name: "String"
}
},
- provisioningState: {
- readOnly: true,
- serializedName: "properties.provisioningState",
+ storageAccountKey: {
+ serializedName: "properties.storageAccountKey",
type: {
- name: "Enum",
- allowedValues: [
- "Creating",
- "Succeeded",
- "Updating",
- "Deleting",
- "Failed"
- ]
+ name: "String"
}
}
}
}
};
-export const ProjectUpdateParameters: msRest.CompositeMapper = {
- serializedName: "ProjectUpdateParameters",
+export const AccountListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ProjectUpdateParameters",
+ className: "AccountListResult",
modelProperties: {
- tags: {
- serializedName: "tags",
+ value: {
+ serializedName: "value",
type: {
- name: "Dictionary",
- value: {
+ name: "Sequence",
+ element: {
type: {
- name: "String"
+ name: "Composite",
+ className: "Account"
}
}
}
},
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const WorkspaceUpdateParameters: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "WorkspaceUpdateParameters",
+ modelProperties: {
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ },
friendlyName: {
serializedName: "properties.friendlyName",
type: {
@@ -255,9 +264,30 @@ export const ProjectUpdateParameters: msRest.CompositeMapper = {
type: {
name: "String"
}
+ }
+ }
+ }
+};
+
+export const WorkspaceListResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "WorkspaceListResult",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Workspace"
+ }
+ }
+ }
},
- gitrepo: {
- serializedName: "properties.gitrepo",
+ nextLink: {
+ serializedName: "nextLink",
type: {
name: "String"
}
@@ -266,22 +296,32 @@ export const ProjectUpdateParameters: msRest.CompositeMapper = {
}
};
-export const ErrorResponse: msRest.CompositeMapper = {
- serializedName: "ErrorResponse",
+export const ProjectUpdateParameters: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ErrorResponse",
+ className: "ProjectUpdateParameters",
modelProperties: {
- code: {
- required: true,
- serializedName: "code",
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: { type: { name: "String" } }
+ }
+ },
+ friendlyName: {
+ serializedName: "properties.friendlyName",
type: {
name: "String"
}
},
- message: {
- required: true,
- serializedName: "message",
+ description: {
+ serializedName: "properties.description",
+ type: {
+ name: "String"
+ }
+ },
+ gitrepo: {
+ serializedName: "properties.gitrepo",
type: {
name: "String"
}
@@ -290,22 +330,25 @@ export const ErrorResponse: msRest.CompositeMapper = {
}
};
-export const StorageAccountProperties: msRest.CompositeMapper = {
- serializedName: "StorageAccountProperties",
+export const ProjectListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "StorageAccountProperties",
+ className: "ProjectListResult",
modelProperties: {
- storageAccountId: {
- required: true,
- serializedName: "storageAccountId",
+ value: {
+ serializedName: "value",
type: {
- name: "String"
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Project"
+ }
+ }
}
},
- accessKey: {
- required: true,
- serializedName: "accessKey",
+ nextLink: {
+ serializedName: "nextLink",
type: {
name: "String"
}
@@ -314,23 +357,21 @@ export const StorageAccountProperties: msRest.CompositeMapper = {
}
};
-export const Account: msRest.CompositeMapper = {
- serializedName: "Account",
+export const Account: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "Account",
modelProperties: {
...Resource.type.modelProperties,
vsoAccountId: {
- required: true,
serializedName: "properties.vsoAccountId",
type: {
name: "String"
}
},
accountId: {
- readOnly: true,
serializedName: "properties.accountId",
+ readOnly: true,
type: {
name: "String"
}
@@ -348,7 +389,6 @@ export const Account: msRest.CompositeMapper = {
}
},
keyVaultId: {
- required: true,
serializedName: "properties.keyVaultId",
type: {
name: "String"
@@ -361,21 +401,20 @@ export const Account: msRest.CompositeMapper = {
}
},
discoveryUri: {
- readOnly: true,
serializedName: "properties.discoveryUri",
+ readOnly: true,
type: {
name: "String"
}
},
creationDate: {
- readOnly: true,
serializedName: "properties.creationDate",
+ readOnly: true,
type: {
name: "DateTime"
}
},
storageAccount: {
- required: true,
serializedName: "properties.storageAccount",
type: {
name: "Composite",
@@ -383,8 +422,8 @@ export const Account: msRest.CompositeMapper = {
}
},
provisioningState: {
- readOnly: true,
serializedName: "properties.provisioningState",
+ readOnly: true,
type: {
name: "Enum",
allowedValues: [
@@ -400,208 +439,127 @@ export const Account: msRest.CompositeMapper = {
}
};
-export const AccountUpdateParameters: msRest.CompositeMapper = {
- serializedName: "AccountUpdateParameters",
+export const Workspace: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "AccountUpdateParameters",
+ className: "Workspace",
modelProperties: {
- tags: {
- serializedName: "tags",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "String"
- }
- }
- }
- },
+ ...Resource.type.modelProperties,
description: {
serializedName: "properties.description",
type: {
name: "String"
}
},
- friendlyName: {
- serializedName: "properties.friendlyName",
- type: {
- name: "String"
- }
- },
- seats: {
- serializedName: "properties.seats",
+ accountId: {
+ serializedName: "properties.accountId",
+ readOnly: true,
type: {
name: "String"
}
},
- storageAccountKey: {
- serializedName: "properties.storageAccountKey",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const OperationDisplay: msRest.CompositeMapper = {
- serializedName: "Operation_display",
- type: {
- name: "Composite",
- className: "OperationDisplay",
- modelProperties: {
- provider: {
- serializedName: "provider",
+ workspaceId: {
+ serializedName: "properties.workspaceId",
+ readOnly: true,
type: {
name: "String"
}
},
- resource: {
- serializedName: "resource",
+ friendlyName: {
+ serializedName: "properties.friendlyName",
type: {
name: "String"
}
},
- operation: {
- serializedName: "operation",
+ creationDate: {
+ serializedName: "properties.creationDate",
+ readOnly: true,
type: {
- name: "String"
+ name: "DateTime"
}
},
- description: {
- serializedName: "description",
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
type: {
- name: "String"
+ name: "Enum",
+ allowedValues: [
+ "Creating",
+ "Succeeded",
+ "Updating",
+ "Deleting",
+ "Failed"
+ ]
}
}
}
}
};
-export const Operation: msRest.CompositeMapper = {
- serializedName: "Operation",
+export const Project: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Operation",
+ className: "Project",
modelProperties: {
- name: {
- serializedName: "name",
+ ...Resource.type.modelProperties,
+ description: {
+ serializedName: "properties.description",
type: {
name: "String"
}
},
- display: {
- serializedName: "display",
- type: {
- name: "Composite",
- className: "OperationDisplay"
- }
- }
- }
- }
-};
-
-export const OperationListResult: msRest.CompositeMapper = {
- serializedName: "OperationListResult",
- type: {
- name: "Composite",
- className: "OperationListResult",
- modelProperties: {
- value: {
- serializedName: "",
+ accountId: {
+ serializedName: "properties.accountId",
+ readOnly: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Operation"
- }
- }
+ name: "String"
}
- }
- }
- }
-};
-
-export const AccountListResult: msRest.CompositeMapper = {
- serializedName: "AccountListResult",
- type: {
- name: "Composite",
- className: "AccountListResult",
- modelProperties: {
- value: {
- serializedName: "",
+ },
+ workspaceId: {
+ serializedName: "properties.workspaceId",
+ readOnly: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Account"
- }
- }
+ name: "String"
}
},
- nextLink: {
- serializedName: "nextLink",
+ projectId: {
+ serializedName: "properties.projectId",
+ readOnly: true,
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const WorkspaceListResult: msRest.CompositeMapper = {
- serializedName: "WorkspaceListResult",
- type: {
- name: "Composite",
- className: "WorkspaceListResult",
- modelProperties: {
- value: {
- serializedName: "",
+ },
+ gitrepo: {
+ serializedName: "properties.gitrepo",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Workspace"
- }
- }
+ name: "String"
}
},
- nextLink: {
- serializedName: "nextLink",
+ friendlyName: {
+ serializedName: "properties.friendlyName",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const ProjectListResult: msRest.CompositeMapper = {
- serializedName: "ProjectListResult",
- type: {
- name: "Composite",
- className: "ProjectListResult",
- modelProperties: {
- value: {
- serializedName: "",
+ },
+ creationDate: {
+ serializedName: "properties.creationDate",
+ readOnly: true,
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Project"
- }
- }
+ name: "DateTime"
}
},
- nextLink: {
- serializedName: "nextLink",
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
type: {
- name: "String"
+ name: "Enum",
+ allowedValues: [
+ "Creating",
+ "Succeeded",
+ "Updating",
+ "Deleting",
+ "Failed"
+ ]
}
}
}
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/operationsMappers.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/operationsMappers.ts
deleted file mode 100644
index 715467ec9522..000000000000
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/operationsMappers.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- OperationListResult,
- Operation,
- OperationDisplay,
- ErrorResponse
-} from "../models/mappers";
-
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/parameters.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/parameters.ts
index 903e905f772f..10b67c5814eb 100644
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/parameters.ts
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/parameters.ts
@@ -1,108 +1,181 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import {
+ OperationParameter,
+ OperationURLParameter,
+ OperationQueryParameter
+} from "@azure/core-client";
+import {
+ Account as AccountMapper,
+ AccountUpdateParameters as AccountUpdateParametersMapper,
+ Workspace as WorkspaceMapper,
+ WorkspaceUpdateParameters as WorkspaceUpdateParametersMapper,
+ Project as ProjectMapper,
+ ProjectUpdateParameters as ProjectUpdateParametersMapper
+} from "../models/mappers";
-export const acceptLanguage: msRest.OperationParameter = {
- parameterPath: "acceptLanguage",
+export const accept: OperationParameter = {
+ parameterPath: "accept",
mapper: {
- serializedName: "accept-language",
- defaultValue: 'en-US',
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Accept",
type: {
name: "String"
}
}
};
-export const accountName: msRest.OperationURLParameter = {
- parameterPath: "accountName",
+
+export const $host: OperationURLParameter = {
+ parameterPath: "$host",
mapper: {
+ serializedName: "$host",
required: true,
- serializedName: "accountName",
- constraints: {
- MaxLength: 50,
- MinLength: 5,
- Pattern: /^[a-zA-Z0-9]*$/
- },
type: {
name: "String"
}
- }
+ },
+ skipEncoding: true
};
-export const apiVersion: msRest.OperationQueryParameter = {
+
+export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
- required: true,
+ defaultValue: "2017-05-01-preview",
+ isConstant: true,
serializedName: "api-version",
type: {
name: "String"
}
}
};
-export const nextPageLink: msRest.OperationURLParameter = {
- parameterPath: "nextPageLink",
+
+export const subscriptionId: OperationURLParameter = {
+ parameterPath: "subscriptionId",
mapper: {
+ serializedName: "subscriptionId",
required: true,
- serializedName: "nextLink",
type: {
name: "String"
}
- },
- skipEncoding: true
+ }
};
-export const projectName: msRest.OperationURLParameter = {
- parameterPath: "projectName",
+
+export const resourceGroupName: OperationURLParameter = {
+ parameterPath: "resourceGroupName",
mapper: {
+ serializedName: "resourceGroupName",
required: true,
- serializedName: "projectName",
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const accountName: OperationURLParameter = {
+ parameterPath: "accountName",
+ mapper: {
constraints: {
+ Pattern: new RegExp("^[a-zA-Z0-9]*$"),
MaxLength: 50,
- MinLength: 5,
- Pattern: /^[a-zA-Z0-9]*$/
+ MinLength: 5
},
+ serializedName: "accountName",
+ required: true,
type: {
name: "String"
}
}
};
-export const resourceGroupName: msRest.OperationURLParameter = {
- parameterPath: "resourceGroupName",
+
+export const contentType: OperationParameter = {
+ parameterPath: ["options", "contentType"],
mapper: {
- required: true,
- serializedName: "resourceGroupName",
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Content-Type",
type: {
name: "String"
}
}
};
-export const subscriptionId: msRest.OperationURLParameter = {
- parameterPath: "subscriptionId",
+
+export const parameters: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: AccountMapper
+};
+
+export const parameters1: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: AccountUpdateParametersMapper
+};
+
+export const nextLink: OperationURLParameter = {
+ parameterPath: "nextLink",
mapper: {
+ serializedName: "nextLink",
required: true,
- serializedName: "subscriptionId",
type: {
name: "String"
}
- }
+ },
+ skipEncoding: true
};
-export const workspaceName: msRest.OperationURLParameter = {
+
+export const workspaceName: OperationURLParameter = {
parameterPath: "workspaceName",
mapper: {
- required: true,
+ constraints: {
+ Pattern: new RegExp("^[a-zA-Z0-9]*$"),
+ MaxLength: 50,
+ MinLength: 5
+ },
serializedName: "workspaceName",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const parameters2: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: WorkspaceMapper
+};
+
+export const parameters3: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: WorkspaceUpdateParametersMapper
+};
+
+export const projectName: OperationURLParameter = {
+ parameterPath: "projectName",
+ mapper: {
constraints: {
+ Pattern: new RegExp("^[a-zA-Z0-9]*$"),
MaxLength: 50,
- MinLength: 5,
- Pattern: /^[a-zA-Z0-9]*$/
+ MinLength: 5
},
+ serializedName: "projectName",
+ required: true,
type: {
name: "String"
}
}
};
+
+export const parameters4: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: ProjectMapper
+};
+
+export const parameters5: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: ProjectUpdateParametersMapper
+};
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/projectsMappers.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/projectsMappers.ts
deleted file mode 100644
index 9dc95e61f9c8..000000000000
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/projectsMappers.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- Project,
- Resource,
- BaseResource,
- ErrorResponse,
- ProjectUpdateParameters,
- ProjectListResult,
- Workspace,
- Account,
- StorageAccountProperties
-} from "../models/mappers";
-
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/workspacesMappers.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/workspacesMappers.ts
deleted file mode 100644
index 1ac9d63211f2..000000000000
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/models/workspacesMappers.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-export {
- Workspace,
- Resource,
- BaseResource,
- ErrorResponse,
- WorkspaceUpdateParameters,
- WorkspaceListResult,
- Project,
- Account,
- StorageAccountProperties
-} from "../models/mappers";
-
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/operations/accounts.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/operations/accounts.ts
index c3d638cab03e..4f5e5116dbf6 100644
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/operations/accounts.ts
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/operations/accounts.ts
@@ -1,307 +1,288 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/accountsMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Accounts } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { MLTeamAccountManagementClientContext } from "../mLTeamAccountManagementClientContext";
+import { MLTeamAccountManagementClient } from "../mLTeamAccountManagementClient";
+import {
+ Account,
+ AccountsListByResourceGroupNextOptionalParams,
+ AccountsListByResourceGroupOptionalParams,
+ AccountsListNextOptionalParams,
+ AccountsListOptionalParams,
+ AccountsGetOptionalParams,
+ AccountsGetResponse,
+ AccountsCreateOrUpdateOptionalParams,
+ AccountsCreateOrUpdateResponse,
+ AccountsDeleteOptionalParams,
+ AccountUpdateParameters,
+ AccountsUpdateOptionalParams,
+ AccountsUpdateResponse,
+ AccountsListByResourceGroupResponse,
+ AccountsListResponse,
+ AccountsListByResourceGroupNextResponse,
+ AccountsListNextResponse
+} from "../models";
-/** Class representing a Accounts. */
-export class Accounts {
- private readonly client: MLTeamAccountManagementClientContext;
+///
+/** Class containing Accounts operations. */
+export class AccountsImpl implements Accounts {
+ private readonly client: MLTeamAccountManagementClient;
/**
- * Create a Accounts.
- * @param {MLTeamAccountManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class Accounts class.
+ * @param client Reference to the service client
*/
- constructor(client: MLTeamAccountManagementClientContext) {
+ constructor(client: MLTeamAccountManagementClient) {
this.client = client;
}
/**
- * Gets the properties of the specified machine learning team account.
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
- * @param accountName The name of the machine learning team account.
- * @param [options] The optional parameters
- * @returns Promise
- */
- get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
- * @param accountName The name of the machine learning team account.
- * @param callback The callback
- */
- get(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
- * @param accountName The name of the machine learning team account.
- * @param options The optional parameters
- * @param callback The callback
+ * Lists all the available machine learning team accounts under the specified resource group.
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
+ * belongs.
+ * @param options The options parameters.
*/
- get(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public listByResourceGroup(
+ resourceGroupName: string,
+ options?: AccountsListByResourceGroupOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
+ }
+ };
+ }
+
+ private async *listByResourceGroupPagingPage(
+ resourceGroupName: string,
+ options?: AccountsListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listByResourceGroup(resourceGroupName, options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listByResourceGroupNext(
resourceGroupName,
- accountName,
+ continuationToken,
options
- },
- getOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listByResourceGroupPagingAll(
+ resourceGroupName: string,
+ options?: AccountsListByResourceGroupOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listByResourceGroupPagingPage(
+ resourceGroupName,
+ options
+ )) {
+ yield* page;
+ }
}
/**
- * Creates or updates a team account with the specified parameters.
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
- * @param accountName The name of the machine learning team account.
- * @param parameters The parameters for creating or updating a machine learning team account.
- * @param [options] The optional parameters
- * @returns Promise
+ * Lists all the available machine learning team accounts under the specified subscription.
+ * @param options The options parameters.
*/
- createOrUpdate(resourceGroupName: string, accountName: string, parameters: Models.Account, options?: msRest.RequestOptionsBase): Promise;
+ public list(
+ options?: AccountsListOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listPagingAll(options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listPagingPage(options);
+ }
+ };
+ }
+
+ private async *listPagingPage(
+ options?: AccountsListOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._list(options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listNext(continuationToken, options);
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listPagingAll(
+ options?: AccountsListOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listPagingPage(options)) {
+ yield* page;
+ }
+ }
+
/**
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
+ * Gets the properties of the specified machine learning team account.
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
+ * belongs.
* @param accountName The name of the machine learning team account.
- * @param parameters The parameters for creating or updating a machine learning team account.
- * @param callback The callback
+ * @param options The options parameters.
*/
- createOrUpdate(resourceGroupName: string, accountName: string, parameters: Models.Account, callback: msRest.ServiceCallback): void;
+ get(
+ resourceGroupName: string,
+ accountName: string,
+ options?: AccountsGetOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { resourceGroupName, accountName, options },
+ getOperationSpec
+ );
+ }
+
/**
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
+ * Creates or updates a team account with the specified parameters.
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
+ * belongs.
* @param accountName The name of the machine learning team account.
* @param parameters The parameters for creating or updating a machine learning team account.
- * @param options The optional parameters
- * @param callback The callback
+ * @param options The options parameters.
*/
- createOrUpdate(resourceGroupName: string, accountName: string, parameters: Models.Account, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- createOrUpdate(resourceGroupName: string, accountName: string, parameters: Models.Account, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ createOrUpdate(
+ resourceGroupName: string,
+ accountName: string,
+ parameters: Account,
+ options?: AccountsCreateOrUpdateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- parameters,
- options
- },
- createOrUpdateOperationSpec,
- callback) as Promise;
+ { resourceGroupName, accountName, parameters, options },
+ createOrUpdateOperationSpec
+ );
}
/**
* Deletes a machine learning team account.
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
+ * belongs.
* @param accountName The name of the machine learning team account.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
- * @param accountName The name of the machine learning team account.
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
- * @param accountName The name of the machine learning team account.
- * @param options The optional parameters
- * @param callback The callback
- */
- deleteMethod(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ delete(
+ resourceGroupName: string,
+ accountName: string,
+ options?: AccountsDeleteOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- options
- },
- deleteMethodOperationSpec,
- callback);
+ { resourceGroupName, accountName, options },
+ deleteOperationSpec
+ );
}
/**
* Updates a machine learning team account with the specified parameters.
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
+ * belongs.
* @param accountName The name of the machine learning team account.
* @param parameters The parameters for updating a machine learning team account.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- update(resourceGroupName: string, accountName: string, parameters: Models.AccountUpdateParameters, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
- * @param accountName The name of the machine learning team account.
- * @param parameters The parameters for updating a machine learning team account.
- * @param callback The callback
- */
- update(resourceGroupName: string, accountName: string, parameters: Models.AccountUpdateParameters, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
- * @param accountName The name of the machine learning team account.
- * @param parameters The parameters for updating a machine learning team account.
- * @param options The optional parameters
- * @param callback The callback
- */
- update(resourceGroupName: string, accountName: string, parameters: Models.AccountUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- update(resourceGroupName: string, accountName: string, parameters: Models.AccountUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ update(
+ resourceGroupName: string,
+ accountName: string,
+ parameters: AccountUpdateParameters,
+ options?: AccountsUpdateOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- accountName,
- parameters,
- options
- },
- updateOperationSpec,
- callback) as Promise;
+ { resourceGroupName, accountName, parameters, options },
+ updateOperationSpec
+ );
}
/**
* Lists all the available machine learning team accounts under the specified resource group.
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
- * @param callback The callback
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
+ * belongs.
+ * @param options The options parameters.
*/
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param resourceGroupName The name of the resource group to which the machine learning team
- * account belongs.
- * @param options The optional parameters
- * @param callback The callback
- */
- listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listByResourceGroup(
+ resourceGroupName: string,
+ options?: AccountsListByResourceGroupOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- resourceGroupName,
- options
- },
- listByResourceGroupOperationSpec,
- callback) as Promise;
+ { resourceGroupName, options },
+ listByResourceGroupOperationSpec
+ );
}
/**
* Lists all the available machine learning team accounts under the specified subscription.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- list(options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param callback The callback
- */
- list(callback: msRest.ServiceCallback): void;
- /**
- * @param options The optional parameters
- * @param callback The callback
- */
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- options
- },
- listOperationSpec,
- callback) as Promise;
+ private _list(
+ options?: AccountsListOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
}
/**
- * Lists all the available machine learning team accounts under the specified resource group.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * ListByResourceGroupNext
+ * @param resourceGroupName The name of the resource group to which the machine learning team account
+ * belongs.
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
+ * @param options The options parameters.
*/
- listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listByResourceGroupNext(
+ resourceGroupName: string,
+ nextLink: string,
+ options?: AccountsListByResourceGroupNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listByResourceGroupNextOperationSpec,
- callback) as Promise;
+ { resourceGroupName, nextLink, options },
+ listByResourceGroupNextOperationSpec
+ );
}
/**
- * Lists all the available machine learning team accounts under the specified subscription.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
- */
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
+ * ListNext
+ * @param nextLink The nextLink from the previous successful call to the List method.
+ * @param options The options parameters.
*/
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listNext(
+ nextLink: string,
+ options?: AccountsListNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listNextOperationSpec,
- callback) as Promise;
+ { nextLink, options },
+ listNextOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const getOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const getOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.resourceGroupName,
- Parameters.accountName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.Account
@@ -310,30 +291,20 @@ const getOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const createOrUpdateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.Account,
- required: true
- }
- },
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const createOrUpdateOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
+ httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.Account
@@ -345,23 +316,22 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const deleteMethodOperationSpec: msRest.OperationSpec = {
- httpMethod: "DELETE",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
+ requestBody: Parameters.parameters,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ headerParameters: [Parameters.accept, Parameters.contentType],
+ mediaType: "json",
+ serializer
+};
+const deleteOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
+ httpMethod: "DELETE",
responses: {
200: {},
204: {},
@@ -369,30 +339,20 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const updateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PATCH",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.accountName
],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "parameters",
- mapper: {
- ...Mappers.AccountUpdateParameters,
- required: true
- }
- },
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const updateOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts/{accountName}",
+ httpMethod: "PATCH",
responses: {
200: {
bodyMapper: Mappers.Account
@@ -401,22 +361,22 @@ const updateOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
- serializer
-};
-
-const listByResourceGroupOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts",
+ requestBody: Parameters.parameters1,
+ queryParameters: [Parameters.apiVersion],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
- Parameters.resourceGroupName
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
+ Parameters.resourceGroupName,
+ Parameters.accountName
],
+ headerParameters: [Parameters.accept, Parameters.contentType],
+ mediaType: "json",
+ serializer
+};
+const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningExperimentation/accounts",
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.AccountListResult
@@ -425,21 +385,19 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listOperationSpec: msRest.OperationSpec = {
+const listOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningExperimentation/accounts",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningExperimentation/accounts",
- urlParameters: [
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.AccountListResult
@@ -448,19 +406,14 @@ const listOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.AccountListResult
@@ -469,19 +422,19 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.nextLink
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.AccountListResult
@@ -490,5 +443,12 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.nextLink
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/operations/index.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/operations/index.ts
index 8506ca94dc75..b00c71f24a60 100644
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/operations/index.ts
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/operations/index.ts
@@ -1,11 +1,9 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export * from "./operations";
diff --git a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/operations/operations.ts b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/operations/operations.ts
index dc476a7e605a..2ad8a7c9a152 100644
--- a/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/operations/operations.ts
+++ b/sdk/machinelearningexperimentation/arm-machinelearningexperimentation/src/operations/operations.ts
@@ -1,67 +1,88 @@
/*
- * Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/operationsMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Operations } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { MLTeamAccountManagementClientContext } from "../mLTeamAccountManagementClientContext";
+import { MLTeamAccountManagementClient } from "../mLTeamAccountManagementClient";
+import {
+ Operation,
+ OperationsListOptionalParams,
+ OperationsListResponse
+} from "../models";
-/** Class representing a Operations. */
-export class Operations {
- private readonly client: MLTeamAccountManagementClientContext;
+///
+/** Class containing Operations operations. */
+export class OperationsImpl implements Operations {
+ private readonly client: MLTeamAccountManagementClient;
/**
- * Create a Operations.
- * @param {MLTeamAccountManagementClientContext} client Reference to the service client.
+ * Initialize a new instance of the class Operations class.
+ * @param client Reference to the service client
*/
- constructor(client: MLTeamAccountManagementClientContext) {
+ constructor(client: MLTeamAccountManagementClient) {
this.client = client;
}
/**
* Lists all of the available Azure Machine Learning Team Accounts REST API operations.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- list(options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param callback The callback
- */
- list(callback: msRest.ServiceCallback): void;
+ public list(
+ options?: OperationsListOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listPagingAll(options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listPagingPage(options);
+ }
+ };
+ }
+
+ private async *listPagingPage(
+ options?: OperationsListOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._list(options);
+ yield result.value || [];
+ }
+
+ private async *listPagingAll(
+ options?: OperationsListOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listPagingPage(options)) {
+ yield* page;
+ }
+ }
+
/**
- * @param options The optional parameters
- * @param callback The callback
+ * Lists all of the available Azure Machine Learning Team Accounts REST API operations.
+ * @param options The options parameters.
*/
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback