From 7d18af8444e39e377e977029c565added62edec0 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 5 Jan 2022 15:22:18 +0000 Subject: [PATCH] CodeGen from PR 17079 in Azure/azure-rest-api-specs Merge 646e16215d050d7c99848294702a15cf31184c3d into 30fca88fa23112e4296322f38610e02da522d390 --- common/config/rush/pnpm-lock.yaml | 131 +- rush.json | 5 + .../arm-machinelearningservices/CHANGELOG.md | 11 + .../{LICENSE.txt => LICENSE} | 4 +- .../arm-machinelearningservices/README.md | 138 +- .../arm-machinelearningservices/_meta.json | 7 + .../api-extractor.json | 18 + .../arm-machinelearningservices/package.json | 94 +- .../review/arm-machinelearningservices.api.md | 1997 +++++++ .../rollup.config.js | 211 +- .../src/azureMachineLearningWorkspaces.ts | 244 +- .../azureMachineLearningWorkspacesContext.ts | 61 - .../{models/operationsMappers.ts => index.ts} | 13 +- .../src/lroImpl.ts | 34 + .../src/models/index.ts | 5035 ++++++++--------- .../models/machineLearningComputeMappers.ts | 71 - .../src/models/mappers.ts | 4599 +++++++++------ .../src/models/notebooksMappers.ts | 16 - .../src/models/parameters.ts | 218 +- .../privateEndpointConnectionsMappers.ts | 60 - .../src/models/privateLinkResourcesMappers.ts | 62 - .../src/models/quotasMappers.ts | 22 - .../src/models/usagesMappers.ts | 15 - .../src/models/virtualMachineSizesMappers.ts | 16 - .../src/models/workspaceConnectionsMappers.ts | 62 - .../src/models/workspaceFeaturesMappers.ts | 16 - .../src/models/workspacesMappers.ts | 66 - .../src/operations/computeOperations.ts | 1159 ++++ .../src/operations/index.ts | 11 +- .../src/operations/machineLearningCompute.ts | 727 --- .../src/operations/notebooks.ts | 84 - .../src/operations/operations.ts | 105 +- .../operations/privateEndpointConnections.ts | 309 +- .../src/operations/privateLinkResources.ts | 93 +- .../src/operations/quotas.ts | 261 +- .../src/operations/usages.ts | 197 +- .../src/operations/virtualMachineSizes.ts | 87 +- .../src/operations/workspaceConnections.ts | 351 +- .../src/operations/workspaceFeatures.ts | 209 +- .../src/operations/workspaceSkus.ts | 142 + .../src/operations/workspaces.ts | 1281 +++-- .../operationsInterfaces/computeOperations.ts | 269 + .../src/operationsInterfaces/index.ts | 19 + .../src/operationsInterfaces/operations.ts | 22 + .../privateEndpointConnections.ts | 78 + .../privateLinkResources.ts | 27 + .../src/operationsInterfaces/quotas.ts | 41 + .../src/operationsInterfaces/usages.ts | 25 + .../virtualMachineSizes.ts | 25 + .../workspaceConnections.ts | 75 + .../operationsInterfaces/workspaceFeatures.ts | 26 + .../src/operationsInterfaces/workspaceSkus.ts | 22 + .../src/operationsInterfaces/workspaces.ts | 271 + .../test/sampleTest.ts | 48 + .../arm-machinelearningservices/tsconfig.json | 6 +- sdk/machinelearningservices/ci.yml | 29 + 56 files changed, 11931 insertions(+), 7294 deletions(-) create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/CHANGELOG.md rename sdk/machinelearningservices/arm-machinelearningservices/{LICENSE.txt => LICENSE} (96%) create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/_meta.json create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/api-extractor.json create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/review/arm-machinelearningservices.api.md delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts rename sdk/machinelearningservices/arm-machinelearningservices/src/{models/operationsMappers.ts => index.ts} (54%) create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/lroImpl.ts delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/usagesMappers.ts delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/virtualMachineSizesMappers.ts delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/computeOperations.ts delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts delete mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceSkus.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/computeOperations.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/index.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/operations.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/privateEndpointConnections.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/privateLinkResources.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/quotas.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/usages.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/virtualMachineSizes.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceConnections.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceFeatures.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceSkus.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaces.ts create mode 100644 sdk/machinelearningservices/arm-machinelearningservices/test/sampleTest.ts create mode 100644 sdk/machinelearningservices/ci.yml diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 694e81b4a476..393c92880fef 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -45,6 +45,7 @@ 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-machinelearningservices': file:./projects/arm-machinelearningservices.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 @@ -226,6 +227,7 @@ 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-machinelearningservices': file:projects/arm-machinelearningservices.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 @@ -6977,7 +6979,7 @@ packages: hasBin: true dev: false - /ts-node/10.4.0_276ff2ad8f60608417677a4691c0f835: + /ts-node/10.4.0_28670484a221c7e896c5d6b821a5cbb7: resolution: {integrity: sha512-g0FlPvvCXSIO1JDF6S232P5jPYqBkRL9qly81ZgAOSU7rwI0stphCgd2kLiCrU9DjQCrJMWEqcNSjQL02s6d8A==} hasBin: true peerDependencies: @@ -7003,11 +7005,11 @@ packages: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 4.2.4 + typescript: 4.4.4 yn: 3.1.1 dev: false - /ts-node/10.4.0_54d7f9b57c83a5c5120be11b085b9de6: + /ts-node/10.4.0_f9f9f28f986ed7ad377c75abc9f416f4: resolution: {integrity: sha512-g0FlPvvCXSIO1JDF6S232P5jPYqBkRL9qly81ZgAOSU7rwI0stphCgd2kLiCrU9DjQCrJMWEqcNSjQL02s6d8A==} hasBin: true peerDependencies: @@ -7033,7 +7035,7 @@ packages: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 4.4.4 + typescript: 4.2.4 yn: 3.1.1 dev: false @@ -7629,7 +7631,7 @@ packages: prettier: 2.5.1 rimraf: 3.0.2 rollup: 1.32.1 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 transitivePeerDependencies: @@ -7857,7 +7859,7 @@ packages: rollup: 1.32.1 sinon: 9.2.4 source-map-support: 0.5.21 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 transitivePeerDependencies: @@ -7908,7 +7910,7 @@ packages: rollup: 1.32.1 sinon: 9.2.4 source-map-support: 0.5.21 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 transitivePeerDependencies: @@ -7965,7 +7967,7 @@ packages: rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 rollup-plugin-terser: 5.3.1_rollup@1.32.1 sinon: 9.2.4 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.14.5 @@ -8728,6 +8730,27 @@ packages: uglify-js: 3.14.5 dev: false + file:projects/arm-machinelearningservices.tgz: + resolution: {integrity: sha512-wEn+LBTzIbAD6tq71h07xaowYIhVkGw0R5Cvh0tE45jkajBPdnbxObk15wa4EOdr5yAi70fW6LabstSwVYVK0w==, tarball: file:projects/arm-machinelearningservices.tgz} + name: '@rush-temp/arm-machinelearningservices' + version: 0.0.0 + dependencies: + '@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 + dev: false + file:projects/arm-managedapplications.tgz: resolution: {integrity: sha512-5kLfrfEy5OIjFS2BfTSnbWRIh5NDMaXjYdA9yWjpD+9Dk2rsI5/ifntBT7zm0klJ9YmrszjI6IjXzZw37FnLzg==, tarball: file:projects/arm-managedapplications.tgz} name: '@rush-temp/arm-managedapplications' @@ -9487,7 +9510,7 @@ packages: rollup: 1.32.1 safe-buffer: 5.2.1 source-map-support: 0.5.21 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 util: 0.12.4 @@ -9982,7 +10005,7 @@ packages: dev: false file:projects/core-amqp.tgz: - resolution: {integrity: sha512-jmyXvDp5FyZIlqp1zATESQp6qO2NqjKSfY5o9ojPsKN/g9WJ45RL4jfy+cD5u8C2t9jSDTsCoL+jbiLptpkDLA==, tarball: file:projects/core-amqp.tgz} + resolution: {integrity: sha512-nAZlMW/WFVSloK1iVzoSJNx9CHjvMl4/kJrnq1s5Okn96/AQX19SYkqfdvmew1Oy3bxfDC2g3n3e1CFLrlSyEg==, tarball: file:projects/core-amqp.tgz} name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: @@ -10025,7 +10048,7 @@ packages: rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 rollup-plugin-terser: 5.3.1_rollup@1.32.1 sinon: 9.2.4 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 url: 0.11.0 @@ -10111,7 +10134,7 @@ packages: rimraf: 3.0.2 rollup: 1.32.1 sinon: 9.2.4 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 util: 0.12.4 @@ -10342,7 +10365,7 @@ packages: shx: 0.3.3 sinon: 9.2.4 tough-cookie: 4.0.0 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 tunnel: 0.0.6 typescript: 4.2.4 @@ -10390,7 +10413,7 @@ packages: prettier: 2.5.1 rimraf: 3.0.2 rollup: 1.32.1 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.14.5 @@ -10657,7 +10680,7 @@ packages: sinon: 9.2.4 snap-shot-it: 7.9.6 source-map-support: 0.5.21 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 universal-user-agent: 6.0.0 @@ -10714,7 +10737,7 @@ packages: rollup-plugin-terser: 5.3.1_rollup@1.32.1 rollup-plugin-visualizer: 4.2.2_rollup@1.32.1 sinon: 9.2.4 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 util: 0.12.4 @@ -10760,7 +10783,7 @@ packages: rollup: 1.32.1 rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 rollup-plugin-visualizer: 4.2.2_rollup@1.32.1 - ts-node: 10.4.0_54d7f9b57c83a5c5120be11b085b9de6 + ts-node: 10.4.0_28670484a221c7e896c5d6b821a5cbb7 tslib: 2.3.1 typescript: 4.4.4 yaml: 1.10.2 @@ -10917,7 +10940,7 @@ packages: rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 rollup-plugin-terser: 5.3.1_rollup@1.32.1 sinon: 9.2.4 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uuid: 8.3.2 @@ -10979,7 +11002,7 @@ packages: rollup-plugin-visualizer: 4.2.2_rollup@1.32.1 sinon: 9.2.4 source-map-support: 0.5.21 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uuid: 8.3.2 @@ -11034,7 +11057,7 @@ packages: prettier: 2.5.1 rimraf: 3.0.2 rollup: 1.32.1 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 util: 0.12.4 @@ -11087,7 +11110,7 @@ packages: prettier: 2.5.1 rimraf: 3.0.2 rollup: 1.32.1 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 util: 0.12.4 @@ -11289,7 +11312,7 @@ packages: rollup-plugin-terser: 5.3.1_rollup@1.32.1 rollup-plugin-visualizer: 4.2.2_rollup@1.32.1 sinon: 9.2.4 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 util: 0.12.4 @@ -11553,7 +11576,7 @@ packages: rimraf: 3.0.2 rollup: 1.32.1 sinon: 9.2.4 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 transitivePeerDependencies: @@ -11702,7 +11725,7 @@ packages: rimraf: 3.0.2 rollup: 1.32.1 sinon: 9.2.4 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 transitivePeerDependencies: @@ -11774,7 +11797,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 transitivePeerDependencies: @@ -11794,7 +11817,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 transitivePeerDependencies: @@ -11814,7 +11837,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 transitivePeerDependencies: @@ -11834,7 +11857,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uuid: 8.3.2 @@ -11873,7 +11896,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 transitivePeerDependencies: @@ -11894,7 +11917,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uuid: 8.3.2 @@ -11917,7 +11940,7 @@ packages: moment: 2.29.1 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uuid: 8.3.2 @@ -11937,7 +11960,7 @@ packages: eslint: 7.32.0 prettier: 1.19.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 transitivePeerDependencies: @@ -11957,7 +11980,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 transitivePeerDependencies: @@ -11978,7 +12001,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uuid: 8.3.2 @@ -12000,7 +12023,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uuid: 8.3.2 @@ -12021,7 +12044,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uuid: 8.3.2 @@ -12041,7 +12064,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 transitivePeerDependencies: @@ -12060,7 +12083,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 transitivePeerDependencies: @@ -12081,7 +12104,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uuid: 8.3.2 @@ -12104,7 +12127,7 @@ packages: node-fetch: 2.6.6 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uuid: 8.3.2 @@ -12125,7 +12148,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uuid: 8.3.2 @@ -12146,7 +12169,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uuid: 8.3.2 @@ -12167,7 +12190,7 @@ packages: eslint: 7.32.0 prettier: 2.5.1 rimraf: 3.0.2 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uuid: 8.3.2 @@ -12539,7 +12562,7 @@ packages: rimraf: 3.0.2 rollup: 1.32.1 sinon: 9.2.4 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 util: 0.12.4 @@ -12608,7 +12631,7 @@ packages: rimraf: 3.0.2 rollup: 1.32.1 sinon: 9.2.4 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 ws: 8.3.0 @@ -12671,7 +12694,7 @@ packages: rollup-plugin-visualizer: 4.2.2_rollup@1.32.1 sinon: 9.2.4 source-map-support: 0.5.21 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 util: 0.12.4 @@ -12734,7 +12757,7 @@ packages: rollup-plugin-terser: 5.3.1_rollup@1.32.1 rollup-plugin-visualizer: 4.2.2_rollup@1.32.1 source-map-support: 0.5.21 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 util: 0.12.4 @@ -12797,7 +12820,7 @@ packages: rollup-plugin-terser: 5.3.1_rollup@1.32.1 rollup-plugin-visualizer: 4.2.2_rollup@1.32.1 source-map-support: 0.5.21 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 util: 0.12.4 @@ -12858,7 +12881,7 @@ packages: rollup-plugin-terser: 5.3.1_rollup@1.32.1 rollup-plugin-visualizer: 4.2.2_rollup@1.32.1 source-map-support: 0.5.21 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 util: 0.12.4 @@ -12916,7 +12939,7 @@ packages: rollup-plugin-terser: 5.3.1_rollup@1.32.1 rollup-plugin-visualizer: 4.2.2_rollup@1.32.1 source-map-support: 0.5.21 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 util: 0.12.4 @@ -12976,7 +12999,7 @@ packages: rollup-plugin-terser: 5.3.1_rollup@1.32.1 rollup-plugin-visualizer: 4.2.2_rollup@1.32.1 source-map-support: 0.5.21 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 util: 0.12.4 @@ -13028,7 +13051,7 @@ packages: rollup: 1.32.1 sinon: 9.2.4 source-map-support: 0.5.21 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.14.5 @@ -13082,7 +13105,7 @@ packages: rollup: 1.32.1 sinon: 9.2.4 source-map-support: 0.5.21 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.14.5 @@ -13135,7 +13158,7 @@ packages: rollup: 1.32.1 sinon: 9.2.4 source-map-support: 0.5.21 - ts-node: 10.4.0_276ff2ad8f60608417677a4691c0f835 + ts-node: 10.4.0_f9f9f28f986ed7ad377c75abc9f416f4 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.14.5 diff --git a/rush.json b/rush.json index 66a9aa13703f..479d94b8aed1 100644 --- a/rush.json +++ b/rush.json @@ -1215,6 +1215,11 @@ "packageName": "@azure/arm-containerinstance", "projectFolder": "sdk/containerinstance/arm-containerinstance", "versionPolicyName": "management" + }, + { + "packageName": "@azure/arm-machinelearningservices", + "projectFolder": "sdk/machinelearningservices/arm-machinelearningservices", + "versionPolicyName": "management" } ] } \ No newline at end of file diff --git a/sdk/machinelearningservices/arm-machinelearningservices/CHANGELOG.md b/sdk/machinelearningservices/arm-machinelearningservices/CHANGELOG.md new file mode 100644 index 000000000000..6ceeec93c6d3 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/CHANGELOG.md @@ -0,0 +1,11 @@ +# Release History + +## 5.0.0 (2022-01-05) + +The package of @azure/arm-machinelearningservices is using our next generation design principles since version 5.0.0, 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/machinelearningservices/arm-machinelearningservices/LICENSE.txt b/sdk/machinelearningservices/arm-machinelearningservices/LICENSE similarity index 96% rename from sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt rename to sdk/machinelearningservices/arm-machinelearningservices/LICENSE index ea8fb1516028..5d1d36e0af80 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt +++ b/sdk/machinelearningservices/arm-machinelearningservices/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +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 @@ -18,4 +18,4 @@ 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. +SOFTWARE. \ No newline at end of file diff --git a/sdk/machinelearningservices/arm-machinelearningservices/README.md b/sdk/machinelearningservices/arm-machinelearningservices/README.md index 095dcfcb22c9..40b351417cc9 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/README.md +++ b/sdk/machinelearningservices/arm-machinelearningservices/README.md @@ -1,98 +1,98 @@ -## Azure AzureMachineLearningWorkspaces SDK for JavaScript +# Azure Service client library for JavaScript -This package contains an isomorphic SDK for AzureMachineLearningWorkspaces. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Service client. + +These APIs allow end users to operate on Azure Machine Learning Workspace resources. + +[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearningservices/arm-machinelearningservices) | +[Package (NPM)](https://www.npmjs.com/package/@azure/arm-machinelearningservices) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-machinelearningservices) | +[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-machinelearningservices` package -### How to Install +Install the Azure Service client library for JavaScript with `npm`: ```bash npm install @azure/arm-machinelearningservices ``` -### How to use +### Create and authenticate a `AzureMachineLearningWorkspaces` -#### nodejs - client creation and list operations as an example written in TypeScript. +To create a client object to access the Azure Service API, you will need the `endpoint` of your Azure Service resource and a `credential`. The Azure Service client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure Service 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 Service** 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 { AzureMachineLearningWorkspaces } = require("@azure/arm-machinelearningservices"); -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new AzureMachineLearningWorkspaces(creds, subscriptionId); - client.operations.list().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 AzureMachineLearningWorkspaces(new DefaultAzureCredential(), subscriptionId); ``` -#### browser - Authentication, client creation and list operations 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 + +### AzureMachineLearningWorkspaces -##### 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-machinelearningservices sample - - - - - - - - +`AzureMachineLearningWorkspaces` is the primary interface for developers using the Azure Service client library. Explore the methods on this client object to understand the different features of the Azure Service 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%2Fmachinelearningservices%2Farm-machinelearningservices%2FREADME.png) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/machinelearningservices/arm-machinelearningservices/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/machinelearningservices/arm-machinelearningservices/_meta.json b/sdk/machinelearningservices/arm-machinelearningservices/_meta.json new file mode 100644 index 000000000000..eb1c074289ee --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/_meta.json @@ -0,0 +1,7 @@ +{ + "commit": "324b3ecf9b5eddd7d3328bbbaa9d4733912f96ba", + "readme": "specification/machinelearningservices/resource-manager/readme.md", + "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1", + "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", + "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1" +} \ No newline at end of file diff --git a/sdk/machinelearningservices/arm-machinelearningservices/api-extractor.json b/sdk/machinelearningservices/arm-machinelearningservices/api-extractor.json new file mode 100644 index 000000000000..0328d0cd02cb --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/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-machinelearningservices.d.ts" + }, + "messages": { + "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "extractorMessageReporting": { + "ae-missing-release-tag": { "logLevel": "none" }, + "ae-unresolved-link": { "logLevel": "none" } + } + } +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/package.json b/sdk/machinelearningservices/arm-machinelearningservices/package.json index 6c9a22e7b32c..f3d553959ace 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/package.json +++ b/sdk/machinelearningservices/arm-machinelearningservices/package.json @@ -1,57 +1,91 @@ { "name": "@azure/arm-machinelearningservices", + "sdk-type": "mgmt", "author": "Microsoft Corporation", - "description": "AzureMachineLearningWorkspaces Library with typescript type definitions for node.js and browser.", - "version": "4.0.0", + "description": "A generated SDK for AzureMachineLearningWorkspaces.", + "version": "5.0.0", + "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-machinelearningservices.js", - "module": "./esm/azureMachineLearningWorkspaces.js", - "types": "./esm/azureMachineLearningWorkspaces.d.ts", + "main": "./dist/index.js", + "module": "./dist-esm/src/index.js", + "types": "./types/arm-machinelearningservices.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/machinelearningservices/arm-machinelearningservices", "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-machinelearningservices.js.map'\" -o ./dist/arm-machinelearningservices.min.js ./dist/arm-machinelearningservices.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 diff --git a/sdk/machinelearningservices/arm-machinelearningservices/review/arm-machinelearningservices.api.md b/sdk/machinelearningservices/arm-machinelearningservices/review/arm-machinelearningservices.api.md new file mode 100644 index 000000000000..f6f7e9d0a749 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/review/arm-machinelearningservices.api.md @@ -0,0 +1,1997 @@ +## API Report File for "@azure/arm-machinelearningservices" + +> 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 type Aks = Compute & { + computeType: "AKS"; + properties?: AKSProperties; +}; + +// @public +export type AksComputeSecrets = ComputeSecrets & AksComputeSecretsProperties & { + computeType: "AKS"; +}; + +// @public +export interface AksComputeSecretsProperties { + adminKubeConfig?: string; + imagePullSecretName?: string; + userKubeConfig?: string; +} + +// @public +export interface AksNetworkingConfiguration { + dnsServiceIP?: string; + dockerBridgeCidr?: string; + serviceCidr?: string; + subnetId?: string; +} + +// @public +export interface AKSProperties { + agentCount?: number; + agentVmSize?: string; + aksNetworkingConfiguration?: AksNetworkingConfiguration; + clusterFqdn?: string; + clusterPurpose?: ClusterPurpose; + loadBalancerSubnet?: string; + loadBalancerType?: LoadBalancerType; + sslConfiguration?: SslConfiguration; + readonly systemServices?: SystemService[]; +} + +// @public +export type AllocationState = string; + +// @public +export type AmlCompute = Compute & { + computeType: "AmlCompute"; + properties?: AmlComputeProperties; +}; + +// @public +export interface AmlComputeNodeInformation { + readonly nodeId?: string; + readonly nodeState?: NodeState; + readonly port?: number; + readonly privateIpAddress?: string; + readonly publicIpAddress?: string; + readonly runId?: string; +} + +// @public +export interface AmlComputeNodesInformation { + readonly nextLink?: string; + readonly nodes?: AmlComputeNodeInformation[]; +} + +// @public +export interface AmlComputeProperties { + readonly allocationState?: AllocationState; + readonly allocationStateTransitionTime?: Date; + readonly currentNodeCount?: number; + enableNodePublicIp?: boolean; + readonly errors?: ErrorResponse[]; + isolatedNetwork?: boolean; + readonly nodeStateCounts?: NodeStateCounts; + osType?: OsType; + remoteLoginPortPublicAccess?: RemoteLoginPortPublicAccess; + scaleSettings?: ScaleSettings; + subnet?: ResourceId; + readonly targetNodeCount?: number; + userAccountCredentials?: UserAccountCredentials; + virtualMachineImage?: VirtualMachineImage; + vmPriority?: VmPriority; + vmSize?: string; +} + +// @public +export interface AmlUserFeature { + description?: string; + displayName?: string; + id?: string; +} + +// @public +export type ApplicationSharingPolicy = string; + +// @public +export interface AssignedUser { + objectId: string; + tenantId: string; +} + +// @public +export interface AutoPauseProperties { + // (undocumented) + delayInMinutes?: number; + // (undocumented) + enabled?: boolean; +} + +// @public +export interface AutoScaleProperties { + // (undocumented) + enabled?: boolean; + // (undocumented) + maxNodeCount?: number; + // (undocumented) + minNodeCount?: number; +} + +// @public (undocumented) +export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { + // (undocumented) + $host: string; + constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMachineLearningWorkspacesOptionalParams); + // (undocumented) + apiVersion: string; + // (undocumented) + computeOperations: ComputeOperations; + // (undocumented) + operations: Operations; + // (undocumented) + privateEndpointConnections: PrivateEndpointConnections; + // (undocumented) + privateLinkResources: PrivateLinkResources; + // (undocumented) + quotas: Quotas; + // (undocumented) + subscriptionId: string; + // (undocumented) + usages: Usages; + // (undocumented) + virtualMachineSizes: VirtualMachineSizes; + // (undocumented) + workspaceConnections: WorkspaceConnections; + // (undocumented) + workspaceFeatures: WorkspaceFeatures; + // (undocumented) + workspaces: Workspaces; + // (undocumented) + workspaceSkus: WorkspaceSkus; +} + +// @public +export interface AzureMachineLearningWorkspacesOptionalParams extends coreClient.ServiceClientOptions { + $host?: string; + apiVersion?: string; + endpoint?: string; +} + +// @public +export type BillingCurrency = string; + +// @public +export type ClusterPurpose = string; + +// @public +export interface ClusterUpdateParameters { + properties?: ScaleSettingsInformation; +} + +// @public (undocumented) +export interface Components1D3SwueSchemasComputeresourceAllof1 { + properties?: ComputeUnion; +} + +// @public +export interface Compute { + computeLocation?: string; + computeType: "AKS" | "Kubernetes" | "AmlCompute" | "ComputeInstance" | "VirtualMachine" | "HDInsight" | "DataFactory" | "Databricks" | "DataLakeAnalytics" | "SynapseSpark"; + readonly createdOn?: Date; + description?: string; + disableLocalAuth?: boolean; + readonly isAttachedCompute?: boolean; + readonly modifiedOn?: Date; + readonly provisioningErrors?: ErrorResponse[]; + readonly provisioningState?: ProvisioningState; + resourceId?: string; +} + +// @public +export interface ComputeCreateOrUpdateHeaders { + azureAsyncOperation?: string; +} + +// @public +export interface ComputeCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ComputeCreateOrUpdateResponse = ComputeResource; + +// @public +export interface ComputeDeleteHeaders { + azureAsyncOperation?: string; + location?: string; +} + +// @public +export interface ComputeDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ComputeGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComputeGetResponse = ComputeResource; + +// @public +export type ComputeInstance = Compute & { + computeType: "ComputeInstance"; + properties?: ComputeInstanceProperties; +}; + +// @public +export interface ComputeInstanceApplication { + displayName?: string; + endpointUri?: string; +} + +// @public +export type ComputeInstanceAuthorizationType = string; + +// @public +export interface ComputeInstanceConnectivityEndpoints { + readonly privateIpAddress?: string; + readonly publicIpAddress?: string; +} + +// @public +export interface ComputeInstanceCreatedBy { + readonly userId?: string; + readonly userName?: string; + readonly userOrgId?: string; +} + +// @public +export interface ComputeInstanceLastOperation { + operationName?: OperationName; + operationStatus?: OperationStatus; + operationTime?: Date; +} + +// @public +export interface ComputeInstanceProperties { + readonly applications?: ComputeInstanceApplication[]; + applicationSharingPolicy?: ApplicationSharingPolicy; + computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; + readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; + readonly createdBy?: ComputeInstanceCreatedBy; + readonly errors?: ErrorResponse[]; + readonly lastOperation?: ComputeInstanceLastOperation; + personalComputeInstanceSettings?: PersonalComputeInstanceSettings; + setupScripts?: SetupScripts; + sshSettings?: ComputeInstanceSshSettings; + readonly state?: ComputeInstanceState; + subnet?: ResourceId; + vmSize?: string; +} + +// @public +export interface ComputeInstanceSshSettings { + adminPublicKey?: string; + readonly adminUserName?: string; + readonly sshPort?: number; + sshPublicAccess?: SshPublicAccess; +} + +// @public +export type ComputeInstanceState = string; + +// @public +export interface ComputeListKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComputeListKeysResponse = ComputeSecretsUnion; + +// @public +export interface ComputeListNextOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type ComputeListNextResponse = PaginatedComputeResourcesList; + +// @public +export interface ComputeListNodesNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComputeListNodesNextResponse = AmlComputeNodesInformation; + +// @public +export interface ComputeListNodesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComputeListNodesResponse = AmlComputeNodesInformation; + +// @public +export interface ComputeListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type ComputeListResponse = PaginatedComputeResourcesList; + +// @public +export interface ComputeOperations { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ComputeResource, options?: ComputeCreateOrUpdateOptionalParams): Promise, ComputeCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ComputeResource, options?: ComputeCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, computeName: string, underlyingResourceAction: UnderlyingResourceAction, options?: ComputeDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, computeName: string, underlyingResourceAction: UnderlyingResourceAction, options?: ComputeDeleteOptionalParams): Promise; + beginRestart(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeRestartOptionalParams): Promise, void>>; + beginRestartAndWait(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeRestartOptionalParams): Promise; + beginStart(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeStartOptionalParams): Promise, void>>; + beginStartAndWait(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeStartOptionalParams): Promise; + beginStop(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeStopOptionalParams): Promise, void>>; + beginStopAndWait(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeStopOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ClusterUpdateParameters, options?: ComputeUpdateOptionalParams): Promise, ComputeUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ClusterUpdateParameters, options?: ComputeUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: ComputeListOptionalParams): PagedAsyncIterableIterator; + listKeys(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeListKeysOptionalParams): Promise; + listNodes(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeListNodesOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export type ComputeResource = Resource & Components1D3SwueSchemasComputeresourceAllof1 & { + identity?: Identity; + location?: string; + tags?: { + [propertyName: string]: string; + }; + sku?: Sku; + readonly systemData?: SystemData; +}; + +// @public +export interface ComputeRestartOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ComputeSecrets { + computeType: "AKS" | "VirtualMachine" | "Databricks"; +} + +// @public (undocumented) +export type ComputeSecretsUnion = ComputeSecrets | AksComputeSecrets | VirtualMachineSecrets | DatabricksComputeSecrets; + +// @public +export interface ComputeStartOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ComputeStopOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ComputeType = string; + +// @public (undocumented) +export type ComputeUnion = Compute | Aks | Kubernetes | AmlCompute | ComputeInstance | VirtualMachine | HDInsight | DataFactory | Databricks | DataLakeAnalytics | SynapseSpark; + +// @public +export interface ComputeUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ComputeUpdateResponse = ComputeResource; + +// @public +export interface ContainerResourceRequirements { + cpu?: number; + cpuLimit?: number; + fpga?: number; + gpu?: number; + memoryInGB?: number; + memoryInGBLimit?: number; +} + +// @public (undocumented) +export interface CosmosDbSettings { + collectionsThroughput?: number; +} + +// @public +export type CreatedByType = string; + +// @public +export type Databricks = Compute & { + computeType: "Databricks"; + properties?: DatabricksProperties; +}; + +// @public +export type DatabricksComputeSecrets = ComputeSecrets & DatabricksComputeSecretsProperties & { + computeType: "Databricks"; +}; + +// @public +export interface DatabricksComputeSecretsProperties { + databricksAccessToken?: string; +} + +// @public +export interface DatabricksProperties { + databricksAccessToken?: string; + workspaceUrl?: string; +} + +// @public +export type DataFactory = Compute & { + computeType: "DataFactory"; +}; + +// @public +export type DataLakeAnalytics = Compute & { + computeType: "DataLakeAnalytics"; + properties?: DataLakeAnalyticsProperties; +}; + +// @public (undocumented) +export interface DataLakeAnalyticsProperties { + dataLakeStoreAccountName?: string; +} + +// @public (undocumented) +export interface DiagnoseRequestProperties { + applicationInsights?: { + [propertyName: string]: Record; + }; + containerRegistry?: { + [propertyName: string]: Record; + }; + dnsResolution?: { + [propertyName: string]: Record; + }; + keyVault?: { + [propertyName: string]: Record; + }; + nsg?: { + [propertyName: string]: Record; + }; + others?: { + [propertyName: string]: Record; + }; + resourceLock?: { + [propertyName: string]: Record; + }; + storageAccount?: { + [propertyName: string]: Record; + }; + udr?: { + [propertyName: string]: Record; + }; +} + +// @public (undocumented) +export interface DiagnoseResponseResult { + // (undocumented) + value?: DiagnoseResponseResultValue; +} + +// @public (undocumented) +export interface DiagnoseResponseResultValue { + // (undocumented) + applicationInsightsResults?: DiagnoseResult[]; + // (undocumented) + containerRegistryResults?: DiagnoseResult[]; + // (undocumented) + dnsResolutionResults?: DiagnoseResult[]; + // (undocumented) + keyVaultResults?: DiagnoseResult[]; + // (undocumented) + networkSecurityRuleResults?: DiagnoseResult[]; + // (undocumented) + otherResults?: DiagnoseResult[]; + // (undocumented) + resourceLockResults?: DiagnoseResult[]; + // (undocumented) + storageAccountResults?: DiagnoseResult[]; + // (undocumented) + userDefinedRouteResults?: DiagnoseResult[]; +} + +// @public +export interface DiagnoseResult { + readonly code?: string; + readonly level?: DiagnoseResultLevel; + readonly message?: string; +} + +// @public +export type DiagnoseResultLevel = string; + +// @public +export interface DiagnoseWorkspaceParameters { + value?: DiagnoseRequestProperties; +} + +// @public (undocumented) +export interface EncryptionProperty { + identity?: IdentityForCmk; + keyVaultProperties: KeyVaultProperties; + status: EncryptionStatus; +} + +// @public +export type EncryptionStatus = string; + +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface ErrorResponse { + error?: ErrorDetail; +} + +// @public +export interface EstimatedVMPrice { + osType: VMPriceOSType; + retailPrice: number; + vmTier: VMTier; +} + +// @public +export interface EstimatedVMPrices { + billingCurrency: BillingCurrency; + unitOfMeasure: UnitOfMeasure; + values: EstimatedVMPrice[]; +} + +// @public (undocumented) +export interface ExternalFqdnResponse { + // (undocumented) + value?: FqdnEndpoints[]; +} + +// @public (undocumented) +export interface FqdnEndpoint { + // (undocumented) + domainName?: string; + // (undocumented) + endpointDetails?: FqdnEndpointDetail[]; +} + +// @public (undocumented) +export interface FqdnEndpointDetail { + // (undocumented) + port?: number; +} + +// @public (undocumented) +export interface FqdnEndpoints { + // (undocumented) + properties?: FqdnEndpointsProperties; +} + +// @public (undocumented) +export interface FqdnEndpointsProperties { + // (undocumented) + category?: string; + // (undocumented) + endpoints?: FqdnEndpoint[]; +} + +// @public +export type HDInsight = Compute & { + computeType: "HDInsight"; + properties?: HDInsightProperties; +}; + +// @public +export interface HDInsightProperties { + address?: string; + administratorAccount?: VirtualMachineSshCredentials; + sshPort?: number; +} + +// @public +export interface Identity { + readonly principalId?: string; + readonly tenantId?: string; + type?: ResourceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentity; + }; +} + +// @public +export interface IdentityForCmk { + userAssignedIdentity?: string; +} + +// @public +export interface InstanceTypeSchema { + nodeSelector?: { + [propertyName: string]: string; + }; + resources?: InstanceTypeSchemaResources; +} + +// @public +export interface InstanceTypeSchemaResources { + limits?: { + [propertyName: string]: string; + }; + requests?: { + [propertyName: string]: string; + }; +} + +// @public (undocumented) +export interface KeyVaultProperties { + identityClientId?: string; + keyIdentifier: string; + keyVaultArmId: string; +} + +// @public +export enum KnownAllocationState { + // (undocumented) + Resizing = "Resizing", + // (undocumented) + Steady = "Steady" +} + +// @public +export enum KnownApplicationSharingPolicy { + // (undocumented) + Personal = "Personal", + // (undocumented) + Shared = "Shared" +} + +// @public +export enum KnownBillingCurrency { + // (undocumented) + USD = "USD" +} + +// @public +export enum KnownClusterPurpose { + // (undocumented) + DenseProd = "DenseProd", + // (undocumented) + DevTest = "DevTest", + // (undocumented) + FastProd = "FastProd" +} + +// @public +export enum KnownComputeInstanceAuthorizationType { + // (undocumented) + Personal = "personal" +} + +// @public +export enum KnownComputeInstanceState { + // (undocumented) + CreateFailed = "CreateFailed", + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + JobRunning = "JobRunning", + // (undocumented) + Restarting = "Restarting", + // (undocumented) + Running = "Running", + // (undocumented) + SettingUp = "SettingUp", + // (undocumented) + SetupFailed = "SetupFailed", + // (undocumented) + Starting = "Starting", + // (undocumented) + Stopped = "Stopped", + // (undocumented) + Stopping = "Stopping", + // (undocumented) + Unknown = "Unknown", + // (undocumented) + Unusable = "Unusable", + // (undocumented) + UserSettingUp = "UserSettingUp", + // (undocumented) + UserSetupFailed = "UserSetupFailed" +} + +// @public +export enum KnownComputeType { + // (undocumented) + AKS = "AKS", + // (undocumented) + AmlCompute = "AmlCompute", + // (undocumented) + ComputeInstance = "ComputeInstance", + // (undocumented) + Databricks = "Databricks", + // (undocumented) + DataFactory = "DataFactory", + // (undocumented) + DataLakeAnalytics = "DataLakeAnalytics", + // (undocumented) + HDInsight = "HDInsight", + // (undocumented) + Kubernetes = "Kubernetes", + // (undocumented) + SynapseSpark = "SynapseSpark", + // (undocumented) + VirtualMachine = "VirtualMachine" +} + +// @public +export enum KnownCreatedByType { + // (undocumented) + Application = "Application", + // (undocumented) + Key = "Key", + // (undocumented) + ManagedIdentity = "ManagedIdentity", + // (undocumented) + User = "User" +} + +// @public +export enum KnownDiagnoseResultLevel { + // (undocumented) + Error = "Error", + // (undocumented) + Information = "Information", + // (undocumented) + Warning = "Warning" +} + +// @public +export enum KnownEncryptionStatus { + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Enabled = "Enabled" +} + +// @public +export enum KnownLoadBalancerType { + // (undocumented) + InternalLoadBalancer = "InternalLoadBalancer", + // (undocumented) + PublicIp = "PublicIp" +} + +// @public +export enum KnownNodeState { + // (undocumented) + Idle = "idle", + // (undocumented) + Leaving = "leaving", + // (undocumented) + Preempted = "preempted", + // (undocumented) + Preparing = "preparing", + // (undocumented) + Running = "running", + // (undocumented) + Unusable = "unusable" +} + +// @public +export enum KnownOperationName { + // (undocumented) + Create = "Create", + // (undocumented) + Delete = "Delete", + // (undocumented) + Reimage = "Reimage", + // (undocumented) + Restart = "Restart", + // (undocumented) + Start = "Start", + // (undocumented) + Stop = "Stop" +} + +// @public +export enum KnownOperationStatus { + // (undocumented) + CreateFailed = "CreateFailed", + // (undocumented) + DeleteFailed = "DeleteFailed", + // (undocumented) + InProgress = "InProgress", + // (undocumented) + ReimageFailed = "ReimageFailed", + // (undocumented) + RestartFailed = "RestartFailed", + // (undocumented) + StartFailed = "StartFailed", + // (undocumented) + StopFailed = "StopFailed", + // (undocumented) + Succeeded = "Succeeded" +} + +// @public +export enum KnownOsType { + // (undocumented) + Linux = "Linux", + // (undocumented) + Windows = "Windows" +} + +// @public +export enum KnownPrivateEndpointConnectionProvisioningState { + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded" +} + +// @public +export enum KnownPrivateEndpointServiceConnectionStatus { + // (undocumented) + Approved = "Approved", + // (undocumented) + Disconnected = "Disconnected", + // (undocumented) + Pending = "Pending", + // (undocumented) + Rejected = "Rejected", + // (undocumented) + Timeout = "Timeout" +} + +// @public +export enum KnownProvisioningState { + // (undocumented) + Canceled = "Canceled", + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Unknown = "Unknown", + // (undocumented) + Updating = "Updating" +} + +// @public +export enum KnownPublicNetworkAccess { + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Enabled = "Enabled" +} + +// @public +export enum KnownQuotaUnit { + // (undocumented) + Count = "Count" +} + +// @public +export enum KnownReasonCode { + // (undocumented) + NotAvailableForRegion = "NotAvailableForRegion", + // (undocumented) + NotAvailableForSubscription = "NotAvailableForSubscription", + // (undocumented) + NotSpecified = "NotSpecified" +} + +// @public +export enum KnownRemoteLoginPortPublicAccess { + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Enabled = "Enabled", + // (undocumented) + NotSpecified = "NotSpecified" +} + +// @public +export enum KnownSshPublicAccess { + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Enabled = "Enabled" +} + +// @public +export enum KnownSslConfigurationStatus { + // (undocumented) + Auto = "Auto", + // (undocumented) + Disabled = "Disabled", + // (undocumented) + Enabled = "Enabled" +} + +// @public +export enum KnownStatus { + // (undocumented) + Failure = "Failure", + // (undocumented) + InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", + // (undocumented) + InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", + // (undocumented) + InvalidVMFamilyName = "InvalidVMFamilyName", + // (undocumented) + OperationNotEnabledForRegion = "OperationNotEnabledForRegion", + // (undocumented) + OperationNotSupportedForSku = "OperationNotSupportedForSku", + // (undocumented) + Success = "Success", + // (undocumented) + Undefined = "Undefined" +} + +// @public +export enum KnownUnderlyingResourceAction { + // (undocumented) + Delete = "Delete", + // (undocumented) + Detach = "Detach" +} + +// @public +export enum KnownUnitOfMeasure { + // (undocumented) + OneHour = "OneHour" +} + +// @public +export enum KnownUsageUnit { + // (undocumented) + Count = "Count" +} + +// @public +export enum KnownValueFormat { + // (undocumented) + Json = "JSON" +} + +// @public +export enum KnownVMPriceOSType { + // (undocumented) + Linux = "Linux", + // (undocumented) + Windows = "Windows" +} + +// @public +export enum KnownVmPriority { + // (undocumented) + Dedicated = "Dedicated", + // (undocumented) + LowPriority = "LowPriority" +} + +// @public +export enum KnownVMTier { + // (undocumented) + LowPriority = "LowPriority", + // (undocumented) + Spot = "Spot", + // (undocumented) + Standard = "Standard" +} + +// @public +export type Kubernetes = Compute & KubernetesSchema & { + computeType: "Kubernetes"; +}; + +// @public +export interface KubernetesProperties { + defaultInstanceType?: string; + extensionInstanceReleaseTrain?: string; + extensionPrincipalId?: string; + instanceTypes?: { + [propertyName: string]: InstanceTypeSchema; + }; + namespace?: string; + relayConnectionString?: string; + serviceBusConnectionString?: string; + vcName?: string; +} + +// @public +export interface KubernetesSchema { + properties?: KubernetesProperties; +} + +// @public +export interface ListAmlUserFeatureResult { + readonly nextLink?: string; + readonly value?: AmlUserFeature[]; +} + +// @public (undocumented) +export interface ListNotebookKeysResult { + readonly primaryAccessKey?: string; + readonly secondaryAccessKey?: string; +} + +// @public (undocumented) +export interface ListStorageAccountKeysResult { + readonly userStorageKey?: string; +} + +// @public +export interface ListUsagesResult { + readonly nextLink?: string; + readonly value?: Usage[]; +} + +// @public (undocumented) +export interface ListWorkspaceKeysResult { + readonly appInsightsInstrumentationKey?: string; + readonly containerRegistryCredentials?: RegistryListCredentialsResult; + readonly notebookAccessKeys?: ListNotebookKeysResult; + readonly userStorageKey?: string; + readonly userStorageResourceId?: string; +} + +// @public +export interface ListWorkspaceQuotas { + readonly nextLink?: string; + readonly value?: ResourceQuota[]; +} + +// @public +export type LoadBalancerType = string; + +// @public +export type NodeState = string; + +// @public +export interface NodeStateCounts { + readonly idleNodeCount?: number; + readonly leavingNodeCount?: number; + readonly preemptedNodeCount?: number; + readonly preparingNodeCount?: number; + readonly runningNodeCount?: number; + readonly unusableNodeCount?: number; +} + +// @public (undocumented) +export interface NotebookAccessTokenResult { + readonly accessToken?: string; + readonly expiresIn?: number; + readonly hostName?: string; + readonly notebookResourceId?: string; + readonly publicDns?: string; + readonly refreshToken?: string; + readonly scope?: string; + readonly tokenType?: string; +} + +// @public (undocumented) +export interface NotebookPreparationError { + // (undocumented) + errorMessage?: string; + // (undocumented) + statusCode?: number; +} + +// @public (undocumented) +export interface NotebookResourceInfo { + // (undocumented) + fqdn?: string; + notebookPreparationError?: NotebookPreparationError; + resourceId?: 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 type OperationName = string; + +// @public +export interface Operations { + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface OperationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationsListResponse = OperationListResult; + +// @public +export type OperationStatus = string; + +// @public +export type OsType = string; + +// @public +export interface PaginatedComputeResourcesList { + nextLink?: string; + value?: ComputeResource[]; +} + +// @public +export interface PaginatedWorkspaceConnectionsList { + nextLink?: string; + value?: WorkspaceConnection[]; +} + +// @public (undocumented) +export interface Password { + readonly name?: string; + readonly value?: string; +} + +// @public +export interface PersonalComputeInstanceSettings { + assignedUser?: AssignedUser; +} + +// @public +export interface PrivateEndpoint { + readonly id?: string; + readonly subnetArmId?: string; +} + +// @public +export type PrivateEndpointConnection = Resource & { + identity?: Identity; + location?: string; + tags?: { + [propertyName: string]: string; + }; + sku?: Sku; + readonly systemData?: SystemData; + privateEndpoint?: PrivateEndpoint; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; +}; + +// @public +export interface PrivateEndpointConnectionListResult { + value?: PrivateEndpointConnection[]; +} + +// @public +export type PrivateEndpointConnectionProvisioningState = string; + +// @public +export interface PrivateEndpointConnections { + createOrUpdate(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: PrivateEndpointConnectionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; + +// @public +export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; + +// @public +export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; + +// @public +export type PrivateEndpointServiceConnectionStatus = string; + +// @public +export type PrivateLinkResource = Resource & { + identity?: Identity; + location?: string; + tags?: { + [propertyName: string]: string; + }; + sku?: Sku; + readonly systemData?: SystemData; + readonly groupId?: string; + readonly requiredMembers?: string[]; + requiredZoneNames?: string[]; +}; + +// @public +export interface PrivateLinkResourceListResult { + value?: PrivateLinkResource[]; +} + +// @public +export interface PrivateLinkResources { + list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): Promise; +} + +// @public +export interface PrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; + +// @public +export interface PrivateLinkServiceConnectionState { + actionsRequired?: string; + description?: string; + status?: PrivateEndpointServiceConnectionStatus; +} + +// @public +export type ProvisioningState = string; + +// @public +export type PublicNetworkAccess = string; + +// @public +export interface QuotaBaseProperties { + id?: string; + limit?: number; + type?: string; + unit?: QuotaUnit; +} + +// @public +export interface Quotas { + list(location: string, options?: QuotasListOptionalParams): PagedAsyncIterableIterator; + update(location: string, parameters: QuotaUpdateParameters, options?: QuotasUpdateOptionalParams): Promise; +} + +// @public +export interface QuotasListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotasListNextResponse = ListWorkspaceQuotas; + +// @public +export interface QuotasListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotasListResponse = ListWorkspaceQuotas; + +// @public +export interface QuotasUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; + +// @public +export type QuotaUnit = string; + +// @public +export interface QuotaUpdateParameters { + location?: string; + value?: QuotaBaseProperties[]; +} + +// @public +export type ReasonCode = string; + +// @public (undocumented) +export interface RegistryListCredentialsResult { + readonly location?: string; + // (undocumented) + passwords?: Password[]; + readonly username?: string; +} + +// @public +export type RemoteLoginPortPublicAccess = string; + +// @public +export interface Resource { + readonly id?: string; + readonly name?: string; + readonly type?: string; +} + +// @public +export interface ResourceId { + id: string; +} + +// @public +export type ResourceIdentityType = "SystemAssigned" | "SystemAssigned,UserAssigned" | "UserAssigned" | "None"; + +// @public +export interface ResourceName { + readonly localizedValue?: string; + readonly value?: string; +} + +// @public +export interface ResourceQuota { + readonly amlWorkspaceLocation?: string; + readonly id?: string; + readonly limit?: number; + readonly name?: ResourceName; + readonly type?: string; + readonly unit?: QuotaUnit; +} + +// @public (undocumented) +export interface ResourceSkuLocationInfo { + readonly location?: string; + readonly zoneDetails?: ResourceSkuZoneDetails[]; + readonly zones?: string[]; +} + +// @public +export interface ResourceSkuZoneDetails { + readonly capabilities?: SKUCapability[]; + readonly name?: string[]; +} + +// @public +export interface Restriction { + reasonCode?: ReasonCode; + readonly type?: string; + readonly values?: string[]; +} + +// @public +export interface ScaleSettings { + maxNodeCount: number; + minNodeCount?: number; + nodeIdleTimeBeforeScaleDown?: string; +} + +// @public +export interface ScaleSettingsInformation { + scaleSettings?: ScaleSettings; +} + +// @public +export interface ScriptReference { + scriptArguments?: string; + scriptData?: string; + scriptSource?: string; + timeout?: string; +} + +// @public +export interface ScriptsToExecute { + creationScript?: ScriptReference; + startupScript?: ScriptReference; +} + +// @public (undocumented) +export interface ServiceManagedResourcesSettings { + cosmosDb?: CosmosDbSettings; +} + +// @public +export interface ServicePrincipalCredentials { + clientId: string; + clientSecret: string; +} + +// @public +export interface SetupScripts { + scripts?: ScriptsToExecute; +} + +// @public (undocumented) +export interface SharedPrivateLinkResource { + groupId?: string; + name?: string; + privateLinkResourceId?: string; + requestMessage?: string; + status?: PrivateEndpointServiceConnectionStatus; +} + +// @public +export interface Sku { + name?: string; + tier?: string; +} + +// @public +export interface SKUCapability { + name?: string; + value?: string; +} + +// @public +export interface SkuListResult { + nextLink?: string; + // (undocumented) + value?: WorkspaceSku[]; +} + +// @public +export type SshPublicAccess = string; + +// @public +export interface SslConfiguration { + cert?: string; + cname?: string; + key?: string; + leafDomainLabel?: string; + overwriteExistingDomain?: boolean; + status?: SslConfigurationStatus; +} + +// @public +export type SslConfigurationStatus = string; + +// @public +export type Status = string; + +// @public +export type SynapseSpark = Compute & { + computeType: "SynapseSpark"; + properties?: SynapseSparkProperties; +}; + +// @public (undocumented) +export interface SynapseSparkProperties { + autoPauseProperties?: AutoPauseProperties; + autoScaleProperties?: AutoScaleProperties; + nodeCount?: number; + nodeSize?: string; + nodeSizeFamily?: string; + poolName?: string; + resourceGroup?: string; + sparkVersion?: string; + subscriptionId?: string; + workspaceName?: string; +} + +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + +// @public +export interface SystemService { + readonly publicIpAddress?: string; + readonly systemServiceType?: string; + readonly version?: string; +} + +// @public +export type UnderlyingResourceAction = string; + +// @public +export type UnitOfMeasure = string; + +// @public +export interface UpdateWorkspaceQuotas { + readonly id?: string; + limit?: number; + status?: Status; + readonly type?: string; + readonly unit?: QuotaUnit; +} + +// @public +export interface UpdateWorkspaceQuotasResult { + readonly nextLink?: string; + readonly value?: UpdateWorkspaceQuotas[]; +} + +// @public +export interface Usage { + readonly amlWorkspaceLocation?: string; + readonly currentValue?: number; + readonly id?: string; + readonly limit?: number; + readonly name?: UsageName; + readonly type?: string; + readonly unit?: UsageUnit; +} + +// @public +export interface UsageName { + readonly localizedValue?: string; + readonly value?: string; +} + +// @public +export interface Usages { + list(location: string, options?: UsagesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface UsagesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type UsagesListNextResponse = ListUsagesResult; + +// @public +export interface UsagesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type UsagesListResponse = ListUsagesResult; + +// @public +export type UsageUnit = string; + +// @public +export interface UserAccountCredentials { + adminUserName: string; + adminUserPassword?: string; + adminUserSshPublicKey?: string; +} + +// @public +export interface UserAssignedIdentity { + readonly clientId?: string; + readonly principalId?: string; + readonly tenantId?: string; +} + +// @public +export type ValueFormat = string; + +// @public +export type VirtualMachine = Compute & { + computeType: "VirtualMachine"; + properties?: VirtualMachineProperties; +}; + +// @public +export interface VirtualMachineImage { + id: string; +} + +// @public (undocumented) +export interface VirtualMachineProperties { + address?: string; + administratorAccount?: VirtualMachineSshCredentials; + isNotebookInstanceCompute?: boolean; + sshPort?: number; + virtualMachineSize?: string; +} + +// @public +export type VirtualMachineSecrets = ComputeSecrets & { + computeType: "VirtualMachine"; + administratorAccount?: VirtualMachineSshCredentials; +}; + +// @public +export interface VirtualMachineSize { + estimatedVMPrices?: EstimatedVMPrices; + readonly family?: string; + readonly gpus?: number; + readonly lowPriorityCapable?: boolean; + readonly maxResourceVolumeMB?: number; + readonly memoryGB?: number; + readonly name?: string; + readonly osVhdSizeMB?: number; + readonly premiumIO?: boolean; + supportedComputeTypes?: string[]; + readonly vCPUs?: number; +} + +// @public +export interface VirtualMachineSizeListResult { + value?: VirtualMachineSize[]; +} + +// @public +export interface VirtualMachineSizes { + list(location: string, options?: VirtualMachineSizesListOptionalParams): Promise; +} + +// @public +export interface VirtualMachineSizesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; + +// @public +export interface VirtualMachineSshCredentials { + password?: string; + privateKeyData?: string; + publicKeyData?: string; + username?: string; +} + +// @public +export type VMPriceOSType = string; + +// @public +export type VmPriority = string; + +// @public +export type VMTier = string; + +// @public +export type Workspace = Resource & { + identity?: Identity; + location?: string; + tags?: { + [propertyName: string]: string; + }; + sku?: Sku; + readonly systemData?: SystemData; + readonly workspaceId?: string; + description?: string; + friendlyName?: string; + keyVault?: string; + applicationInsights?: string; + containerRegistry?: string; + storageAccount?: string; + discoveryUrl?: string; + readonly provisioningState?: ProvisioningState; + encryption?: EncryptionProperty; + hbiWorkspace?: boolean; + readonly serviceProvisionedResourceGroup?: string; + readonly privateLinkCount?: number; + imageBuildCompute?: string; + allowPublicAccessWhenBehindVnet?: boolean; + publicNetworkAccess?: PublicNetworkAccess; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + readonly notebookInfo?: NotebookResourceInfo; + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + primaryUserAssignedIdentity?: string; + readonly tenantId?: string; + readonly storageHnsEnabled?: boolean; + readonly mlFlowTrackingUri?: string; +}; + +// @public +export interface WorkspaceConnection { + authType?: string; + category?: string; + readonly id?: string; + readonly name?: string; + target?: string; + readonly type?: string; + value?: string; + valueFormat?: ValueFormat; +} + +// @public +export interface WorkspaceConnections { + create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: WorkspaceConnection, options?: WorkspaceConnectionsCreateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: WorkspaceConnectionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceConnectionsCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceConnectionsCreateResponse = WorkspaceConnection; + +// @public +export interface WorkspaceConnectionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceConnectionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceConnectionsGetResponse = WorkspaceConnection; + +// @public +export interface WorkspaceConnectionsListOptionalParams extends coreClient.OperationOptions { + category?: string; + target?: string; +} + +// @public +export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList; + +// @public +export interface WorkspaceFeatures { + list(resourceGroupName: string, workspaceName: string, options?: WorkspaceFeaturesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceFeaturesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult; + +// @public +export interface WorkspaceFeaturesListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult; + +// @public +export interface WorkspaceListResult { + nextLink?: string; + value?: Workspace[]; +} + +// @public +export interface Workspaces { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise; + beginDiagnose(resourceGroupName: string, workspaceName: string, options?: WorkspacesDiagnoseOptionalParams): Promise, WorkspacesDiagnoseResponse>>; + beginDiagnoseAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesDiagnoseOptionalParams): Promise; + beginPrepareNotebook(resourceGroupName: string, workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams): Promise, WorkspacesPrepareNotebookResponse>>; + beginPrepareNotebookAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams): Promise; + beginResyncKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesResyncKeysOptionalParams): Promise, void>>; + beginResyncKeysAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesResyncKeysOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: WorkspacesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + listKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesListKeysOptionalParams): Promise; + listNotebookAccessToken(resourceGroupName: string, workspaceName: string, options?: WorkspacesListNotebookAccessTokenOptionalParams): Promise; + listNotebookKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesListNotebookKeysOptionalParams): Promise; + listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, workspaceName: string, options?: WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams): Promise; + listStorageAccountKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesListStorageAccountKeysOptionalParams): Promise; + update(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise; +} + +// @public +export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacesCreateOrUpdateResponse = Workspace; + +// @public +export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface WorkspacesDiagnoseHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface WorkspacesDiagnoseOptionalParams extends coreClient.OperationOptions { + parameters?: DiagnoseWorkspaceParameters; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacesDiagnoseResponse = DiagnoseResponseResult; + +// @public +export interface WorkspacesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesGetResponse = Workspace; + +// @public +export interface WorkspaceSku { + readonly capabilities?: SKUCapability[]; + readonly locationInfo?: ResourceSkuLocationInfo[]; + readonly locations?: string[]; + readonly name?: string; + readonly resourceType?: string; + restrictions?: Restriction[]; + readonly tier?: string; +} + +// @public +export interface WorkspaceSkus { + list(options?: WorkspaceSkusListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface WorkspaceSkusListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSkusListNextResponse = SkuListResult; + +// @public +export interface WorkspaceSkusListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceSkusListResponse = SkuListResult; + +// @public +export interface WorkspacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; + +// @public +export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; + +// @public +export interface WorkspacesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; + +// @public +export interface WorkspacesListBySubscriptionOptionalParams extends coreClient.OperationOptions { + skip?: string; +} + +// @public +export type WorkspacesListBySubscriptionResponse = WorkspaceListResult; + +// @public +export interface WorkspacesListKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListKeysResponse = ListWorkspaceKeysResult; + +// @public +export interface WorkspacesListNotebookAccessTokenOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListNotebookAccessTokenResponse = NotebookAccessTokenResult; + +// @public +export interface WorkspacesListNotebookKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListNotebookKeysResponse = ListNotebookKeysResult; + +// @public +export interface WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListOutboundNetworkDependenciesEndpointsResponse = ExternalFqdnResponse; + +// @public +export interface WorkspacesListStorageAccountKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesListStorageAccountKeysResponse = ListStorageAccountKeysResult; + +// @public +export interface WorkspacesPrepareNotebookOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo; + +// @public +export interface WorkspacesResyncKeysOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface WorkspacesUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspacesUpdateResponse = Workspace; + +// @public +export interface WorkspaceUpdateParameters { + description?: string; + friendlyName?: string; + identity?: Identity; + imageBuildCompute?: string; + primaryUserAssignedIdentity?: string; + publicNetworkAccess?: PublicNetworkAccess; + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + sku?: Sku; + tags?: { + [propertyName: string]: string; + }; +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/sdk/machinelearningservices/arm-machinelearningservices/rollup.config.js b/sdk/machinelearningservices/arm-machinelearningservices/rollup.config.js index 5e0ad24a4ac8..9be1955eb7f1 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/rollup.config.js +++ b/sdk/machinelearningservices/arm-machinelearningservices/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/azureMachineLearningWorkspaces.js", - external: [ - "@azure/ms-rest-js", - "@azure/ms-rest-azure-js" - ], - output: { - file: "./dist/arm-machinelearningservices.js", - format: "umd", - name: "Azure.ArmMachinelearningservices", - 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/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts index 4cc5d45384af..62eb04d690e7 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts @@ -3,159 +3,117 @@ * 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 Parameters from "./models/parameters"; -import * as operations from "./operations"; -import { AzureMachineLearningWorkspacesContext } from "./azureMachineLearningWorkspacesContext"; +import * as coreClient from "@azure/core-client"; +import * as coreAuth from "@azure/core-auth"; +import { + OperationsImpl, + WorkspacesImpl, + UsagesImpl, + VirtualMachineSizesImpl, + QuotasImpl, + ComputeOperationsImpl, + PrivateEndpointConnectionsImpl, + PrivateLinkResourcesImpl, + WorkspaceConnectionsImpl, + WorkspaceFeaturesImpl, + WorkspaceSkusImpl +} from "./operations"; +import { + Operations, + Workspaces, + Usages, + VirtualMachineSizes, + Quotas, + ComputeOperations, + PrivateEndpointConnections, + PrivateLinkResources, + WorkspaceConnections, + WorkspaceFeatures, + WorkspaceSkus +} from "./operationsInterfaces"; +import { AzureMachineLearningWorkspacesOptionalParams } from "./models"; - -class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesContext { - // Operation groups - operations: operations.Operations; - workspaces: operations.Workspaces; - workspaceFeatures: operations.WorkspaceFeatures; - notebooks: operations.Notebooks; - usages: operations.Usages; - virtualMachineSizes: operations.VirtualMachineSizes; - quotas: operations.Quotas; - workspaceConnections: operations.WorkspaceConnections; - machineLearningCompute: operations.MachineLearningCompute; - privateEndpointConnections: operations.PrivateEndpointConnections; - privateLinkResources: operations.PrivateLinkResources; +export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { + $host: string; + apiVersion: string; + subscriptionId: string; /** * Initializes a new instance of the AzureMachineLearningWorkspaces class. - * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId Azure subscription identifier. - * @param [options] The parameter options + * @param credentials Subscription credentials which uniquely identify client subscription. + * @param subscriptionId The ID of the target subscription. + * @param options The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMachineLearningWorkspacesOptions) { - super(credentials, subscriptionId, options); - this.operations = new operations.Operations(this); - this.workspaces = new operations.Workspaces(this); - this.workspaceFeatures = new operations.WorkspaceFeatures(this); - this.notebooks = new operations.Notebooks(this); - this.usages = new operations.Usages(this); - this.virtualMachineSizes = new operations.VirtualMachineSizes(this); - this.quotas = new operations.Quotas(this); - this.workspaceConnections = new operations.WorkspaceConnections(this); - this.machineLearningCompute = new operations.MachineLearningCompute(this); - this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); - this.privateLinkResources = new operations.PrivateLinkResources(this); - } + constructor( + credentials: coreAuth.TokenCredential, + subscriptionId: string, + options?: AzureMachineLearningWorkspacesOptionalParams + ) { + if (credentials === undefined) { + throw new Error("'credentials' cannot be null"); + } + if (subscriptionId === undefined) { + throw new Error("'subscriptionId' cannot be null"); + } - /** - * Lists all skus with associated features - * @param [options] The optional parameters - * @returns Promise - */ - listSkus(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - listSkus(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - listSkus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkus(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.sendOperationRequest( - { - options - }, - listSkusOperationSpec, - callback) as Promise; - } + // Initializing default values for options + if (!options) { + options = {}; + } + const defaults: AzureMachineLearningWorkspacesOptionalParams = { + requestContentType: "application/json; charset=utf-8", + credential: credentials + }; - /** - * Lists all skus with associated features - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listSkusNext(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 - */ - listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.sendOperationRequest( - { - nextPageLink, - options - }, - listSkusNextOperationSpec, - callback) as Promise; - } -} + const packageDetails = `azsdk-js-arm-machinelearningservices/5.0.0`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listSkusOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces/skus", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SkuListResult - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError + if (!options.credentialScopes) { + options.credentialScopes = ["https://management.azure.com/.default"]; } - }, - serializer -}; + const optionsWithDefaults = { + ...defaults, + ...options, + userAgentOptions: { + userAgentPrefix + }, + baseUri: options.endpoint || "https://management.azure.com" + }; + super(optionsWithDefaults); + // Parameter assignments + this.subscriptionId = subscriptionId; -const listSkusNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.SkuListResult - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; + // Assigning values to Constant parameters + this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2021-07-01"; + this.operations = new OperationsImpl(this); + this.workspaces = new WorkspacesImpl(this); + this.usages = new UsagesImpl(this); + this.virtualMachineSizes = new VirtualMachineSizesImpl(this); + this.quotas = new QuotasImpl(this); + this.computeOperations = new ComputeOperationsImpl(this); + this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); + this.privateLinkResources = new PrivateLinkResourcesImpl(this); + this.workspaceConnections = new WorkspaceConnectionsImpl(this); + this.workspaceFeatures = new WorkspaceFeaturesImpl(this); + this.workspaceSkus = new WorkspaceSkusImpl(this); + } -export { - AzureMachineLearningWorkspaces, - AzureMachineLearningWorkspacesContext, - Models as AzureMachineLearningWorkspacesModels, - Mappers as AzureMachineLearningWorkspacesMappers -}; -export * from "./operations"; + operations: Operations; + workspaces: Workspaces; + usages: Usages; + virtualMachineSizes: VirtualMachineSizes; + quotas: Quotas; + computeOperations: ComputeOperations; + privateEndpointConnections: PrivateEndpointConnections; + privateLinkResources: PrivateLinkResources; + workspaceConnections: WorkspaceConnections; + workspaceFeatures: WorkspaceFeatures; + workspaceSkus: WorkspaceSkus; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts deleted file mode 100644 index 5dfaeebdef9f..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.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-machinelearningservices"; -const packageVersion = "4.0.0"; - -export class AzureMachineLearningWorkspacesContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; - apiVersion?: string; - - /** - * Initializes a new instance of the AzureMachineLearningWorkspaces class. - * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId Azure subscription identifier. - * @param [options] The parameter options - */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureMachineLearningWorkspacesOptions) { - 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 = '2020-08-01'; - 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/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/index.ts similarity index 54% rename from sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts rename to sdk/machinelearningservices/arm-machinelearningservices/src/index.ts index ac101ae5f270..47f9061306b0 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/operationsMappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/index.ts @@ -6,12 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export { - discriminators, - ErrorDetail, - ErrorResponse, - MachineLearningServiceError, - Operation, - OperationDisplay, - OperationListResult -} from "../models/mappers"; +/// +export * from "./models"; +export { AzureMachineLearningWorkspaces } from "./azureMachineLearningWorkspaces"; +export * from "./operationsInterfaces"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/lroImpl.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/lroImpl.ts new file mode 100644 index 000000000000..518d5f053b4e --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/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/machinelearningservices/arm-machinelearningservices/src/models/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts index 77ada3593b7f..57fc1a8c9f0c 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/index.ts @@ -6,3324 +6,2825 @@ * 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"; - -export { BaseResource, CloudError }; +import * as coreClient from "@azure/core-client"; + +export type ComputeUnion = + | Compute + | Aks + | Kubernetes + | AmlCompute + | ComputeInstance + | VirtualMachine + | HDInsight + | DataFactory + | Databricks + | DataLakeAnalytics + | SynapseSpark; +export type ComputeSecretsUnion = + | ComputeSecrets + | AksComputeSecrets + | VirtualMachineSecrets + | DatabricksComputeSecrets; + +/** An array of operations supported by the resource provider. */ +export interface OperationListResult { + /** List of AML workspace operations supported by the AML workspace resource provider. */ + value?: Operation[]; +} + +/** Azure Machine Learning workspace REST API operation */ +export interface Operation { + /** Operation name: {provider}/{resource}/{operation} */ + name?: string; + /** Display name of operation */ + display?: OperationDisplay; +} -/** - * Display name of operation - */ +/** Display name of operation */ export interface OperationDisplay { - /** - * The resource provider name: Microsoft.MachineLearningExperimentation - */ + /** The resource provider name: Microsoft.MachineLearningExperimentation */ provider?: string; - /** - * The resource on which the operation is performed. - */ + /** The resource on which the operation is performed. */ resource?: string; - /** - * The operation that users can perform. - */ + /** The operation that users can perform. */ operation?: string; - /** - * The description for the operation. - */ + /** The description for the operation. */ description?: string; } -/** - * Azure Machine Learning workspace REST API operation - */ -export interface Operation { - /** - * Operation name: {provider}/{resource}/{operation} - */ - name?: string; - /** - * Display name of operation - */ - display?: OperationDisplay; -} - -/** - * An interface representing NotebookListCredentialsResult. - */ -export interface NotebookListCredentialsResult { - primaryAccessKey?: string; - secondaryAccessKey?: string; -} - -/** - * An interface representing NotebookPreparationError. - */ -export interface NotebookPreparationError { - errorMessage?: string; - statusCode?: number; +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; } -/** - * An interface representing NotebookResourceInfo. - */ -export interface NotebookResourceInfo { - fqdn?: string; +/** The error detail. */ +export interface ErrorDetail { /** - * the data plane resourceId that used to initialize notebook component + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - resourceId?: string; + readonly code?: string; /** - * The error that occurs when preparing notebook. + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - notebookPreparationError?: NotebookPreparationError; -} - -/** - * An interface representing KeyVaultProperties. - */ -export interface KeyVaultProperties { + readonly message?: string; /** - * The ArmId of the keyVault where the customer owned encryption key is present. + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - keyVaultArmId: string; + readonly target?: string; /** - * Key vault uri to access the encryption key. + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - keyIdentifier: string; + readonly details?: ErrorDetail[]; /** - * For future use - The client id of the identity which will be used to access key vault. + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - identityClientId?: string; + readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** - * An interface representing EncryptionProperty. - */ -export interface EncryptionProperty { +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { /** - * Indicates whether or not the encryption is enabled for the workspace. Possible values include: - * 'Enabled', 'Disabled' + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - status: EncryptionStatus; + readonly type?: string; /** - * Customer Key vault properties. + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly info?: Record; +} + +export interface EncryptionProperty { + /** Indicates whether or not the encryption is enabled for the workspace. */ + status: EncryptionStatus; + /** The identity that will be used to access the key vault for encryption at rest. */ + identity?: IdentityForCmk; + /** Customer Key vault properties. */ keyVaultProperties: KeyVaultProperties; } -/** - * The Private Endpoint resource. - */ +/** Identity that will be used to access key vault for encryption at rest */ +export interface IdentityForCmk { + /** The ArmId of the user assigned identity that will be used to access the customer managed key vault */ + userAssignedIdentity?: string; +} + +export interface KeyVaultProperties { + /** The ArmId of the keyVault where the customer owned encryption key is present. */ + keyVaultArmId: string; + /** Key vault uri to access the encryption key. */ + keyIdentifier: string; + /** For future use - The client id of the identity which will be used to access key vault. */ + identityClientId?: string; +} + +/** The Private Endpoint resource. */ export interface PrivateEndpoint { /** * The ARM identifier for Private Endpoint - * **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 id?: string; + /** + * The ARM identifier for Subnet resource that private endpoint links to + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subnetArmId?: string; } -/** - * A collection of information about the state of the connection between service consumer and - * provider. - */ +/** A collection of information about the state of the connection between service consumer and provider. */ export interface PrivateLinkServiceConnectionState { - /** - * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the - * service. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' - */ + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ status?: PrivateEndpointServiceConnectionStatus; + /** The reason for approval/rejection of the connection. */ + description?: string; + /** A message indicating if changes on the service provider require any updates on the consumer. */ + actionsRequired?: string; +} + +/** Identity for the resource. */ +export interface Identity { /** - * The reason for approval/rejection of the connection. + * The principal ID of resource identity. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly principalId?: string; /** - * A message indicating if changes on the service provider require any updates on the consumer. + * The tenant ID of resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - actionsRequired?: string; + readonly tenantId?: string; + /** The identity type. */ + type?: ResourceIdentityType; + /** The user assigned identities associated with the resource. */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; } -/** - * The Private Endpoint Connection resource. - */ -export interface PrivateEndpointConnection extends BaseResource { +/** User Assigned Identity */ +export interface UserAssignedIdentity { /** - * ResourceId of the private endpoint connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The principal ID of the user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly principalId?: string; /** - * Friendly name of the private endpoint connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The tenant ID of the user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly tenantId?: string; /** - * Resource type of private endpoint connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The clientId(aka appId) of the user assigned identity. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly clientId?: string; +} + +/** Sku of the resource */ +export interface Sku { + /** Name of the sku */ + name?: string; + /** Tier of the sku like Basic or Enterprise */ + tier?: string; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { /** - * The resource of private end point. + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. */ - privateEndpoint?: PrivateEndpoint; + readonly id?: string; /** - * A collection of information about the state of the connection between service consumer and - * provider. + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. */ - privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; + readonly name?: string; /** - * The provisioning state of the private endpoint connection resource. Possible values include: - * 'Succeeded', 'Creating', 'Deleting', 'Failed' + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. */ - provisioningState?: PrivateEndpointConnectionProvisioningState; + readonly type?: string; } -/** - * An interface representing SharedPrivateLinkResource. - */ export interface SharedPrivateLinkResource { - /** - * Unique name of the private link. - */ + /** Unique name of the private link. */ name?: string; - /** - * The resource id that private link links to. - */ + /** The resource id that private link links to. */ privateLinkResourceId?: string; - /** - * The private link resource group id. - */ + /** The private link resource group id. */ groupId?: string; - /** - * Request message. - */ + /** Request message. */ requestMessage?: string; - /** - * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the - * service. Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' - */ + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ status?: PrivateEndpointServiceConnectionStatus; } -/** - * Azure Resource Manager resource envelope. - */ -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; +export interface NotebookResourceInfo { + fqdn?: string; + /** the data plane resourceId that used to initialize notebook component */ + resourceId?: string; + /** The error that occurs when preparing notebook. */ + notebookPreparationError?: NotebookPreparationError; +} + +export interface NotebookPreparationError { + errorMessage?: string; + statusCode?: number; +} + +export interface ServiceManagedResourcesSettings { + /** The settings for the service managed cosmosdb account. */ + cosmosDb?: CosmosDbSettings; +} + +export interface CosmosDbSettings { + /** The throughput of the collections in cosmosdb database */ + collectionsThroughput?: number; +} + +/** The parameters for updating a machine learning workspace. */ +export interface WorkspaceUpdateParameters { + /** The resource tags for the machine learning workspace. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; + /** The identity of the resource. */ + identity?: Identity; + /** The description of this workspace. */ + description?: string; + /** The friendly name for this workspace. */ + friendlyName?: string; + /** The compute name for image build */ + imageBuildCompute?: string; + /** The service managed resource settings. */ + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + /** The user assigned identity resource id that represents the workspace identity. */ + primaryUserAssignedIdentity?: string; + /** Whether requests from Public Network are allowed. */ + publicNetworkAccess?: PublicNetworkAccess; +} + +/** The result of a request to list machine learning workspaces. */ +export interface WorkspaceListResult { + /** The list of machine learning workspaces. Since this list may be incomplete, the nextLink field should be used to request the next list of machine learning workspaces. */ + value?: Workspace[]; + /** The URI that can be used to request the next list of machine learning workspaces. */ + nextLink?: string; +} + +/** Parameters to diagnose a workspace */ +export interface DiagnoseWorkspaceParameters { + /** Value of Parameters */ + value?: DiagnoseRequestProperties; +} + +export interface DiagnoseRequestProperties { + /** Setting for diagnosing user defined routing */ + udr?: { [propertyName: string]: Record }; + /** Setting for diagnosing network security group */ + nsg?: { [propertyName: string]: Record }; + /** Setting for diagnosing resource lock */ + resourceLock?: { [propertyName: string]: Record }; + /** Setting for diagnosing dns resolution */ + dnsResolution?: { [propertyName: string]: Record }; + /** Setting for diagnosing dependent storage account */ + storageAccount?: { [propertyName: string]: Record }; + /** Setting for diagnosing dependent key vault */ + keyVault?: { [propertyName: string]: Record }; + /** Setting for diagnosing dependent container registry */ + containerRegistry?: { [propertyName: string]: Record }; + /** Setting for diagnosing dependent application insights */ + applicationInsights?: { [propertyName: string]: Record }; + /** Setting for diagnosing unclassified category of problems */ + others?: { [propertyName: string]: Record }; +} + +export interface DiagnoseResponseResult { + value?: DiagnoseResponseResultValue; +} + +export interface DiagnoseResponseResultValue { + userDefinedRouteResults?: DiagnoseResult[]; + networkSecurityRuleResults?: DiagnoseResult[]; + resourceLockResults?: DiagnoseResult[]; + dnsResolutionResults?: DiagnoseResult[]; + storageAccountResults?: DiagnoseResult[]; + keyVaultResults?: DiagnoseResult[]; + containerRegistryResults?: DiagnoseResult[]; + applicationInsightsResults?: DiagnoseResult[]; + otherResults?: DiagnoseResult[]; +} + +/** Result of Diagnose */ +export interface DiagnoseResult { /** - * The identity of the resource. + * Code for workspace setup error + * NOTE: This property will not be serialized. It can only be populated by the server. */ - identity?: Identity; + readonly code?: string; /** - * Specifies the location of the resource. + * Level of workspace setup error + * NOTE: This property will not be serialized. It can only be populated by the server. */ - location?: string; + readonly level?: DiagnoseResultLevel; /** - * Specifies the type of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Message of workspace setup error + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly message?: string; +} + +export interface ListWorkspaceKeysResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly userStorageKey?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly userStorageResourceId?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly appInsightsInstrumentationKey?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly containerRegistryCredentials?: RegistryListCredentialsResult; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly notebookAccessKeys?: ListNotebookKeysResult; +} + +export interface RegistryListCredentialsResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly location?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly username?: string; + passwords?: Password[]; +} + +export interface Password { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly name?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly value?: string; +} + +export interface ListNotebookKeysResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly primaryAccessKey?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly secondaryAccessKey?: string; +} + +/** The List Usages operation response. */ +export interface ListUsagesResult { /** - * Contains resource tags defined as key/value pairs. + * The list of AML resource usages. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - tags?: { [propertyName: string]: string }; + readonly value?: Usage[]; /** - * The sku of the workspace. + * The URI to fetch the next page of AML resource usage information. Call ListNext() with this to fetch the next page of AML resource usage information. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sku?: Sku; + readonly nextLink?: string; } -/** - * An object that represents a machine learning workspace. - */ -export interface Workspace extends Resource { - /** - * The immutable id associated with this workspace. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly workspaceId?: string; +/** Describes AML Resource Usage. */ +export interface Usage { /** - * The description of this workspace. + * Specifies the resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly id?: string; /** - * The friendly name for this workspace. This name in mutable + * Region of the AML workspace in the id. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - friendlyName?: string; + readonly amlWorkspaceLocation?: string; /** - * The creation time of the machine learning workspace in ISO8601 format. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTime?: Date; + readonly type?: string; /** - * ARM id of the key vault associated with this workspace. This cannot be changed once the - * workspace has been created + * An enum describing the unit of usage measurement. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - keyVault?: string; + readonly unit?: UsageUnit; /** - * ARM id of the application insights associated with this workspace. This cannot be changed once - * the workspace has been created + * The current usage of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - applicationInsights?: string; + readonly currentValue?: number; /** - * ARM id of the container registry associated with this workspace. This cannot be changed once - * the workspace has been created + * The maximum permitted usage of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - containerRegistry?: string; + readonly limit?: number; /** - * ARM id of the storage account associated with this workspace. This cannot be changed once the - * workspace has been created + * The name of the type of usage. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - storageAccount?: string; + readonly name?: UsageName; +} + +/** The Usage Names. */ +export interface UsageName { /** - * Url for the discovery service to identify regional endpoints for machine learning - * experimentation services + * The name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - discoveryUrl?: string; + readonly value?: string; /** - * The current deployment state of workspace resource. The provisioningState is to indicate - * states for resource provisioning. 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.** + * The localized name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly localizedValue?: string; +} + +/** The List Virtual Machine size operation response. */ +export interface VirtualMachineSizeListResult { + /** The list of virtual machine sizes supported by AmlCompute. */ + value?: VirtualMachineSize[]; +} + +/** Describes the properties of a VM size. */ +export interface VirtualMachineSize { /** - * The encryption settings of Azure ML workspace. + * The name of the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - encryption?: EncryptionProperty; + readonly name?: string; /** - * The flag to signal HBI data in the workspace and reduce diagnostic data collected by the - * service. Default value: false. + * The family name of the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - hbiWorkspace?: boolean; + readonly family?: string; /** - * The name of the managed resource group created by workspace RP in customer subscription if the - * workspace is CMK workspace - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The number of vCPUs supported by the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceProvisionedResourceGroup?: string; + readonly vCPUs?: number; /** - * Count of private connections in the workspace - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The number of gPUs supported by the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateLinkCount?: number; + readonly gpus?: number; /** - * The compute name for image build + * The OS VHD disk size, in MB, allowed by the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - imageBuildCompute?: string; + readonly osVhdSizeMB?: number; /** - * The flag to indicate whether to allow public access when behind VNet. Default value: false. + * The resource volume size, in MB, allowed by the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - allowPublicAccessWhenBehindVnet?: boolean; + readonly maxResourceVolumeMB?: number; /** - * The list of private endpoint connections in the workspace. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The amount of memory, in GB, supported by the virtual machine size. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnections?: PrivateEndpointConnection[]; + readonly memoryGB?: number; /** - * The list of shared private link resources in this workspace. + * Specifies if the virtual machine size supports low priority VMs. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + readonly lowPriorityCapable?: boolean; /** - * The notebook info of Azure ML workspace. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies if the virtual machine size supports premium IO. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly notebookInfo?: NotebookResourceInfo; -} + readonly premiumIO?: boolean; + /** The estimated price information for using a VM. */ + estimatedVMPrices?: EstimatedVMPrices; + /** Specifies the compute types supported by the virtual machine size. */ + supportedComputeTypes?: string[]; +} -/** - * Sku of the resource - */ -export interface Sku { - /** - * Name of the sku - */ - name?: string; - /** - * Tier of the sku like Basic or Enterprise - */ - tier?: string; +/** The estimated price info for using a VM. */ +export interface EstimatedVMPrices { + /** Three lettered code specifying the currency of the VM price. Example: USD */ + billingCurrency: BillingCurrency; + /** The unit of time measurement for the specified VM price. Example: OneHour */ + unitOfMeasure: UnitOfMeasure; + /** The list of estimated prices for using a VM of a particular OS type, tier, etc. */ + values: EstimatedVMPrice[]; } -/** - * The parameters for updating a machine learning workspace. - */ -export interface WorkspaceUpdateParameters { - /** - * The resource tags for the machine learning workspace. - */ - tags?: { [propertyName: string]: string }; - /** - * The sku of the workspace. - */ - sku?: Sku; +/** The estimated price info for using a VM of a particular OS type, tier, etc. */ +export interface EstimatedVMPrice { + /** The price charged for using the VM. */ + retailPrice: number; + /** Operating system type used by the VM. */ + osType: VMPriceOSType; + /** The type of the VM. */ + vmTier: VMTier; +} + +/** Quota update parameters. */ +export interface QuotaUpdateParameters { + /** The list for update quota. */ + value?: QuotaBaseProperties[]; + /** Region of workspace quota to be updated. */ + location?: string; +} + +/** The properties for Quota update or retrieval. */ +export interface QuotaBaseProperties { + /** Specifies the resource ID. */ + id?: string; + /** Specifies the resource type. */ + type?: string; + /** The maximum permitted quota of the resource. */ + limit?: number; + /** An enum describing the unit of quota measurement. */ + unit?: QuotaUnit; +} + +/** The result of update workspace quota. */ +export interface UpdateWorkspaceQuotasResult { /** - * The description of this workspace. + * The list of workspace quota update result. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly value?: UpdateWorkspaceQuotas[]; /** - * The friendly name for this workspace. + * The URI to fetch the next page of workspace quota update result. Call ListNext() with this to fetch the next page of Workspace Quota update result. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - friendlyName?: string; + readonly nextLink?: string; } -/** - * Features enabled for a workspace - */ -export interface AmlUserFeature { +/** The properties for update Quota response. */ +export interface UpdateWorkspaceQuotas { /** - * Specifies the feature ID + * Specifies the resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - id?: string; + readonly id?: string; /** - * Specifies the feature name + * Specifies the resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - displayName?: string; + readonly type?: string; + /** The maximum permitted quota of the resource. */ + limit?: number; /** - * Describes the feature for user experience + * An enum describing the unit of quota measurement. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly unit?: QuotaUnit; + /** Status of update workspace quota. */ + status?: Status; } -/** - * The Usage Names. - */ -export interface UsageName { +/** The List WorkspaceQuotasByVMFamily operation response. */ +export interface ListWorkspaceQuotas { /** - * The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The list of Workspace Quotas by VM Family + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: string; + readonly value?: ResourceQuota[]; /** - * The localized name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The URI to fetch the next page of workspace quota information by VM Family. Call ListNext() with this to fetch the next page of Workspace Quota information. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly localizedValue?: string; + readonly nextLink?: string; } -/** - * Describes AML Resource Usage. - */ -export interface Usage { +/** The quota assigned to a resource. */ +export interface ResourceQuota { /** * Specifies the resource ID. - * **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 id?: string; /** - * Specifies the resource type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Region of the AML workspace in the id. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly amlWorkspaceLocation?: string; /** - * An enum describing the unit of usage measurement. Possible values include: 'Count' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: UsageUnit; + readonly type?: string; /** - * The current usage of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentValue?: number; + readonly name?: ResourceName; /** - * The maximum permitted usage of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The maximum permitted quota of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly limit?: number; /** - * The name of the type of usage. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * An enum describing the unit of quota measurement. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: UsageName; + readonly unit?: QuotaUnit; } -/** - * The estimated price info for using a VM of a particular OS type, tier, etc. - */ -export interface EstimatedVMPrice { - /** - * Retail price. The price charged for using the VM. - */ - retailPrice: number; +/** The Resource Name. */ +export interface ResourceName { /** - * OS type. Operating system type used by the VM. Possible values include: 'Linux', 'Windows' + * The name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - osType: VMPriceOSType; + readonly value?: string; /** - * VM tier. The type of the VM. Possible values include: 'Standard', 'LowPriority', 'Spot' + * The localized name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - vmTier: VMTier; + readonly localizedValue?: string; } -/** - * The estimated price info for using a VM. - */ -export interface EstimatedVMPrices { - /** - * List of estimated VM prices. The list of estimated prices for using a VM of a particular OS - * type, tier, etc. - */ - values: EstimatedVMPrice[]; +/** Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. */ +export interface PaginatedComputeResourcesList { + /** An array of Machine Learning compute objects wrapped in ARM resource envelope. */ + value?: ComputeResource[]; + /** A continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; } -/** - * Describes the properties of a VM size. - */ -export interface VirtualMachineSize { - /** - * Virtual Machine size name. The name of the virtual machine size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Virtual Machine family name. The family name of the virtual machine size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly family?: string; - /** - * Number of vPUs. The number of vCPUs supported by the virtual machine size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly vCPUs?: number; - /** - * Number of gPUs. The number of gPUs supported by the virtual machine size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly gpus?: number; +export interface Components1D3SwueSchemasComputeresourceAllof1 { + /** Compute properties */ + properties?: ComputeUnion; +} + +/** Machine Learning compute object. */ +export interface Compute { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: + | "AKS" + | "Kubernetes" + | "AmlCompute" + | "ComputeInstance" + | "VirtualMachine" + | "HDInsight" + | "DataFactory" + | "Databricks" + | "DataLakeAnalytics" + | "SynapseSpark"; + /** Location for the underlying compute */ + computeLocation?: string; /** - * OS VHD Disk size. The OS VHD disk size, in MB, allowed by the virtual machine size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. */ - readonly osVhdSizeMB?: number; + readonly provisioningState?: ProvisioningState; + /** The description of the Machine Learning compute. */ + description?: string; /** - * Resource volume size. The resource volume size, in MB, allowed by the virtual machine size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The time at which the compute was created. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxResourceVolumeMB?: number; + readonly createdOn?: Date; /** - * Memory size. The amount of memory, in GB, supported by the virtual machine size. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The time at which the compute was last modified. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly memoryGB?: number; + readonly modifiedOn?: Date; + /** ARM resource id of the underlying compute */ + resourceId?: string; /** - * Low priority capable. Specifies if the virtual machine size supports low priority VMs. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Errors during provisioning + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lowPriorityCapable?: boolean; + readonly provisioningErrors?: ErrorResponse[]; /** - * Premium IO supported. Specifies if the virtual machine size supports premium IO. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly premiumIO?: boolean; + readonly isAttachedCompute?: boolean; + /** Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. */ + disableLocalAuth?: boolean; +} + +/** AmlCompute update parameters. */ +export interface ClusterUpdateParameters { + /** Properties of ClusterUpdate */ + properties?: ScaleSettingsInformation; +} + +/** Desired scale settings for the amlCompute. */ +export interface ScaleSettingsInformation { + /** scale settings for AML Compute */ + scaleSettings?: ScaleSettings; +} + +/** scale settings for AML Compute */ +export interface ScaleSettings { + /** Max number of nodes to use */ + maxNodeCount: number; + /** Min number of nodes to use */ + minNodeCount?: number; + /** Node Idle Time before scaling down amlCompute. This string needs to be in the RFC Format. */ + nodeIdleTimeBeforeScaleDown?: string; +} + +/** Result of AmlCompute Nodes */ +export interface AmlComputeNodesInformation { /** - * Estimated VM prices. The estimated price information for using a VM. + * The collection of returned AmlCompute nodes details. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - estimatedVMPrices?: EstimatedVMPrices; + readonly nodes?: AmlComputeNodeInformation[]; /** - * Supported Compute Types. Specifies the compute types supported by the virtual machine size. + * The continuation token. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - supportedComputeTypes?: string[]; + readonly nextLink?: string; } -/** - * The List Virtual Machine size operation response. - */ -export interface VirtualMachineSizeListResult { +/** Compute node information related to a AmlCompute. */ +export interface AmlComputeNodeInformation { /** - * The list of virtual machine sizes supported by AmlCompute. + * ID of the compute node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - amlCompute?: VirtualMachineSize[]; -} - -/** - * The properties for Quota update or retrieval. - */ -export interface QuotaBaseProperties { + readonly nodeId?: string; /** - * Specifies the resource ID. + * Private IP address of the compute node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - id?: string; + readonly privateIpAddress?: string; /** - * Specifies the resource type. + * Public IP address of the compute node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - type?: string; + readonly publicIpAddress?: string; /** - * Limit. The maximum permitted quota of the resource. + * SSH port number of the node. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - limit?: number; + readonly port?: number; /** - * An enum describing the unit of quota measurement. Possible values include: 'Count' + * State of the compute node. Values are idle, running, preparing, unusable, leaving and preempted. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - unit?: QuotaUnit; -} - -/** - * Quota update parameters. - */ -export interface QuotaUpdateParameters { + readonly nodeState?: NodeState; /** - * The list for update quota. + * ID of the Experiment running on the node, if any else null. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - value?: QuotaBaseProperties[]; + readonly runId?: string; } -/** - * The properties for update Quota response. - */ -export interface UpdateWorkspaceQuotas { +export interface NotebookAccessTokenResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly notebookResourceId?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly hostName?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly publicDns?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly accessToken?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly tokenType?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly expiresIn?: number; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly refreshToken?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly scope?: string; +} + +/** Secrets related to a Machine Learning compute. Might differ for every type of compute. */ +export interface ComputeSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AKS" | "VirtualMachine" | "Databricks"; +} + +/** List of private endpoint connection associated with the specified workspace */ +export interface PrivateEndpointConnectionListResult { + /** Array of private endpoint connections */ + value?: PrivateEndpointConnection[]; +} + +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { + /** Array of private link resources */ + value?: PrivateLinkResource[]; +} + +export interface ListStorageAccountKeysResult { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly userStorageKey?: string; +} + +/** Paginated list of Workspace connection objects. */ +export interface PaginatedWorkspaceConnectionsList { + /** An array of Workspace connection objects. */ + value?: WorkspaceConnection[]; + /** A continuation link (absolute URI) to the next page of results in the list. */ + nextLink?: string; +} + +/** Workspace connection. */ +export interface WorkspaceConnection { /** - * Specifies the resource ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * ResourceId of the workspace connection. + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** - * Specifies the resource type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Limit. The maximum permitted quota of the resource. - */ - limit?: number; - /** - * An enum describing the unit of quota measurement. Possible values include: 'Count' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Friendly name of the workspace connection. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: QuotaUnit; + readonly name?: string; /** - * Update Workspace Quota Status. Status of update workspace quota. Possible values include: - * 'Undefined', 'Success', 'Failure', 'InvalidQuotaBelowClusterMinimum', - * 'InvalidQuotaExceedsSubscriptionLimit', 'InvalidVMFamilyName', 'OperationNotSupportedForSku', - * 'OperationNotEnabledForRegion' + * Resource type of workspace connection. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - status?: Status; + readonly type?: string; + /** Category of the workspace connection. */ + category?: string; + /** Target of the workspace connection. */ + target?: string; + /** Authorization type of the workspace connection. */ + authType?: string; + /** Value details of the workspace connection. */ + value?: string; + /** format for the workspace connection value */ + valueFormat?: ValueFormat; } -/** - * The result of update workspace quota. - */ -export interface UpdateWorkspaceQuotasResult { +export interface ExternalFqdnResponse { + value?: FqdnEndpoints[]; +} + +export interface FqdnEndpoints { + properties?: FqdnEndpointsProperties; +} + +export interface FqdnEndpointsProperties { + category?: string; + endpoints?: FqdnEndpoint[]; +} + +export interface FqdnEndpoint { + domainName?: string; + endpointDetails?: FqdnEndpointDetail[]; +} + +export interface FqdnEndpointDetail { + port?: number; +} + +/** The List Aml user feature operation response. */ +export interface ListAmlUserFeatureResult { /** - * The list of workspace quota update result. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The list of AML user facing features. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: UpdateWorkspaceQuotas[]; + readonly value?: AmlUserFeature[]; /** - * The URI to fetch the next page of workspace quota update result. Call ListNext() with this to - * fetch the next page of Workspace Quota update result. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The URI to fetch the next page of AML user features information. Call ListNext() with this to fetch the next page of AML user features information. + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } -/** - * The Resource Name. - */ -export interface ResourceName { +/** Features enabled for a workspace */ +export interface AmlUserFeature { + /** Specifies the feature ID */ + id?: string; + /** Specifies the feature name */ + displayName?: string; + /** Describes the feature for user experience */ + description?: string; +} + +/** List of skus with features */ +export interface SkuListResult { + value?: WorkspaceSku[]; + /** The URI to fetch the next page of Workspace Skus. Call ListNext() with this URI to fetch the next page of Workspace Skus */ + nextLink?: string; +} + +/** Describes Workspace Sku details and features */ +export interface WorkspaceSku { /** - * The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: string; + readonly locations?: string[]; /** - * The localized name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A list of locations and availability zones in those locations where the SKU is available. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly localizedValue?: string; -} - -/** - * The quota assigned to a resource. - */ -export interface ResourceQuota { + readonly locationInfo?: ResourceSkuLocationInfo[]; /** - * Specifies the resource ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Sku Tier like Basic or Enterprise + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly tier?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly resourceType?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly name?: string; /** - * Specifies the resource type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of features/user capabilities associated with the sku + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly capabilities?: SKUCapability[]; + /** The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. */ + restrictions?: Restriction[]; +} + +export interface ResourceSkuLocationInfo { /** - * Name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Location of the SKU + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: ResourceName; + readonly location?: string; /** - * Limit. The maximum permitted quota of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of availability zones where the SKU is supported. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly limit?: number; + readonly zones?: string[]; /** - * An enum describing the unit of quota measurement. Possible values include: 'Count' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Details of capabilities available to a SKU in specific zones. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unit?: QuotaUnit; + readonly zoneDetails?: ResourceSkuZoneDetails[]; } -/** - * An interface representing IdentityUserAssignedIdentitiesValue. - */ -export interface IdentityUserAssignedIdentitiesValue { +/** Describes The zonal capabilities of a SKU. */ +export interface ResourceSkuZoneDetails { /** - * The principal id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The set of zones that the SKU is available in with the specified capabilities. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly name?: string[]; /** - * The client id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A list of capabilities that are available for the SKU in the specified list of zones. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly clientId?: string; + readonly capabilities?: SKUCapability[]; } -/** - * Identity for the resource. - */ -export interface Identity { - /** - * The principal ID of resource identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly principalId?: string; - /** - * The tenant ID of resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly tenantId?: string; +/** Features/user capabilities associated with the sku */ +export interface SKUCapability { + /** Capability/Feature ID */ + name?: string; + /** Details about the feature/capability */ + value?: string; +} + +/** The restriction because of which SKU cannot be used. */ +export interface Restriction { /** - * The identity type. Possible values include: 'SystemAssigned', 'UserAssigned', - * 'SystemAssigned,UserAssigned', 'None' + * The type of restrictions. As of now only possible value for this is location. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - type: ResourceIdentityType; + readonly type?: string; /** - * The list of user identities associated with resource. The user identity dictionary key - * references will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + * The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - userAssignedIdentities?: { [propertyName: string]: IdentityUserAssignedIdentitiesValue }; + readonly values?: string[]; + /** The reason for the restriction. */ + reasonCode?: ReasonCode; } -/** - * Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet. - */ -export interface ResourceId extends BaseResource { - /** - * The ID of the resource - */ +/** Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet. */ +export interface ResourceId { + /** The ID of the resource */ id: string; } -/** - * An interface representing Password. - */ -export interface Password { - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; +/** AKS properties */ +export interface AKSProperties { + /** Cluster full qualified domain name */ + clusterFqdn?: string; /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * System services + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: string; + readonly systemServices?: SystemService[]; + /** Number of agents */ + agentCount?: number; + /** Agent virtual machine size */ + agentVmSize?: string; + /** Intended usage of the cluster */ + clusterPurpose?: ClusterPurpose; + /** SSL configuration */ + sslConfiguration?: SslConfiguration; + /** AKS networking configuration for vnet */ + aksNetworkingConfiguration?: AksNetworkingConfiguration; + /** Load Balancer Type */ + loadBalancerType?: LoadBalancerType; + /** Load Balancer Subnet */ + loadBalancerSubnet?: string; } -/** - * An interface representing RegistryListCredentialsResult. - */ -export interface RegistryListCredentialsResult { +/** A system service running on a compute. */ +export interface SystemService { /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The type of this system service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly systemServiceType?: string; /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Public IP address + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly username?: string; - passwords?: Password[]; + readonly publicIpAddress?: string; + /** + * The version for this type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly version?: string; } -/** - * An interface representing ListWorkspaceKeysResult. - */ -export interface ListWorkspaceKeysResult { +/** The ssl configuration for scoring */ +export interface SslConfiguration { + /** Enable or disable ssl for scoring */ + status?: SslConfigurationStatus; + /** Cert data */ + cert?: string; + /** Key data */ + key?: string; + /** CNAME of the cert */ + cname?: string; + /** Leaf domain label of public endpoint */ + leafDomainLabel?: string; + /** Indicates whether to overwrite existing domain label. */ + overwriteExistingDomain?: boolean; +} + +/** Advance configuration for AKS networking */ +export interface AksNetworkingConfiguration { + /** Virtual network subnet resource ID the compute nodes belong to */ + subnetId?: string; + /** A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges. */ + serviceCidr?: string; + /** An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr. */ + dnsServiceIP?: string; + /** A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range. */ + dockerBridgeCidr?: string; +} + +/** Kubernetes Compute Schema */ +export interface KubernetesSchema { + /** Properties of Kubernetes */ + properties?: KubernetesProperties; +} + +/** Kubernetes properties */ +export interface KubernetesProperties { + /** Relay connection string. */ + relayConnectionString?: string; + /** ServiceBus connection string. */ + serviceBusConnectionString?: string; + /** Extension principal-id. */ + extensionPrincipalId?: string; + /** Extension instance release train. */ + extensionInstanceReleaseTrain?: string; + /** VC name. */ + vcName?: string; + /** Compute namespace */ + namespace?: string; + /** Default instance type */ + defaultInstanceType?: string; + /** Instance Type Schema */ + instanceTypes?: { [propertyName: string]: InstanceTypeSchema }; +} + +/** Instance type schema. */ +export interface InstanceTypeSchema { + /** Node Selector */ + nodeSelector?: { [propertyName: string]: string }; + /** Resource requests/limits for this instance type */ + resources?: InstanceTypeSchemaResources; +} + +/** Resource requests/limits for this instance type */ +export interface InstanceTypeSchemaResources { + /** Resource requests for this instance type */ + requests?: { [propertyName: string]: string }; + /** Resource limits for this instance type */ + limits?: { [propertyName: string]: string }; +} + +/** AML Compute properties */ +export interface AmlComputeProperties { + /** Compute OS Type */ + osType?: OsType; + /** Virtual Machine Size */ + vmSize?: string; + /** Virtual Machine priority */ + vmPriority?: VmPriority; + /** Virtual Machine image for AML Compute - windows only */ + virtualMachineImage?: VirtualMachineImage; + /** Network is isolated or not */ + isolatedNetwork?: boolean; + /** Scale settings for AML Compute */ + scaleSettings?: ScaleSettings; + /** Credentials for an administrator user account that will be created on each compute node. */ + userAccountCredentials?: UserAccountCredentials; + /** Virtual network subnet resource ID the compute nodes belong to. */ + subnet?: ResourceId; + /** State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on all nodes of the cluster. Enabled - Indicates that the public ssh port is open on all nodes of the cluster. NotSpecified - Indicates that the public ssh port is closed on all nodes of the cluster if VNet is defined, else is open all public nodes. It can be default only during cluster creation time, after creation it will be either enabled or disabled. */ + remoteLoginPortPublicAccess?: RemoteLoginPortPublicAccess; /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Allocation state of the compute. Possible values are: steady - Indicates that the compute is not resizing. There are no changes to the number of compute nodes in the compute in progress. A compute enters this state when it is created and when no operations are being performed on the compute to change the number of compute nodes. resizing - Indicates that the compute is resizing; that is, compute nodes are being added to or removed from the compute. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userStorageKey?: string; + readonly allocationState?: AllocationState; /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The time at which the compute entered its current allocation state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userStorageResourceId?: string; + readonly allocationStateTransitionTime?: Date; /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Collection of errors encountered by various compute nodes during node setup. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly appInsightsInstrumentationKey?: string; + readonly errors?: ErrorResponse[]; /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The number of compute nodes currently assigned to the compute. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly containerRegistryCredentials?: RegistryListCredentialsResult; - notebookAccessKeys?: NotebookListCredentialsResult; -} - -/** - * Error detail information. - */ -export interface ErrorDetail { + readonly currentNodeCount?: number; /** - * Error code. + * The target number of compute nodes for the compute. If the allocationState is resizing, this property denotes the target node count for the ongoing resize operation. If the allocationState is steady, this property denotes the target node count for the previous resize operation. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - code: string; + readonly targetNodeCount?: number; /** - * Error message. + * Counts of various node states on the compute. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - message: string; + readonly nodeStateCounts?: NodeStateCounts; + /** Enable or disable node public IP address provisioning. Possible values are: Possible values are: true - Indicates that the compute nodes will have public IPs provisioned. false - Indicates that the compute nodes will have a private endpoint and no public IPs. */ + enableNodePublicIp?: boolean; } -/** - * Error response information. - */ -export interface ErrorResponse { - /** - * Error code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly code?: string; - /** - * Error message. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly message?: string; - /** - * An array of error detail objects. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly details?: ErrorDetail[]; +/** Virtual Machine image for Windows AML Compute */ +export interface VirtualMachineImage { + /** Virtual Machine image path */ + id: string; } -/** - * Wrapper for error response to follow ARM guidelines. - */ -export interface MachineLearningServiceError { - /** - * The error response. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly error?: ErrorResponse; +/** Settings for user account that gets created on each on the nodes of a compute. */ +export interface UserAccountCredentials { + /** Name of the administrator user account which can be used to SSH to nodes. */ + adminUserName: string; + /** SSH public key of the administrator user account. */ + adminUserSshPublicKey?: string; + /** Password of the administrator user account. */ + adminUserPassword?: string; } -/** - * Contains the possible cases for Compute. - */ -export type ComputeUnion = Compute | AKS | AmlCompute | ComputeInstance | VirtualMachine | HDInsight | DataFactory | Databricks | DataLakeAnalytics; - -/** - * Machine Learning compute object. - */ -export interface Compute { - /** - * Polymorphic Discriminator - */ - computeType: "Compute"; +/** Counts of various compute node states on the amlCompute. */ +export interface NodeStateCounts { /** - * Location for the underlying compute + * Number of compute nodes in idle state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - computeLocation?: string; + readonly idleNodeCount?: number; /** - * 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.** + * Number of compute nodes which are running jobs. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly runningNodeCount?: number; /** - * The description of the Machine Learning compute. + * Number of compute nodes which are being prepared. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - description?: string; + readonly preparingNodeCount?: number; /** - * The date and time when the compute was created. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Number of compute nodes which are in unusable state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdOn?: Date; + readonly unusableNodeCount?: number; /** - * The date and time when the compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Number of compute nodes which are leaving the amlCompute. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly modifiedOn?: Date; + readonly leavingNodeCount?: number; /** - * ARM resource id of the underlying compute + * Number of compute nodes which are in preempted state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - resourceId?: string; + readonly preemptedNodeCount?: number; +} + +/** Compute Instance properties */ +export interface ComputeInstanceProperties { + /** Virtual Machine Size */ + vmSize?: string; + /** Virtual network subnet resource ID the compute nodes belong to. */ + subnet?: ResourceId; + /** Policy for sharing applications on this compute instance among users of parent workspace. If Personal, only the creator can access applications on this compute instance. When Shared, any workspace user can access applications on this instance depending on his/her assigned role. */ + applicationSharingPolicy?: ApplicationSharingPolicy; + /** Specifies policy and settings for SSH access. */ + sshSettings?: ComputeInstanceSshSettings; /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Describes all connectivity endpoints available for this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningErrors?: MachineLearningServiceError[]; + readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Describes available applications and their endpoints on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isAttachedCompute?: boolean; -} - -/** - * Machine Learning compute object wrapped into ARM resource envelope. - */ -export interface ComputeResource extends Resource { + readonly applications?: ComputeInstanceApplication[]; /** - * Compute properties + * Describes information on user who created this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - properties?: ComputeUnion; -} - -/** - * A system service running on a compute. - */ -export interface SystemService { + readonly createdBy?: ComputeInstanceCreatedBy; /** - * The type of this system service. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Collection of errors encountered on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemServiceType?: string; + readonly errors?: ErrorResponse[]; /** - * Public IP address - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The current state of this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicIpAddress?: string; + readonly state?: ComputeInstanceState; + /** The Compute Instance Authorization type. Available values are personal (default). */ + computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; + /** Settings for a personal compute instance. */ + personalComputeInstanceSettings?: PersonalComputeInstanceSettings; + /** Details of customized scripts to execute for setting up the cluster. */ + setupScripts?: SetupScripts; /** - * The version for this type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The last operation on ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: string; + readonly lastOperation?: ComputeInstanceLastOperation; } -/** - * The ssl configuration for scoring - */ -export interface SslConfiguration { +/** Specifies policy and settings for SSH access. */ +export interface ComputeInstanceSshSettings { + /** State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable. */ + sshPublicAccess?: SshPublicAccess; /** - * Enable or disable ssl for scoring. Possible values include: 'Disabled', 'Enabled' + * Describes the admin user name. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - status?: Status1; + readonly adminUserName?: string; /** - * Cert data + * Describes the port for connecting through SSH. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - cert?: string; + readonly sshPort?: number; + /** Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs. */ + adminPublicKey?: string; +} + +/** Defines all connectivity endpoints and properties for an ComputeInstance. */ +export interface ComputeInstanceConnectivityEndpoints { /** - * Key data + * Public IP Address of this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - key?: string; + readonly publicIpAddress?: string; /** - * CNAME of the cert + * Private IP Address of this ComputeInstance (local to the VNET in which the compute instance is deployed). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - cname?: string; + readonly privateIpAddress?: string; } -/** - * Advance configuration for AKS networking - */ -export interface AksNetworkingConfiguration { - /** - * Virtual network subnet resource ID the compute nodes belong to - */ - subnetId?: string; +/** Defines an Aml Instance application and its connectivity endpoint URI. */ +export interface ComputeInstanceApplication { + /** Name of the ComputeInstance application. */ + displayName?: string; + /** Application' endpoint URI. */ + endpointUri?: string; +} + +/** Describes information on user who created this ComputeInstance. */ +export interface ComputeInstanceCreatedBy { /** - * A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with - * any Subnet IP ranges. + * Name of the user. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - serviceCidr?: string; + readonly userName?: string; /** - * An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service - * address range specified in serviceCidr. + * Uniquely identifies user' Azure Active Directory organization. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - dnsServiceIP?: string; + readonly userOrgId?: string; /** - * A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any - * Subnet IP ranges or the Kubernetes service address range. + * Uniquely identifies the user within his/her organization. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - dockerBridgeCidr?: string; + readonly userId?: string; } -/** - * AKS properties - */ -export interface AKSProperties { - /** - * Cluster full qualified domain name - */ - clusterFqdn?: string; - /** - * System services - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly systemServices?: SystemService[]; - /** - * Number of agents - */ - agentCount?: number; - /** - * Agent virtual machine size - */ - agentVMSize?: string; - /** - * SSL configuration - */ - sslConfiguration?: SslConfiguration; - /** - * AKS networking configuration for vnet - */ - aksNetworkingConfiguration?: AksNetworkingConfiguration; -} - -/** - * A Machine Learning compute based on AKS. - */ -export interface AKS { - /** - * Polymorphic Discriminator - */ - computeType: "AKS"; - /** - * Location for the underlying compute - */ - computeLocation?: string; - /** - * 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?: ProvisioningState; - /** - * The description of the Machine Learning compute. - */ - description?: string; - /** - * The date and time when the compute 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 compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly modifiedOn?: Date; - /** - * ARM resource id of the underlying compute - */ - resourceId?: string; - /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningErrors?: MachineLearningServiceError[]; - /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isAttachedCompute?: boolean; - /** - * AKS properties - */ - properties?: AKSProperties; -} - -/** - * scale settings for AML Compute - */ -export interface ScaleSettings { - /** - * Max number of nodes to use - */ - maxNodeCount: number; - /** - * Min number of nodes to use. Default value: 0. - */ - minNodeCount?: number; - /** - * Node Idle Time before scaling down amlCompute - */ - nodeIdleTimeBeforeScaleDown?: string; -} - -/** - * Settings for user account that gets created on each on the nodes of a compute. - */ -export interface UserAccountCredentials { - /** - * User name. Name of the administrator user account which can be used to SSH to nodes. - */ - adminUserName: string; - /** - * SSH public key. SSH public key of the administrator user account. - */ - adminUserSshPublicKey?: string; - /** - * Password. Password of the administrator user account. - */ - adminUserPassword?: string; -} - -/** - * Counts of various compute node states on the amlCompute. - */ -export interface NodeStateCounts { - /** - * Idle node count. Number of compute nodes in idle state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly idleNodeCount?: number; - /** - * Running node count. Number of compute nodes which are running jobs. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly runningNodeCount?: number; - /** - * Preparing node count. Number of compute nodes which are being prepared. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly preparingNodeCount?: number; - /** - * Unusable node count. Number of compute nodes which are in unusable state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unusableNodeCount?: number; - /** - * Leaving node count. Number of compute nodes which are leaving the amlCompute. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly leavingNodeCount?: number; - /** - * Preempted node count. Number of compute nodes which are in preempted state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly preemptedNodeCount?: number; -} - -/** - * AML Compute properties - */ -export interface AmlComputeProperties { - /** - * Virtual Machine Size - */ - vmSize?: string; - /** - * Virtual Machine priority. Possible values include: 'Dedicated', 'LowPriority' - */ - vmPriority?: VmPriority; - /** - * Scale settings for AML Compute - */ - scaleSettings?: ScaleSettings; - /** - * User account credentials. Credentials for an administrator user account that will be created - * on each compute node. - */ - userAccountCredentials?: UserAccountCredentials; - /** - * Subnet. Virtual network subnet resource ID the compute nodes belong to. - */ - subnet?: ResourceId; - /** - * Close remote Login Access Port. State of the public SSH port. Possible values are: Disabled - - * Indicates that the public ssh port is closed on all nodes of the cluster. Enabled - Indicates - * that the public ssh port is open on all nodes of the cluster. NotSpecified - Indicates that - * the public ssh port is closed on all nodes of the cluster if VNet is defined, else is open all - * public nodes. It can be default only during cluster creation time, after creation it will be - * either enabled or disabled. Possible values include: 'Enabled', 'Disabled', 'NotSpecified'. - * Default value: 'NotSpecified'. - */ - remoteLoginPortPublicAccess?: RemoteLoginPortPublicAccess; - /** - * Allocation state. Allocation state of the compute. Possible values are: steady - Indicates - * that the compute is not resizing. There are no changes to the number of compute nodes in the - * compute in progress. A compute enters this state when it is created and when no operations are - * being performed on the compute to change the number of compute nodes. resizing - Indicates - * that the compute is resizing; that is, compute nodes are being added to or removed from the - * compute. Possible values include: 'Steady', 'Resizing' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly allocationState?: AllocationState; - /** - * Allocation state transition time. The time at which the compute entered its current allocation - * state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly allocationStateTransitionTime?: Date; - /** - * Errors. Collection of errors encountered by various compute nodes during node setup. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errors?: MachineLearningServiceError[]; - /** - * Current node count. The number of compute nodes currently assigned to the compute. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly currentNodeCount?: number; - /** - * Target node count. The target number of compute nodes for the compute. If the allocationState - * is resizing, this property denotes the target node count for the ongoing resize operation. If - * the allocationState is steady, this property denotes the target node count for the previous - * resize operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly targetNodeCount?: number; - /** - * Node state counts. Counts of various node states on the compute. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nodeStateCounts?: NodeStateCounts; -} - -/** - * An Azure Machine Learning compute. - */ -export interface AmlCompute { - /** - * Polymorphic Discriminator - */ - computeType: "AmlCompute"; - /** - * Location for the underlying compute - */ - computeLocation?: string; - /** - * 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?: ProvisioningState; - /** - * The description of the Machine Learning compute. - */ - description?: string; - /** - * The date and time when the compute 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 compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly modifiedOn?: Date; - /** - * ARM resource id of the underlying compute - */ - resourceId?: string; - /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningErrors?: MachineLearningServiceError[]; - /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isAttachedCompute?: boolean; - /** - * AML Compute properties - */ - properties?: AmlComputeProperties; -} - -/** - * Specifies policy and settings for SSH access. - */ -export interface ComputeInstanceSshSettings { - /** - * Access policy for SSH. State of the public SSH port. Possible values are: Disabled - Indicates - * that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh - * port is open and accessible according to the VNet/subnet policy if applicable. Possible values - * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. - */ - sshPublicAccess?: SshPublicAccess; - /** - * Describes the admin user name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly adminUserName?: string; - /** - * Describes the port for connecting through SSH. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly sshPort?: number; - /** - * Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate - * your SSH key pairs. - */ - adminPublicKey?: string; -} - -/** - * Defines all connectivity endpoints and properties for a ComputeInstance. - */ -export interface ComputeInstanceConnectivityEndpoints { - /** - * Public IP Address of this ComputeInstance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly publicIpAddress?: string; - /** - * Private IP Address of this ComputeInstance (local to the VNET in which the compute instance is - * deployed). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly privateIpAddress?: string; -} - -/** - * Defines an Aml Instance application and its connectivity endpoint URI. - */ -export interface ComputeInstanceApplication { - /** - * Name of the ComputeInstance application. - */ - displayName?: string; - /** - * Application' endpoint URI. - */ - endpointUri?: string; -} - -/** - * Describes information on user who created this ComputeInstance. - */ -export interface ComputeInstanceCreatedBy { - /** - * Name of the user. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly userName?: string; - /** - * Uniquely identifies user' Azure Active Directory organization. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly userOrgId?: string; - /** - * Uniquely identifies the user within his/her organization. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly userId?: string; -} - -/** - * The last operation on ComputeInstance. - */ -export interface ComputeInstanceLastOperation { - /** - * Name of the last operation. Possible values include: 'Create', 'Start', 'Stop', 'Restart', - * 'Reimage', 'Delete' - */ - operationName?: OperationName; - /** - * Time of the last operation. - */ - operationTime?: Date; - /** - * Operation status. Possible values include: 'InProgress', 'Succeeded', 'CreateFailed', - * 'StartFailed', 'StopFailed', 'RestartFailed', 'ReimageFailed', 'DeleteFailed' - */ - operationStatus?: OperationStatus; -} - -/** - * Compute Instance properties - */ -export interface ComputeInstanceProperties { - /** - * Virtual Machine Size - */ - vmSize?: string; - /** - * Subnet. Virtual network subnet resource ID the compute nodes belong to. - */ - subnet?: ResourceId; - /** - * Sharing policy for applications on this compute instance. Policy for sharing applications on - * this compute instance among users of parent workspace. If Personal, only the creator can - * access applications on this compute instance. When Shared, any workspace user can access - * applications on this instance depending on his/her assigned role. Possible values include: - * 'Personal', 'Shared'. Default value: 'Shared'. - */ - applicationSharingPolicy?: ApplicationSharingPolicy; - /** - * Specifies policy and settings for SSH access. - */ - sshSettings?: ComputeInstanceSshSettings; - /** - * Describes all connectivity endpoints available for this ComputeInstance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; - /** - * Describes available applications and their endpoints on this ComputeInstance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly applications?: ComputeInstanceApplication[]; - /** - * Describes information on user who created this ComputeInstance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly createdBy?: ComputeInstanceCreatedBy; - /** - * Errors. Collection of errors encountered on this ComputeInstance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errors?: MachineLearningServiceError[]; - /** - * The current state of this ComputeInstance. Possible values include: 'Creating', - * 'CreateFailed', 'Deleting', 'Running', 'Restarting', 'JobRunning', 'SettingUp', 'SetupFailed', - * 'Starting', 'Stopped', 'Stopping', 'UserSettingUp', 'UserSetupFailed', 'Unknown', 'Unusable' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: ComputeInstanceState; - /** - * The last operation on ComputeInstance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastOperation?: ComputeInstanceLastOperation; -} - -/** - * An Azure Machine Learning compute instance. - */ -export interface ComputeInstance { - /** - * Polymorphic Discriminator - */ - computeType: "ComputeInstance"; - /** - * Location for the underlying compute - */ - computeLocation?: string; - /** - * 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?: ProvisioningState; - /** - * The description of the Machine Learning compute. - */ - description?: string; - /** - * The date and time when the compute 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 compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly modifiedOn?: Date; - /** - * ARM resource id of the underlying compute - */ - resourceId?: string; - /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningErrors?: MachineLearningServiceError[]; - /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isAttachedCompute?: boolean; - /** - * Compute Instance properties - */ - properties?: ComputeInstanceProperties; -} - -/** - * Admin credentials for virtual machine - */ -export interface VirtualMachineSshCredentials { - /** - * Username of admin account - */ - username?: string; - /** - * Password of admin account - */ - password?: string; - /** - * Public key data - */ - publicKeyData?: string; - /** - * Private key data - */ - privateKeyData?: string; -} - -/** - * An interface representing VirtualMachineProperties. - */ -export interface VirtualMachineProperties { - /** - * Virtual Machine size - */ - virtualMachineSize?: string; - /** - * Port open for ssh connections. - */ - sshPort?: number; - /** - * Public IP address of the virtual machine. - */ - address?: string; - /** - * Admin credentials for virtual machine - */ - administratorAccount?: VirtualMachineSshCredentials; -} - -/** - * A Machine Learning compute based on Azure Virtual Machines. - */ -export interface VirtualMachine { - /** - * Polymorphic Discriminator - */ - computeType: "VirtualMachine"; - /** - * Location for the underlying compute - */ - computeLocation?: string; - /** - * 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?: ProvisioningState; - /** - * The description of the Machine Learning compute. - */ - description?: string; - /** - * The date and time when the compute 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 compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly modifiedOn?: Date; - /** - * ARM resource id of the underlying compute - */ - resourceId?: string; - /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningErrors?: MachineLearningServiceError[]; - /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isAttachedCompute?: boolean; - properties?: VirtualMachineProperties; -} - -/** - * An interface representing HDInsightProperties. - */ -export interface HDInsightProperties { - /** - * Port open for ssh connections on the master node of the cluster. - */ - sshPort?: number; - /** - * Public IP address of the master node of the cluster. - */ - address?: string; - /** - * Admin credentials for master node of the cluster - */ - administratorAccount?: VirtualMachineSshCredentials; -} - -/** - * A HDInsight compute. - */ -export interface HDInsight { - /** - * Polymorphic Discriminator - */ - computeType: "HDInsight"; - /** - * Location for the underlying compute - */ - computeLocation?: string; - /** - * 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?: ProvisioningState; - /** - * The description of the Machine Learning compute. - */ - description?: string; - /** - * The date and time when the compute 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 compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly modifiedOn?: Date; - /** - * ARM resource id of the underlying compute - */ - resourceId?: string; - /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningErrors?: MachineLearningServiceError[]; - /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isAttachedCompute?: boolean; - properties?: HDInsightProperties; -} - -/** - * A DataFactory compute. - */ -export interface DataFactory { - /** - * Polymorphic Discriminator - */ - computeType: "DataFactory"; - /** - * Location for the underlying compute - */ - computeLocation?: string; - /** - * 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?: ProvisioningState; - /** - * The description of the Machine Learning compute. - */ - description?: string; - /** - * The date and time when the compute 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 compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly modifiedOn?: Date; - /** - * ARM resource id of the underlying compute - */ - resourceId?: string; - /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningErrors?: MachineLearningServiceError[]; - /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isAttachedCompute?: boolean; -} - -/** - * An interface representing DatabricksProperties. - */ -export interface DatabricksProperties { - /** - * Databricks access token - */ - databricksAccessToken?: string; -} - -/** - * A DataFactory compute. - */ -export interface Databricks { - /** - * Polymorphic Discriminator - */ - computeType: "Databricks"; - /** - * Location for the underlying compute - */ - computeLocation?: string; - /** - * 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?: ProvisioningState; - /** - * The description of the Machine Learning compute. - */ - description?: string; - /** - * The date and time when the compute 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 compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly modifiedOn?: Date; - /** - * ARM resource id of the underlying compute - */ - resourceId?: string; - /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningErrors?: MachineLearningServiceError[]; - /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isAttachedCompute?: boolean; - properties?: DatabricksProperties; -} - -/** - * An interface representing DataLakeAnalyticsProperties. - */ -export interface DataLakeAnalyticsProperties { - /** - * DataLake Store Account Name - */ - dataLakeStoreAccountName?: string; -} - -/** - * A DataLakeAnalytics compute. - */ -export interface DataLakeAnalytics { - /** - * Polymorphic Discriminator - */ - computeType: "DataLakeAnalytics"; - /** - * Location for the underlying compute - */ - computeLocation?: string; - /** - * 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?: ProvisioningState; - /** - * The description of the Machine Learning compute. - */ - description?: string; - /** - * The date and time when the compute 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 compute was last modified. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly modifiedOn?: Date; - /** - * ARM resource id of the underlying compute - */ - resourceId?: string; - /** - * Errors during provisioning - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningErrors?: MachineLearningServiceError[]; - /** - * Indicating whether the compute was provisioned by user and brought from outside if true, or - * machine learning service provisioned it if false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly isAttachedCompute?: boolean; - properties?: DataLakeAnalyticsProperties; +/** Settings for a personal compute instance. */ +export interface PersonalComputeInstanceSettings { + /** A user explicitly assigned to a personal compute instance. */ + assignedUser?: AssignedUser; } -/** - * Service principal credentials. - */ -export interface ServicePrincipalCredentials { - /** - * Client Id - */ - clientId: string; - /** - * Client secret - */ - clientSecret: string; +/** A user that can be assigned to a compute instance. */ +export interface AssignedUser { + /** User’s AAD Object Id. */ + objectId: string; + /** User’s AAD Tenant Id. */ + tenantId: string; } -/** - * AmlCompute update parameters. - */ -export interface ClusterUpdateParameters { - /** - * Scale settings. Desired scale settings for the amlCompute. - */ - scaleSettings?: ScaleSettings; +/** Details of customized scripts to execute for setting up the cluster. */ +export interface SetupScripts { + /** Customized setup scripts */ + scripts?: ScriptsToExecute; } -/** - * Contains the possible cases for ComputeNodesInformation. - */ -export type ComputeNodesInformationUnion = ComputeNodesInformation | AmlComputeNodesInformation; - -/** - * Compute nodes information related to a Machine Learning compute. Might differ for every type of - * compute. - */ -export interface ComputeNodesInformation { - /** - * Polymorphic Discriminator - */ - computeType: "ComputeNodesInformation"; - /** - * The continuation token. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; +/** Customized setup scripts */ +export interface ScriptsToExecute { + /** Script that's run every time the machine starts. */ + startupScript?: ScriptReference; + /** Script that's run only once during provision of the compute. */ + creationScript?: ScriptReference; } -/** - * Compute node information related to a AmlCompute. - */ -export interface AmlComputeNodeInformation { - /** - * Node ID. ID of the compute node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nodeId?: string; - /** - * Private IP address. Private IP address of the compute node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly privateIpAddress?: string; - /** - * Public IP address. Public IP address of the compute node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly publicIpAddress?: string; - /** - * Port. SSH port number of the node. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly port?: number; - /** - * State of the compute node. Values are idle, running, preparing, unusable, leaving and - * preempted. Possible values include: 'idle', 'running', 'preparing', 'unusable', 'leaving', - * 'preempted' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nodeState?: NodeState; - /** - * Run ID. ID of the Experiment running on the node, if any else null. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly runId?: string; +/** Script reference */ +export interface ScriptReference { + /** The storage source of the script: inline, workspace. */ + scriptSource?: string; + /** The location of scripts in the mounted volume. */ + scriptData?: string; + /** Optional command line arguments passed to the script to run. */ + scriptArguments?: string; + /** Optional time period passed to timeout command. */ + timeout?: string; } -/** - * Compute node information related to a AmlCompute. - */ -export interface AmlComputeNodesInformation { - /** - * Polymorphic Discriminator - */ - computeType: "AmlCompute"; - /** - * The continuation token. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; - /** - * The collection of returned AmlCompute nodes details. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nodes?: AmlComputeNodeInformation[]; +/** The last operation on ComputeInstance. */ +export interface ComputeInstanceLastOperation { + /** Name of the last operation. */ + operationName?: OperationName; + /** Time of the last operation. */ + operationTime?: Date; + /** Operation status. */ + operationStatus?: OperationStatus; } -/** - * Contains the possible cases for ComputeSecrets. - */ -export type ComputeSecretsUnion = ComputeSecrets | AksComputeSecrets | VirtualMachineSecrets | DatabricksComputeSecrets; - -/** - * Secrets related to a Machine Learning compute. Might differ for every type of compute. - */ -export interface ComputeSecrets { - /** - * Polymorphic Discriminator - */ - computeType: "ComputeSecrets"; +export interface VirtualMachineProperties { + /** Virtual Machine size */ + virtualMachineSize?: string; + /** Port open for ssh connections. */ + sshPort?: number; + /** Public IP address of the virtual machine. */ + address?: string; + /** Admin credentials for virtual machine */ + administratorAccount?: VirtualMachineSshCredentials; + /** Indicates whether this compute will be used for running notebooks. */ + isNotebookInstanceCompute?: boolean; } -/** - * Secrets related to a Machine Learning compute based on AKS. - */ -export interface AksComputeSecrets { - /** - * Polymorphic Discriminator - */ - computeType: "AKS"; - /** - * Content of kubeconfig file that can be used to connect to the Kubernetes cluster. - */ - userKubeConfig?: string; - /** - * Content of kubeconfig file that can be used to connect to the Kubernetes cluster. - */ - adminKubeConfig?: string; - /** - * Image registry pull secret. - */ - imagePullSecretName?: string; +/** Admin credentials for virtual machine */ +export interface VirtualMachineSshCredentials { + /** Username of admin account */ + username?: string; + /** Password of admin account */ + password?: string; + /** Public key data */ + publicKeyData?: string; + /** Private key data */ + privateKeyData?: string; } -/** - * Secrets related to a Machine Learning compute based on AKS. - */ -export interface VirtualMachineSecrets { - /** - * Polymorphic Discriminator - */ - computeType: "VirtualMachine"; - /** - * Admin credentials for virtual machine. - */ +/** HDInsight compute properties */ +export interface HDInsightProperties { + /** Port open for ssh connections on the master node of the cluster. */ + sshPort?: number; + /** Public IP address of the master node of the cluster. */ + address?: string; + /** Admin credentials for master node of the cluster */ administratorAccount?: VirtualMachineSshCredentials; } -/** - * Secrets related to a Machine Learning compute based on Databricks. - */ -export interface DatabricksComputeSecrets { - /** - * Polymorphic Discriminator - */ - computeType: "Databricks"; - /** - * access token for databricks account. - */ +/** Properties of Databricks */ +export interface DatabricksProperties { + /** Databricks access token */ databricksAccessToken?: string; + /** Workspace Url */ + workspaceUrl?: string; } -/** - * Features/user capabilities associated with the sku - */ -export interface SKUCapability { - /** - * Capability/Feature ID - */ - name?: string; - /** - * Details about the feature/capability - */ - value?: string; +export interface DataLakeAnalyticsProperties { + /** DataLake Store Account Name */ + dataLakeStoreAccountName?: string; } -/** - * Describes The zonal capabilities of a SKU. - */ -export interface ResourceSkuZoneDetails { - /** - * The set of zones that the SKU is available in with the specified capabilities. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string[]; - /** - * A list of capabilities that are available for the SKU in the specified list of zones. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly capabilities?: SKUCapability[]; +export interface SynapseSparkProperties { + /** Auto scale properties. */ + autoScaleProperties?: AutoScaleProperties; + /** Auto pause properties. */ + autoPauseProperties?: AutoPauseProperties; + /** Spark version. */ + sparkVersion?: string; + /** The number of compute nodes currently assigned to the compute. */ + nodeCount?: number; + /** Node size. */ + nodeSize?: string; + /** Node size family. */ + nodeSizeFamily?: string; + /** Azure subscription identifier. */ + subscriptionId?: string; + /** Name of the resource group in which workspace is located. */ + resourceGroup?: string; + /** Name of Azure Machine Learning workspace. */ + workspaceName?: string; + /** Pool name. */ + poolName?: string; +} + +/** Auto scale properties */ +export interface AutoScaleProperties { + minNodeCount?: number; + enabled?: boolean; + maxNodeCount?: number; } -/** - * An interface representing ResourceSkuLocationInfo. - */ -export interface ResourceSkuLocationInfo { - /** - * Location of the SKU - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; - /** - * List of availability zones where the SKU is supported. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly zones?: string[]; - /** - * Details of capabilities available to a SKU in specific zones. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly zoneDetails?: ResourceSkuZoneDetails[]; +/** Auto pause properties */ +export interface AutoPauseProperties { + delayInMinutes?: number; + enabled?: boolean; } -/** - * The restriction because of which SKU cannot be used. - */ -export interface Restriction { - /** - * The type of restrictions. As of now only possible value for this is location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * The value of restrictions. If the restriction type is set to location. This would be different - * locations where the SKU is restricted. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly values?: string[]; - /** - * The reason for the restriction. Possible values include: 'NotSpecified', - * 'NotAvailableForRegion', 'NotAvailableForSubscription' - */ - reasonCode?: ReasonCode; +/** Service principal credentials. */ +export interface ServicePrincipalCredentials { + /** Client Id */ + clientId: string; + /** Client secret */ + clientSecret: string; } -/** - * Describes Workspace Sku details and features - */ -export interface SkuSettings { - /** - * The set of locations that the SKU is available. This will be supported and registered Azure - * Geo Regions (e.g. West US, East US, Southeast Asia, etc.). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly locations?: string[]; - /** - * A list of locations and availability zones in those locations where the SKU is available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly locationInfo?: ResourceSkuLocationInfo[]; - /** - * Sku Tier like Basic or Enterprise - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly tier?: string; - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resourceType?: string; - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * List of features/user capabilities associated with the sku - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly capabilities?: SKUCapability[]; - /** - * The restrictions because of which SKU cannot be used. This is empty if there are no - * restrictions. - */ - restrictions?: Restriction[]; +/** Properties of AksComputeSecrets */ +export interface AksComputeSecretsProperties { + /** Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ + userKubeConfig?: string; + /** Content of kubeconfig file that can be used to connect to the Kubernetes cluster. */ + adminKubeConfig?: string; + /** Image registry pull secret. */ + imagePullSecretName?: string; } -/** - * AML workspace sku information - */ -export interface WorkspaceSku { - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly resourceType?: string; - /** - * The list of workspace sku settings - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly skus?: SkuSettings[]; +/** Properties of Databricks Compute Secrets */ +export interface DatabricksComputeSecretsProperties { + /** access token for databricks account. */ + databricksAccessToken?: string; } -/** - * A private link resource - */ -export interface PrivateLinkResource extends Resource { +/** The resource requirements for the container (cpu and memory). */ +export interface ContainerResourceRequirements { /** - * The private link resource group id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The minimum amount of CPU cores to be used by the container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - readonly groupId?: string; + cpu?: number; /** - * The private link resource required member names. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The maximum amount of CPU cores allowed to be used by the container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - readonly requiredMembers?: string[]; + cpuLimit?: number; /** - * The private link resource Private link DNS zone name. + * The minimum amount of memory (in GB) to be used by the container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - requiredZoneNames?: string[]; -} - -/** - * A list of private link resources - */ -export interface PrivateLinkResourceListResult { + memoryInGB?: number; /** - * Array of private link resources + * The maximum amount of memory (in GB) allowed to be used by the container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ */ - value?: PrivateLinkResource[]; + memoryInGBLimit?: number; + /** The number of GPU cores in the container. */ + gpu?: number; + /** The number of FPGA PCIE devices exposed to the container. Must be multiple of 2. */ + fpga?: number; } -/** - * Workspace connection. - */ -export interface WorkspaceConnection extends BaseResource { +/** The Private Endpoint Connection resource. */ +export type PrivateEndpointConnection = Resource & { + /** The identity of the resource. */ + identity?: Identity; + /** Specifies the location of the resource. */ + location?: string; + /** Contains resource tags defined as key/value pairs. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; /** - * ResourceId of the workspace connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * System data + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly systemData?: SystemData; + /** The resource of private end point. */ + privateEndpoint?: PrivateEndpoint; + /** A collection of information about the state of the connection between service consumer and provider. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; /** - * Friendly name of the workspace connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The provisioning state of the private endpoint connection resource. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; +}; + +/** An object that represents a machine learning workspace. */ +export type Workspace = Resource & { + /** The identity of the resource. */ + identity?: Identity; + /** Specifies the location of the resource. */ + location?: string; + /** Contains resource tags defined as key/value pairs. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; /** - * Resource type of workspace connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * System data + * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly systemData?: SystemData; /** - * Category of the workspace connection. + * The immutable id associated with this workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - category?: string; + readonly workspaceId?: string; + /** The description of this workspace. */ + description?: string; + /** The friendly name for this workspace. This name in mutable */ + friendlyName?: string; + /** ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created */ + keyVault?: string; + /** ARM id of the application insights associated with this workspace. This cannot be changed once the workspace has been created */ + applicationInsights?: string; + /** ARM id of the container registry associated with this workspace. This cannot be changed once the workspace has been created */ + containerRegistry?: string; + /** ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created */ + storageAccount?: string; + /** Url for the discovery service to identify regional endpoints for machine learning experimentation services */ + discoveryUrl?: string; /** - * Target of the workspace connection. + * The current deployment state of 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. */ - target?: string; + readonly provisioningState?: ProvisioningState; + /** The encryption settings of Azure ML workspace. */ + encryption?: EncryptionProperty; + /** The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service */ + hbiWorkspace?: boolean; /** - * Authorization type of the workspace connection. + * The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace + * NOTE: This property will not be serialized. It can only be populated by the server. */ - authType?: string; + readonly serviceProvisionedResourceGroup?: string; /** - * Value details of the workspace connection. + * Count of private connections in the workspace + * NOTE: This property will not be serialized. It can only be populated by the server. */ - value?: string; -} - -/** - * object used for creating workspace connection. - */ -export interface WorkspaceConnectionDto { + readonly privateLinkCount?: number; + /** The compute name for image build */ + imageBuildCompute?: string; + /** The flag to indicate whether to allow public access when behind VNet. */ + allowPublicAccessWhenBehindVnet?: boolean; + /** Whether requests from Public Network are allowed. */ + publicNetworkAccess?: PublicNetworkAccess; /** - * Friendly name of the workspace connection + * The list of private endpoint connections in the workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name?: string; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + /** The list of shared private link resources in this workspace. */ + sharedPrivateLinkResources?: SharedPrivateLinkResource[]; /** - * Category of the workspace connection. + * The notebook info of Azure ML workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - category?: string; + readonly notebookInfo?: NotebookResourceInfo; + /** The service managed resource settings. */ + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + /** The user assigned identity resource id that represents the workspace identity. */ + primaryUserAssignedIdentity?: string; /** - * Target of the workspace connection. + * The tenant id associated with this workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - target?: string; + readonly tenantId?: string; /** - * Authorization type of the workspace connection. + * If the storage associated with the workspace has hierarchical namespace(HNS) enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - authType?: string; + readonly storageHnsEnabled?: boolean; /** - * Value details of the workspace connection. + * The URI associated with this workspace that machine learning flow must point at to set up tracking. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - value?: string; -} + readonly mlFlowTrackingUri?: string; +}; -/** - * Optional Parameters. - */ -export interface WorkspacesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +/** Machine Learning compute object wrapped into ARM resource envelope. */ +export type ComputeResource = Resource & + Components1D3SwueSchemasComputeresourceAllof1 & { + /** The identity of the resource. */ + identity?: Identity; + /** Specifies the location of the resource. */ + location?: string; + /** Contains resource tags defined as key/value pairs. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; + /** + * System data + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + }; + +/** A private link resource */ +export type PrivateLinkResource = Resource & { + /** The identity of the resource. */ + identity?: Identity; + /** Specifies the location of the resource. */ + location?: string; + /** Contains resource tags defined as key/value pairs. */ + tags?: { [propertyName: string]: string }; + /** The sku of the workspace. */ + sku?: Sku; /** - * Continuation token for pagination. + * System data + * NOTE: This property will not be serialized. It can only be populated by the server. */ - skiptoken?: string; -} - -/** - * Optional Parameters. - */ -export interface WorkspacesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + readonly systemData?: SystemData; /** - * Continuation token for pagination. + * The private link resource group id. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - skiptoken?: string; -} - -/** - * Optional Parameters. - */ -export interface WorkspacesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + readonly groupId?: string; /** - * Continuation token for pagination. + * The private link resource required member names. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - skiptoken?: string; -} + readonly requiredMembers?: string[]; + /** The private link resource Private link DNS zone name. */ + requiredZoneNames?: string[]; +}; -/** - * Optional Parameters. - */ -export interface WorkspacesListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Continuation token for pagination. - */ - skiptoken?: string; -} +/** A Machine Learning compute based on AKS. */ +export type Aks = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AKS"; + /** AKS properties */ + properties?: AKSProperties; +}; -/** - * Optional Parameters. - */ -export interface VirtualMachineSizesListOptionalParams extends msRest.RequestOptionsBase { - /** - * Type of compute to filter by. - */ - computeType?: string; - /** - * Specifies whether to return recommended vm sizes or all vm sizes - */ - recommended?: boolean; -} +/** A Machine Learning compute based on Kubernetes Compute. */ +export type Kubernetes = Compute & + KubernetesSchema & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Kubernetes"; + }; -/** - * Optional Parameters. - */ -export interface WorkspaceConnectionsListOptionalParams extends msRest.RequestOptionsBase { - /** - * Target of the workspace connection. - */ - target?: string; - /** - * Category of the workspace connection. - */ - category?: string; -} +/** Properties(top level) of AmlCompute */ +export type AmlCompute = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AmlCompute"; + /** Properties of AmlCompute */ + properties?: AmlComputeProperties; +}; -/** - * Optional Parameters. - */ -export interface MachineLearningComputeListByWorkspaceOptionalParams extends msRest.RequestOptionsBase { - /** - * Continuation token for pagination. - */ - skiptoken?: string; -} +/** Properties(top level) of ComputeInstance */ +export type ComputeInstance = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "ComputeInstance"; + /** Properties of ComputeInstance */ + properties?: ComputeInstanceProperties; +}; -/** - * Optional Parameters. - */ -export interface MachineLearningComputeListByWorkspaceNextOptionalParams extends msRest.RequestOptionsBase { - /** - * Continuation token for pagination. - */ - skiptoken?: string; -} +/** A Machine Learning compute based on Azure Virtual Machines. */ +export type VirtualMachine = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "VirtualMachine"; + properties?: VirtualMachineProperties; +}; -/** - * An interface representing AzureMachineLearningWorkspacesOptions. - */ -export interface AzureMachineLearningWorkspacesOptions extends AzureServiceClientOptions { - baseUri?: string; -} +/** A HDInsight compute. */ +export type HDInsight = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "HDInsight"; + /** HDInsight compute properties */ + properties?: HDInsightProperties; +}; -/** - * Defines headers for CreateOrUpdate operation. - */ -export interface MachineLearningComputeCreateOrUpdateHeaders { - /** - * URI to poll for asynchronous operation status. - */ - azureAsyncOperation: string; -} +/** A DataFactory compute. */ +export type DataFactory = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "DataFactory"; +}; -/** - * Defines headers for Delete operation. - */ -export interface MachineLearningComputeDeleteHeaders { - /** - * URI to poll for asynchronous operation status. - */ - azureAsyncOperation: string; - /** - * URI to poll for asynchronous operation result. - */ - location: string; -} +/** A DataFactory compute. */ +export type Databricks = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Databricks"; + /** Properties of Databricks */ + properties?: DatabricksProperties; +}; -/** - * @interface - * An array of operations supported by the resource provider. - * @extends Array - */ -export interface OperationListResult extends Array { -} +/** A DataLakeAnalytics compute. */ +export type DataLakeAnalytics = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "DataLakeAnalytics"; + properties?: DataLakeAnalyticsProperties; +}; -/** - * @interface - * The result of a request to list machine learning workspaces. - * @extends Array - */ -export interface WorkspaceListResult extends Array { - /** - * The URI that can be used to request the next list of machine learning workspaces. - */ - nextLink?: string; -} +/** A SynapseSpark compute. */ +export type SynapseSpark = Compute & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "SynapseSpark"; + properties?: SynapseSparkProperties; +}; -/** - * @interface - * The List Aml user feature operation response. - * @extends Array - */ -export interface ListAmlUserFeatureResult extends Array { - /** - * The URI to fetch the next page of AML user features information. Call ListNext() with this to - * fetch the next page of AML user features information. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; -} +/** Secrets related to a Machine Learning compute based on AKS. */ +export type AksComputeSecrets = ComputeSecrets & + AksComputeSecretsProperties & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AKS"; + }; -/** - * @interface - * The List Usages operation response. - * @extends Array - */ -export interface ListUsagesResult extends Array { - /** - * The URI to fetch the next page of AML resource usage information. Call ListNext() with this to - * fetch the next page of AML resource usage information. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; -} +/** Secrets related to a Machine Learning compute based on AKS. */ +export type VirtualMachineSecrets = ComputeSecrets & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "VirtualMachine"; + /** Admin credentials for virtual machine. */ + administratorAccount?: VirtualMachineSshCredentials; +}; -/** - * @interface - * The List WorkspaceQuotasByVMFamily operation response. - * @extends Array - */ -export interface ListWorkspaceQuotas extends Array { - /** - * The URI to fetch the next page of workspace quota information by VM Family. Call ListNext() - * with this to fetch the next page of Workspace Quota information. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; -} +/** Secrets related to a Machine Learning compute based on Databricks. */ +export type DatabricksComputeSecrets = ComputeSecrets & + DatabricksComputeSecretsProperties & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Databricks"; + }; -/** - * @interface - * Paginated list of Workspace connection objects. - * @extends Array - */ -export interface PaginatedWorkspaceConnectionsList extends Array { - /** - * A continuation link (absolute URI) to the next page of results in the list. - */ - nextLink?: string; +/** Defines headers for Workspaces_diagnose operation. */ +export interface WorkspacesDiagnoseHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; } -/** - * @interface - * Paginated list of Machine Learning compute objects wrapped in ARM resource envelope. - * @extends Array - */ -export interface PaginatedComputeResourcesList extends Array { - /** - * A continuation link (absolute URI) to the next page of results in the list. - */ - nextLink?: string; +/** Defines headers for Compute_createOrUpdate operation. */ +export interface ComputeCreateOrUpdateHeaders { + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; } -/** - * @interface - * List of skus with features - * @extends Array - */ -export interface SkuListResult extends Array { - /** - * The URI to fetch the next page of Workspace Skus. Call ListNext() with this URI to fetch the - * next page of Workspace Skus - */ - nextLink?: string; +/** Defines headers for Compute_delete operation. */ +export interface ComputeDeleteHeaders { + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; } -/** - * Defines values for ProvisioningState. - * Possible values include: 'Unknown', 'Updating', 'Creating', 'Deleting', 'Succeeded', 'Failed', - * 'Canceled' - * @readonly - * @enum {string} - */ -export type ProvisioningState = 'Unknown' | 'Updating' | 'Creating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; - -/** - * Defines values for EncryptionStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type EncryptionStatus = 'Enabled' | 'Disabled'; - -/** - * Defines values for PrivateEndpointServiceConnectionStatus. - * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout' - * @readonly - * @enum {string} - */ -export type PrivateEndpointServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected' | 'Timeout'; +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + Unknown = "Unknown", + Updating = "Updating", + Creating = "Creating", + Deleting = "Deleting", + Succeeded = "Succeeded", + Failed = "Failed", + Canceled = "Canceled" +} /** - * Defines values for PrivateEndpointConnectionProvisioningState. - * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' - * @readonly - * @enum {string} + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * 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 PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Failed'; +export type ProvisioningState = string; -/** - * Defines values for UsageUnit. - * Possible values include: 'Count' - * @readonly - * @enum {string} - */ -export type UsageUnit = 'Count'; +/** Known values of {@link EncryptionStatus} that the service accepts. */ +export enum KnownEncryptionStatus { + Enabled = "Enabled", + Disabled = "Disabled" +} /** - * Defines values for VMPriceOSType. - * Possible values include: 'Linux', 'Windows' - * @readonly - * @enum {string} + * Defines values for EncryptionStatus. \ + * {@link KnownEncryptionStatus} can be used interchangeably with EncryptionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** */ -export type VMPriceOSType = 'Linux' | 'Windows'; +export type EncryptionStatus = string; -/** - * Defines values for VMTier. - * Possible values include: 'Standard', 'LowPriority', 'Spot' - * @readonly - * @enum {string} - */ -export type VMTier = 'Standard' | 'LowPriority' | 'Spot'; +/** Known values of {@link PublicNetworkAccess} that the service accepts. */ +export enum KnownPublicNetworkAccess { + Enabled = "Enabled", + Disabled = "Disabled" +} /** - * Defines values for QuotaUnit. - * Possible values include: 'Count' - * @readonly - * @enum {string} + * Defines values for PublicNetworkAccess. \ + * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** */ -export type QuotaUnit = 'Count'; +export type PublicNetworkAccess = string; -/** - * Defines values for Status. - * Possible values include: 'Undefined', 'Success', 'Failure', 'InvalidQuotaBelowClusterMinimum', - * 'InvalidQuotaExceedsSubscriptionLimit', 'InvalidVMFamilyName', 'OperationNotSupportedForSku', - * 'OperationNotEnabledForRegion' - * @readonly - * @enum {string} - */ -export type Status = 'Undefined' | 'Success' | 'Failure' | 'InvalidQuotaBelowClusterMinimum' | 'InvalidQuotaExceedsSubscriptionLimit' | 'InvalidVMFamilyName' | 'OperationNotSupportedForSku' | 'OperationNotEnabledForRegion'; +/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ +export enum KnownPrivateEndpointServiceConnectionStatus { + Pending = "Pending", + Approved = "Approved", + Rejected = "Rejected", + Disconnected = "Disconnected", + Timeout = "Timeout" +} /** - * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' - * @readonly - * @enum {string} + * Defines values for PrivateEndpointServiceConnectionStatus. \ + * {@link KnownPrivateEndpointServiceConnectionStatus} can be used interchangeably with PrivateEndpointServiceConnectionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pending** \ + * **Approved** \ + * **Rejected** \ + * **Disconnected** \ + * **Timeout** */ -export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; +export type PrivateEndpointServiceConnectionStatus = string; -/** - * Defines values for VmPriority. - * Possible values include: 'Dedicated', 'LowPriority' - * @readonly - * @enum {string} - */ -export type VmPriority = 'Dedicated' | 'LowPriority'; +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointConnectionProvisioningState { + Succeeded = "Succeeded", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed" +} /** - * Defines values for RemoteLoginPortPublicAccess. - * Possible values include: 'Enabled', 'Disabled', 'NotSpecified' - * @readonly - * @enum {string} + * Defines values for PrivateEndpointConnectionProvisioningState. \ + * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Creating** \ + * **Deleting** \ + * **Failed** */ -export type RemoteLoginPortPublicAccess = 'Enabled' | 'Disabled' | 'NotSpecified'; +export type PrivateEndpointConnectionProvisioningState = string; -/** - * Defines values for AllocationState. - * Possible values include: 'Steady', 'Resizing' - * @readonly - * @enum {string} - */ -export type AllocationState = 'Steady' | 'Resizing'; +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + User = "User", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + Key = "Key" +} /** - * Defines values for ApplicationSharingPolicy. - * Possible values include: 'Personal', 'Shared' - * @readonly - * @enum {string} + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export type ApplicationSharingPolicy = 'Personal' | 'Shared'; +export type CreatedByType = string; -/** - * Defines values for SshPublicAccess. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type SshPublicAccess = 'Enabled' | 'Disabled'; +/** Known values of {@link DiagnoseResultLevel} that the service accepts. */ +export enum KnownDiagnoseResultLevel { + Warning = "Warning", + Error = "Error", + Information = "Information" +} /** - * Defines values for ComputeInstanceState. - * Possible values include: 'Creating', 'CreateFailed', 'Deleting', 'Running', 'Restarting', - * 'JobRunning', 'SettingUp', 'SetupFailed', 'Starting', 'Stopped', 'Stopping', 'UserSettingUp', - * 'UserSetupFailed', 'Unknown', 'Unusable' - * @readonly - * @enum {string} + * Defines values for DiagnoseResultLevel. \ + * {@link KnownDiagnoseResultLevel} can be used interchangeably with DiagnoseResultLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Warning** \ + * **Error** \ + * **Information** */ -export type ComputeInstanceState = 'Creating' | 'CreateFailed' | 'Deleting' | 'Running' | 'Restarting' | 'JobRunning' | 'SettingUp' | 'SetupFailed' | 'Starting' | 'Stopped' | 'Stopping' | 'UserSettingUp' | 'UserSetupFailed' | 'Unknown' | 'Unusable'; +export type DiagnoseResultLevel = string; -/** - * Defines values for OperationName. - * Possible values include: 'Create', 'Start', 'Stop', 'Restart', 'Reimage', 'Delete' - * @readonly - * @enum {string} - */ -export type OperationName = 'Create' | 'Start' | 'Stop' | 'Restart' | 'Reimage' | 'Delete'; +/** Known values of {@link UsageUnit} that the service accepts. */ +export enum KnownUsageUnit { + Count = "Count" +} /** - * Defines values for OperationStatus. - * Possible values include: 'InProgress', 'Succeeded', 'CreateFailed', 'StartFailed', 'StopFailed', - * 'RestartFailed', 'ReimageFailed', 'DeleteFailed' - * @readonly - * @enum {string} + * Defines values for UsageUnit. \ + * {@link KnownUsageUnit} can be used interchangeably with UsageUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Count** */ -export type OperationStatus = 'InProgress' | 'Succeeded' | 'CreateFailed' | 'StartFailed' | 'StopFailed' | 'RestartFailed' | 'ReimageFailed' | 'DeleteFailed'; +export type UsageUnit = string; -/** - * Defines values for NodeState. - * Possible values include: 'idle', 'running', 'preparing', 'unusable', 'leaving', 'preempted' - * @readonly - * @enum {string} - */ -export type NodeState = 'idle' | 'running' | 'preparing' | 'unusable' | 'leaving' | 'preempted'; +/** Known values of {@link BillingCurrency} that the service accepts. */ +export enum KnownBillingCurrency { + USD = "USD" +} /** - * Defines values for ComputeType. - * Possible values include: 'AKS', 'AmlCompute', 'ComputeInstance', 'DataFactory', - * 'VirtualMachine', 'HDInsight', 'Databricks', 'DataLakeAnalytics' - * @readonly - * @enum {string} + * Defines values for BillingCurrency. \ + * {@link KnownBillingCurrency} can be used interchangeably with BillingCurrency, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **USD** */ -export type ComputeType = 'AKS' | 'AmlCompute' | 'ComputeInstance' | 'DataFactory' | 'VirtualMachine' | 'HDInsight' | 'Databricks' | 'DataLakeAnalytics'; +export type BillingCurrency = string; -/** - * Defines values for ReasonCode. - * Possible values include: 'NotSpecified', 'NotAvailableForRegion', 'NotAvailableForSubscription' - * @readonly - * @enum {string} - */ -export type ReasonCode = 'NotSpecified' | 'NotAvailableForRegion' | 'NotAvailableForSubscription'; +/** Known values of {@link UnitOfMeasure} that the service accepts. */ +export enum KnownUnitOfMeasure { + OneHour = "OneHour" +} /** - * Defines values for UnderlyingResourceAction. - * Possible values include: 'Delete', 'Detach' - * @readonly - * @enum {string} + * Defines values for UnitOfMeasure. \ + * {@link KnownUnitOfMeasure} can be used interchangeably with UnitOfMeasure, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **OneHour** */ -export type UnderlyingResourceAction = 'Delete' | 'Detach'; +export type UnitOfMeasure = string; -/** - * Defines values for Status1. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type Status1 = 'Disabled' | 'Enabled'; +/** Known values of {@link VMPriceOSType} that the service accepts. */ +export enum KnownVMPriceOSType { + Linux = "Linux", + Windows = "Windows" +} /** - * Contains response data for the list operation. + * Defines values for VMPriceOSType. \ + * {@link KnownVMPriceOSType} can be used interchangeably with VMPriceOSType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Linux** \ + * **Windows** */ -export type OperationsListResponse = OperationListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type VMPriceOSType = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationListResult; - }; -}; +/** Known values of {@link VMTier} that the service accepts. */ +export enum KnownVMTier { + Standard = "Standard", + LowPriority = "LowPriority", + Spot = "Spot" +} /** - * Contains response data for the get operation. + * Defines values for VMTier. \ + * {@link KnownVMTier} can be used interchangeably with VMTier, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard** \ + * **LowPriority** \ + * **Spot** */ -export type WorkspacesGetResponse = Workspace & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type VMTier = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Workspace; - }; -}; +/** Known values of {@link QuotaUnit} that the service accepts. */ +export enum KnownQuotaUnit { + Count = "Count" +} /** - * Contains response data for the createOrUpdate operation. + * Defines values for QuotaUnit. \ + * {@link KnownQuotaUnit} can be used interchangeably with QuotaUnit, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Count** */ -export type WorkspacesCreateOrUpdateResponse = Workspace & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type QuotaUnit = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Workspace; - }; -}; +/** Known values of {@link Status} that the service accepts. */ +export enum KnownStatus { + Undefined = "Undefined", + Success = "Success", + Failure = "Failure", + InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", + InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", + InvalidVMFamilyName = "InvalidVMFamilyName", + OperationNotSupportedForSku = "OperationNotSupportedForSku", + OperationNotEnabledForRegion = "OperationNotEnabledForRegion" +} /** - * Contains response data for the update operation. + * 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 + * **Undefined** \ + * **Success** \ + * **Failure** \ + * **InvalidQuotaBelowClusterMinimum** \ + * **InvalidQuotaExceedsSubscriptionLimit** \ + * **InvalidVMFamilyName** \ + * **OperationNotSupportedForSku** \ + * **OperationNotEnabledForRegion** */ -export type WorkspacesUpdateResponse = Workspace & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type Status = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Workspace; - }; -}; +/** Known values of {@link ComputeType} that the service accepts. */ +export enum KnownComputeType { + AKS = "AKS", + Kubernetes = "Kubernetes", + AmlCompute = "AmlCompute", + ComputeInstance = "ComputeInstance", + DataFactory = "DataFactory", + VirtualMachine = "VirtualMachine", + HDInsight = "HDInsight", + Databricks = "Databricks", + DataLakeAnalytics = "DataLakeAnalytics", + SynapseSpark = "SynapseSpark" +} /** - * Contains response data for the listByResourceGroup operation. + * Defines values for ComputeType. \ + * {@link KnownComputeType} can be used interchangeably with ComputeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AKS** \ + * **Kubernetes** \ + * **AmlCompute** \ + * **ComputeInstance** \ + * **DataFactory** \ + * **VirtualMachine** \ + * **HDInsight** \ + * **Databricks** \ + * **DataLakeAnalytics** \ + * **SynapseSpark** */ -export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type ComputeType = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceListResult; - }; -}; +/** Known values of {@link UnderlyingResourceAction} that the service accepts. */ +export enum KnownUnderlyingResourceAction { + Delete = "Delete", + Detach = "Detach" +} /** - * Contains response data for the listKeys operation. + * Defines values for UnderlyingResourceAction. \ + * {@link KnownUnderlyingResourceAction} can be used interchangeably with UnderlyingResourceAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Delete** \ + * **Detach** */ -export type WorkspacesListKeysResponse = ListWorkspaceKeysResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type UnderlyingResourceAction = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListWorkspaceKeysResult; - }; -}; +/** Known values of {@link NodeState} that the service accepts. */ +export enum KnownNodeState { + Idle = "idle", + Running = "running", + Preparing = "preparing", + Unusable = "unusable", + Leaving = "leaving", + Preempted = "preempted" +} /** - * Contains response data for the listBySubscription operation. + * Defines values for NodeState. \ + * {@link KnownNodeState} can be used interchangeably with NodeState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **idle** \ + * **running** \ + * **preparing** \ + * **unusable** \ + * **leaving** \ + * **preempted** */ -export type WorkspacesListBySubscriptionResponse = WorkspaceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type NodeState = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceListResult; - }; -}; +/** Known values of {@link ValueFormat} that the service accepts. */ +export enum KnownValueFormat { + Json = "JSON" +} /** - * Contains response data for the beginCreateOrUpdate operation. + * Defines values for ValueFormat. \ + * {@link KnownValueFormat} can be used interchangeably with ValueFormat, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JSON** */ -export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type ValueFormat = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Workspace; - }; -}; +/** Known values of {@link ReasonCode} that the service accepts. */ +export enum KnownReasonCode { + NotSpecified = "NotSpecified", + NotAvailableForRegion = "NotAvailableForRegion", + NotAvailableForSubscription = "NotAvailableForSubscription" +} /** - * Contains response data for the listByResourceGroupNext operation. + * Defines values for ReasonCode. \ + * {@link KnownReasonCode} can be used interchangeably with ReasonCode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSpecified** \ + * **NotAvailableForRegion** \ + * **NotAvailableForSubscription** */ -export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type ReasonCode = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceListResult; - }; -}; +/** Known values of {@link ClusterPurpose} that the service accepts. */ +export enum KnownClusterPurpose { + FastProd = "FastProd", + DenseProd = "DenseProd", + DevTest = "DevTest" +} /** - * Contains response data for the listBySubscriptionNext operation. + * Defines values for ClusterPurpose. \ + * {@link KnownClusterPurpose} can be used interchangeably with ClusterPurpose, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **FastProd** \ + * **DenseProd** \ + * **DevTest** */ -export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type ClusterPurpose = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceListResult; - }; -}; +/** Known values of {@link SslConfigurationStatus} that the service accepts. */ +export enum KnownSslConfigurationStatus { + Disabled = "Disabled", + Enabled = "Enabled", + Auto = "Auto" +} /** - * Contains response data for the list operation. + * Defines values for SslConfigurationStatus. \ + * {@link KnownSslConfigurationStatus} can be used interchangeably with SslConfigurationStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** \ + * **Auto** */ -export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type SslConfigurationStatus = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListAmlUserFeatureResult; - }; -}; +/** Known values of {@link LoadBalancerType} that the service accepts. */ +export enum KnownLoadBalancerType { + PublicIp = "PublicIp", + InternalLoadBalancer = "InternalLoadBalancer" +} /** - * Contains response data for the listNext operation. + * Defines values for LoadBalancerType. \ + * {@link KnownLoadBalancerType} can be used interchangeably with LoadBalancerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PublicIp** \ + * **InternalLoadBalancer** */ -export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type LoadBalancerType = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListAmlUserFeatureResult; - }; -}; +/** Known values of {@link OsType} that the service accepts. */ +export enum KnownOsType { + Linux = "Linux", + Windows = "Windows" +} /** - * Contains response data for the prepare operation. + * Defines values for OsType. \ + * {@link KnownOsType} can be used interchangeably with OsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Linux** \ + * **Windows** */ -export type NotebooksPrepareResponse = NotebookResourceInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type OsType = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: NotebookResourceInfo; - }; -}; +/** Known values of {@link VmPriority} that the service accepts. */ +export enum KnownVmPriority { + Dedicated = "Dedicated", + LowPriority = "LowPriority" +} /** - * Contains response data for the beginPrepare operation. + * Defines values for VmPriority. \ + * {@link KnownVmPriority} can be used interchangeably with VmPriority, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Dedicated** \ + * **LowPriority** */ -export type NotebooksBeginPrepareResponse = NotebookResourceInfo & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type VmPriority = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: NotebookResourceInfo; - }; -}; +/** Known values of {@link RemoteLoginPortPublicAccess} that the service accepts. */ +export enum KnownRemoteLoginPortPublicAccess { + Enabled = "Enabled", + Disabled = "Disabled", + NotSpecified = "NotSpecified" +} /** - * Contains response data for the list operation. + * Defines values for RemoteLoginPortPublicAccess. \ + * {@link KnownRemoteLoginPortPublicAccess} can be used interchangeably with RemoteLoginPortPublicAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** \ + * **NotSpecified** */ -export type UsagesListResponse = ListUsagesResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type RemoteLoginPortPublicAccess = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListUsagesResult; - }; -}; +/** Known values of {@link AllocationState} that the service accepts. */ +export enum KnownAllocationState { + Steady = "Steady", + Resizing = "Resizing" +} /** - * Contains response data for the listNext operation. + * Defines values for AllocationState. \ + * {@link KnownAllocationState} can be used interchangeably with AllocationState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Steady** \ + * **Resizing** */ -export type UsagesListNextResponse = ListUsagesResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type AllocationState = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListUsagesResult; - }; -}; +/** Known values of {@link ApplicationSharingPolicy} that the service accepts. */ +export enum KnownApplicationSharingPolicy { + Personal = "Personal", + Shared = "Shared" +} /** - * Contains response data for the list operation. + * Defines values for ApplicationSharingPolicy. \ + * {@link KnownApplicationSharingPolicy} can be used interchangeably with ApplicationSharingPolicy, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Personal** \ + * **Shared** */ -export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type ApplicationSharingPolicy = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: VirtualMachineSizeListResult; - }; -}; +/** Known values of {@link SshPublicAccess} that the service accepts. */ +export enum KnownSshPublicAccess { + Enabled = "Enabled", + Disabled = "Disabled" +} /** - * Contains response data for the update operation. + * Defines values for SshPublicAccess. \ + * {@link KnownSshPublicAccess} can be used interchangeably with SshPublicAccess, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** */ -export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type SshPublicAccess = string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: UpdateWorkspaceQuotasResult; - }; -}; +/** Known values of {@link ComputeInstanceState} that the service accepts. */ +export enum KnownComputeInstanceState { + Creating = "Creating", + CreateFailed = "CreateFailed", + Deleting = "Deleting", + Running = "Running", + Restarting = "Restarting", + JobRunning = "JobRunning", + SettingUp = "SettingUp", + SetupFailed = "SetupFailed", + Starting = "Starting", + Stopped = "Stopped", + Stopping = "Stopping", + UserSettingUp = "UserSettingUp", + UserSetupFailed = "UserSetupFailed", + Unknown = "Unknown", + Unusable = "Unusable" +} + +/** + * Defines values for ComputeInstanceState. \ + * {@link KnownComputeInstanceState} can be used interchangeably with ComputeInstanceState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **CreateFailed** \ + * **Deleting** \ + * **Running** \ + * **Restarting** \ + * **JobRunning** \ + * **SettingUp** \ + * **SetupFailed** \ + * **Starting** \ + * **Stopped** \ + * **Stopping** \ + * **UserSettingUp** \ + * **UserSetupFailed** \ + * **Unknown** \ + * **Unusable** + */ +export type ComputeInstanceState = string; + +/** Known values of {@link ComputeInstanceAuthorizationType} that the service accepts. */ +export enum KnownComputeInstanceAuthorizationType { + Personal = "personal" +} + +/** + * Defines values for ComputeInstanceAuthorizationType. \ + * {@link KnownComputeInstanceAuthorizationType} can be used interchangeably with ComputeInstanceAuthorizationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **personal** + */ +export type ComputeInstanceAuthorizationType = string; + +/** Known values of {@link OperationName} that the service accepts. */ +export enum KnownOperationName { + Create = "Create", + Start = "Start", + Stop = "Stop", + Restart = "Restart", + Reimage = "Reimage", + Delete = "Delete" +} + +/** + * Defines values for OperationName. \ + * {@link KnownOperationName} can be used interchangeably with OperationName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Create** \ + * **Start** \ + * **Stop** \ + * **Restart** \ + * **Reimage** \ + * **Delete** + */ +export type OperationName = string; + +/** Known values of {@link OperationStatus} that the service accepts. */ +export enum KnownOperationStatus { + InProgress = "InProgress", + Succeeded = "Succeeded", + CreateFailed = "CreateFailed", + StartFailed = "StartFailed", + StopFailed = "StopFailed", + RestartFailed = "RestartFailed", + ReimageFailed = "ReimageFailed", + DeleteFailed = "DeleteFailed" +} + +/** + * 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 + * **InProgress** \ + * **Succeeded** \ + * **CreateFailed** \ + * **StartFailed** \ + * **StopFailed** \ + * **RestartFailed** \ + * **ReimageFailed** \ + * **DeleteFailed** + */ +export type OperationStatus = string; +/** Defines values for ResourceIdentityType. */ +export type ResourceIdentityType = + | "SystemAssigned" + | "SystemAssigned,UserAssigned" + | "UserAssigned" + | "None"; + +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; + +/** Optional parameters. */ +export interface WorkspacesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspacesGetResponse = Workspace; + +/** Optional parameters. */ +export interface WorkspacesCreateOrUpdateOptionalParams + 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 WorkspacesCreateOrUpdateResponse = Workspace; -/** - * Contains response data for the list operation. - */ -export type QuotasListResponse = ListWorkspaceQuotas & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface WorkspacesDeleteOptionalParams + 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; +} + +/** Optional parameters. */ +export interface WorkspacesUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type WorkspacesUpdateResponse = Workspace; + +/** Optional parameters. */ +export interface WorkspacesListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListWorkspaceQuotas; - }; -}; +/** Contains response data for the listByResourceGroup operation. */ +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; -/** - * Contains response data for the listNext operation. - */ -export type QuotasListNextResponse = ListWorkspaceQuotas & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface WorkspacesDiagnoseOptionalParams + extends coreClient.OperationOptions { + /** The parameter of diagnosing workspace health */ + parameters?: DiagnoseWorkspaceParameters; + /** 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; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ListWorkspaceQuotas; - }; -}; +/** Contains response data for the diagnose operation. */ +export type WorkspacesDiagnoseResponse = DiagnoseResponseResult; -/** - * Contains response data for the list operation. - */ -export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface WorkspacesListKeysOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: PaginatedWorkspaceConnectionsList; - }; -}; +/** Contains response data for the listKeys operation. */ +export type WorkspacesListKeysResponse = ListWorkspaceKeysResult; -/** - * Contains response data for the create operation. - */ -export type WorkspaceConnectionsCreateResponse = WorkspaceConnection & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface WorkspacesResyncKeysOptionalParams + 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; +} - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceConnection; - }; -}; +/** Optional parameters. */ +export interface WorkspacesListBySubscriptionOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} -/** - * Contains response data for the get operation. - */ -export type WorkspaceConnectionsGetResponse = WorkspaceConnection & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listBySubscription operation. */ +export type WorkspacesListBySubscriptionResponse = WorkspaceListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WorkspaceConnection; - }; -}; +/** Optional parameters. */ +export interface WorkspacesListNotebookAccessTokenOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspace operation. - */ -export type MachineLearningComputeListByWorkspaceResponse = PaginatedComputeResourcesList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNotebookAccessToken operation. */ +export type WorkspacesListNotebookAccessTokenResponse = NotebookAccessTokenResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PaginatedComputeResourcesList; - }; -}; +/** Optional parameters. */ +export interface WorkspacesPrepareNotebookOptionalParams + 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 MachineLearningComputeGetResponse = ComputeResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the prepareNotebook operation. */ +export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComputeResource; - }; -}; +/** Optional parameters. */ +export interface WorkspacesListStorageAccountKeysOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the createOrUpdate operation. - */ -export type MachineLearningComputeCreateOrUpdateResponse = ComputeResource & MachineLearningComputeCreateOrUpdateHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: MachineLearningComputeCreateOrUpdateHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComputeResource; - }; -}; +/** Contains response data for the listStorageAccountKeys operation. */ +export type WorkspacesListStorageAccountKeysResponse = ListStorageAccountKeysResult; -/** - * Contains response data for the update operation. - */ -export type MachineLearningComputeUpdateResponse = ComputeResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Optional parameters. */ +export interface WorkspacesListNotebookKeysOptionalParams + extends coreClient.OperationOptions {} - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComputeResource; - }; -}; +/** Contains response data for the listNotebookKeys operation. */ +export type WorkspacesListNotebookKeysResponse = ListNotebookKeysResult; -/** - * Contains response data for the deleteMethod operation. - */ -export type MachineLearningComputeDeleteResponse = MachineLearningComputeDeleteHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: MachineLearningComputeDeleteHeaders; - }; -}; +/** Optional parameters. */ +export interface WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listNodes operation. - */ -export type MachineLearningComputeListNodesResponse = AmlComputeNodesInformation & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ +export type WorkspacesListOutboundNetworkDependenciesEndpointsResponse = ExternalFqdnResponse; - /** - * The response body as parsed JSON or XML - */ - parsedBody: AmlComputeNodesInformation; - }; -}; +/** Optional parameters. */ +export interface WorkspacesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} -/** - * Contains response data for the listKeys operation. - */ -export type MachineLearningComputeListKeysResponse = ComputeSecretsUnion & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listByResourceGroupNext operation. */ +export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComputeSecretsUnion; - }; -}; +/** Optional parameters. */ +export interface WorkspacesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} -/** - * Contains response data for the beginUpdate operation. - */ -export type MachineLearningComputeBeginUpdateResponse = ComputeResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listBySubscriptionNext operation. */ +export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ComputeResource; - }; -}; +/** Optional parameters. */ +export interface UsagesListOptionalParams extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspaceNext operation. - */ -export type MachineLearningComputeListByWorkspaceNextResponse = PaginatedComputeResourcesList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type UsagesListResponse = ListUsagesResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PaginatedComputeResourcesList; - }; -}; +/** Optional parameters. */ +export interface UsagesListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listSkus operation. - */ -export type ListSkusResponse = SkuListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type UsagesListNextResponse = ListUsagesResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SkuListResult; - }; -}; +/** Optional parameters. */ +export interface VirtualMachineSizesListOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listSkusNext operation. - */ -export type ListSkusNextResponse = SkuListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SkuListResult; - }; -}; +/** Optional parameters. */ +export interface QuotasUpdateOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the update operation. */ +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnection; - }; -}; +/** Optional parameters. */ +export interface QuotasListOptionalParams extends coreClient.OperationOptions {} -/** - * Contains response data for the put operation. - */ -export type PrivateEndpointConnectionsPutResponse = PrivateEndpointConnection & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the list operation. */ +export type QuotasListResponse = ListWorkspaceQuotas; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateEndpointConnection; - }; -}; +/** Optional parameters. */ +export interface QuotasListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listByWorkspace operation. - */ -export type PrivateLinkResourcesListByWorkspaceResponse = PrivateLinkResourceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +/** Contains response data for the listNext operation. */ +export type QuotasListNextResponse = ListWorkspaceQuotas; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkResourceListResult; - }; -}; +/** Optional parameters. */ +export interface ComputeListOptionalParams extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the list operation. */ +export type ComputeListResponse = PaginatedComputeResourcesList; + +/** Optional parameters. */ +export interface ComputeGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ComputeGetResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeCreateOrUpdateOptionalParams + 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 ComputeCreateOrUpdateResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeUpdateOptionalParams + 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 update operation. */ +export type ComputeUpdateResponse = ComputeResource; + +/** Optional parameters. */ +export interface ComputeDeleteOptionalParams + 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; +} + +/** Optional parameters. */ +export interface ComputeListNodesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNodes operation. */ +export type ComputeListNodesResponse = AmlComputeNodesInformation; + +/** Optional parameters. */ +export interface ComputeListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type ComputeListKeysResponse = ComputeSecretsUnion; + +/** Optional parameters. */ +export interface ComputeStartOptionalParams + 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; +} + +/** Optional parameters. */ +export interface ComputeStopOptionalParams 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; +} + +/** Optional parameters. */ +export interface ComputeRestartOptionalParams + 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; +} + +/** Optional parameters. */ +export interface ComputeListNextOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; +} + +/** Contains response data for the listNext operation. */ +export type ComputeListNextResponse = PaginatedComputeResourcesList; + +/** Optional parameters. */ +export interface ComputeListNodesNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNodesNext operation. */ +export type ComputeListNodesNextResponse = AmlComputeNodesInformation; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; + +/** Optional parameters. */ +export interface PrivateEndpointConnectionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface PrivateLinkResourcesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface WorkspaceConnectionsListOptionalParams + extends coreClient.OperationOptions { + /** Target of the workspace connection. */ + target?: string; + /** Category of the workspace connection. */ + category?: string; +} + +/** Contains response data for the list operation. */ +export type WorkspaceConnectionsListResponse = PaginatedWorkspaceConnectionsList; + +/** Optional parameters. */ +export interface WorkspaceConnectionsCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type WorkspaceConnectionsCreateResponse = WorkspaceConnection; + +/** Optional parameters. */ +export interface WorkspaceConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspaceConnectionsGetResponse = WorkspaceConnection; + +/** Optional parameters. */ +export interface WorkspaceConnectionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface WorkspaceFeaturesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult; + +/** Optional parameters. */ +export interface WorkspaceFeaturesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult; + +/** Optional parameters. */ +export interface WorkspaceSkusListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type WorkspaceSkusListResponse = SkuListResult; + +/** Optional parameters. */ +export interface WorkspaceSkusListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type WorkspaceSkusListNextResponse = SkuListResult; + +/** Optional parameters. */ +export interface AzureMachineLearningWorkspacesOptionalParams + extends coreClient.ServiceClientOptions { + /** server parameter */ + $host?: string; + /** Api Version */ + apiVersion?: string; + /** Overrides client endpoint. */ + endpoint?: string; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts deleted file mode 100644 index 456a73c75208..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/machineLearningComputeMappers.ts +++ /dev/null @@ -1,71 +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 { - discriminators, - AKS, - AksComputeSecrets, - AksNetworkingConfiguration, - AKSProperties, - AmlCompute, - AmlComputeNodeInformation, - AmlComputeNodesInformation, - AmlComputeProperties, - BaseResource, - ClusterUpdateParameters, - Compute, - ComputeInstance, - ComputeInstanceApplication, - ComputeInstanceConnectivityEndpoints, - ComputeInstanceCreatedBy, - ComputeInstanceLastOperation, - ComputeInstanceProperties, - ComputeInstanceSshSettings, - ComputeNodesInformation, - ComputeResource, - ComputeSecrets, - Databricks, - DatabricksComputeSecrets, - DatabricksProperties, - DataFactory, - DataLakeAnalytics, - DataLakeAnalyticsProperties, - EncryptionProperty, - ErrorDetail, - ErrorResponse, - HDInsight, - HDInsightProperties, - Identity, - IdentityUserAssignedIdentitiesValue, - KeyVaultProperties, - MachineLearningComputeCreateOrUpdateHeaders, - MachineLearningComputeDeleteHeaders, - MachineLearningServiceError, - NodeStateCounts, - NotebookPreparationError, - NotebookResourceInfo, - PaginatedComputeResourcesList, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateLinkResource, - PrivateLinkServiceConnectionState, - Resource, - ResourceId, - ScaleSettings, - SharedPrivateLinkResource, - Sku, - SslConfiguration, - SystemService, - UserAccountCredentials, - VirtualMachine, - VirtualMachineProperties, - VirtualMachineSecrets, - VirtualMachineSshCredentials, - Workspace, - WorkspaceConnection -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts index 122cb25e5b8b..380e19982931 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/mappers.ts @@ -6,14 +6,52 @@ * 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 OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + } + } + } +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + } + } + } +}; -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "Operation_display", +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", className: "OperationDisplay", @@ -46,118 +84,162 @@ export const OperationDisplay: msRest.CompositeMapper = { } }; -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "ErrorResponse", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - display: { - serializedName: "display", + error: { + serializedName: "error", type: { name: "Composite", - className: "OperationDisplay" + className: "ErrorDetail" } } } } }; -export const NotebookListCredentialsResult: msRest.CompositeMapper = { - serializedName: "NotebookListCredentialsResult", +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookListCredentialsResult", + className: "ErrorDetail", modelProperties: { - primaryAccessKey: { - serializedName: "primaryAccessKey", + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - secondaryAccessKey: { - serializedName: "secondaryAccessKey", + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } + } + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } } } } }; -export const NotebookPreparationError: msRest.CompositeMapper = { - serializedName: "NotebookPreparationError", +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookPreparationError", + className: "ErrorAdditionalInfo", modelProperties: { - errorMessage: { - serializedName: "errorMessage", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - statusCode: { - serializedName: "statusCode", + info: { + serializedName: "info", + readOnly: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const NotebookResourceInfo: msRest.CompositeMapper = { - serializedName: "NotebookResourceInfo", +export const EncryptionProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookResourceInfo", + className: "EncryptionProperty", modelProperties: { - fqdn: { - serializedName: "fqdn", + status: { + serializedName: "status", + required: true, type: { name: "String" } }, - resourceId: { - serializedName: "resourceId", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "IdentityForCmk" } }, - notebookPreparationError: { - serializedName: "notebookPreparationError", + keyVaultProperties: { + serializedName: "keyVaultProperties", type: { name: "Composite", - className: "NotebookPreparationError" + className: "KeyVaultProperties" + } + } + } + } +}; + +export const IdentityForCmk: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdentityForCmk", + modelProperties: { + userAssignedIdentity: { + serializedName: "userAssignedIdentity", + type: { + name: "String" } } } } }; -export const KeyVaultProperties: msRest.CompositeMapper = { - serializedName: "KeyVaultProperties", +export const KeyVaultProperties: coreClient.CompositeMapper = { type: { name: "Composite", className: "KeyVaultProperties", modelProperties: { keyVaultArmId: { - required: true, serializedName: "keyVaultArmId", + required: true, type: { name: "String" } }, keyIdentifier: { - required: true, serializedName: "keyIdentifier", + required: true, type: { name: "String" } @@ -172,40 +254,21 @@ export const KeyVaultProperties: msRest.CompositeMapper = { } }; -export const EncryptionProperty: msRest.CompositeMapper = { - serializedName: "EncryptionProperty", +export const PrivateEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProperty", + className: "PrivateEndpoint", modelProperties: { - status: { - required: true, - serializedName: "status", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - keyVaultProperties: { - required: true, - serializedName: "keyVaultProperties", - type: { - name: "Composite", - className: "KeyVaultProperties" - } - } - } - } -}; - -export const PrivateEndpoint: msRest.CompositeMapper = { - serializedName: "PrivateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint", - modelProperties: { - id: { + subnetArmId: { + serializedName: "subnetArmId", readOnly: true, - serializedName: "id", type: { name: "String" } @@ -214,8 +277,7 @@ export const PrivateEndpoint: msRest.CompositeMapper = { } }; -export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { - serializedName: "PrivateLinkServiceConnectionState", +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { type: { name: "Composite", className: "PrivateLinkServiceConnectionState", @@ -242,50 +304,72 @@ export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { } }; -export const PrivateEndpointConnection: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnection", +export const Identity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "Identity", modelProperties: { - id: { + principalId: { + serializedName: "principalId", readOnly: true, - serializedName: "id", type: { name: "String" } }, - name: { + tenantId: { + serializedName: "tenantId", readOnly: true, - serializedName: "name", type: { name: "String" } }, type: { - readOnly: true, serializedName: "type", type: { - name: "String" + name: "Enum", + allowedValues: [ + "SystemAssigned", + "SystemAssigned,UserAssigned", + "UserAssigned", + "None" + ] } }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "Composite", - className: "PrivateEndpoint" + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserAssignedIdentity" } + } + } + } + } + } +}; + +export const UserAssignedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserAssignedIdentity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String" } }, - privateLinkServiceConnectionState: { - required: true, - serializedName: "properties.privateLinkServiceConnectionState", + tenantId: { + serializedName: "tenantId", + readOnly: true, type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + clientId: { + serializedName: "clientId", + readOnly: true, type: { name: "String" } @@ -294,11 +378,10 @@ export const PrivateEndpointConnection: msRest.CompositeMapper = { } }; -export const SharedPrivateLinkResource: msRest.CompositeMapper = { - serializedName: "SharedPrivateLinkResource", +export const Sku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedPrivateLinkResource", + className: "Sku", modelProperties: { name: { serializedName: "name", @@ -306,268 +389,211 @@ export const SharedPrivateLinkResource: msRest.CompositeMapper = { name: "String" } }, - privateLinkResourceId: { - serializedName: "properties.privateLinkResourceId", + tier: { + serializedName: "tier", + type: { + name: "String" + } + } + } + } +}; + +export const SystemData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - groupId: { - serializedName: "properties.groupId", + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - requestMessage: { - serializedName: "properties.requestMessage", + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - status: { - serializedName: "properties.status", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", className: "Resource", modelProperties: { id: { - readOnly: true, serializedName: "id", + readOnly: true, type: { name: "String" } }, name: { - readOnly: true, serializedName: "name", - type: { - name: "String" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "Identity" - } - }, - location: { - serializedName: "location", + readOnly: true, type: { name: "String" } }, type: { - readOnly: true, serializedName: "type", + readOnly: true, type: { name: "String" } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } } } } }; -export const Workspace: msRest.CompositeMapper = { - serializedName: "Workspace", +export const SharedPrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Workspace", + className: "SharedPrivateLinkResource", modelProperties: { - ...Resource.type.modelProperties, - workspaceId: { - readOnly: true, - serializedName: "properties.workspaceId", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - friendlyName: { - serializedName: "properties.friendlyName", + name: { + serializedName: "name", type: { name: "String" } }, - creationTime: { - readOnly: true, - serializedName: "properties.creationTime", - type: { - name: "DateTime" - } - }, - keyVault: { - serializedName: "properties.keyVault", + privateLinkResourceId: { + serializedName: "properties.privateLinkResourceId", type: { name: "String" } }, - applicationInsights: { - serializedName: "properties.applicationInsights", + groupId: { + serializedName: "properties.groupId", type: { name: "String" } }, - containerRegistry: { - serializedName: "properties.containerRegistry", + requestMessage: { + serializedName: "properties.requestMessage", type: { name: "String" } }, - storageAccount: { - serializedName: "properties.storageAccount", + status: { + serializedName: "properties.status", type: { name: "String" } - }, - discoveryUrl: { - serializedName: "properties.discoveryUrl", + } + } + } +}; + +export const NotebookResourceInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotebookResourceInfo", + modelProperties: { + fqdn: { + serializedName: "fqdn", type: { name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + resourceId: { + serializedName: "resourceId", type: { name: "String" } }, - encryption: { - serializedName: "properties.encryption", + notebookPreparationError: { + serializedName: "notebookPreparationError", type: { name: "Composite", - className: "EncryptionProperty" - } - }, - hbiWorkspace: { - serializedName: "properties.hbiWorkspace", - defaultValue: false, - type: { - name: "Boolean" + className: "NotebookPreparationError" } - }, - serviceProvisionedResourceGroup: { - readOnly: true, - serializedName: "properties.serviceProvisionedResourceGroup", + } + } + } +}; + +export const NotebookPreparationError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotebookPreparationError", + modelProperties: { + errorMessage: { + serializedName: "errorMessage", type: { name: "String" } }, - privateLinkCount: { - readOnly: true, - serializedName: "properties.privateLinkCount", + statusCode: { + serializedName: "statusCode", type: { name: "Number" } - }, - imageBuildCompute: { - serializedName: "properties.imageBuildCompute", - type: { - name: "String" - } - }, - allowPublicAccessWhenBehindVnet: { - serializedName: "properties.allowPublicAccessWhenBehindVnet", - defaultValue: false, - type: { - name: "Boolean" - } - }, - privateEndpointConnections: { - readOnly: true, - serializedName: "properties.privateEndpointConnections", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - }, - sharedPrivateLinkResources: { - serializedName: "properties.sharedPrivateLinkResources", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedPrivateLinkResource" - } - } - } - }, - notebookInfo: { - readOnly: true, - serializedName: "properties.notebookInfo", + } + } + } +}; + +export const ServiceManagedResourcesSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings", + modelProperties: { + cosmosDb: { + serializedName: "cosmosDb", type: { name: "Composite", - className: "NotebookResourceInfo" + className: "CosmosDbSettings" } } } } }; -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", +export const CosmosDbSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "CosmosDbSettings", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", + collectionsThroughput: { + serializedName: "collectionsThroughput", type: { - name: "String" + name: "Number" } } } } }; -export const WorkspaceUpdateParameters: msRest.CompositeMapper = { - serializedName: "WorkspaceUpdateParameters", +export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", className: "WorkspaceUpdateParameters", @@ -576,11 +602,7 @@ export const WorkspaceUpdateParameters: msRest.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { - type: { - name: "String" - } - } + value: { type: { name: "String" } } } }, sku: { @@ -590,6 +612,13 @@ export const WorkspaceUpdateParameters: msRest.CompositeMapper = { className: "Sku" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, description: { serializedName: "properties.description", type: { @@ -601,31 +630,28 @@ export const WorkspaceUpdateParameters: msRest.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const AmlUserFeature: msRest.CompositeMapper = { - serializedName: "AmlUserFeature", - type: { - name: "Composite", - className: "AmlUserFeature", - modelProperties: { - id: { - serializedName: "id", + }, + imageBuildCompute: { + serializedName: "properties.imageBuildCompute", type: { name: "String" } }, - displayName: { - serializedName: "displayName", + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings" + } + }, + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", type: { name: "String" } }, - description: { - serializedName: "description", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } @@ -634,22 +660,25 @@ export const AmlUserFeature: msRest.CompositeMapper = { } }; -export const UsageName: msRest.CompositeMapper = { - serializedName: "UsageName", +export const WorkspaceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageName", + className: "WorkspaceListResult", modelProperties: { value: { - readOnly: true, serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Workspace" + } + } } }, - localizedValue: { - readOnly: true, - serializedName: "localizedValue", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -658,236 +687,237 @@ export const UsageName: msRest.CompositeMapper = { } }; -export const Usage: msRest.CompositeMapper = { - serializedName: "Usage", +export const DiagnoseWorkspaceParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Usage", + className: "DiagnoseWorkspaceParameters", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", + value: { + serializedName: "value", type: { - name: "String" + name: "Composite", + className: "DiagnoseRequestProperties" } - }, - unit: { - readOnly: true, - serializedName: "unit", + } + } + } +}; + +export const DiagnoseRequestProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiagnoseRequestProperties", + modelProperties: { + udr: { + serializedName: "udr", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } }, - currentValue: { - readOnly: true, - serializedName: "currentValue", + nsg: { + serializedName: "nsg", type: { - name: "Number" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } }, - limit: { - readOnly: true, - serializedName: "limit", + resourceLock: { + serializedName: "resourceLock", type: { - name: "Number" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } }, - name: { - readOnly: true, - serializedName: "name", + dnsResolution: { + serializedName: "dnsResolution", type: { - name: "Composite", - className: "UsageName" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } - } - } - } -}; - -export const EstimatedVMPrice: msRest.CompositeMapper = { - serializedName: "EstimatedVMPrice", - type: { - name: "Composite", - className: "EstimatedVMPrice", - modelProperties: { - retailPrice: { - required: true, - serializedName: "retailPrice", + }, + storageAccount: { + serializedName: "storageAccount", type: { - name: "Number" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } }, - osType: { - required: true, - serializedName: "osType", + keyVault: { + serializedName: "keyVault", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } }, - vmTier: { - required: true, - serializedName: "vmTier", + containerRegistry: { + serializedName: "containerRegistry", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, + applicationInsights: { + serializedName: "applicationInsights", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } + }, + others: { + serializedName: "others", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } } }; -export const EstimatedVMPrices: msRest.CompositeMapper = { - serializedName: "EstimatedVMPrices", +export const DiagnoseResponseResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EstimatedVMPrices", + className: "DiagnoseResponseResult", modelProperties: { - billingCurrency: { - required: true, - isConstant: true, - serializedName: "billingCurrency", - defaultValue: 'USD', - type: { - name: "String" - } - }, - unitOfMeasure: { - required: true, - isConstant: true, - serializedName: "unitOfMeasure", - defaultValue: 'OneHour', - type: { - name: "String" - } - }, - values: { - required: true, - serializedName: "values", + value: { + serializedName: "value", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EstimatedVMPrice" - } - } + name: "Composite", + className: "DiagnoseResponseResultValue" } } } } }; -export const VirtualMachineSize: msRest.CompositeMapper = { - serializedName: "VirtualMachineSize", +export const DiagnoseResponseResultValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSize", + className: "DiagnoseResponseResultValue", modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - family: { - readOnly: true, - serializedName: "family", - type: { - name: "String" - } - }, - vCPUs: { - readOnly: true, - serializedName: "vCPUs", - type: { - name: "Number" - } - }, - gpus: { - readOnly: true, - serializedName: "gpus", + userDefinedRouteResults: { + serializedName: "userDefinedRouteResults", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - osVhdSizeMB: { - readOnly: true, - serializedName: "osVhdSizeMB", + networkSecurityRuleResults: { + serializedName: "networkSecurityRuleResults", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - maxResourceVolumeMB: { - readOnly: true, - serializedName: "maxResourceVolumeMB", + resourceLockResults: { + serializedName: "resourceLockResults", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - memoryGB: { - readOnly: true, - serializedName: "memoryGB", + dnsResolutionResults: { + serializedName: "dnsResolutionResults", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - lowPriorityCapable: { - readOnly: true, - serializedName: "lowPriorityCapable", + storageAccountResults: { + serializedName: "storageAccountResults", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - premiumIO: { - readOnly: true, - serializedName: "premiumIO", + keyVaultResults: { + serializedName: "keyVaultResults", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - estimatedVMPrices: { - serializedName: "estimatedVMPrices", + containerRegistryResults: { + serializedName: "containerRegistryResults", type: { - name: "Composite", - className: "EstimatedVMPrices" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - supportedComputeTypes: { - serializedName: "supportedComputeTypes", + applicationInsightsResults: { + serializedName: "applicationInsightsResults", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "DiagnoseResult" } } } - } - } - } -}; - -export const VirtualMachineSizeListResult: msRest.CompositeMapper = { - serializedName: "VirtualMachineSizeListResult", - type: { - name: "Composite", - className: "VirtualMachineSizeListResult", - modelProperties: { - amlCompute: { - serializedName: "amlCompute", + }, + otherResults: { + serializedName: "otherResults", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineSize" + className: "DiagnoseResult" } } } @@ -896,32 +926,28 @@ export const VirtualMachineSizeListResult: msRest.CompositeMapper = { } }; -export const QuotaBaseProperties: msRest.CompositeMapper = { - serializedName: "QuotaBaseProperties", +export const DiagnoseResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuotaBaseProperties", + className: "DiagnoseResult", modelProperties: { - id: { - serializedName: "id", + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - type: { - serializedName: "type", + level: { + serializedName: "level", + readOnly: true, type: { name: "String" } }, - limit: { - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { - serializedName: "unit", + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } @@ -930,117 +956,100 @@ export const QuotaBaseProperties: msRest.CompositeMapper = { } }; -export const QuotaUpdateParameters: msRest.CompositeMapper = { - serializedName: "QuotaUpdateParameters", +export const ListWorkspaceKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuotaUpdateParameters", + className: "ListWorkspaceKeysResult", modelProperties: { - value: { - serializedName: "value", + userStorageKey: { + serializedName: "userStorageKey", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QuotaBaseProperties" - } - } + name: "String" } - } - } - } -}; - -export const UpdateWorkspaceQuotas: msRest.CompositeMapper = { - serializedName: "UpdateWorkspaceQuotas", - type: { - name: "Composite", - className: "UpdateWorkspaceQuotas", - modelProperties: { - id: { + }, + userStorageResourceId: { + serializedName: "userStorageResourceId", readOnly: true, - serializedName: "id", type: { name: "String" } }, - type: { + appInsightsInstrumentationKey: { + serializedName: "appInsightsInstrumentationKey", readOnly: true, - serializedName: "type", type: { name: "String" } }, - limit: { - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { - readOnly: true, - serializedName: "unit", + containerRegistryCredentials: { + serializedName: "containerRegistryCredentials", type: { - name: "String" + name: "Composite", + className: "RegistryListCredentialsResult" } }, - status: { - serializedName: "status", + notebookAccessKeys: { + serializedName: "notebookAccessKeys", type: { - name: "String" + name: "Composite", + className: "ListNotebookKeysResult" } } } } }; -export const UpdateWorkspaceQuotasResult: msRest.CompositeMapper = { - serializedName: "UpdateWorkspaceQuotasResult", +export const RegistryListCredentialsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateWorkspaceQuotasResult", + className: "RegistryListCredentialsResult", modelProperties: { - value: { + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String" + } + }, + username: { + serializedName: "username", readOnly: true, - serializedName: "value", + type: { + name: "String" + } + }, + passwords: { + serializedName: "passwords", type: { name: "Sequence", element: { type: { name: "Composite", - className: "UpdateWorkspaceQuotas" + className: "Password" } } } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const ResourceName: msRest.CompositeMapper = { - serializedName: "ResourceName", +export const Password: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceName", + className: "Password", modelProperties: { - value: { + name: { + serializedName: "name", readOnly: true, - serializedName: "value", type: { name: "String" } }, - localizedValue: { + value: { + serializedName: "value", readOnly: true, - serializedName: "localizedValue", type: { name: "String" } @@ -1049,44 +1058,21 @@ export const ResourceName: msRest.CompositeMapper = { } }; -export const ResourceQuota: msRest.CompositeMapper = { - serializedName: "ResourceQuota", +export const ListNotebookKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceQuota", + className: "ListNotebookKeysResult", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - type: { + primaryAccessKey: { + serializedName: "primaryAccessKey", readOnly: true, - serializedName: "type", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "Composite", - className: "ResourceName" - } - }, - limit: { - readOnly: true, - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { + secondaryAccessKey: { + serializedName: "secondaryAccessKey", readOnly: true, - serializedName: "unit", type: { name: "String" } @@ -1095,22 +1081,27 @@ export const ResourceQuota: msRest.CompositeMapper = { } }; -export const IdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { - serializedName: "Identity_userAssignedIdentitiesValue", +export const ListUsagesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IdentityUserAssignedIdentitiesValue", + className: "ListUsagesResult", modelProperties: { - principalId: { + value: { + serializedName: "value", readOnly: true, - serializedName: "principalId", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Usage" + } + } } }, - clientId: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "clientId", type: { name: "String" } @@ -1119,88 +1110,79 @@ export const IdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { } }; -export const Identity: msRest.CompositeMapper = { - serializedName: "Identity", +export const Usage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Identity", + className: "Usage", modelProperties: { - principalId: { + id: { + serializedName: "id", readOnly: true, - serializedName: "principalId", type: { name: "String" } }, - tenantId: { + amlWorkspaceLocation: { + serializedName: "amlWorkspaceLocation", readOnly: true, - serializedName: "tenantId", type: { name: "String" } }, type: { - required: true, serializedName: "type", + readOnly: true, type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned,UserAssigned", - "None" - ] + name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + unit: { + serializedName: "unit", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "IdentityUserAssignedIdentitiesValue" - } - } + name: "String" } - } - } - } -}; - -export const ResourceId: msRest.CompositeMapper = { - serializedName: "ResourceId", - type: { - name: "Composite", - className: "ResourceId", - modelProperties: { - id: { - required: true, - serializedName: "id", + }, + currentValue: { + serializedName: "currentValue", + readOnly: true, type: { - name: "String" + name: "Number" + } + }, + limit: { + serializedName: "limit", + readOnly: true, + type: { + name: "Number" + } + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "UsageName" } } } } }; -export const Password: msRest.CompositeMapper = { - serializedName: "Password", +export const UsageName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Password", + className: "UsageName", modelProperties: { - name: { + value: { + serializedName: "value", readOnly: true, - serializedName: "name", type: { name: "String" } }, - value: { + localizedValue: { + serializedName: "localizedValue", readOnly: true, - serializedName: "value", type: { name: "String" } @@ -1209,34 +1191,19 @@ export const Password: msRest.CompositeMapper = { } }; -export const RegistryListCredentialsResult: msRest.CompositeMapper = { - serializedName: "RegistryListCredentialsResult", +export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryListCredentialsResult", + className: "VirtualMachineSizeListResult", modelProperties: { - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - username: { - readOnly: true, - serializedName: "username", - type: { - name: "String" - } - }, - passwords: { - serializedName: "passwords", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Password" + className: "VirtualMachineSize" } } } @@ -1245,105 +1212,124 @@ export const RegistryListCredentialsResult: msRest.CompositeMapper = { } }; -export const ListWorkspaceKeysResult: msRest.CompositeMapper = { - serializedName: "ListWorkspaceKeysResult", +export const VirtualMachineSize: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListWorkspaceKeysResult", + className: "VirtualMachineSize", modelProperties: { - userStorageKey: { + name: { + serializedName: "name", readOnly: true, - serializedName: "userStorageKey", type: { name: "String" } }, - userStorageResourceId: { + family: { + serializedName: "family", readOnly: true, - serializedName: "userStorageResourceId", type: { name: "String" } }, - appInsightsInstrumentationKey: { + vCPUs: { + serializedName: "vCPUs", readOnly: true, - serializedName: "appInsightsInstrumentationKey", type: { - name: "String" + name: "Number" } }, - containerRegistryCredentials: { + gpus: { + serializedName: "gpus", readOnly: true, - serializedName: "containerRegistryCredentials", type: { - name: "Composite", - className: "RegistryListCredentialsResult" + name: "Number" } }, - notebookAccessKeys: { - serializedName: "notebookAccessKeys", + osVhdSizeMB: { + serializedName: "osVhdSizeMB", + readOnly: true, type: { - name: "Composite", - className: "NotebookListCredentialsResult" + name: "Number" } - } - } - } -}; - -export const ErrorDetail: msRest.CompositeMapper = { - serializedName: "ErrorDetail", - type: { - name: "Composite", - className: "ErrorDetail", - modelProperties: { - code: { - required: true, - serializedName: "code", + }, + maxResourceVolumeMB: { + serializedName: "maxResourceVolumeMB", + readOnly: true, type: { - name: "String" + name: "Number" } }, - message: { - required: true, - serializedName: "message", + memoryGB: { + serializedName: "memoryGB", + readOnly: true, type: { - name: "String" + name: "Number" + } + }, + lowPriorityCapable: { + serializedName: "lowPriorityCapable", + readOnly: true, + type: { + name: "Boolean" + } + }, + premiumIO: { + serializedName: "premiumIO", + readOnly: true, + type: { + name: "Boolean" + } + }, + estimatedVMPrices: { + serializedName: "estimatedVMPrices", + type: { + name: "Composite", + className: "EstimatedVMPrices" + } + }, + supportedComputeTypes: { + serializedName: "supportedComputeTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", +export const EstimatedVMPrices: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponse", + className: "EstimatedVMPrices", modelProperties: { - code: { - readOnly: true, - serializedName: "code", + billingCurrency: { + serializedName: "billingCurrency", + required: true, type: { name: "String" } }, - message: { - readOnly: true, - serializedName: "message", + unitOfMeasure: { + serializedName: "unitOfMeasure", + required: true, type: { name: "String" } }, - details: { - readOnly: true, - serializedName: "details", + values: { + serializedName: "values", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorDetail" + className: "EstimatedVMPrice" } } } @@ -1352,97 +1338,117 @@ export const ErrorResponse: msRest.CompositeMapper = { } }; -export const MachineLearningServiceError: msRest.CompositeMapper = { - serializedName: "MachineLearningServiceError", +export const EstimatedVMPrice: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MachineLearningServiceError", + className: "EstimatedVMPrice", modelProperties: { - error: { - readOnly: true, - serializedName: "error", + retailPrice: { + serializedName: "retailPrice", + required: true, type: { - name: "Composite", - className: "ErrorResponse" + name: "Number" + } + }, + osType: { + serializedName: "osType", + required: true, + type: { + name: "String" + } + }, + vmTier: { + serializedName: "vmTier", + required: true, + type: { + name: "String" } } } } }; -export const Compute: msRest.CompositeMapper = { - serializedName: "Compute", +export const QuotaUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, - uberParent: "Compute", - className: "Compute", + className: "QuotaUpdateParameters", modelProperties: { - computeLocation: { - serializedName: "computeLocation", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaBaseProperties" + } + } } }, - provisioningState: { - readOnly: true, - serializedName: "provisioningState", + location: { + serializedName: "location", type: { name: "String" } - }, - description: { - serializedName: "description", + } + } + } +}; + +export const QuotaBaseProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaBaseProperties", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } }, - createdOn: { - readOnly: true, - serializedName: "createdOn", + type: { + serializedName: "type", type: { - name: "DateTime" + name: "String" } }, - modifiedOn: { - readOnly: true, - serializedName: "modifiedOn", + limit: { + serializedName: "limit", type: { - name: "DateTime" + name: "Number" } }, - resourceId: { - serializedName: "resourceId", + unit: { + serializedName: "unit", type: { name: "String" } - }, - provisioningErrors: { + } + } + } +}; + +export const UpdateWorkspaceQuotasResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateWorkspaceQuotasResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, - serializedName: "provisioningErrors", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MachineLearningServiceError" + className: "UpdateWorkspaceQuotas" } } } }, - isAttachedCompute: { + nextLink: { + serializedName: "nextLink", readOnly: true, - serializedName: "isAttachedCompute", - type: { - name: "Boolean" - } - }, - computeType: { - required: true, - serializedName: "computeType", type: { name: "String" } @@ -1451,47 +1457,40 @@ export const Compute: msRest.CompositeMapper = { } }; -export const ComputeResource: msRest.CompositeMapper = { - serializedName: "ComputeResource", +export const UpdateWorkspaceQuotas: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeResource", + className: "UpdateWorkspaceQuotas", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Composite", - className: "Compute" + name: "String" } - } - } - } -}; - -export const SystemService: msRest.CompositeMapper = { - serializedName: "SystemService", - type: { - name: "Composite", - className: "SystemService", - modelProperties: { - systemServiceType: { + }, + type: { + serializedName: "type", readOnly: true, - serializedName: "systemServiceType", type: { name: "String" } }, - publicIpAddress: { + limit: { + serializedName: "limit", + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", readOnly: true, - serializedName: "publicIpAddress", type: { name: "String" } }, - version: { - readOnly: true, - serializedName: "version", + status: { + serializedName: "status", type: { name: "String" } @@ -1500,32 +1499,27 @@ export const SystemService: msRest.CompositeMapper = { } }; -export const SslConfiguration: msRest.CompositeMapper = { - serializedName: "SslConfiguration", +export const ListWorkspaceQuotas: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SslConfiguration", + className: "ListWorkspaceQuotas", modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - cert: { - serializedName: "cert", - type: { - name: "String" - } - }, - key: { - serializedName: "key", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceQuota" + } + } } }, - cname: { - serializedName: "cname", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -1534,41 +1528,49 @@ export const SslConfiguration: msRest.CompositeMapper = { } }; -export const AksNetworkingConfiguration: msRest.CompositeMapper = { - serializedName: "AksNetworkingConfiguration", +export const ResourceQuota: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AksNetworkingConfiguration", + className: "ResourceQuota", modelProperties: { - subnetId: { - serializedName: "subnetId", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - serviceCidr: { - serializedName: "serviceCidr", - constraints: { - Pattern: /^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/ - }, + amlWorkspaceLocation: { + serializedName: "amlWorkspaceLocation", + readOnly: true, type: { name: "String" } }, - dnsServiceIP: { - serializedName: "dnsServiceIP", - constraints: { - Pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/ - }, + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - dockerBridgeCidr: { - serializedName: "dockerBridgeCidr", - constraints: { - Pattern: /^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/ - }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "ResourceName" + } + }, + limit: { + serializedName: "limit", + readOnly: true, + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + readOnly: true, type: { name: "String" } @@ -1577,100 +1579,205 @@ export const AksNetworkingConfiguration: msRest.CompositeMapper = { } }; -export const AKSProperties: msRest.CompositeMapper = { - serializedName: "AKS_properties", +export const ResourceName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AKSProperties", + className: "ResourceName", modelProperties: { - clusterFqdn: { - serializedName: "clusterFqdn", + value: { + serializedName: "value", + readOnly: true, type: { name: "String" } }, - systemServices: { + localizedValue: { + serializedName: "localizedValue", readOnly: true, - serializedName: "systemServices", + type: { + name: "String" + } + } + } + } +}; + +export const PaginatedComputeResourcesList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PaginatedComputeResourcesList", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SystemService" + className: "ComputeResource" } } } }, - agentCount: { - serializedName: "agentCount", - constraints: { - InclusiveMinimum: 1 - }, + nextLink: { + serializedName: "nextLink", type: { - name: "Number" + name: "String" + } + } + } + } +}; + +export const Components1D3SwueSchemasComputeresourceAllof1: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Components1D3SwueSchemasComputeresourceAllof1", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "Compute" + } + } + } + } +}; + +export const Compute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Compute", + uberParent: "Compute", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, + modelProperties: { + computeType: { + serializedName: "computeType", + required: true, + type: { + name: "String" } }, - agentVMSize: { - serializedName: "agentVMSize", + computeLocation: { + serializedName: "computeLocation", type: { name: "String" } }, - sslConfiguration: { - serializedName: "sslConfiguration", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Composite", - className: "SslConfiguration" + name: "String" } }, - aksNetworkingConfiguration: { - serializedName: "aksNetworkingConfiguration", + description: { + serializedName: "description", type: { - name: "Composite", - className: "AksNetworkingConfiguration" + name: "String" + } + }, + createdOn: { + serializedName: "createdOn", + readOnly: true, + type: { + name: "DateTime" + } + }, + modifiedOn: { + serializedName: "modifiedOn", + readOnly: true, + type: { + name: "DateTime" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + provisioningErrors: { + serializedName: "provisioningErrors", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + }, + isAttachedCompute: { + serializedName: "isAttachedCompute", + readOnly: true, + type: { + name: "Boolean" + } + }, + disableLocalAuth: { + serializedName: "disableLocalAuth", + type: { + name: "Boolean" } } } } }; -export const AKS: msRest.CompositeMapper = { - serializedName: "AKS", +export const ClusterUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "AKS", + className: "ClusterUpdateParameters", modelProperties: { - ...Compute.type.modelProperties, properties: { - serializedName: "properties", + serializedName: "properties.properties", type: { name: "Composite", - className: "AKSProperties" + className: "ScaleSettingsInformation" + } + } + } + } +}; + +export const ScaleSettingsInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScaleSettingsInformation", + modelProperties: { + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "ScaleSettings" } } } } }; -export const ScaleSettings: msRest.CompositeMapper = { - serializedName: "ScaleSettings", +export const ScaleSettings: coreClient.CompositeMapper = { type: { name: "Composite", className: "ScaleSettings", modelProperties: { maxNodeCount: { - required: true, serializedName: "maxNodeCount", + required: true, type: { name: "Number" } }, minNodeCount: { - serializedName: "minNodeCount", defaultValue: 0, + serializedName: "minNodeCount", type: { name: "Number" } @@ -1685,27 +1792,27 @@ export const ScaleSettings: msRest.CompositeMapper = { } }; -export const UserAccountCredentials: msRest.CompositeMapper = { - serializedName: "UserAccountCredentials", +export const AmlComputeNodesInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserAccountCredentials", + className: "AmlComputeNodesInformation", modelProperties: { - adminUserName: { - required: true, - serializedName: "adminUserName", - type: { - name: "String" - } - }, - adminUserSshPublicKey: { - serializedName: "adminUserSshPublicKey", + nodes: { + serializedName: "nodes", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlComputeNodeInformation" + } + } } }, - adminUserPassword: { - serializedName: "adminUserPassword", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -1714,230 +1821,193 @@ export const UserAccountCredentials: msRest.CompositeMapper = { } }; -export const NodeStateCounts: msRest.CompositeMapper = { - serializedName: "NodeStateCounts", +export const AmlComputeNodeInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeStateCounts", + className: "AmlComputeNodeInformation", modelProperties: { - idleNodeCount: { + nodeId: { + serializedName: "nodeId", readOnly: true, - serializedName: "idleNodeCount", type: { - name: "Number" + name: "String" } }, - runningNodeCount: { + privateIpAddress: { + serializedName: "privateIpAddress", readOnly: true, - serializedName: "runningNodeCount", type: { - name: "Number" + name: "String" } }, - preparingNodeCount: { + publicIpAddress: { + serializedName: "publicIpAddress", readOnly: true, - serializedName: "preparingNodeCount", type: { - name: "Number" + name: "String" } }, - unusableNodeCount: { + port: { + serializedName: "port", readOnly: true, - serializedName: "unusableNodeCount", type: { name: "Number" } }, - leavingNodeCount: { + nodeState: { + serializedName: "nodeState", readOnly: true, - serializedName: "leavingNodeCount", type: { - name: "Number" + name: "String" } }, - preemptedNodeCount: { + runId: { + serializedName: "runId", readOnly: true, - serializedName: "preemptedNodeCount", type: { - name: "Number" + name: "String" } } } } }; -export const AmlComputeProperties: msRest.CompositeMapper = { - serializedName: "AmlCompute_properties", +export const NotebookAccessTokenResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeProperties", + className: "NotebookAccessTokenResult", modelProperties: { - vmSize: { - serializedName: "vmSize", + notebookResourceId: { + serializedName: "notebookResourceId", + readOnly: true, type: { name: "String" } }, - vmPriority: { - serializedName: "vmPriority", + hostName: { + serializedName: "hostName", + readOnly: true, type: { name: "String" } }, - scaleSettings: { - serializedName: "scaleSettings", - type: { - name: "Composite", - className: "ScaleSettings" - } - }, - userAccountCredentials: { - serializedName: "userAccountCredentials", - type: { - name: "Composite", - className: "UserAccountCredentials" - } - }, - subnet: { - serializedName: "subnet", - type: { - name: "Composite", - className: "ResourceId" - } - }, - remoteLoginPortPublicAccess: { - serializedName: "remoteLoginPortPublicAccess", - defaultValue: 'NotSpecified', - type: { - name: "String" - } - }, - allocationState: { + publicDns: { + serializedName: "publicDns", readOnly: true, - serializedName: "allocationState", type: { name: "String" } }, - allocationStateTransitionTime: { + accessToken: { + serializedName: "accessToken", readOnly: true, - serializedName: "allocationStateTransitionTime", type: { - name: "DateTime" + name: "String" } }, - errors: { + tokenType: { + serializedName: "tokenType", readOnly: true, - serializedName: "errors", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MachineLearningServiceError" - } - } + name: "String" } }, - currentNodeCount: { + expiresIn: { + serializedName: "expiresIn", readOnly: true, - serializedName: "currentNodeCount", type: { name: "Number" } }, - targetNodeCount: { + refreshToken: { + serializedName: "refreshToken", readOnly: true, - serializedName: "targetNodeCount", type: { - name: "Number" + name: "String" } }, - nodeStateCounts: { + scope: { + serializedName: "scope", readOnly: true, - serializedName: "nodeStateCounts", type: { - name: "Composite", - className: "NodeStateCounts" + name: "String" } } } } }; -export const AmlCompute: msRest.CompositeMapper = { - serializedName: "AmlCompute", +export const ComputeSecrets: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "AmlCompute", + className: "ComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + computeType: { + serializedName: "computeType", + required: true, type: { - name: "Composite", - className: "AmlComputeProperties" + name: "String" } } } } }; -export const ComputeInstanceSshSettings: msRest.CompositeMapper = { - serializedName: "ComputeInstanceSshSettings", +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceSshSettings", + className: "PrivateEndpointConnectionListResult", modelProperties: { - sshPublicAccess: { - serializedName: "sshPublicAccess", - defaultValue: 'Disabled', - type: { - name: "String" - } - }, - adminUserName: { - readOnly: true, - serializedName: "adminUserName", - type: { - name: "String" - } - }, - sshPort: { - readOnly: true, - serializedName: "sshPort", - type: { - name: "Number" - } - }, - adminPublicKey: { - serializedName: "adminPublicKey", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } } } } }; -export const ComputeInstanceConnectivityEndpoints: msRest.CompositeMapper = { - serializedName: "ComputeInstanceConnectivityEndpoints", +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceConnectivityEndpoints", + className: "PrivateLinkResourceListResult", modelProperties: { - publicIpAddress: { - readOnly: true, - serializedName: "publicIpAddress", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } } - }, - privateIpAddress: { + } + } + } +}; + +export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListStorageAccountKeysResult", + modelProperties: { + userStorageKey: { + serializedName: "userStorageKey", readOnly: true, - serializedName: "privateIpAddress", type: { name: "String" } @@ -1946,20 +2016,25 @@ export const ComputeInstanceConnectivityEndpoints: msRest.CompositeMapper = { } }; -export const ComputeInstanceApplication: msRest.CompositeMapper = { - serializedName: "ComputeInstanceApplication", +export const PaginatedWorkspaceConnectionsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceApplication", + className: "PaginatedWorkspaceConnectionsList", modelProperties: { - displayName: { - serializedName: "displayName", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceConnection" + } + } } }, - endpointUri: { - serializedName: "endpointUri", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -1968,57 +2043,58 @@ export const ComputeInstanceApplication: msRest.CompositeMapper = { } }; -export const ComputeInstanceCreatedBy: msRest.CompositeMapper = { - serializedName: "ComputeInstanceCreatedBy", +export const WorkspaceConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceCreatedBy", + className: "WorkspaceConnection", modelProperties: { - userName: { + id: { + serializedName: "id", readOnly: true, - serializedName: "userName", type: { name: "String" } }, - userOrgId: { + name: { + serializedName: "name", readOnly: true, - serializedName: "userOrgId", type: { name: "String" } }, - userId: { + type: { + serializedName: "type", readOnly: true, - serializedName: "userId", type: { name: "String" } - } - } - } -}; - -export const ComputeInstanceLastOperation: msRest.CompositeMapper = { - serializedName: "ComputeInstanceLastOperation", - type: { - name: "Composite", - className: "ComputeInstanceLastOperation", - modelProperties: { - operationName: { - serializedName: "operationName", + }, + category: { + serializedName: "properties.category", type: { name: "String" } }, - operationTime: { - serializedName: "operationTime", + target: { + serializedName: "properties.target", type: { - name: "DateTime" + name: "String" } }, - operationStatus: { - serializedName: "operationStatus", + authType: { + serializedName: "properties.authType", + type: { + name: "String" + } + }, + value: { + serializedName: "properties.value", + type: { + name: "String" + } + }, + valueFormat: { + serializedName: "properties.valueFormat", type: { name: "String" } @@ -2027,146 +2103,133 @@ export const ComputeInstanceLastOperation: msRest.CompositeMapper = { } }; -export const ComputeInstanceProperties: msRest.CompositeMapper = { - serializedName: "ComputeInstance_properties", +export const ExternalFqdnResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceProperties", + className: "ExternalFqdnResponse", modelProperties: { - vmSize: { - serializedName: "vmSize", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpoints" + } + } } - }, - subnet: { - serializedName: "subnet", + } + } + } +}; + +export const FqdnEndpoints: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FqdnEndpoints", + modelProperties: { + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ResourceId" + className: "FqdnEndpointsProperties" } - }, - applicationSharingPolicy: { - serializedName: "applicationSharingPolicy", - defaultValue: 'Shared', + } + } + } +}; + +export const FqdnEndpointsProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FqdnEndpointsProperties", + modelProperties: { + category: { + serializedName: "category", type: { name: "String" } }, - sshSettings: { - serializedName: "sshSettings", - type: { - name: "Composite", - className: "ComputeInstanceSshSettings" - } - }, - connectivityEndpoints: { - readOnly: true, - serializedName: "connectivityEndpoints", - type: { - name: "Composite", - className: "ComputeInstanceConnectivityEndpoints" - } - }, - applications: { - readOnly: true, - serializedName: "applications", + endpoints: { + serializedName: "endpoints", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ComputeInstanceApplication" + className: "FqdnEndpoint" } } } - }, - createdBy: { - readOnly: true, - serializedName: "createdBy", + } + } + } +}; + +export const FqdnEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FqdnEndpoint", + modelProperties: { + domainName: { + serializedName: "domainName", type: { - name: "Composite", - className: "ComputeInstanceCreatedBy" + name: "String" } }, - errors: { - readOnly: true, - serializedName: "errors", + endpointDetails: { + serializedName: "endpointDetails", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MachineLearningServiceError" + className: "FqdnEndpointDetail" } } } - }, - state: { - readOnly: true, - serializedName: "state", - type: { - name: "String" - } - }, - lastOperation: { - readOnly: true, - serializedName: "lastOperation", - type: { - name: "Composite", - className: "ComputeInstanceLastOperation" - } } } } }; -export const ComputeInstance: msRest.CompositeMapper = { - serializedName: "ComputeInstance", +export const FqdnEndpointDetail: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "ComputeInstance", + className: "FqdnEndpointDetail", modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + port: { + serializedName: "port", type: { - name: "Composite", - className: "ComputeInstanceProperties" + name: "Number" } } } } }; -export const VirtualMachineSshCredentials: msRest.CompositeMapper = { - serializedName: "VirtualMachineSshCredentials", +export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSshCredentials", + className: "ListAmlUserFeatureResult", modelProperties: { - username: { - serializedName: "username", - type: { - name: "String" - } - }, - password: { - serializedName: "password", - type: { - name: "String" - } - }, - publicKeyData: { - serializedName: "publicKeyData", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlUserFeature" + } + } } }, - privateKeyData: { - serializedName: "privateKeyData", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -2175,167 +2238,228 @@ export const VirtualMachineSshCredentials: msRest.CompositeMapper = { } }; -export const VirtualMachineProperties: msRest.CompositeMapper = { - serializedName: "VirtualMachine_properties", +export const AmlUserFeature: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineProperties", + className: "AmlUserFeature", modelProperties: { - virtualMachineSize: { - serializedName: "virtualMachineSize", + id: { + serializedName: "id", type: { name: "String" } }, - sshPort: { - serializedName: "sshPort", - type: { - name: "Number" - } - }, - address: { - serializedName: "address", + displayName: { + serializedName: "displayName", type: { name: "String" } }, - administratorAccount: { - serializedName: "administratorAccount", + description: { + serializedName: "description", type: { - name: "Composite", - className: "VirtualMachineSshCredentials" + name: "String" } } } } }; -export const VirtualMachine: msRest.CompositeMapper = { - serializedName: "VirtualMachine", +export const SkuListResult: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "VirtualMachine", + className: "SkuListResult", modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + value: { + serializedName: "value", type: { - name: "Composite", - className: "VirtualMachineProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceSku" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" } } } } }; -export const HDInsightProperties: msRest.CompositeMapper = { - serializedName: "HDInsight_properties", +export const WorkspaceSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HDInsightProperties", + className: "WorkspaceSku", modelProperties: { - sshPort: { - serializedName: "sshPort", + locations: { + serializedName: "locations", + readOnly: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - address: { - serializedName: "address", + locationInfo: { + serializedName: "locationInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuLocationInfo" + } + } + } + }, + tier: { + serializedName: "tier", + readOnly: true, type: { name: "String" } }, - administratorAccount: { - serializedName: "administratorAccount", + resourceType: { + serializedName: "resourceType", + readOnly: true, type: { - name: "Composite", - className: "VirtualMachineSshCredentials" + name: "String" } - } - } - } -}; - -export const HDInsight: msRest.CompositeMapper = { - serializedName: "HDInsight", - type: { - name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "HDInsight", - modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + }, + name: { + serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: "HDInsightProperties" + name: "String" + } + }, + capabilities: { + serializedName: "capabilities", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SKUCapability" + } + } + } + }, + restrictions: { + serializedName: "restrictions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Restriction" + } + } } } } } }; -export const DataFactory: msRest.CompositeMapper = { - serializedName: "DataFactory", - type: { - name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "DataFactory", - modelProperties: { - ...Compute.type.modelProperties - } - } -}; - -export const DatabricksProperties: msRest.CompositeMapper = { - serializedName: "Databricks_properties", +export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabricksProperties", + className: "ResourceSkuLocationInfo", modelProperties: { - databricksAccessToken: { - serializedName: "databricksAccessToken", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } + }, + zones: { + serializedName: "zones", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + zoneDetails: { + serializedName: "zoneDetails", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuZoneDetails" + } + } + } } } } }; -export const Databricks: msRest.CompositeMapper = { - serializedName: "Databricks", +export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "Databricks", + className: "ResourceSkuZoneDetails", modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: "DatabricksProperties" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + capabilities: { + serializedName: "capabilities", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SKUCapability" + } + } } } } } }; -export const DataLakeAnalyticsProperties: msRest.CompositeMapper = { - serializedName: "DataLakeAnalytics_properties", +export const SKUCapability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataLakeAnalyticsProperties", + className: "SKUCapability", modelProperties: { - dataLakeStoreAccountName: { - serializedName: "dataLakeStoreAccountName", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", type: { name: "String" } @@ -2344,42 +2468,48 @@ export const DataLakeAnalyticsProperties: msRest.CompositeMapper = { } }; -export const DataLakeAnalytics: msRest.CompositeMapper = { - serializedName: "DataLakeAnalytics", +export const Restriction: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - uberParent: "Compute", - className: "DataLakeAnalytics", + className: "Restriction", modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Composite", - className: "DataLakeAnalyticsProperties" + name: "String" + } + }, + values: { + serializedName: "values", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + reasonCode: { + serializedName: "reasonCode", + type: { + name: "String" } } } } }; -export const ServicePrincipalCredentials: msRest.CompositeMapper = { - serializedName: "ServicePrincipalCredentials", +export const ResourceId: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePrincipalCredentials", + className: "ResourceId", modelProperties: { - clientId: { - required: true, - serializedName: "clientId", - type: { - name: "String" - } - }, - clientSecret: { + id: { + serializedName: "id", required: true, - serializedName: "clientSecret", type: { name: "String" } @@ -2388,44 +2518,105 @@ export const ServicePrincipalCredentials: msRest.CompositeMapper = { } }; -export const ClusterUpdateParameters: msRest.CompositeMapper = { - serializedName: "ClusterUpdateParameters", +export const AKSProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterUpdateParameters", + className: "AKSProperties", modelProperties: { - scaleSettings: { - serializedName: "properties.scaleSettings", + clusterFqdn: { + serializedName: "clusterFqdn", + type: { + name: "String" + } + }, + systemServices: { + serializedName: "systemServices", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SystemService" + } + } + } + }, + agentCount: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "agentCount", + type: { + name: "Number" + } + }, + agentVmSize: { + serializedName: "agentVmSize", + type: { + name: "String" + } + }, + clusterPurpose: { + defaultValue: "FastProd", + serializedName: "clusterPurpose", + type: { + name: "String" + } + }, + sslConfiguration: { + serializedName: "sslConfiguration", type: { name: "Composite", - className: "ScaleSettings" + className: "SslConfiguration" + } + }, + aksNetworkingConfiguration: { + serializedName: "aksNetworkingConfiguration", + type: { + name: "Composite", + className: "AksNetworkingConfiguration" + } + }, + loadBalancerType: { + defaultValue: "PublicIp", + serializedName: "loadBalancerType", + type: { + name: "String" + } + }, + loadBalancerSubnet: { + serializedName: "loadBalancerSubnet", + type: { + name: "String" } } } } }; -export const ComputeNodesInformation: msRest.CompositeMapper = { - serializedName: "ComputeNodesInformation", +export const SystemService: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, - uberParent: "ComputeNodesInformation", - className: "ComputeNodesInformation", + className: "SystemService", modelProperties: { - nextLink: { + systemServiceType: { + serializedName: "systemServiceType", readOnly: true, - serializedName: "nextLink", type: { name: "String" } }, - computeType: { - required: true, - serializedName: "computeType", + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, + type: { + name: "String" + } + }, + version: { + serializedName: "version", + readOnly: true, type: { name: "String" } @@ -2434,129 +2625,1071 @@ export const ComputeNodesInformation: msRest.CompositeMapper = { } }; -export const AmlComputeNodeInformation: msRest.CompositeMapper = { - serializedName: "AmlCompute", +export const SslConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeNodeInformation", + className: "SslConfiguration", modelProperties: { - nodeId: { - readOnly: true, - serializedName: "nodeId", + status: { + serializedName: "status", type: { name: "String" } }, - privateIpAddress: { - readOnly: true, - serializedName: "privateIpAddress", + cert: { + serializedName: "cert", type: { name: "String" } }, - publicIpAddress: { - readOnly: true, - serializedName: "publicIpAddress", + key: { + serializedName: "key", type: { name: "String" } }, - port: { - readOnly: true, - serializedName: "port", + cname: { + serializedName: "cname", type: { - name: "Number" + name: "String" } }, - nodeState: { - readOnly: true, - serializedName: "nodeState", + leafDomainLabel: { + serializedName: "leafDomainLabel", type: { name: "String" } }, - runId: { - readOnly: true, - serializedName: "runId", + overwriteExistingDomain: { + serializedName: "overwriteExistingDomain", type: { - name: "String" + name: "Boolean" } } } } }; -export const AmlComputeNodesInformation: msRest.CompositeMapper = { - serializedName: "AmlCompute", +export const AksNetworkingConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: ComputeNodesInformation.type.polymorphicDiscriminator, - uberParent: "ComputeNodesInformation", - className: "AmlComputeNodesInformation", + className: "AksNetworkingConfiguration", modelProperties: { - ...ComputeNodesInformation.type.modelProperties, - nodes: { - readOnly: true, - serializedName: "nodes", + subnetId: { + serializedName: "subnetId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AmlComputeNodeInformation" - } - } + name: "String" + } + }, + serviceCidr: { + constraints: { + Pattern: new RegExp( + "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" + ) + }, + serializedName: "serviceCidr", + type: { + name: "String" + } + }, + dnsServiceIP: { + constraints: { + Pattern: new RegExp( + "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" + ) + }, + serializedName: "dnsServiceIP", + type: { + name: "String" + } + }, + dockerBridgeCidr: { + constraints: { + Pattern: new RegExp( + "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$" + ) + }, + serializedName: "dockerBridgeCidr", + type: { + name: "String" } } } } }; -export const ComputeSecrets: msRest.CompositeMapper = { - serializedName: "ComputeSecrets", +export const KubernetesSchema: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, - uberParent: "ComputeSecrets", - className: "ComputeSecrets", + className: "KubernetesSchema", modelProperties: { - computeType: { - required: true, - serializedName: "computeType", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "KubernetesProperties" } } } } }; -export const AksComputeSecrets: msRest.CompositeMapper = { - serializedName: "AKS", +export const KubernetesProperties: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, - uberParent: "ComputeSecrets", - className: "AksComputeSecrets", + className: "KubernetesProperties", modelProperties: { - ...ComputeSecrets.type.modelProperties, - userKubeConfig: { - serializedName: "userKubeConfig", + relayConnectionString: { + serializedName: "relayConnectionString", + type: { + name: "String" + } + }, + serviceBusConnectionString: { + serializedName: "serviceBusConnectionString", + type: { + name: "String" + } + }, + extensionPrincipalId: { + serializedName: "extensionPrincipalId", + type: { + name: "String" + } + }, + extensionInstanceReleaseTrain: { + serializedName: "extensionInstanceReleaseTrain", + type: { + name: "String" + } + }, + vcName: { + serializedName: "vcName", + type: { + name: "String" + } + }, + namespace: { + defaultValue: "default", + serializedName: "namespace", + type: { + name: "String" + } + }, + defaultInstanceType: { + serializedName: "defaultInstanceType", + type: { + name: "String" + } + }, + instanceTypes: { + serializedName: "instanceTypes", + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "InstanceTypeSchema" } + } + } + } + } + } +}; + +export const InstanceTypeSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceTypeSchema", + modelProperties: { + nodeSelector: { + serializedName: "nodeSelector", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "InstanceTypeSchemaResources" + } + } + } + } +}; + +export const InstanceTypeSchemaResources: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceTypeSchemaResources", + modelProperties: { + requests: { + serializedName: "requests", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + limits: { + serializedName: "limits", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const AmlComputeProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlComputeProperties", + modelProperties: { + osType: { + defaultValue: "Linux", + serializedName: "osType", + type: { + name: "String" + } + }, + vmSize: { + serializedName: "vmSize", + type: { + name: "String" + } + }, + vmPriority: { + serializedName: "vmPriority", + type: { + name: "String" + } + }, + virtualMachineImage: { + serializedName: "virtualMachineImage", + type: { + name: "Composite", + className: "VirtualMachineImage" + } + }, + isolatedNetwork: { + serializedName: "isolatedNetwork", + type: { + name: "Boolean" + } + }, + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "ScaleSettings" + } + }, + userAccountCredentials: { + serializedName: "userAccountCredentials", + type: { + name: "Composite", + className: "UserAccountCredentials" + } + }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "ResourceId" + } + }, + remoteLoginPortPublicAccess: { + defaultValue: "NotSpecified", + serializedName: "remoteLoginPortPublicAccess", + type: { + name: "String" + } + }, + allocationState: { + serializedName: "allocationState", + readOnly: true, + type: { + name: "String" + } + }, + allocationStateTransitionTime: { + serializedName: "allocationStateTransitionTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + errors: { + serializedName: "errors", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + }, + currentNodeCount: { + serializedName: "currentNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + targetNodeCount: { + serializedName: "targetNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + nodeStateCounts: { + serializedName: "nodeStateCounts", + type: { + name: "Composite", + className: "NodeStateCounts" + } + }, + enableNodePublicIp: { + defaultValue: true, + serializedName: "enableNodePublicIp", + type: { + name: "Boolean" + } + } + } + } +}; + +export const VirtualMachineImage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineImage", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const UserAccountCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserAccountCredentials", + modelProperties: { + adminUserName: { + serializedName: "adminUserName", + required: true, + type: { + name: "String" + } + }, + adminUserSshPublicKey: { + serializedName: "adminUserSshPublicKey", + type: { + name: "String" + } + }, + adminUserPassword: { + serializedName: "adminUserPassword", + type: { + name: "String" + } + } + } + } +}; + +export const NodeStateCounts: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NodeStateCounts", + modelProperties: { + idleNodeCount: { + serializedName: "idleNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + runningNodeCount: { + serializedName: "runningNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + preparingNodeCount: { + serializedName: "preparingNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + unusableNodeCount: { + serializedName: "unusableNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + leavingNodeCount: { + serializedName: "leavingNodeCount", + readOnly: true, + type: { + name: "Number" + } + }, + preemptedNodeCount: { + serializedName: "preemptedNodeCount", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const ComputeInstanceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceProperties", + modelProperties: { + vmSize: { + serializedName: "vmSize", + type: { + name: "String" + } + }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "ResourceId" + } + }, + applicationSharingPolicy: { + defaultValue: "Shared", + serializedName: "applicationSharingPolicy", + type: { + name: "String" + } + }, + sshSettings: { + serializedName: "sshSettings", + type: { + name: "Composite", + className: "ComputeInstanceSshSettings" + } + }, + connectivityEndpoints: { + serializedName: "connectivityEndpoints", + type: { + name: "Composite", + className: "ComputeInstanceConnectivityEndpoints" + } + }, + applications: { + serializedName: "applications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceApplication" + } + } + } + }, + createdBy: { + serializedName: "createdBy", + type: { + name: "Composite", + className: "ComputeInstanceCreatedBy" + } + }, + errors: { + serializedName: "errors", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + }, + state: { + serializedName: "state", + readOnly: true, + type: { + name: "String" + } + }, + computeInstanceAuthorizationType: { + defaultValue: "personal", + serializedName: "computeInstanceAuthorizationType", + type: { + name: "String" + } + }, + personalComputeInstanceSettings: { + serializedName: "personalComputeInstanceSettings", + type: { + name: "Composite", + className: "PersonalComputeInstanceSettings" + } + }, + setupScripts: { + serializedName: "setupScripts", + type: { + name: "Composite", + className: "SetupScripts" + } + }, + lastOperation: { + serializedName: "lastOperation", + type: { + name: "Composite", + className: "ComputeInstanceLastOperation" + } + } + } + } +}; + +export const ComputeInstanceSshSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceSshSettings", + modelProperties: { + sshPublicAccess: { + defaultValue: "Disabled", + serializedName: "sshPublicAccess", + type: { + name: "String" + } + }, + adminUserName: { + serializedName: "adminUserName", + readOnly: true, + type: { + name: "String" + } + }, + sshPort: { + serializedName: "sshPort", + readOnly: true, + type: { + name: "Number" + } + }, + adminPublicKey: { + serializedName: "adminPublicKey", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceConnectivityEndpoints", + modelProperties: { + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, + type: { + name: "String" + } + }, + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceApplication: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceApplication", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + endpointUri: { + serializedName: "endpointUri", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceCreatedBy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceCreatedBy", + modelProperties: { + userName: { + serializedName: "userName", + readOnly: true, + type: { + name: "String" + } + }, + userOrgId: { + serializedName: "userOrgId", + readOnly: true, + type: { + name: "String" + } + }, + userId: { + serializedName: "userId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PersonalComputeInstanceSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PersonalComputeInstanceSettings", + modelProperties: { + assignedUser: { + serializedName: "assignedUser", + type: { + name: "Composite", + className: "AssignedUser" + } + } + } + } +}; + +export const AssignedUser: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssignedUser", + modelProperties: { + objectId: { + serializedName: "objectId", + required: true, + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const SetupScripts: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SetupScripts", + modelProperties: { + scripts: { + serializedName: "scripts", + type: { + name: "Composite", + className: "ScriptsToExecute" + } + } + } + } +}; + +export const ScriptsToExecute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScriptsToExecute", + modelProperties: { + startupScript: { + serializedName: "startupScript", + type: { + name: "Composite", + className: "ScriptReference" + } + }, + creationScript: { + serializedName: "creationScript", + type: { + name: "Composite", + className: "ScriptReference" + } + } + } + } +}; + +export const ScriptReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScriptReference", + modelProperties: { + scriptSource: { + serializedName: "scriptSource", + type: { + name: "String" + } + }, + scriptData: { + serializedName: "scriptData", + type: { + name: "String" + } + }, + scriptArguments: { + serializedName: "scriptArguments", + type: { + name: "String" + } + }, + timeout: { + serializedName: "timeout", + type: { + name: "String" + } + } + } + } +}; + +export const ComputeInstanceLastOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceLastOperation", + modelProperties: { + operationName: { + serializedName: "operationName", + type: { + name: "String" + } + }, + operationTime: { + serializedName: "operationTime", + type: { + name: "DateTime" + } + }, + operationStatus: { + serializedName: "operationStatus", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualMachineProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineProperties", + modelProperties: { + virtualMachineSize: { + serializedName: "virtualMachineSize", + type: { + name: "String" + } + }, + sshPort: { + serializedName: "sshPort", + type: { + name: "Number" + } + }, + address: { + serializedName: "address", + type: { + name: "String" + } + }, + administratorAccount: { + serializedName: "administratorAccount", + type: { + name: "Composite", + className: "VirtualMachineSshCredentials" + } + }, + isNotebookInstanceCompute: { + serializedName: "isNotebookInstanceCompute", + type: { + name: "Boolean" + } + } + } + } +}; + +export const VirtualMachineSshCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineSshCredentials", + modelProperties: { + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + }, + publicKeyData: { + serializedName: "publicKeyData", + type: { + name: "String" + } + }, + privateKeyData: { + serializedName: "privateKeyData", + type: { + name: "String" + } + } + } + } +}; + +export const HDInsightProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HDInsightProperties", + modelProperties: { + sshPort: { + serializedName: "sshPort", + type: { + name: "Number" + } + }, + address: { + serializedName: "address", + type: { + name: "String" + } + }, + administratorAccount: { + serializedName: "administratorAccount", + type: { + name: "Composite", + className: "VirtualMachineSshCredentials" + } + } + } + } +}; + +export const DatabricksProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabricksProperties", + modelProperties: { + databricksAccessToken: { + serializedName: "databricksAccessToken", + type: { + name: "String" + } + }, + workspaceUrl: { + serializedName: "workspaceUrl", + type: { + name: "String" + } + } + } + } +}; + +export const DataLakeAnalyticsProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataLakeAnalyticsProperties", + modelProperties: { + dataLakeStoreAccountName: { + serializedName: "dataLakeStoreAccountName", + type: { + name: "String" + } + } + } + } +}; + +export const SynapseSparkProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SynapseSparkProperties", + modelProperties: { + autoScaleProperties: { + serializedName: "autoScaleProperties", + type: { + name: "Composite", + className: "AutoScaleProperties" + } + }, + autoPauseProperties: { + serializedName: "autoPauseProperties", + type: { + name: "Composite", + className: "AutoPauseProperties" + } + }, + sparkVersion: { + serializedName: "sparkVersion", + type: { + name: "String" + } + }, + nodeCount: { + serializedName: "nodeCount", + type: { + name: "Number" + } + }, + nodeSize: { + serializedName: "nodeSize", + type: { + name: "String" + } + }, + nodeSizeFamily: { + serializedName: "nodeSizeFamily", + type: { + name: "String" + } + }, + subscriptionId: { + serializedName: "subscriptionId", + type: { + name: "String" + } + }, + resourceGroup: { + serializedName: "resourceGroup", + type: { + name: "String" + } + }, + workspaceName: { + serializedName: "workspaceName", + type: { + name: "String" + } + }, + poolName: { + serializedName: "poolName", + type: { + name: "String" + } + } + } + } +}; + +export const AutoScaleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutoScaleProperties", + modelProperties: { + minNodeCount: { + serializedName: "minNodeCount", + type: { + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + maxNodeCount: { + serializedName: "maxNodeCount", + type: { + name: "Number" + } + } + } + } +}; + +export const AutoPauseProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutoPauseProperties", + modelProperties: { + delayInMinutes: { + serializedName: "delayInMinutes", type: { - name: "String" + name: "Number" } }, - adminKubeConfig: { - serializedName: "adminKubeConfig", + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ServicePrincipalCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServicePrincipalCredentials", + modelProperties: { + clientId: { + serializedName: "clientId", + required: true, type: { name: "String" } }, - imagePullSecretName: { - serializedName: "imagePullSecretName", + clientSecret: { + serializedName: "clientSecret", + required: true, type: { name: "String" } @@ -2565,35 +3698,38 @@ export const AksComputeSecrets: msRest.CompositeMapper = { } }; -export const VirtualMachineSecrets: msRest.CompositeMapper = { - serializedName: "VirtualMachine", +export const AksComputeSecretsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, - uberParent: "ComputeSecrets", - className: "VirtualMachineSecrets", + className: "AksComputeSecretsProperties", modelProperties: { - ...ComputeSecrets.type.modelProperties, - administratorAccount: { - serializedName: "administratorAccount", + userKubeConfig: { + serializedName: "userKubeConfig", type: { - name: "Composite", - className: "VirtualMachineSshCredentials" + name: "String" + } + }, + adminKubeConfig: { + serializedName: "adminKubeConfig", + type: { + name: "String" + } + }, + imagePullSecretName: { + serializedName: "imagePullSecretName", + type: { + name: "String" } } } } }; -export const DatabricksComputeSecrets: msRest.CompositeMapper = { - serializedName: "Databricks", +export const DatabricksComputeSecretsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, - uberParent: "ComputeSecrets", - className: "DatabricksComputeSecrets", + className: "DatabricksComputeSecretsProperties", modelProperties: { - ...ComputeSecrets.type.modelProperties, databricksAccessToken: { serializedName: "databricksAccessToken", type: { @@ -2604,268 +3740,425 @@ export const DatabricksComputeSecrets: msRest.CompositeMapper = { } }; -export const SKUCapability: msRest.CompositeMapper = { - serializedName: "SKUCapability", +export const ContainerResourceRequirements: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SKUCapability", + className: "ContainerResourceRequirements", modelProperties: { - name: { - serializedName: "name", + cpu: { + serializedName: "cpu", type: { - name: "String" + name: "Number" } }, - value: { - serializedName: "value", + cpuLimit: { + serializedName: "cpuLimit", type: { - name: "String" + name: "Number" + } + }, + memoryInGB: { + serializedName: "memoryInGB", + type: { + name: "Number" + } + }, + memoryInGBLimit: { + serializedName: "memoryInGBLimit", + type: { + name: "Number" + } + }, + gpu: { + serializedName: "gpu", + type: { + name: "Number" + } + }, + fpga: { + serializedName: "fpga", + type: { + name: "Number" } } } } }; -export const ResourceSkuZoneDetails: msRest.CompositeMapper = { - serializedName: "ResourceSkuZoneDetails", +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuZoneDetails", + className: "PrivateEndpointConnection", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "Identity" } }, - capabilities: { + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, - serializedName: "capabilities", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SKUCapability" - } - } + name: "String" } } } } }; -export const ResourceSkuLocationInfo: msRest.CompositeMapper = { - serializedName: "ResourceSkuLocationInfo", +export const Workspace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceSkuLocationInfo", + className: "Workspace", modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, location: { - readOnly: true, serializedName: "location", type: { name: "String" } }, - zones: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + workspaceId: { + serializedName: "properties.workspaceId", readOnly: true, - serializedName: "zones", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - zoneDetails: { + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + friendlyName: { + serializedName: "properties.friendlyName", + type: { + name: "String" + } + }, + keyVault: { + serializedName: "properties.keyVault", + type: { + name: "String" + } + }, + applicationInsights: { + serializedName: "properties.applicationInsights", + type: { + name: "String" + } + }, + containerRegistry: { + serializedName: "properties.containerRegistry", + nullable: true, + type: { + name: "String" + } + }, + storageAccount: { + serializedName: "properties.storageAccount", + type: { + name: "String" + } + }, + discoveryUrl: { + serializedName: "properties.discoveryUrl", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, - serializedName: "zoneDetails", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSkuZoneDetails" - } - } + name: "String" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "EncryptionProperty" + } + }, + hbiWorkspace: { + defaultValue: false, + serializedName: "properties.hbiWorkspace", + type: { + name: "Boolean" } - } - } - } -}; - -export const Restriction: msRest.CompositeMapper = { - serializedName: "Restriction", - type: { - name: "Composite", - className: "Restriction", - modelProperties: { - type: { + }, + serviceProvisionedResourceGroup: { + serializedName: "properties.serviceProvisionedResourceGroup", readOnly: true, - serializedName: "type", type: { name: "String" } }, - values: { + privateLinkCount: { + serializedName: "properties.privateLinkCount", readOnly: true, - serializedName: "values", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - reasonCode: { - serializedName: "reasonCode", + imageBuildCompute: { + serializedName: "properties.imageBuildCompute", type: { name: "String" } - } - } - } -}; - -export const SkuSettings: msRest.CompositeMapper = { - serializedName: "SkuSettings", - type: { - name: "Composite", - className: "SkuSettings", - modelProperties: { - locations: { + }, + allowPublicAccessWhenBehindVnet: { + defaultValue: false, + serializedName: "properties.allowPublicAccessWhenBehindVnet", + type: { + name: "Boolean" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", readOnly: true, - serializedName: "locations", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "PrivateEndpointConnection" } } } }, - locationInfo: { - readOnly: true, - serializedName: "locationInfo", + sharedPrivateLinkResources: { + serializedName: "properties.sharedPrivateLinkResources", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceSkuLocationInfo" + className: "SharedPrivateLinkResource" } } } }, - tier: { - readOnly: true, - serializedName: "tier", + notebookInfo: { + serializedName: "properties.notebookInfo", type: { - name: "String" + name: "Composite", + className: "NotebookResourceInfo" } }, - resourceType: { - readOnly: true, - serializedName: "resourceType", + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings" + } + }, + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", type: { name: "String" } }, - name: { + tenantId: { + serializedName: "properties.tenantId", readOnly: true, - serializedName: "name", type: { name: "String" } }, - capabilities: { + storageHnsEnabled: { + serializedName: "properties.storageHnsEnabled", readOnly: true, - serializedName: "capabilities", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SKUCapability" - } - } + name: "Boolean" } }, - restrictions: { - serializedName: "restrictions", + mlFlowTrackingUri: { + serializedName: "properties.mlFlowTrackingUri", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Restriction" - } - } + name: "String" } } } } }; -export const WorkspaceSku: msRest.CompositeMapper = { - serializedName: "WorkspaceSku", +export const ComputeResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceSku", + className: "ComputeResource", modelProperties: { - resourceType: { - readOnly: true, - serializedName: "resourceType", + ...Resource.type.modelProperties, + ...Components1D3SwueSchemasComputeresourceAllof1.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, + location: { + serializedName: "location", type: { name: "String" } }, - skus: { - readOnly: true, - serializedName: "skus", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SkuSettings" - } - } + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" } } } } }; -export const PrivateLinkResource: msRest.CompositeMapper = { - serializedName: "PrivateLinkResource", +export const PrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", className: "PrivateLinkResource", modelProperties: { ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, groupId: { - readOnly: true, serializedName: "properties.groupId", + readOnly: true, type: { name: "String" } }, requiredMembers: { - readOnly: true, serializedName: "properties.requiredMembers", + readOnly: true, type: { name: "Sequence", element: { @@ -2890,343 +4183,273 @@ export const PrivateLinkResource: msRest.CompositeMapper = { } }; -export const PrivateLinkResourceListResult: msRest.CompositeMapper = { - serializedName: "PrivateLinkResourceListResult", +export const Aks: coreClient.CompositeMapper = { + serializedName: "AKS", type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "Aks", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, modelProperties: { - value: { - serializedName: "value", + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkResource" - } - } + name: "Composite", + className: "AKSProperties" } } } } }; -export const WorkspaceConnection: msRest.CompositeMapper = { - serializedName: "WorkspaceConnection", +export const Kubernetes: coreClient.CompositeMapper = { + serializedName: "Kubernetes", type: { name: "Composite", - className: "WorkspaceConnection", + className: "Kubernetes", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - category: { - serializedName: "properties.category", - type: { - name: "String" - } - }, - target: { - serializedName: "properties.target", - type: { - name: "String" - } - }, - authType: { - serializedName: "properties.authType", + ...Compute.type.modelProperties, + ...KubernetesSchema.type.modelProperties + } + } +}; + +export const AmlCompute: coreClient.CompositeMapper = { + serializedName: "AmlCompute", + type: { + name: "Composite", + className: "AmlCompute", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "AmlComputeProperties" } - }, - value: { - serializedName: "properties.value", + } + } + } +}; + +export const ComputeInstance: coreClient.CompositeMapper = { + serializedName: "ComputeInstance", + type: { + name: "Composite", + className: "ComputeInstance", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "ComputeInstanceProperties" } } } } }; -export const WorkspaceConnectionDto: msRest.CompositeMapper = { - serializedName: "WorkspaceConnectionDto", +export const VirtualMachine: coreClient.CompositeMapper = { + serializedName: "VirtualMachine", type: { name: "Composite", - className: "WorkspaceConnectionDto", + className: "VirtualMachine", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - category: { - serializedName: "properties.category", - type: { - name: "String" - } - }, - target: { - serializedName: "properties.target", - type: { - name: "String" - } - }, - authType: { - serializedName: "properties.authType", - type: { - name: "String" - } - }, - value: { - serializedName: "properties.value", + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "VirtualMachineProperties" } } } } }; -export const MachineLearningComputeCreateOrUpdateHeaders: msRest.CompositeMapper = { - serializedName: "machinelearningcompute-createorupdate-headers", +export const HDInsight: coreClient.CompositeMapper = { + serializedName: "HDInsight", type: { name: "Composite", - className: "MachineLearningComputeCreateOrUpdateHeaders", + className: "HDInsight", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "HDInsightProperties" } } } } }; -export const MachineLearningComputeDeleteHeaders: msRest.CompositeMapper = { - serializedName: "machinelearningcompute-delete-headers", +export const DataFactory: coreClient.CompositeMapper = { + serializedName: "DataFactory", type: { name: "Composite", - className: "MachineLearningComputeDeleteHeaders", + className: "DataFactory", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } - } + ...Compute.type.modelProperties } } }; -export const OperationListResult: msRest.CompositeMapper = { - serializedName: "OperationListResult", +export const Databricks: coreClient.CompositeMapper = { + serializedName: "Databricks", type: { name: "Composite", - className: "OperationListResult", + className: "Databricks", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, modelProperties: { - value: { - serializedName: "", + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } + name: "Composite", + className: "DatabricksProperties" } } } } }; -export const WorkspaceListResult: msRest.CompositeMapper = { - serializedName: "WorkspaceListResult", +export const DataLakeAnalytics: coreClient.CompositeMapper = { + serializedName: "DataLakeAnalytics", type: { name: "Composite", - className: "WorkspaceListResult", + className: "DataLakeAnalytics", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Workspace" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "DataLakeAnalyticsProperties" } } } } }; -export const ListAmlUserFeatureResult: msRest.CompositeMapper = { - serializedName: "ListAmlUserFeatureResult", +export const SynapseSpark: coreClient.CompositeMapper = { + serializedName: "SynapseSpark", type: { name: "Composite", - className: "ListAmlUserFeatureResult", + className: "SynapseSpark", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AmlUserFeature" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "SynapseSparkProperties" } } } } }; -export const ListUsagesResult: msRest.CompositeMapper = { - serializedName: "ListUsagesResult", +export const AksComputeSecrets: coreClient.CompositeMapper = { + serializedName: "AKS", type: { name: "Composite", - className: "ListUsagesResult", + className: "AksComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Usage" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } + ...ComputeSecrets.type.modelProperties, + ...AksComputeSecretsProperties.type.modelProperties } } }; -export const ListWorkspaceQuotas: msRest.CompositeMapper = { - serializedName: "ListWorkspaceQuotas", +export const VirtualMachineSecrets: coreClient.CompositeMapper = { + serializedName: "VirtualMachine", type: { name: "Composite", - className: "ListWorkspaceQuotas", + className: "VirtualMachineSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceQuota" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + ...ComputeSecrets.type.modelProperties, + administratorAccount: { + serializedName: "administratorAccount", type: { - name: "String" + name: "Composite", + className: "VirtualMachineSshCredentials" } } } } }; -export const PaginatedWorkspaceConnectionsList: msRest.CompositeMapper = { - serializedName: "PaginatedWorkspaceConnectionsList", +export const DatabricksComputeSecrets: coreClient.CompositeMapper = { + serializedName: "Databricks", type: { name: "Composite", - className: "PaginatedWorkspaceConnectionsList", + className: "DatabricksComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkspaceConnection" - } - } - } - } + ...ComputeSecrets.type.modelProperties, + ...DatabricksComputeSecretsProperties.type.modelProperties } } }; -export const PaginatedComputeResourcesList: msRest.CompositeMapper = { - serializedName: "PaginatedComputeResourcesList", +export const WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PaginatedComputeResourcesList", + className: "WorkspacesDiagnoseHeaders", modelProperties: { - value: { - serializedName: "", + location: { + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeResource" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } + } + } +}; + +export const ComputeCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -3235,26 +4458,19 @@ export const PaginatedComputeResourcesList: msRest.CompositeMapper = { } }; -export const SkuListResult: msRest.CompositeMapper = { - serializedName: "SkuListResult", +export const ComputeDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuListResult", + className: "ComputeDeleteHeaders", modelProperties: { - value: { - serializedName: "", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkspaceSku" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + location: { + serializedName: "location", type: { name: "String" } @@ -3263,21 +4479,20 @@ export const SkuListResult: msRest.CompositeMapper = { } }; -export const discriminators = { - 'Compute' : Compute, - 'Compute.AKS' : AKS, - 'Compute.AmlCompute' : AmlCompute, - 'Compute.ComputeInstance' : ComputeInstance, - 'Compute.VirtualMachine' : VirtualMachine, - 'Compute.HDInsight' : HDInsight, - 'Compute.DataFactory' : DataFactory, - 'Compute.Databricks' : Databricks, - 'Compute.DataLakeAnalytics' : DataLakeAnalytics, - 'ComputeNodesInformation' : ComputeNodesInformation, - 'ComputeNodesInformation.AmlCompute' : AmlComputeNodesInformation, - 'ComputeSecrets' : ComputeSecrets, - 'ComputeSecrets.AKS' : AksComputeSecrets, - 'ComputeSecrets.VirtualMachine' : VirtualMachineSecrets, - 'ComputeSecrets.Databricks' : DatabricksComputeSecrets - +export let discriminators = { + Compute: Compute, + ComputeSecrets: ComputeSecrets, + "Compute.AKS": Aks, + "Compute.Kubernetes": Kubernetes, + "Compute.AmlCompute": AmlCompute, + "Compute.ComputeInstance": ComputeInstance, + "Compute.VirtualMachine": VirtualMachine, + "Compute.HDInsight": HDInsight, + "Compute.DataFactory": DataFactory, + "Compute.Databricks": Databricks, + "Compute.DataLakeAnalytics": DataLakeAnalytics, + "Compute.SynapseSpark": SynapseSpark, + "ComputeSecrets.AKS": AksComputeSecrets, + "ComputeSecrets.VirtualMachine": VirtualMachineSecrets, + "ComputeSecrets.Databricks": DatabricksComputeSecrets }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts deleted file mode 100644 index 3088316919ec..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/notebooksMappers.ts +++ /dev/null @@ -1,16 +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 { - discriminators, - ErrorDetail, - ErrorResponse, - MachineLearningServiceError, - NotebookPreparationError, - NotebookResourceInfo -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts index 4f5b252b51c1..cabe5ad3558b 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/models/parameters.ts @@ -3,159 +3,219 @@ * 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 { + Workspace as WorkspaceMapper, + WorkspaceUpdateParameters as WorkspaceUpdateParametersMapper, + DiagnoseWorkspaceParameters as DiagnoseWorkspaceParametersMapper, + QuotaUpdateParameters as QuotaUpdateParametersMapper, + ComputeResource as ComputeResourceMapper, + ClusterUpdateParameters as ClusterUpdateParametersMapper, + PrivateEndpointConnection as PrivateEndpointConnectionMapper, + WorkspaceConnection as WorkspaceConnectionMapper +} 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 apiVersion: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", + +export const $host: OperationURLParameter = { + parameterPath: "$host", mapper: { + serializedName: "$host", required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2021-07-01", + isConstant: true, serializedName: "api-version", type: { name: "String" } } }; -export const category: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "category" - ], + +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", mapper: { - serializedName: "category", + constraints: { + MinLength: 1 + }, + serializedName: "subscriptionId", + required: true, type: { name: "String" } } }; -export const computeName: msRest.OperationURLParameter = { - parameterPath: "computeName", + +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { + constraints: { + MaxLength: 90, + MinLength: 1 + }, + serializedName: "resourceGroupName", required: true, - serializedName: "computeName", type: { name: "String" } } }; -export const computeType: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "computeType" - ], + +export const workspaceName: OperationURLParameter = { + parameterPath: "workspaceName", mapper: { - serializedName: "compute-type", + serializedName: "workspaceName", + required: true, type: { name: "String" } } }; -export const connectionName: msRest.OperationURLParameter = { - parameterPath: "connectionName", + +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], mapper: { - required: true, - serializedName: "connectionName", + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", type: { name: "String" } } }; -export const location: msRest.OperationURLParameter = { - parameterPath: "location", + +export const parameters: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspaceMapper +}; + +export const parameters1: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspaceUpdateParametersMapper +}; + +export const skip: OperationQueryParameter = { + parameterPath: ["options", "skip"], mapper: { - required: true, - serializedName: "location", - constraints: { - Pattern: /^[-\w\._]+$/ - }, + serializedName: "$skip", type: { name: "String" } } }; -export const nextPageLink: msRest.OperationURLParameter = { - parameterPath: "nextPageLink", + +export const parameters2: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: DiagnoseWorkspaceParametersMapper +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { - required: true, serializedName: "nextLink", + required: true, type: { name: "String" } }, skipEncoding: true }; -export const privateEndpointConnectionName: msRest.OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", + +export const location: OperationURLParameter = { + parameterPath: "location", mapper: { + constraints: { + Pattern: new RegExp("^[-\\w\\._]+$") + }, + serializedName: "location", required: true, - serializedName: "privateEndpointConnectionName", type: { name: "String" } } }; -export const recommended: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "recommended" - ], - mapper: { - serializedName: "recommended", - type: { - name: "Boolean" - } - } + +export const parameters3: OperationParameter = { + parameterPath: "parameters", + mapper: QuotaUpdateParametersMapper }; -export const resourceGroupName: msRest.OperationURLParameter = { - parameterPath: "resourceGroupName", + +export const computeName: OperationURLParameter = { + parameterPath: "computeName", mapper: { + serializedName: "computeName", required: true, - serializedName: "resourceGroupName", type: { name: "String" } } }; -export const skiptoken: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "skiptoken" - ], + +export const parameters4: OperationParameter = { + parameterPath: "parameters", + mapper: ComputeResourceMapper +}; + +export const parameters5: OperationParameter = { + parameterPath: "parameters", + mapper: ClusterUpdateParametersMapper +}; + +export const underlyingResourceAction: OperationQueryParameter = { + parameterPath: "underlyingResourceAction", mapper: { - serializedName: "$skiptoken", + serializedName: "underlyingResourceAction", + required: true, type: { name: "String" } } }; -export const subscriptionId: msRest.OperationURLParameter = { - parameterPath: "subscriptionId", + +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", mapper: { + serializedName: "privateEndpointConnectionName", required: true, - serializedName: "subscriptionId", type: { name: "String" } } }; -export const target: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "target" - ], + +export const properties: OperationParameter = { + parameterPath: "properties", + mapper: PrivateEndpointConnectionMapper +}; + +export const target: OperationQueryParameter = { + parameterPath: ["options", "target"], mapper: { serializedName: "target", type: { @@ -163,21 +223,27 @@ export const target: msRest.OperationQueryParameter = { } } }; -export const underlyingResourceAction: msRest.OperationQueryParameter = { - parameterPath: "underlyingResourceAction", + +export const category: OperationQueryParameter = { + parameterPath: ["options", "category"], mapper: { - required: true, - serializedName: "underlyingResourceAction", + serializedName: "category", type: { name: "String" } } }; -export const workspaceName: msRest.OperationURLParameter = { - parameterPath: "workspaceName", + +export const parameters6: OperationParameter = { + parameterPath: "parameters", + mapper: WorkspaceConnectionMapper +}; + +export const connectionName: OperationURLParameter = { + parameterPath: "connectionName", mapper: { + serializedName: "connectionName", required: true, - serializedName: "workspaceName", type: { name: "String" } diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts deleted file mode 100644 index e21b80f26ac8..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateEndpointConnectionsMappers.ts +++ /dev/null @@ -1,60 +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 { - discriminators, - AKS, - AksNetworkingConfiguration, - AKSProperties, - AmlCompute, - AmlComputeProperties, - BaseResource, - Compute, - ComputeInstance, - ComputeInstanceApplication, - ComputeInstanceConnectivityEndpoints, - ComputeInstanceCreatedBy, - ComputeInstanceLastOperation, - ComputeInstanceProperties, - ComputeInstanceSshSettings, - ComputeResource, - Databricks, - DatabricksProperties, - DataFactory, - DataLakeAnalytics, - DataLakeAnalyticsProperties, - EncryptionProperty, - ErrorDetail, - ErrorResponse, - HDInsight, - HDInsightProperties, - Identity, - IdentityUserAssignedIdentitiesValue, - KeyVaultProperties, - MachineLearningServiceError, - NodeStateCounts, - NotebookPreparationError, - NotebookResourceInfo, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateLinkResource, - PrivateLinkServiceConnectionState, - Resource, - ResourceId, - ScaleSettings, - SharedPrivateLinkResource, - Sku, - SslConfiguration, - SystemService, - UserAccountCredentials, - VirtualMachine, - VirtualMachineProperties, - VirtualMachineSshCredentials, - Workspace, - WorkspaceConnection -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts deleted file mode 100644 index 07a5f2631978..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/privateLinkResourcesMappers.ts +++ /dev/null @@ -1,62 +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 { - discriminators, - AKS, - AksNetworkingConfiguration, - AKSProperties, - AmlCompute, - AmlComputeProperties, - BaseResource, - CloudError, - Compute, - ComputeInstance, - ComputeInstanceApplication, - ComputeInstanceConnectivityEndpoints, - ComputeInstanceCreatedBy, - ComputeInstanceLastOperation, - ComputeInstanceProperties, - ComputeInstanceSshSettings, - ComputeResource, - Databricks, - DatabricksProperties, - DataFactory, - DataLakeAnalytics, - DataLakeAnalyticsProperties, - EncryptionProperty, - ErrorDetail, - ErrorResponse, - HDInsight, - HDInsightProperties, - Identity, - IdentityUserAssignedIdentitiesValue, - KeyVaultProperties, - MachineLearningServiceError, - NodeStateCounts, - NotebookPreparationError, - NotebookResourceInfo, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateLinkResource, - PrivateLinkResourceListResult, - PrivateLinkServiceConnectionState, - Resource, - ResourceId, - ScaleSettings, - SharedPrivateLinkResource, - Sku, - SslConfiguration, - SystemService, - UserAccountCredentials, - VirtualMachine, - VirtualMachineProperties, - VirtualMachineSshCredentials, - Workspace, - WorkspaceConnection -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts deleted file mode 100644 index aa49de236b1e..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/quotasMappers.ts +++ /dev/null @@ -1,22 +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 { - discriminators, - CloudError, - ErrorDetail, - ErrorResponse, - ListWorkspaceQuotas, - MachineLearningServiceError, - QuotaBaseProperties, - QuotaUpdateParameters, - ResourceName, - ResourceQuota, - UpdateWorkspaceQuotas, - UpdateWorkspaceQuotasResult -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/usagesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/usagesMappers.ts deleted file mode 100644 index 31551b41586f..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/usagesMappers.ts +++ /dev/null @@ -1,15 +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 { - discriminators, - CloudError, - ListUsagesResult, - Usage, - UsageName -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/virtualMachineSizesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/virtualMachineSizesMappers.ts deleted file mode 100644 index 3c2fa116d318..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/virtualMachineSizesMappers.ts +++ /dev/null @@ -1,16 +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 { - discriminators, - CloudError, - EstimatedVMPrice, - EstimatedVMPrices, - VirtualMachineSize, - VirtualMachineSizeListResult -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts deleted file mode 100644 index 448b8d85198f..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceConnectionsMappers.ts +++ /dev/null @@ -1,62 +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 { - discriminators, - AKS, - AksNetworkingConfiguration, - AKSProperties, - AmlCompute, - AmlComputeProperties, - BaseResource, - Compute, - ComputeInstance, - ComputeInstanceApplication, - ComputeInstanceConnectivityEndpoints, - ComputeInstanceCreatedBy, - ComputeInstanceLastOperation, - ComputeInstanceProperties, - ComputeInstanceSshSettings, - ComputeResource, - Databricks, - DatabricksProperties, - DataFactory, - DataLakeAnalytics, - DataLakeAnalyticsProperties, - EncryptionProperty, - ErrorDetail, - ErrorResponse, - HDInsight, - HDInsightProperties, - Identity, - IdentityUserAssignedIdentitiesValue, - KeyVaultProperties, - MachineLearningServiceError, - NodeStateCounts, - NotebookPreparationError, - NotebookResourceInfo, - PaginatedWorkspaceConnectionsList, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateLinkResource, - PrivateLinkServiceConnectionState, - Resource, - ResourceId, - ScaleSettings, - SharedPrivateLinkResource, - Sku, - SslConfiguration, - SystemService, - UserAccountCredentials, - VirtualMachine, - VirtualMachineProperties, - VirtualMachineSshCredentials, - Workspace, - WorkspaceConnection, - WorkspaceConnectionDto -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts deleted file mode 100644 index 5115670bfab0..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspaceFeaturesMappers.ts +++ /dev/null @@ -1,16 +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 { - discriminators, - AmlUserFeature, - ErrorDetail, - ErrorResponse, - ListAmlUserFeatureResult, - MachineLearningServiceError -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts deleted file mode 100644 index d8e1137cd946..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/models/workspacesMappers.ts +++ /dev/null @@ -1,66 +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 { - discriminators, - AKS, - AksNetworkingConfiguration, - AKSProperties, - AmlCompute, - AmlComputeProperties, - BaseResource, - Compute, - ComputeInstance, - ComputeInstanceApplication, - ComputeInstanceConnectivityEndpoints, - ComputeInstanceCreatedBy, - ComputeInstanceLastOperation, - ComputeInstanceProperties, - ComputeInstanceSshSettings, - ComputeResource, - Databricks, - DatabricksProperties, - DataFactory, - DataLakeAnalytics, - DataLakeAnalyticsProperties, - EncryptionProperty, - ErrorDetail, - ErrorResponse, - HDInsight, - HDInsightProperties, - Identity, - IdentityUserAssignedIdentitiesValue, - KeyVaultProperties, - ListWorkspaceKeysResult, - MachineLearningServiceError, - NodeStateCounts, - NotebookListCredentialsResult, - NotebookPreparationError, - NotebookResourceInfo, - Password, - PrivateEndpoint, - PrivateEndpointConnection, - PrivateLinkResource, - PrivateLinkServiceConnectionState, - RegistryListCredentialsResult, - Resource, - ResourceId, - ScaleSettings, - SharedPrivateLinkResource, - Sku, - SslConfiguration, - SystemService, - UserAccountCredentials, - VirtualMachine, - VirtualMachineProperties, - VirtualMachineSshCredentials, - Workspace, - WorkspaceConnection, - WorkspaceListResult, - WorkspaceUpdateParameters -} from "../models/mappers"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/computeOperations.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/computeOperations.ts new file mode 100644 index 000000000000..763af86a3222 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/computeOperations.ts @@ -0,0 +1,1159 @@ +/* + * 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 { ComputeOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + ComputeResource, + ComputeListNextOptionalParams, + ComputeListOptionalParams, + AmlComputeNodeInformation, + ComputeListNodesNextOptionalParams, + ComputeListNodesOptionalParams, + ComputeListResponse, + ComputeGetOptionalParams, + ComputeGetResponse, + ComputeCreateOrUpdateOptionalParams, + ComputeCreateOrUpdateResponse, + ClusterUpdateParameters, + ComputeUpdateOptionalParams, + ComputeUpdateResponse, + UnderlyingResourceAction, + ComputeDeleteOptionalParams, + ComputeListNodesResponse, + ComputeListKeysOptionalParams, + ComputeListKeysResponse, + ComputeStartOptionalParams, + ComputeStopOptionalParams, + ComputeRestartOptionalParams, + ComputeListNextResponse, + ComputeListNodesNextResponse +} from "../models"; + +/// +/** Class containing ComputeOperations operations. */ +export class ComputeOperationsImpl implements ComputeOperations { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class ComputeOperations class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * Gets computes in specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: ComputeListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: ComputeListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: ComputeListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + public listNodes( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeListNodesOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listNodesPagingAll( + resourceGroupName, + workspaceName, + computeName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listNodesPagingPage( + resourceGroupName, + workspaceName, + computeName, + options + ); + } + }; + } + + private async *listNodesPagingPage( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeListNodesOptionalParams + ): AsyncIterableIterator { + let result = await this._listNodes( + resourceGroupName, + workspaceName, + computeName, + options + ); + yield result.nodes || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNodesNext( + resourceGroupName, + workspaceName, + computeName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.nodes || []; + } + } + + private async *listNodesPagingAll( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeListNodesOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listNodesPagingPage( + resourceGroupName, + workspaceName, + computeName, + options + )) { + yield* page; + } + } + + /** + * Gets computes in specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: ComputeListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not + * returned - use 'keys' nested resource to get them. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that + * it does not exist yet. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Payload with Machine Learning compute definition. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ComputeResource, + options?: ComputeCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ComputeCreateOrUpdateResponse + > + > { + 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, workspaceName, computeName, parameters, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Creates or updates compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that + * it does not exist yet. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Payload with Machine Learning compute definition. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ComputeResource, + options?: ComputeCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + computeName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates properties of a compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Additional parameters for cluster update. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ClusterUpdateParameters, + options?: ComputeUpdateOptionalParams + ): Promise< + PollerLike, ComputeUpdateResponse> + > { + 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, workspaceName, computeName, parameters, options }, + updateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Updates properties of a compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Additional parameters for cluster update. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ClusterUpdateParameters, + options?: ComputeUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + computeName, + parameters, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes specified Machine Learning compute. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying + * compute from workspace if 'Detach'. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + computeName: string, + underlyingResourceAction: UnderlyingResourceAction, + options?: ComputeDeleteOptionalParams + ): Promise, void>> { + 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, + workspaceName, + computeName, + underlyingResourceAction, + options + }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Deletes specified Machine Learning compute. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying + * compute from workspace if 'Detach'. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + underlyingResourceAction: UnderlyingResourceAction, + options?: ComputeDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + computeName, + underlyingResourceAction, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + private _listNodes( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeListNodesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, options }, + listNodesOperationSpec + ); + } + + /** + * Gets secrets related to Machine Learning compute (storage keys, service credentials, etc). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeListKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, options }, + listKeysOperationSpec + ); + } + + /** + * Posts a start action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + async beginStart( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStartOptionalParams + ): Promise, void>> { + 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, workspaceName, computeName, options }, + startOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Posts a start action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + async beginStartAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStartOptionalParams + ): Promise { + const poller = await this.beginStart( + resourceGroupName, + workspaceName, + computeName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Posts a stop action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + async beginStop( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStopOptionalParams + ): Promise, void>> { + 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, workspaceName, computeName, options }, + stopOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Posts a stop action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + async beginStopAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStopOptionalParams + ): Promise { + const poller = await this.beginStop( + resourceGroupName, + workspaceName, + computeName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Posts a restart action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + async beginRestart( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeRestartOptionalParams + ): Promise, void>> { + 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, workspaceName, computeName, options }, + restartOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Posts a restart action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + async beginRestartAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeRestartOptionalParams + ): Promise { + const poller = await this.beginRestart( + resourceGroupName, + workspaceName, + computeName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: ComputeListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } + + /** + * ListNodesNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param nextLink The nextLink from the previous successful call to the ListNodes method. + * @param options The options parameters. + */ + private _listNodesNext( + resourceGroupName: string, + workspaceName: string, + computeName: string, + nextLink: string, + options?: ComputeListNodesNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, nextLink, options }, + listNodesNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PaginatedComputeResourcesList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComputeResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ComputeResource + }, + 201: { + bodyMapper: Mappers.ComputeResource + }, + 202: { + bodyMapper: Mappers.ComputeResource + }, + 204: { + bodyMapper: Mappers.ComputeResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ComputeResource + }, + 201: { + bodyMapper: Mappers.ComputeResource + }, + 202: { + bodyMapper: Mappers.ComputeResource + }, + 204: { + bodyMapper: Mappers.ComputeResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.underlyingResourceAction], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNodesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AmlComputeNodesInformation + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ComputeSecrets + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const startOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/start", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const stopOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/stop", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const restartOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/restart", + httpMethod: "POST", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PaginatedComputeResourcesList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNodesNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AmlComputeNodesInformation + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts index 3ddc3bba43e8..7d59bda3c749 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/index.ts @@ -3,18 +3,17 @@ * 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"; export * from "./workspaces"; -export * from "./workspaceFeatures"; -export * from "./notebooks"; export * from "./usages"; export * from "./virtualMachineSizes"; export * from "./quotas"; -export * from "./workspaceConnections"; -export * from "./machineLearningCompute"; +export * from "./computeOperations"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./workspaceConnections"; +export * from "./workspaceFeatures"; +export * from "./workspaceSkus"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts deleted file mode 100644 index 1fc94951a321..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/machineLearningCompute.ts +++ /dev/null @@ -1,727 +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 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/machineLearningComputeMappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; - -/** Class representing a MachineLearningCompute. */ -export class MachineLearningCompute { - private readonly client: AzureMachineLearningWorkspacesContext; - - /** - * Create a MachineLearningCompute. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. - */ - constructor(client: AzureMachineLearningWorkspacesContext) { - this.client = client; - } - - /** - * Gets computes in specified workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: Models.MachineLearningComputeListByWorkspaceOptionalParams): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options: Models.MachineLearningComputeListByWorkspaceOptionalParams, callback: msRest.ServiceCallback): void; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: Models.MachineLearningComputeListByWorkspaceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listByWorkspaceOperationSpec, - callback) as Promise; - } - - /** - * Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are - * not returned - use 'keys' nested resource to get them. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - computeName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates compute. This call will overwrite a compute if it exists. This is a - * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify - * that it does not exist yet. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param parameters Payload with Machine Learning compute definition. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: Models.ComputeResource, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,computeName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Updates properties of a compute. This call will overwrite a compute if it exists. This is a - * nonrecoverable operation. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param parameters Additional parameters for cluster update. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, workspaceName: string, computeName: string, parameters: Models.ClusterUpdateParameters, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,workspaceName,computeName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes specified Machine Learning compute. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the - * underlying compute from workspace if 'Detach'. Possible values include: 'Delete', 'Detach' - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, workspaceName: string, computeName: string, underlyingResourceAction: Models.UnderlyingResourceAction, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,computeName,underlyingResourceAction,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param [options] The optional parameters - * @returns Promise - */ - listNodes(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param callback The callback - */ - listNodes(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param options The optional parameters - * @param callback The callback - */ - listNodes(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNodes(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - computeName, - options - }, - listNodesOperationSpec, - callback) as Promise; - } - - /** - * Gets secrets related to Machine Learning compute (storage keys, service credentials, etc). - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param [options] The optional parameters - * @returns Promise - */ - listKeys(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param callback The callback - */ - listKeys(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param options The optional parameters - * @param callback The callback - */ - listKeys(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listKeys(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - computeName, - options - }, - listKeysOperationSpec, - callback) as Promise; - } - - /** - * Posts a start action to a compute instance - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param [options] The optional parameters - * @returns Promise - */ - start(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param callback The callback - */ - start(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param options The optional parameters - * @param callback The callback - */ - start(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - start(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - computeName, - options - }, - startOperationSpec, - callback); - } - - /** - * Posts a stop action to a compute instance - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param [options] The optional parameters - * @returns Promise - */ - stop(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param callback The callback - */ - stop(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param options The optional parameters - * @param callback The callback - */ - stop(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - stop(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - computeName, - options - }, - stopOperationSpec, - callback); - } - - /** - * Posts a restart action to a compute instance - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param [options] The optional parameters - * @returns Promise - */ - restart(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param callback The callback - */ - restart(resourceGroupName: string, workspaceName: string, computeName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param options The optional parameters - * @param callback The callback - */ - restart(resourceGroupName: string, workspaceName: string, computeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - restart(resourceGroupName: string, workspaceName: string, computeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - computeName, - options - }, - restartOperationSpec, - callback); - } - - /** - * Creates or updates compute. This call will overwrite a compute if it exists. This is a - * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify - * that it does not exist yet. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param parameters Payload with Machine Learning compute definition. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: Models.ComputeResource, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - computeName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Updates properties of a compute. This call will overwrite a compute if it exists. This is a - * nonrecoverable operation. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param parameters Additional parameters for cluster update. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: Models.ClusterUpdateParameters, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - computeName, - parameters, - options - }, - beginUpdateOperationSpec, - options); - } - - /** - * Deletes specified Machine Learning compute. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param computeName Name of the Azure Machine Learning compute. - * @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the - * underlying compute from workspace if 'Detach'. Possible values include: 'Delete', 'Detach' - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, computeName: string, underlyingResourceAction: Models.UnderlyingResourceAction, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - computeName, - underlyingResourceAction, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Gets computes in specified workspace. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByWorkspaceNext(nextPageLink: string, options?: Models.MachineLearningComputeListByWorkspaceNextOptionalParams): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByWorkspaceNext(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 - */ - listByWorkspaceNext(nextPageLink: string, options: Models.MachineLearningComputeListByWorkspaceNextOptionalParams, callback: msRest.ServiceCallback): void; - listByWorkspaceNext(nextPageLink: string, options?: Models.MachineLearningComputeListByWorkspaceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByWorkspaceNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByWorkspaceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PaginatedComputeResourcesList - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ComputeResource - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const listNodesOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AmlComputeNodesInformation - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const listKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listKeys", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ComputeSecrets - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const startOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/start", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const stopOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/stop", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const restartOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/restart", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ComputeResource, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ComputeResource, - headersMapper: Mappers.MachineLearningComputeCreateOrUpdateHeaders - }, - 201: { - bodyMapper: Mappers.ComputeResource, - headersMapper: Mappers.MachineLearningComputeCreateOrUpdateHeaders - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError, - headersMapper: Mappers.MachineLearningComputeCreateOrUpdateHeaders - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ClusterUpdateParameters, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ComputeResource - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.computeName - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.underlyingResourceAction - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - headersMapper: Mappers.MachineLearningComputeDeleteHeaders - }, - 202: { - headersMapper: Mappers.MachineLearningComputeDeleteHeaders - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError, - headersMapper: Mappers.MachineLearningComputeDeleteHeaders - } - }, - serializer -}; - -const listByWorkspaceNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PaginatedComputeResourcesList - }, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts deleted file mode 100644 index b399aaaf57f3..000000000000 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/notebooks.ts +++ /dev/null @@ -1,84 +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 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/notebooksMappers"; -import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; - -/** Class representing a Notebooks. */ -export class Notebooks { - private readonly client: AzureMachineLearningWorkspacesContext; - - /** - * Create a Notebooks. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. - */ - constructor(client: AzureMachineLearningWorkspacesContext) { - this.client = client; - } - - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise - */ - prepare(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginPrepare(resourceGroupName,workspaceName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise - */ - beginPrepare(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - options - }, - beginPrepareOperationSpec, - options); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const beginPrepareOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.NotebookResourceInfo - }, - 202: {}, - default: { - bodyMapper: Mappers.MachineLearningServiceError - } - }, - serializer -}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/operations.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/operations.ts index 7ffd14de81bc..8667fe1c73fb 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/operations.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/operations.ts @@ -3,71 +3,96 @@ * 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 { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + Operation, + OperationsListOptionalParams, + OperationsListResponse +} from "../models"; -/** Class representing a Operations. */ -export class Operations { - private readonly client: AzureMachineLearningWorkspacesContext; +/// +/** Class containing Operations operations. */ +export class OperationsImpl implements Operations { + private readonly client: AzureMachineLearningWorkspaces; /** - * Create a Operations. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class Operations class. + * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspacesContext) { + constructor(client: AzureMachineLearningWorkspaces) { this.client = client; } /** * Lists all of the available Azure Machine Learning Workspaces 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 Workspaces REST API operations. + * @param options The options parameters. */ - 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?: OperationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.MachineLearningServices/operations", httpMethod: "GET", - path: "providers/Microsoft.MachineLearningServices/operations", - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.OperationListResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts index 187767656333..8e96a55a7d0a 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateEndpointConnections.ts @@ -3,57 +3,119 @@ * 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/privateEndpointConnectionsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PrivateEndpointConnections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + PrivateEndpointConnection, + PrivateEndpointConnectionsListOptionalParams, + PrivateEndpointConnectionsListResponse, + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsGetResponse, + PrivateEndpointConnectionsCreateOrUpdateOptionalParams, + PrivateEndpointConnectionsCreateOrUpdateResponse, + PrivateEndpointConnectionsDeleteOptionalParams +} from "../models"; -/** Class representing a PrivateEndpointConnections. */ -export class PrivateEndpointConnections { - private readonly client: AzureMachineLearningWorkspacesContext; +/// +/** Class containing PrivateEndpointConnections operations. */ +export class PrivateEndpointConnectionsImpl + implements PrivateEndpointConnections { + private readonly client: AzureMachineLearningWorkspaces; /** - * Create a PrivateEndpointConnections. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class PrivateEndpointConnections class. + * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspacesContext) { + constructor(client: AzureMachineLearningWorkspaces) { this.client = client; } /** - * Gets the specified private endpoint connection associated with the workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. + * List all the private endpoint connections associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + public list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * List all the private endpoint connections associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * Gets the specified private endpoint connection associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace - * @param options The optional parameters - * @param callback The callback + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -61,41 +123,26 @@ export class PrivateEndpointConnections { privateEndpointConnectionName, options }, - getOperationSpec, - callback) as Promise; + getOperationSpec + ); } /** * Update the state of specified private endpoint connection associated with the workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace - * @param properties The private endpoint connection properties. - * @param [options] The optional parameters - * @returns Promise - */ - put(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace * @param properties The private endpoint connection properties. - * @param callback The callback + * @param options The options parameters. */ - put(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace - * @param properties The private endpoint connection properties. - * @param options The optional parameters - * @param callback The callback - */ - put(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - put(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + properties: PrivateEndpointConnection, + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -104,129 +151,127 @@ export class PrivateEndpointConnections { properties, options }, - putOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec + ); } /** * Deletes the specified private endpoint connection associated with the workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace - * @param [options] The optional parameters - * @returns Promise + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,privateEndpointConnectionName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Deletes the specified private endpoint connection associated with the workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with - * the workspace - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + delete( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( { resourceGroupName, workspaceName, privateEndpointConnectionName, options }, - beginDeleteMethodOperationSpec, - options); + deleteOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.privateEndpointConnectionName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnection }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const putOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.privateEndpointConnectionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "properties", - mapper: { - ...Mappers.PrivateEndpointConnection, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnection }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + requestBody: Parameters.properties, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.privateEndpointConnectionName ], - 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.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "DELETE", responses: { 200: {}, - 202: {}, 204: {}, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.privateEndpointConnectionName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts index a0de2b6f5817..f1965b41983e 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/privateLinkResources.ts @@ -3,84 +3,67 @@ * 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/privateLinkResourcesMappers"; +import { PrivateLinkResources } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + PrivateLinkResourcesListOptionalParams, + PrivateLinkResourcesListResponse +} from "../models"; -/** Class representing a PrivateLinkResources. */ -export class PrivateLinkResources { - private readonly client: AzureMachineLearningWorkspacesContext; +/** Class containing PrivateLinkResources operations. */ +export class PrivateLinkResourcesImpl implements PrivateLinkResources { + private readonly client: AzureMachineLearningWorkspaces; /** - * Create a PrivateLinkResources. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class PrivateLinkResources class. + * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspacesContext) { + constructor(client: AzureMachineLearningWorkspaces) { this.client = client; } /** * Gets the private link resources that need to be created for a workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback - */ - listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listByWorkspaceOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByWorkspaceOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateLinkResources", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateLinkResources", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.PrivateLinkResourceListResult - }, - default: { - bodyMapper: Mappers.CloudError } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts index fbf9d1cc0c0d..122706485233 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/quotas.ts @@ -3,194 +3,199 @@ * 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/quotasMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Quotas } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + ResourceQuota, + QuotasListNextOptionalParams, + QuotasListOptionalParams, + QuotaUpdateParameters, + QuotasUpdateOptionalParams, + QuotasUpdateResponse, + QuotasListResponse, + QuotasListNextResponse +} from "../models"; -/** Class representing a Quotas. */ -export class Quotas { - private readonly client: AzureMachineLearningWorkspacesContext; +/// +/** Class containing Quotas operations. */ +export class QuotasImpl implements Quotas { + private readonly client: AzureMachineLearningWorkspaces; /** - * Create a Quotas. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class Quotas class. + * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspacesContext) { + constructor(client: AzureMachineLearningWorkspaces) { this.client = client; } /** - * Update quota for each VM family in workspace. - * @param location The location for update quota is queried. - * @param parameters Quota update parameters. - * @param [options] The optional parameters - * @returns Promise - */ - update(location: string, parameters: Models.QuotaUpdateParameters, options?: msRest.RequestOptionsBase): Promise; - /** - * @param location The location for update quota is queried. - * @param parameters Quota update parameters. - * @param callback The callback + * Gets the currently assigned Workspace Quotas based on VMFamily. + * @param location The location for which resource usage is queried. + * @param options The options parameters. */ - update(location: string, parameters: Models.QuotaUpdateParameters, callback: msRest.ServiceCallback): void; + public list( + location: string, + options?: QuotasListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(location, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(location, options); + } + }; + } + + private async *listPagingPage( + location: string, + options?: QuotasListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(location, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext(location, continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + location: string, + options?: QuotasListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(location, options)) { + yield* page; + } + } + /** + * Update quota for each VM family in workspace. * @param location The location for update quota is queried. * @param parameters Quota update parameters. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - update(location: string, parameters: Models.QuotaUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(location: string, parameters: Models.QuotaUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update( + location: string, + parameters: QuotaUpdateParameters, + options?: QuotasUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - location, - parameters, - options - }, - updateOperationSpec, - callback) as Promise; + { location, parameters, options }, + updateOperationSpec + ); } /** * Gets the currently assigned Workspace Quotas based on VMFamily. * @param location The location for which resource usage is queried. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(location: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param location The location for which resource usage is queried. - * @param callback The callback - */ - list(location: string, callback: msRest.ServiceCallback): void; - /** - * @param location The location for which resource usage is queried. - * @param options The optional parameters - * @param callback The callback - */ - list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _list( + location: string, + options?: QuotasListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - location, - options - }, - listOperationSpec, - callback) as Promise; + { location, options }, + listOperationSpec + ); } /** - * Gets the currently assigned Workspace Quotas based on VMFamily. - * @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 location The location for which resource usage is queried. + * @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( + location: string, + nextLink: string, + options?: QuotasListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { location, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const updateOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/updateQuotas", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/updateQuotas", - urlParameters: [ - Parameters.location, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.QuotaUpdateParameters, - required: true - } - }, responses: { 200: { bodyMapper: Mappers.UpdateWorkspaceQuotasResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/Quotas", + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.location ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/quotas", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ListWorkspaceQuotas }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ListWorkspaceQuotas }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.location + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/usages.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/usages.ts index 282c7c633054..e6330975bebe 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/usages.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/usages.ts @@ -3,133 +3,152 @@ * 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/usagesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Usages } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + Usage, + UsagesListNextOptionalParams, + UsagesListOptionalParams, + UsagesListResponse, + UsagesListNextResponse +} from "../models"; -/** Class representing a Usages. */ -export class Usages { - private readonly client: AzureMachineLearningWorkspacesContext; +/// +/** Class containing Usages operations. */ +export class UsagesImpl implements Usages { + private readonly client: AzureMachineLearningWorkspaces; /** - * Create a Usages. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class Usages class. + * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspacesContext) { + constructor(client: AzureMachineLearningWorkspaces) { this.client = client; } /** - * Gets the current usage information as well as limits for AML resources for given subscription - * and location. + * Gets the current usage information as well as limits for AML resources for given subscription and + * location. * @param location The location for which resource usage is queried. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(location: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param location The location for which resource usage is queried. - * @param callback The callback - */ - list(location: string, callback: msRest.ServiceCallback): void; + public list( + location: string, + options?: UsagesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(location, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(location, options); + } + }; + } + + private async *listPagingPage( + location: string, + options?: UsagesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(location, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext(location, continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + location: string, + options?: UsagesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(location, options)) { + yield* page; + } + } + /** + * Gets the current usage information as well as limits for AML resources for given subscription and + * location. * @param location The location for which resource usage is queried. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _list( + location: string, + options?: UsagesListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - location, - options - }, - listOperationSpec, - callback) as Promise; + { location, options }, + listOperationSpec + ); } /** - * Gets the current usage information as well as limits for AML resources for given subscription - * and location. - * @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 location The location for which resource usage is queried. + * @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( + location: string, + nextLink: string, + options?: UsagesListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { location, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/usages", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/usages", - urlParameters: [ - Parameters.subscriptionId, - Parameters.location - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.ListUsagesResult - }, - default: { - bodyMapper: Mappers.CloudError } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ListUsagesResult - }, - default: { - bodyMapper: Mappers.CloudError } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.location + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts index 9be626180c93..9b458d4a3adf 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/virtualMachineSizes.ts @@ -3,81 +3,64 @@ * 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/virtualMachineSizesMappers"; +import { VirtualMachineSizes } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + VirtualMachineSizesListOptionalParams, + VirtualMachineSizesListResponse +} from "../models"; -/** Class representing a VirtualMachineSizes. */ -export class VirtualMachineSizes { - private readonly client: AzureMachineLearningWorkspacesContext; +/** Class containing VirtualMachineSizes operations. */ +export class VirtualMachineSizesImpl implements VirtualMachineSizes { + private readonly client: AzureMachineLearningWorkspaces; /** - * Create a VirtualMachineSizes. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class VirtualMachineSizes class. + * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspacesContext) { + constructor(client: AzureMachineLearningWorkspaces) { this.client = client; } /** * Returns supported VM Sizes in a location * @param location The location upon which virtual-machine-sizes is queried. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(location: string, options?: Models.VirtualMachineSizesListOptionalParams): Promise; - /** - * @param location The location upon which virtual-machine-sizes is queried. - * @param callback The callback - */ - list(location: string, callback: msRest.ServiceCallback): void; - /** - * @param location The location upon which virtual-machine-sizes is queried. - * @param options The optional parameters - * @param callback The callback - */ - list(location: string, options: Models.VirtualMachineSizesListOptionalParams, callback: msRest.ServiceCallback): void; - list(location: string, options?: Models.VirtualMachineSizesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list( + location: string, + options?: VirtualMachineSizesListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - location, - options - }, - listOperationSpec, - callback) as Promise; + { location, options }, + listOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/vmSizes", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/vmSizes", - urlParameters: [ - Parameters.location, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.computeType, - Parameters.recommended - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.VirtualMachineSizeListResult - }, - default: { - bodyMapper: Mappers.CloudError } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts index 77864d7360ee..9b576bab9d0e 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceConnections.ts @@ -3,282 +3,259 @@ * 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/workspaceConnectionsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceConnections } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + WorkspaceConnection, + WorkspaceConnectionsListOptionalParams, + WorkspaceConnectionsListResponse, + WorkspaceConnectionsCreateOptionalParams, + WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsGetOptionalParams, + WorkspaceConnectionsGetResponse, + WorkspaceConnectionsDeleteOptionalParams +} from "../models"; -/** Class representing a WorkspaceConnections. */ -export class WorkspaceConnections { - private readonly client: AzureMachineLearningWorkspacesContext; +/// +/** Class containing WorkspaceConnections operations. */ +export class WorkspaceConnectionsImpl implements WorkspaceConnections { + private readonly client: AzureMachineLearningWorkspaces; /** - * Create a WorkspaceConnections. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class WorkspaceConnections class. + * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspacesContext) { + constructor(client: AzureMachineLearningWorkspaces) { this.client = client; } /** * List all connections under a AML workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, options?: Models.WorkspaceConnectionsListOptionalParams): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + public list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * List all connections under a AML workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, options: Models.WorkspaceConnectionsListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, options?: Models.WorkspaceConnectionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); } /** * Add a new workspace connection. - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param connectionName Friendly name of the workspace connection * @param parameters The object for creating or updating a new workspace connection - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnectionDto, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param connectionName Friendly name of the workspace connection - * @param parameters The object for creating or updating a new workspace connection - * @param callback The callback - */ - create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnectionDto, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param connectionName Friendly name of the workspace connection - * @param parameters The object for creating or updating a new workspace connection - * @param options The optional parameters - * @param callback The callback - */ - create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnectionDto, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: Models.WorkspaceConnectionDto, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + create( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + parameters: WorkspaceConnection, + options?: WorkspaceConnectionsCreateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - connectionName, - parameters, - options - }, - createOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, connectionName, parameters, options }, + createOperationSpec + ); } /** * Get the detail of a workspace connection. - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param connectionName Friendly name of the workspace connection - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, connectionName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param connectionName Friendly name of the workspace connection - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, connectionName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param connectionName Friendly name of the workspace connection - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, workspaceName: string, connectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, connectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - connectionName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, connectionName, options }, + getOperationSpec + ); } /** * Delete a workspace connection. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param connectionName Friendly name of the workspace connection - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, workspaceName: string, connectionName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param connectionName Friendly name of the workspace connection - * @param callback The callback + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, connectionName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param connectionName Friendly name of the workspace connection - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, workspaceName: string, connectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, workspaceName: string, connectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + delete( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - connectionName, - options - }, - deleteMethodOperationSpec, - callback); + { resourceGroupName, workspaceName, connectionName, options }, + deleteOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.target, - Parameters.category - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.PaginatedWorkspaceConnectionsList }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const createOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + queryParameters: [ + Parameters.apiVersion, + Parameters.target, + Parameters.category + ], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.connectionName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.workspaceName ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.WorkspaceConnectionDto, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.WorkspaceConnection }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + requestBody: Parameters.parameters6, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.connectionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WorkspaceConnection }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, Parameters.connectionName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.connectionName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts index a887c0669d7f..e3efc94dd9db 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceFeatures.ts @@ -3,136 +3,175 @@ * 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/workspaceFeaturesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { WorkspaceFeatures } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + AmlUserFeature, + WorkspaceFeaturesListNextOptionalParams, + WorkspaceFeaturesListOptionalParams, + WorkspaceFeaturesListResponse, + WorkspaceFeaturesListNextResponse +} from "../models"; -/** Class representing a WorkspaceFeatures. */ -export class WorkspaceFeatures { - private readonly client: AzureMachineLearningWorkspacesContext; +/// +/** Class containing WorkspaceFeatures operations. */ +export class WorkspaceFeaturesImpl implements WorkspaceFeatures { + private readonly client: AzureMachineLearningWorkspaces; /** - * Create a WorkspaceFeatures. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class WorkspaceFeatures class. + * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspacesContext) { + constructor(client: AzureMachineLearningWorkspaces) { this.client = client; } /** * Lists all enabled features for a workspace - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(resourceGroupName, workspaceName, options); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( resourceGroupName, workspaceName, + continuationToken, options - }, - listOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } } /** * Lists all enabled features for a workspace - * @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 + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @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( + resourceGroupName: string, + workspaceName: string, + nextLink: string, + options?: WorkspaceFeaturesListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.ListAmlUserFeatureResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ListAmlUserFeatureResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceSkus.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceSkus.ts new file mode 100644 index 000000000000..11afca7f5db2 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaceSkus.ts @@ -0,0 +1,142 @@ +/* + * 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 { WorkspaceSkus } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { + WorkspaceSku, + WorkspaceSkusListNextOptionalParams, + WorkspaceSkusListOptionalParams, + WorkspaceSkusListResponse, + WorkspaceSkusListNextResponse +} from "../models"; + +/// +/** Class containing WorkspaceSkus operations. */ +export class WorkspaceSkusImpl implements WorkspaceSkus { + private readonly client: AzureMachineLearningWorkspaces; + + /** + * Initialize a new instance of the class WorkspaceSkus class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningWorkspaces) { + this.client = client; + } + + /** + * Lists all skus with associated features + * @param options The options parameters. + */ + public list( + options?: WorkspaceSkusListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: WorkspaceSkusListOptionalParams + ): 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?: WorkspaceSkusListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } + } + + /** + * Lists all skus with associated features + * @param options The options parameters. + */ + private _list( + options?: WorkspaceSkusListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + + /** + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + nextLink: string, + options?: WorkspaceSkusListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces/skus", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SkuListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SkuListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts index 9fc610c5256c..259b484588ad 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operations/workspaces.ts @@ -3,598 +3,1145 @@ * 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/workspacesMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Workspaces } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { AzureMachineLearningWorkspacesContext } from "../azureMachineLearningWorkspacesContext"; +import { AzureMachineLearningWorkspaces } from "../azureMachineLearningWorkspaces"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + Workspace, + WorkspacesListByResourceGroupNextOptionalParams, + WorkspacesListByResourceGroupOptionalParams, + WorkspacesListBySubscriptionNextOptionalParams, + WorkspacesListBySubscriptionOptionalParams, + WorkspacesGetOptionalParams, + WorkspacesGetResponse, + WorkspacesCreateOrUpdateOptionalParams, + WorkspacesCreateOrUpdateResponse, + WorkspacesDeleteOptionalParams, + WorkspaceUpdateParameters, + WorkspacesUpdateOptionalParams, + WorkspacesUpdateResponse, + WorkspacesListByResourceGroupResponse, + WorkspacesDiagnoseOptionalParams, + WorkspacesDiagnoseResponse, + WorkspacesListKeysOptionalParams, + WorkspacesListKeysResponse, + WorkspacesResyncKeysOptionalParams, + WorkspacesListBySubscriptionResponse, + WorkspacesListNotebookAccessTokenOptionalParams, + WorkspacesListNotebookAccessTokenResponse, + WorkspacesPrepareNotebookOptionalParams, + WorkspacesPrepareNotebookResponse, + WorkspacesListStorageAccountKeysOptionalParams, + WorkspacesListStorageAccountKeysResponse, + WorkspacesListNotebookKeysOptionalParams, + WorkspacesListNotebookKeysResponse, + WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams, + WorkspacesListOutboundNetworkDependenciesEndpointsResponse, + WorkspacesListByResourceGroupNextResponse, + WorkspacesListBySubscriptionNextResponse +} from "../models"; -/** Class representing a Workspaces. */ -export class Workspaces { - private readonly client: AzureMachineLearningWorkspacesContext; +/// +/** Class containing Workspaces operations. */ +export class WorkspacesImpl implements Workspaces { + private readonly client: AzureMachineLearningWorkspaces; /** - * Create a Workspaces. - * @param {AzureMachineLearningWorkspacesContext} client Reference to the service client. + * Initialize a new instance of the class Workspaces class. + * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspacesContext) { + constructor(client: AzureMachineLearningWorkspaces) { this.client = client; } /** - * Gets the properties of the specified machine learning workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * Lists all the available machine learning workspaces under the specified resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + public listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): 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?: WorkspacesListByResourceGroupOptionalParams + ): AsyncIterableIterator { + let result = await this._listByResourceGroup(resourceGroupName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback + * Lists all the available machine learning workspaces under the specified subscription. + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + public listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listBySubscriptionPagingPage(options); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: WorkspacesListBySubscriptionOptionalParams + ): AsyncIterableIterator { + let result = await this._listBySubscription(options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listBySubscriptionPagingAll( + options?: WorkspacesListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * Gets the properties of the specified machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - get(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesGetOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - getOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + getOperationSpec + ); } /** * Creates or updates a workspace with the specified parameters. - * @param resourceGroupName Name of the resource group in which workspace is located. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param parameters The parameters for creating or updating a machine learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.Workspace, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,workspaceName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + parameters: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesCreateOrUpdateResponse + > + > { + 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, workspaceName, parameters, options }, + createOrUpdateOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); } /** - * Deletes a machine learning workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. + * Creates or updates a workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param parameters The parameters for creating or updating a machine learning workspace. + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,workspaceName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + parameters: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + parameters, + options + ); + return poller.pollUntilDone(); } /** - * Updates a machine learning workspace with the specified parameters. - * @param resourceGroupName Name of the resource group in which workspace is located. + * Deletes a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for updating a machine learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, parameters: Models.WorkspaceUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + async beginDelete( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise, void>> { + 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, workspaceName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * Deletes a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for updating a machine learning workspace. - * @param callback The callback + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, parameters: Models.WorkspaceUpdateParameters, callback: msRest.ServiceCallback): void; + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * Updates a machine learning workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param parameters The parameters for updating a machine learning workspace. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - update(resourceGroupName: string, workspaceName: string, parameters: Models.WorkspaceUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, workspaceName: string, parameters: Models.WorkspaceUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update( + resourceGroupName: string, + workspaceName: string, + parameters: WorkspaceUpdateParameters, + options?: WorkspacesUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - parameters, - options - }, - updateOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, parameters, options }, + updateOperationSpec + ); } /** * Lists all the available machine learning workspaces under the specified resource group. - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroup(resourceGroupName: string, options?: Models.WorkspacesListByResourceGroupOptionalParams): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param callback The callback + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, options: Models.WorkspacesListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: Models.WorkspacesListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); } /** - * Lists all the keys associated with this workspace. This includes keys for the storage account, - * app insights and password for container registry - * @param resourceGroupName Name of the resource group in which workspace is located. + * Diagnose workspace setup issue. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - listKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; + async beginDiagnose( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDiagnoseOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesDiagnoseResponse + > + > { + 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, workspaceName, options }, + diagnoseOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * Diagnose workspace setup issue. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback + * @param options The options parameters. */ - listKeys(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + async beginDiagnoseAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDiagnoseOptionalParams + ): Promise { + const poller = await this.beginDiagnose( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * Lists all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - listKeys(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListKeysOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - listKeysOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + listKeysOperationSpec + ); } /** - * Resync all the keys associated with this workspace. This includes keys for the storage account, - * app insights and password for container registry - * @param resourceGroupName Name of the resource group in which workspace is located. + * Resync all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - resyncKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Name of the resource group in which workspace is located. - * @param workspaceName Name of Azure Machine Learning workspace. - * @param callback The callback - */ - resyncKeys(resourceGroupName: string, workspaceName: string, callback: msRest.ServiceCallback): void; + async beginResyncKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesResyncKeysOptionalParams + ): Promise, void>> { + 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, workspaceName, options }, + resyncKeysOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + /** - * @param resourceGroupName Name of the resource group in which workspace is located. + * Resync all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - resyncKeys(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - resyncKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - workspaceName, - options - }, - resyncKeysOperationSpec, - callback); + async beginResyncKeysAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesResyncKeysOptionalParams + ): Promise { + const poller = await this.beginResyncKeys( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); } /** * Lists all the available machine learning workspaces under the specified subscription. - * @param [options] The optional parameters - * @returns Promise - */ - listBySubscription(options?: Models.WorkspacesListBySubscriptionOptionalParams): Promise; - /** - * @param callback The callback - */ - listBySubscription(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - listBySubscription(options: Models.WorkspacesListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; - listBySubscription(options?: Models.WorkspacesListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - options - }, - listBySubscriptionOperationSpec, - callback) as Promise; + { options }, + listBySubscriptionOperationSpec + ); } /** - * Creates or updates a workspace with the specified parameters. - * @param resourceGroupName Name of the resource group in which workspace is located. + * return notebook access token and refresh token + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param parameters The parameters for creating or updating a machine learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Models.Workspace, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); + listNotebookAccessToken( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListNotebookAccessTokenOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listNotebookAccessTokenOperationSpec + ); } /** - * Deletes a machine learning workspace. - * @param resourceGroupName Name of the resource group in which workspace is located. + * Prepare a notebook. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginDeleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - workspaceName, - options - }, - beginDeleteMethodOperationSpec, - options); + async beginPrepareNotebook( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesPrepareNotebookOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesPrepareNotebookResponse + > + > { + 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, workspaceName, options }, + prepareNotebookOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** - * Lists all the available machine learning workspaces under the specified resource group. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise + * Prepare a notebook. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. */ - listByResourceGroupNext(nextPageLink: string, options?: Models.WorkspacesListByResourceGroupNextOptionalParams): Promise; + async beginPrepareNotebookAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesPrepareNotebookOptionalParams + ): Promise { + const poller = await this.beginPrepareNotebook( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * List storage account keys of a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listStorageAccountKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListStorageAccountKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listStorageAccountKeysOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * List keys of a notebook. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. */ - listByResourceGroupNext(nextPageLink: string, options: Models.WorkspacesListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: Models.WorkspacesListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNotebookKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListNotebookKeysOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; + { resourceGroupName, workspaceName, options }, + listNotebookKeysOperationSpec + ); } /** - * Lists all the available machine learning workspaces under the specified subscription. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise + * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) + * programmatically. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. */ - listBySubscriptionNext(nextPageLink: string, options?: Models.WorkspacesListBySubscriptionNextOptionalParams): Promise; + listOutboundNetworkDependenciesEndpoints( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOutboundNetworkDependenciesEndpointsOperationSpec + ); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. */ - listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: WorkspacesListByResourceGroupNextOptionalParams + ): 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 + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. */ - listBySubscriptionNext(nextPageLink: string, options: Models.WorkspacesListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; - listBySubscriptionNext(nextPageLink: string, options?: Models.WorkspacesListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listBySubscriptionNext( + nextLink: string, + options?: WorkspacesListBySubscriptionNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listBySubscriptionNextOperationSpec, - callback) as Promise; + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); } } - // 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.MachineLearningServices/workspaces/{workspaceName}", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + responses: { + 200: { + bodyMapper: Mappers.Workspace + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.Workspace }, + 201: { + bodyMapper: Mappers.Workspace + }, + 202: { + bodyMapper: Mappers.Workspace + }, + 204: { + bodyMapper: Mappers.Workspace + }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.WorkspaceUpdateParameters, - required: true + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.Workspace }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces", + requestBody: Parameters.parameters1, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.resourceGroupName, + Parameters.workspaceName ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], serializer }; - -const listKeysOperationSpec: msRest.OperationSpec = { +const diagnoseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/diagnose", httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys", + responses: { + 200: { + bodyMapper: Mappers.DiagnoseResponseResult + }, + 201: { + bodyMapper: Mappers.DiagnoseResponseResult + }, + 202: { + bodyMapper: Mappers.DiagnoseResponseResult + }, + 204: { + bodyMapper: Mappers.DiagnoseResponseResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters2, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys", + httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.ListWorkspaceKeysResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, - serializer -}; - -const resyncKeysOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const resyncKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", + httpMethod: "POST", responses: { 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; - -const listBySubscriptionOperationSpec: msRest.OperationSpec = { +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], serializer }; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", +const listNotebookAccessTokenOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.NotebookAccessTokenResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.Workspace, - required: true - } - }, + headerParameters: [Parameters.accept], + serializer +}; +const prepareNotebookOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.NotebookResourceInfo }, 201: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.NotebookResourceInfo + }, + 202: { + bodyMapper: Mappers.NotebookResourceInfo + }, + 204: { + bodyMapper: Mappers.NotebookResourceInfo }, - 202: {}, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", +const listStorageAccountKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ListStorageAccountKeysResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept], + serializer +}; +const listNotebookKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys", + httpMethod: "POST", responses: { - 200: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.ListNotebookKeysResult + }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], serializer }; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { +const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints", httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", + responses: { + 200: { + bodyMapper: Mappers.ExternalFqdnResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; - -const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.skiptoken - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.MachineLearningServiceError + bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/computeOperations.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/computeOperations.ts new file mode 100644 index 000000000000..630c4eee8be1 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/computeOperations.ts @@ -0,0 +1,269 @@ +/* + * 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 { + ComputeResource, + ComputeListOptionalParams, + AmlComputeNodeInformation, + ComputeListNodesOptionalParams, + ComputeGetOptionalParams, + ComputeGetResponse, + ComputeCreateOrUpdateOptionalParams, + ComputeCreateOrUpdateResponse, + ClusterUpdateParameters, + ComputeUpdateOptionalParams, + ComputeUpdateResponse, + UnderlyingResourceAction, + ComputeDeleteOptionalParams, + ComputeListKeysOptionalParams, + ComputeListKeysResponse, + ComputeStartOptionalParams, + ComputeStopOptionalParams, + ComputeRestartOptionalParams +} from "../models"; + +/// +/** Interface representing a ComputeOperations. */ +export interface ComputeOperations { + /** + * Gets computes in specified workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: ComputeListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get the details (e.g IP address, port etc) of all the compute nodes in the compute. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + listNodes( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeListNodesOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not + * returned - use 'keys' nested resource to get them. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeGetOptionalParams + ): Promise; + /** + * Creates or updates compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that + * it does not exist yet. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Payload with Machine Learning compute definition. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ComputeResource, + options?: ComputeCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ComputeCreateOrUpdateResponse + > + >; + /** + * Creates or updates compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that + * it does not exist yet. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Payload with Machine Learning compute definition. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ComputeResource, + options?: ComputeCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates properties of a compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Additional parameters for cluster update. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ClusterUpdateParameters, + options?: ComputeUpdateOptionalParams + ): Promise< + PollerLike, ComputeUpdateResponse> + >; + /** + * Updates properties of a compute. This call will overwrite a compute if it exists. This is a + * nonrecoverable operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param parameters Additional parameters for cluster update. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ClusterUpdateParameters, + options?: ComputeUpdateOptionalParams + ): Promise; + /** + * Deletes specified Machine Learning compute. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying + * compute from workspace if 'Detach'. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + computeName: string, + underlyingResourceAction: UnderlyingResourceAction, + options?: ComputeDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes specified Machine Learning compute. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param underlyingResourceAction Delete the underlying compute if 'Delete', or detach the underlying + * compute from workspace if 'Detach'. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + underlyingResourceAction: UnderlyingResourceAction, + options?: ComputeDeleteOptionalParams + ): Promise; + /** + * Gets secrets related to Machine Learning compute (storage keys, service credentials, etc). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeListKeysOptionalParams + ): Promise; + /** + * Posts a start action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + beginStart( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStartOptionalParams + ): Promise, void>>; + /** + * Posts a start action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + beginStartAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStartOptionalParams + ): Promise; + /** + * Posts a stop action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + beginStop( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStopOptionalParams + ): Promise, void>>; + /** + * Posts a stop action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + beginStopAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeStopOptionalParams + ): Promise; + /** + * Posts a restart action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + beginRestart( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeRestartOptionalParams + ): Promise, void>>; + /** + * Posts a restart action to a compute instance + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param computeName Name of the Azure Machine Learning compute. + * @param options The options parameters. + */ + beginRestartAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeRestartOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/index.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/index.ts new file mode 100644 index 000000000000..7d59bda3c749 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/index.ts @@ -0,0 +1,19 @@ +/* + * 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 "./operations"; +export * from "./workspaces"; +export * from "./usages"; +export * from "./virtualMachineSizes"; +export * from "./quotas"; +export * from "./computeOperations"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; +export * from "./workspaceConnections"; +export * from "./workspaceFeatures"; +export * from "./workspaceSkus"; diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/operations.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/operations.ts new file mode 100644 index 000000000000..007e106ee8ab --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/operations.ts @@ -0,0 +1,22 @@ +/* + * 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 { Operation, OperationsListOptionalParams } from "../models"; + +/// +/** Interface representing a Operations. */ +export interface Operations { + /** + * Lists all of the available Azure Machine Learning Workspaces REST API operations. + * @param options The options parameters. + */ + list( + options?: OperationsListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/privateEndpointConnections.ts new file mode 100644 index 000000000000..e36e60ff73cb --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/privateEndpointConnections.ts @@ -0,0 +1,78 @@ +/* + * 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 { + PrivateEndpointConnection, + PrivateEndpointConnectionsListOptionalParams, + PrivateEndpointConnectionsGetOptionalParams, + PrivateEndpointConnectionsGetResponse, + PrivateEndpointConnectionsCreateOrUpdateOptionalParams, + PrivateEndpointConnectionsCreateOrUpdateResponse, + PrivateEndpointConnectionsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a PrivateEndpointConnections. */ +export interface PrivateEndpointConnections { + /** + * List all the private endpoint connections associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateEndpointConnectionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the specified private endpoint connection associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsGetOptionalParams + ): Promise; + /** + * Update the state of specified private endpoint connection associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param properties The private endpoint connection properties. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + properties: PrivateEndpointConnection, + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes the specified private endpoint connection associated with the workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the + * workspace + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + privateEndpointConnectionName: string, + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/privateLinkResources.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/privateLinkResources.ts new file mode 100644 index 000000000000..9297407ea513 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/privateLinkResources.ts @@ -0,0 +1,27 @@ +/* + * 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 { + PrivateLinkResourcesListOptionalParams, + PrivateLinkResourcesListResponse +} from "../models"; + +/** Interface representing a PrivateLinkResources. */ +export interface PrivateLinkResources { + /** + * Gets the private link resources that need to be created for a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/quotas.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/quotas.ts new file mode 100644 index 000000000000..697550823c9d --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/quotas.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. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ResourceQuota, + QuotasListOptionalParams, + QuotaUpdateParameters, + QuotasUpdateOptionalParams, + QuotasUpdateResponse +} from "../models"; + +/// +/** Interface representing a Quotas. */ +export interface Quotas { + /** + * Gets the currently assigned Workspace Quotas based on VMFamily. + * @param location The location for which resource usage is queried. + * @param options The options parameters. + */ + list( + location: string, + options?: QuotasListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Update quota for each VM family in workspace. + * @param location The location for update quota is queried. + * @param parameters Quota update parameters. + * @param options The options parameters. + */ + update( + location: string, + parameters: QuotaUpdateParameters, + options?: QuotasUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/usages.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/usages.ts new file mode 100644 index 000000000000..219dcb3ef947 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/usages.ts @@ -0,0 +1,25 @@ +/* + * 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 { Usage, UsagesListOptionalParams } from "../models"; + +/// +/** Interface representing a Usages. */ +export interface Usages { + /** + * Gets the current usage information as well as limits for AML resources for given subscription and + * location. + * @param location The location for which resource usage is queried. + * @param options The options parameters. + */ + list( + location: string, + options?: UsagesListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/virtualMachineSizes.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/virtualMachineSizes.ts new file mode 100644 index 000000000000..5d9839525136 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/virtualMachineSizes.ts @@ -0,0 +1,25 @@ +/* + * 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 { + VirtualMachineSizesListOptionalParams, + VirtualMachineSizesListResponse +} from "../models"; + +/** Interface representing a VirtualMachineSizes. */ +export interface VirtualMachineSizes { + /** + * Returns supported VM Sizes in a location + * @param location The location upon which virtual-machine-sizes is queried. + * @param options The options parameters. + */ + list( + location: string, + options?: VirtualMachineSizesListOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceConnections.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceConnections.ts new file mode 100644 index 000000000000..6cb11a57215c --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceConnections.ts @@ -0,0 +1,75 @@ +/* + * 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 { + WorkspaceConnection, + WorkspaceConnectionsListOptionalParams, + WorkspaceConnectionsCreateOptionalParams, + WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsGetOptionalParams, + WorkspaceConnectionsGetResponse, + WorkspaceConnectionsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a WorkspaceConnections. */ +export interface WorkspaceConnections { + /** + * List all connections under a AML workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceConnectionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Add a new workspace connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param parameters The object for creating or updating a new workspace connection + * @param options The options parameters. + */ + create( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + parameters: WorkspaceConnection, + options?: WorkspaceConnectionsCreateOptionalParams + ): Promise; + /** + * Get the detail of a workspace connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsGetOptionalParams + ): Promise; + /** + * Delete a workspace connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param connectionName Friendly name of the workspace connection + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceFeatures.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceFeatures.ts new file mode 100644 index 000000000000..8b7697375224 --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceFeatures.ts @@ -0,0 +1,26 @@ +/* + * 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 { AmlUserFeature, WorkspaceFeaturesListOptionalParams } from "../models"; + +/// +/** Interface representing a WorkspaceFeatures. */ +export interface WorkspaceFeatures { + /** + * Lists all enabled features for a workspace + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceFeaturesListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceSkus.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceSkus.ts new file mode 100644 index 000000000000..b3ae73e7d86f --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaceSkus.ts @@ -0,0 +1,22 @@ +/* + * 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 { WorkspaceSku, WorkspaceSkusListOptionalParams } from "../models"; + +/// +/** Interface representing a WorkspaceSkus. */ +export interface WorkspaceSkus { + /** + * Lists all skus with associated features + * @param options The options parameters. + */ + list( + options?: WorkspaceSkusListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaces.ts b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaces.ts new file mode 100644 index 000000000000..54fedaabff8a --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/src/operationsInterfaces/workspaces.ts @@ -0,0 +1,271 @@ +/* + * 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 { + Workspace, + WorkspacesListByResourceGroupOptionalParams, + WorkspacesListBySubscriptionOptionalParams, + WorkspacesGetOptionalParams, + WorkspacesGetResponse, + WorkspacesCreateOrUpdateOptionalParams, + WorkspacesCreateOrUpdateResponse, + WorkspacesDeleteOptionalParams, + WorkspaceUpdateParameters, + WorkspacesUpdateOptionalParams, + WorkspacesUpdateResponse, + WorkspacesDiagnoseOptionalParams, + WorkspacesDiagnoseResponse, + WorkspacesListKeysOptionalParams, + WorkspacesListKeysResponse, + WorkspacesResyncKeysOptionalParams, + WorkspacesListNotebookAccessTokenOptionalParams, + WorkspacesListNotebookAccessTokenResponse, + WorkspacesPrepareNotebookOptionalParams, + WorkspacesPrepareNotebookResponse, + WorkspacesListStorageAccountKeysOptionalParams, + WorkspacesListStorageAccountKeysResponse, + WorkspacesListNotebookKeysOptionalParams, + WorkspacesListNotebookKeysResponse, + WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams, + WorkspacesListOutboundNetworkDependenciesEndpointsResponse +} from "../models"; + +/// +/** Interface representing a Workspaces. */ +export interface Workspaces { + /** + * Lists all the available machine learning workspaces under the specified resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * Lists all the available machine learning workspaces under the specified subscription. + * @param options The options parameters. + */ + listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets the properties of the specified machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesGetOptionalParams + ): Promise; + /** + * Creates or updates a workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param parameters The parameters for creating or updating a machine learning workspace. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + parameters: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesCreateOrUpdateResponse + > + >; + /** + * Creates or updates a workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param parameters The parameters for creating or updating a machine learning workspace. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + parameters: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise; + /** + * Deletes a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a machine learning workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDeleteOptionalParams + ): Promise; + /** + * Updates a machine learning workspace with the specified parameters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param parameters The parameters for updating a machine learning workspace. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + parameters: WorkspaceUpdateParameters, + options?: WorkspacesUpdateOptionalParams + ): Promise; + /** + * Diagnose workspace setup issue. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDiagnose( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDiagnoseOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesDiagnoseResponse + > + >; + /** + * Diagnose workspace setup issue. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginDiagnoseAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesDiagnoseOptionalParams + ): Promise; + /** + * Lists all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListKeysOptionalParams + ): Promise; + /** + * Resync all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginResyncKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesResyncKeysOptionalParams + ): Promise, void>>; + /** + * Resync all the keys associated with this workspace. This includes keys for the storage account, app + * insights and password for container registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginResyncKeysAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesResyncKeysOptionalParams + ): Promise; + /** + * return notebook access token and refresh token + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listNotebookAccessToken( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListNotebookAccessTokenOptionalParams + ): Promise; + /** + * Prepare a notebook. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginPrepareNotebook( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesPrepareNotebookOptionalParams + ): Promise< + PollerLike< + PollOperationState, + WorkspacesPrepareNotebookResponse + > + >; + /** + * Prepare a notebook. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + beginPrepareNotebookAndWait( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesPrepareNotebookOptionalParams + ): Promise; + /** + * List storage account keys of a workspace. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listStorageAccountKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListStorageAccountKeysOptionalParams + ): Promise; + /** + * List keys of a notebook. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listNotebookKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListNotebookKeysOptionalParams + ): Promise; + /** + * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) + * programmatically. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param options The options parameters. + */ + listOutboundNetworkDependenciesEndpoints( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams + ): Promise; +} diff --git a/sdk/machinelearningservices/arm-machinelearningservices/test/sampleTest.ts b/sdk/machinelearningservices/arm-machinelearningservices/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/machinelearningservices/arm-machinelearningservices/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/machinelearningservices/arm-machinelearningservices/tsconfig.json b/sdk/machinelearningservices/arm-machinelearningservices/tsconfig.json index 422b584abd5e..6e3251194117 100644 --- a/sdk/machinelearningservices/arm-machinelearningservices/tsconfig.json +++ b/sdk/machinelearningservices/arm-machinelearningservices/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,9 @@ "forceConsistentCasingInFileNames": true, "lib": ["es6", "dom"], "declaration": true, - "outDir": "./esm", + "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts"], + "include": ["./src/**/*.ts", "./test/**/*.ts"], "exclude": ["node_modules"] } diff --git a/sdk/machinelearningservices/ci.yml b/sdk/machinelearningservices/ci.yml new file mode 100644 index 000000000000..b17d7ff51bbc --- /dev/null +++ b/sdk/machinelearningservices/ci.yml @@ -0,0 +1,29 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. +trigger: + branches: + include: + - main + - release/* + - hotfix/* + paths: + include: + - sdk/machinelearningservices/ + +pr: + branches: + include: + - main + - release/* + - hotfix/* + paths: + include: + - sdk/machinelearningservices/ + +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ServiceDirectory: machinelearningservices + Artifacts: + - name: azure-arm-machinelearningservices + safeName: azurearmmachinelearningservices + \ No newline at end of file