From fe67ef13b9164ecb58e92ecf95a279d414860a4b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 15 Sep 2023 17:15:31 +0000 Subject: [PATCH] CodeGen from PR 25783 in Azure/azure-rest-api-specs Merge af94a88c21d1bffad796a4a445adee592aab5abc into d97207a38747c5174455721b93cd2b2c67200618 --- common/config/rush/pnpm-lock.yaml | 144 +- .../arm-machinelearning/CHANGELOG.md | 1053 +- .../arm-machinelearning/LICENSE | 2 +- .../arm-machinelearning/README.md | 26 +- .../arm-machinelearning/_meta.json | 8 +- .../arm-machinelearning/package.json | 35 +- .../review/arm-machinelearning.api.md | 7642 ++++-- ...ces.ts => azureMachineLearningServices.ts} | 158 +- .../arm-machinelearning/src/index.ts | 2 +- .../arm-machinelearning/src/lroImpl.ts | 54 +- .../arm-machinelearning/src/models/index.ts | 18955 +++++++++----- .../arm-machinelearning/src/models/mappers.ts | 21073 +++++++++++----- .../src/models/parameters.ts | 898 +- .../src/operations/batchDeployments.ts | 96 +- .../src/operations/batchEndpoints.ts | 93 +- .../src/operations/codeContainers.ts | 13 +- .../src/operations/codeVersions.ts | 84 +- .../src/operations/componentContainers.ts | 17 +- .../src/operations/componentVersions.ts | 30 +- .../src/operations/computeOperations.ts | 442 +- .../src/operations/dataContainers.ts | 17 +- .../src/operations/dataVersions.ts | 31 +- .../src/operations/datastores.ts | 22 +- .../src/operations/environmentContainers.ts | 17 +- .../src/operations/environmentVersions.ts | 30 +- .../src/operations/features.ts | 310 + .../src/operations/featuresetContainers.ts | 503 + .../src/operations/featuresetVersions.ts | 687 + .../featurestoreEntityContainers.ts | 504 + .../operations/featurestoreEntityVersions.ts | 544 + .../src/operations/index.ts | 33 +- .../src/operations/inferenceEndpoints.ts | 749 + .../src/operations/inferenceGroups.ts | 929 + .../src/operations/inferencePools.ts | 865 + .../src/operations/jobs.ts | 123 +- .../src/operations/labelingJobs.ts | 737 + .../operations/managedNetworkProvisions.ts | 163 + .../operations/managedNetworkSettingsRule.ts | 496 + .../src/operations/modelContainers.ts | 22 +- .../src/operations/modelVersions.ts | 190 +- .../src/operations/onlineDeployments.ts | 101 +- .../src/operations/onlineEndpoints.ts | 134 +- .../src/operations/operations.ts | 10 +- .../operations/privateEndpointConnections.ts | 90 +- .../src/operations/privateLinkResources.ts | 81 +- .../src/operations/quotas.ts | 13 +- .../src/operations/registries.ts | 758 + .../src/operations/registryCodeContainers.ts | 494 + .../src/operations/registryCodeVersions.ts | 596 + .../operations/registryComponentContainers.ts | 495 + .../operations/registryComponentVersions.ts | 552 + .../src/operations/registryDataContainers.ts | 498 + .../src/operations/registryDataVersions.ts | 586 + .../registryEnvironmentContainers.ts | 499 + .../operations/registryEnvironmentVersions.ts | 553 + .../src/operations/registryModelContainers.ts | 498 + .../src/operations/registryModelVersions.ts | 752 + .../src/operations/schedules.ts | 72 +- .../src/operations/serverlessEndpoints.ts | 813 + .../src/operations/usages.ts | 11 +- .../src/operations/virtualMachineSizes.ts | 6 +- .../src/operations/workspaceConnections.ts | 190 +- .../src/operations/workspaceFeatures.ts | 11 +- .../src/operations/workspaces.ts | 794 +- .../operationsInterfaces/batchDeployments.ts | 12 +- .../operationsInterfaces/batchEndpoints.ts | 12 +- .../src/operationsInterfaces/codeVersions.ts | 22 +- .../operationsInterfaces/computeOperations.ts | 108 +- .../src/operationsInterfaces/features.ts | 52 + .../featuresetContainers.ts | 109 + .../featuresetVersions.ts | 163 + .../featurestoreEntityContainers.ts | 109 + .../featurestoreEntityVersions.ts | 121 + .../src/operationsInterfaces/index.ts | 33 +- .../inferenceEndpoints.ts | 178 + .../operationsInterfaces/inferenceGroups.ts | 197 + .../operationsInterfaces/inferencePools.ts | 177 + .../src/operationsInterfaces/jobs.ts | 24 +- .../src/operationsInterfaces/labelingJobs.ts | 184 + .../managedNetworkProvisions.ts | 44 + .../managedNetworkSettingsRule.ts | 111 + .../src/operationsInterfaces/modelVersions.ts | 45 +- .../operationsInterfaces/onlineDeployments.ts | 12 +- .../operationsInterfaces/onlineEndpoints.ts | 16 +- .../src/operationsInterfaces/operations.ts | 2 +- .../privateEndpointConnections.ts | 44 +- .../privateLinkResources.ts | 15 +- .../src/operationsInterfaces/registries.ts | 154 + .../registryCodeContainers.ts | 109 + .../registryCodeVersions.ts | 141 + .../registryComponentContainers.ts | 109 + .../registryComponentVersions.ts | 121 + .../registryDataContainers.ts | 109 + .../registryDataVersions.ts | 141 + .../registryEnvironmentContainers.ts | 109 + .../registryEnvironmentVersions.ts | 121 + .../registryModelContainers.ts | 109 + .../registryModelVersions.ts | 183 + .../src/operationsInterfaces/schedules.ts | 8 +- .../serverlessEndpoints.ts | 200 + .../workspaceConnections.ts | 54 +- .../src/operationsInterfaces/workspaces.ts | 204 +- .../arm-machinelearning/src/pagingHelper.ts | 8 +- .../arm-machinelearning/tsconfig.json | 10 +- 104 files changed, 54566 insertions(+), 15518 deletions(-) rename sdk/machinelearning/arm-machinelearning/src/{azureMachineLearningWorkspaces.ts => azureMachineLearningServices.ts} (63%) create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/features.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/featuresetContainers.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/featuresetVersions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityContainers.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityVersions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/inferenceEndpoints.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/inferenceGroups.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/inferencePools.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/labelingJobs.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkProvisions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkSettingsRule.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/registries.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/registryCodeContainers.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/registryCodeVersions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/registryComponentContainers.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/registryComponentVersions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/registryDataContainers.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/registryDataVersions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentContainers.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentVersions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/registryModelContainers.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/registryModelVersions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operations/serverlessEndpoints.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/features.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetContainers.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetVersions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityContainers.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityVersions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/inferenceEndpoints.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/inferenceGroups.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/inferencePools.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/labelingJobs.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkProvisions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkSettingsRule.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registries.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeContainers.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeVersions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentContainers.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentVersions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataContainers.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataVersions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentContainers.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentVersions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelContainers.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelVersions.ts create mode 100644 sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/serverlessEndpoints.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 02c02922362f..9607f1491e90 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1903,6 +1903,18 @@ packages: resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} dev: false + /@isaacs/cliui@8.0.2: + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + dependencies: + string-width: 5.1.2 + string-width-cjs: /string-width@4.2.3 + strip-ansi: 7.1.0 + strip-ansi-cjs: /strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: /wrap-ansi@7.0.0 + dev: false + /@istanbuljs/load-nyc-config@1.1.0: resolution: {integrity: sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==} engines: {node: '>=8'} @@ -2327,6 +2339,13 @@ packages: '@opentelemetry/core': 1.17.0(@opentelemetry/api@1.6.0) dev: false + /@pkgjs/parseargs@0.11.0: + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + requiresBuild: true + dev: false + optional: true + /@protobufjs/aspromise@1.1.2: resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==} dev: false @@ -3392,6 +3411,11 @@ packages: engines: {node: '>=8'} dev: false + /ansi-regex@6.0.1: + resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} + engines: {node: '>=12'} + dev: false + /ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} @@ -3406,6 +3430,11 @@ packages: color-convert: 2.0.1 dev: false + /ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + dev: false + /anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} @@ -4428,7 +4457,11 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20230914 + typescript: 5.3.0-dev.20230915 + dev: false + + /eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} dev: false /ecdsa-sig-formatter@1.0.11: @@ -4457,6 +4490,10 @@ packages: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} dev: false + /emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + dev: false + /encodeurl@1.0.2: resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} engines: {node: '>= 0.8'} @@ -5204,6 +5241,14 @@ packages: signal-exit: 3.0.7 dev: false + /foreground-child@3.1.1: + resolution: {integrity: sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==} + engines: {node: '>=14'} + dependencies: + cross-spawn: 7.0.3 + signal-exit: 4.1.0 + dev: false + /form-data@4.0.0: resolution: {integrity: sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==} engines: {node: '>= 6'} @@ -5384,13 +5429,25 @@ packages: resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==} dev: false + /glob@10.3.4: + resolution: {integrity: sha512-6LFElP3A+i/Q8XQKEvZjkEWEOTgAIALR9AO2rwT8bgPhDd1anmqDJDZ6lLddI4ehxxxR1S5RIqKe1uapMQfYaQ==} + engines: {node: '>=16 || 14 >=14.17'} + hasBin: true + dependencies: + foreground-child: 3.1.1 + jackspeak: 2.3.3 + minimatch: 9.0.3 + minipass: 7.0.3 + path-scurry: 1.10.1 + dev: false + /glob@7.1.3: resolution: {integrity: sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==} dependencies: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.4 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: false @@ -6069,6 +6126,15 @@ packages: istanbul-lib-report: 3.0.1 dev: false + /jackspeak@2.3.3: + resolution: {integrity: sha512-R2bUw+kVZFS/h1AZqBKrSgDmdmjApzgY0AlCPumopFiAlbUxE2gf+SCuBzQ0cP5hHmUmFYF5yw55T97Th5Kstg==} + engines: {node: '>=14'} + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + dev: false + /jju@1.4.0: resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==} dev: false @@ -6594,6 +6660,11 @@ packages: get-func-name: 2.0.0 dev: false + /lru-cache@10.0.1: + resolution: {integrity: sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==} + engines: {node: 14 || >=16.14} + dev: false + /lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} dependencies: @@ -6836,6 +6907,13 @@ packages: brace-expansion: 2.0.1 dev: false + /minimatch@9.0.3: + resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + brace-expansion: 2.0.1 + dev: false + /minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} dev: false @@ -6845,6 +6923,11 @@ packages: engines: {node: '>=8'} dev: false + /minipass@7.0.3: + resolution: {integrity: sha512-LhbbwCfz3vsb12j/WkWQPZfKTsgqIe1Nf/ti1pKjYESGLHIVjWU96G9/ljLH4F9mWNVhlQOm0VySdAWzf05dpg==} + engines: {node: '>=16 || 14 >=14.17'} + dev: false + /mitt@3.0.0: resolution: {integrity: sha512-7dX2/10ITVyqh4aOSVI9gdape+t9l2/8QxHrFmUXu4EEUpdlxl6RudZUPZoc+zuY2hk1j7XxVroIVIan/pD/SQ==} dev: false @@ -7476,6 +7559,14 @@ packages: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} dev: false + /path-scurry@1.10.1: + resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + lru-cache: 10.0.1 + minipass: 7.0.3 + dev: false + /path-scurry@1.6.3: resolution: {integrity: sha512-RAmB+n30SlN+HnNx6EbcpoDy9nwdpcGPnEKrJnu6GZoDWBdIjo1UQMVtW2ybtC7LC2oKLcMq8y5g8WnKLiod9g==} engines: {node: '>=16 || 14 >=14.17'} @@ -8058,6 +8149,14 @@ packages: glob: 7.2.3 dev: false + /rimraf@5.0.1: + resolution: {integrity: sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg==} + engines: {node: '>=14'} + hasBin: true + dependencies: + glob: 10.3.4 + dev: false + /rollup-plugin-polyfill-node@0.12.0(rollup@2.79.1): resolution: {integrity: sha512-PWEVfDxLEKt8JX1nZ0NkUAgXpkZMTb85rO/Ru9AQ69wYW8VUCfDgP4CGRXXWYni5wDF0vIeR1UoF3Jmw/Lt3Ug==} peerDependencies: @@ -8310,6 +8409,11 @@ packages: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} dev: false + /signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + dev: false + /simple-concat@1.0.1: resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==} dev: false @@ -8503,6 +8607,15 @@ packages: strip-ansi: 6.0.1 dev: false + /string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.1.0 + dev: false + /string.prototype.padend@3.1.5: resolution: {integrity: sha512-DOB27b/2UTTD+4myKUFh+/fXWcu/UDyASIXfg+7VzoCNNGOfWvoyU/x5pvVHr++ztyt/oSYI1BcWBBG/hmlNjA==} engines: {node: '>= 0.4'} @@ -8574,6 +8687,13 @@ packages: ansi-regex: 5.0.1 dev: false + /strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + dependencies: + ansi-regex: 6.0.1 + dev: false + /strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} @@ -8980,8 +9100,8 @@ packages: hasBin: true dev: false - /typescript@5.3.0-dev.20230914: - resolution: {integrity: sha512-fLOsSwW/WYEdqhxDb4iaJ2IkPmxMM6di8p++ey3SlOTaK0sdczIYVl9tlCxkajWOp0UnvBfO6Bxe+g9xxZMypw==} + /typescript@5.3.0-dev.20230915: + resolution: {integrity: sha512-GQr8dkpN44ywddczAzV80zSPckUfqUbxmCi2SXJ0SvOMOk7TXMUrcptoHQm7HqFggTUS41AUEr+a8RmyPApw4Q==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -9255,6 +9375,15 @@ packages: strip-ansi: 6.0.1 dev: false + /wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.1.0 + dev: false + /wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} dev: false @@ -13716,7 +13845,7 @@ packages: dev: false file:projects/arm-machinelearning.tgz: - resolution: {integrity: sha512-Xx3JWFcuUoNn3AK9vUwtq92vfEdJPg3ABvtjFQFIwpoa+h/FRhb1EzSHMzFRBJkM0Ghj5kpusFbDXKuFeU3H3w==, tarball: file:projects/arm-machinelearning.tgz} + resolution: {integrity: sha512-EVH4dESegOK3l8PQ1saqUmfft8r9GbRELcF/yCtzoiyRQUWcGnzEcP83SkPVPN6e07d+FC8SNKsW/ZzDjtMr8g==, tarball: file:projects/arm-machinelearning.tgz} name: '@rush-temp/arm-machinelearning' version: 0.0.0 dependencies: @@ -13730,9 +13859,10 @@ packages: '@types/node': 14.18.59 chai: 4.3.8 cross-env: 7.0.3 - mkdirp: 1.0.4 + dotenv: 16.3.1 + mkdirp: 2.1.6 mocha: 7.2.0 - rimraf: 3.0.2 + rimraf: 5.0.1 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3(@types/node@14.18.59)(rollup@2.79.1) ts-node: 10.9.1(@types/node@14.18.59)(typescript@5.0.4) diff --git a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md index 1a059d33be9a..eb6ba0d49bbf 100644 --- a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md +++ b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md @@ -1,15 +1,1052 @@ # Release History + +## 3.0.0-beta.1 (2023-09-15) + +**Features** -## 2.1.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group Features + - Added operation group FeaturesetContainers + - Added operation group FeaturesetVersions + - Added operation group FeaturestoreEntityContainers + - Added operation group FeaturestoreEntityVersions + - Added operation group InferenceEndpoints + - Added operation group InferenceGroups + - Added operation group InferencePools + - Added operation group LabelingJobs + - Added operation group ManagedNetworkProvisions + - Added operation group ManagedNetworkSettingsRule + - Added operation group Registries + - Added operation group RegistryCodeContainers + - Added operation group RegistryCodeVersions + - Added operation group RegistryComponentContainers + - Added operation group RegistryComponentVersions + - Added operation group RegistryDataContainers + - Added operation group RegistryDataVersions + - Added operation group RegistryEnvironmentContainers + - Added operation group RegistryEnvironmentVersions + - Added operation group RegistryModelContainers + - Added operation group RegistryModelVersions + - Added operation group ServerlessEndpoints + - Added operation CodeVersions.createOrGetStartPendingUpload + - Added operation ComputeOperations.beginResize + - Added operation ComputeOperations.beginResizeAndWait + - Added operation ComputeOperations.getAllowedResizeSizes + - Added operation ComputeOperations.updateCustomServices + - Added operation ComputeOperations.updateIdleShutdownSetting + - Added operation Jobs.update + - Added operation ModelVersions.beginPackage + - Added operation ModelVersions.beginPackageAndWait + - Added operation WorkspaceConnections.listSecrets + - Added operation WorkspaceConnections.update + - Added Interface AccessKeyAuthTypeWorkspaceConnectionProperties + - Added Interface AcrDetails + - Added Interface ActualCapacityInfo + - Added Interface AllFeatures + - Added Interface AllNodes + - Added Interface AmlTokenComputeIdentity + - Added Interface ApiKeyAuthWorkspaceConnectionProperties + - Added Interface ArmResourceId + - Added Interface AutoDeleteSetting + - Added Interface AutologgerSettings + - Added Interface AzMonMonitoringAlertNotificationSettings + - Added Interface AzureDatastore + - Added Interface AzureDevOpsWebhook + - Added Interface AzureMachineLearningServicesOptionalParams + - Added Interface AzureMLBatchInferencingServer + - Added Interface AzureMLOnlineInferencingServer + - Added Interface BaseEnvironmentId + - Added Interface BaseEnvironmentSource + - Added Interface BatchDeploymentConfiguration + - Added Interface BatchPipelineComponentDeploymentConfiguration + - Added Interface BindOptions + - Added Interface BlobReferenceForConsumptionDto + - Added Interface CategoricalDataDriftMetricThreshold + - Added Interface CategoricalDataQualityMetricThreshold + - Added Interface CategoricalPredictionDriftMetricThreshold + - Added Interface ClassificationModelPerformanceMetricThreshold + - Added Interface CocoExportSummary + - Added Interface CodeVersionsCreateOrGetStartPendingUploadOptionalParams + - Added Interface Collection + - Added Interface ComponentConfiguration + - Added Interface ComputeGetAllowedResizeSizesOptionalParams + - Added Interface ComputeInstanceAutologgerSettings + - Added Interface ComputeResizeHeaders + - Added Interface ComputeResizeOptionalParams + - Added Interface ComputeRuntimeDto + - Added Interface ComputeUpdateCustomServicesOptionalParams + - Added Interface ComputeUpdateIdleShutdownSettingOptionalParams + - Added Interface CreateMonitorAction + - Added Interface Cron + - Added Interface CsvExportSummary + - Added Interface CustomInferencingServer + - Added Interface CustomKeys + - Added Interface CustomKeysWorkspaceConnectionProperties + - Added Interface CustomMetricThreshold + - Added Interface CustomMonitoringSignal + - Added Interface CustomService + - Added Interface DatabaseSource + - Added Interface DataCollector + - Added Interface DataDriftMetricThresholdBase + - Added Interface DataDriftMonitoringSignal + - Added Interface DataImport + - Added Interface DataImportSource + - Added Interface DataQualityMetricThresholdBase + - Added Interface DataQualityMonitoringSignal + - Added Interface DatasetExportSummary + - Added Interface Docker + - Added Interface EmailMonitoringAlertNotificationSettings + - Added Interface EncryptionKeyVaultUpdateProperties + - Added Interface EncryptionUpdateProperties + - Added Interface Endpoint + - Added Interface EnvironmentVariable + - Added Interface ExportSummary + - Added Interface Feature + - Added Interface FeatureAttributionDriftMonitoringSignal + - Added Interface FeatureAttributionMetricThreshold + - Added Interface FeatureProperties + - Added Interface FeatureResourceArmPaginatedResult + - Added Interface FeaturesetContainer + - Added Interface FeaturesetContainerProperties + - Added Interface FeaturesetContainerResourceArmPaginatedResult + - Added Interface FeaturesetContainersCreateOrUpdateHeaders + - Added Interface FeaturesetContainersCreateOrUpdateOptionalParams + - Added Interface FeaturesetContainersDeleteHeaders + - Added Interface FeaturesetContainersDeleteOptionalParams + - Added Interface FeaturesetContainersGetEntityOptionalParams + - Added Interface FeaturesetContainersListNextOptionalParams + - Added Interface FeaturesetContainersListOptionalParams + - Added Interface FeaturesetSpecification + - Added Interface FeaturesetVersion + - Added Interface FeaturesetVersionBackfillRequest + - Added Interface FeaturesetVersionBackfillResponse + - Added Interface FeaturesetVersionProperties + - Added Interface FeaturesetVersionResourceArmPaginatedResult + - Added Interface FeaturesetVersionsBackfillHeaders + - Added Interface FeaturesetVersionsBackfillOptionalParams + - Added Interface FeaturesetVersionsCreateOrUpdateHeaders + - Added Interface FeaturesetVersionsCreateOrUpdateOptionalParams + - Added Interface FeaturesetVersionsDeleteHeaders + - Added Interface FeaturesetVersionsDeleteOptionalParams + - Added Interface FeaturesetVersionsGetOptionalParams + - Added Interface FeaturesetVersionsListNextOptionalParams + - Added Interface FeaturesetVersionsListOptionalParams + - Added Interface FeaturesGetOptionalParams + - Added Interface FeaturesListNextOptionalParams + - Added Interface FeaturesListOptionalParams + - Added Interface FeaturestoreEntityContainer + - Added Interface FeaturestoreEntityContainerProperties + - Added Interface FeaturestoreEntityContainerResourceArmPaginatedResult + - Added Interface FeaturestoreEntityContainersCreateOrUpdateHeaders + - Added Interface FeaturestoreEntityContainersCreateOrUpdateOptionalParams + - Added Interface FeaturestoreEntityContainersDeleteHeaders + - Added Interface FeaturestoreEntityContainersDeleteOptionalParams + - Added Interface FeaturestoreEntityContainersGetEntityOptionalParams + - Added Interface FeaturestoreEntityContainersListNextOptionalParams + - Added Interface FeaturestoreEntityContainersListOptionalParams + - Added Interface FeaturestoreEntityVersion + - Added Interface FeaturestoreEntityVersionProperties + - Added Interface FeaturestoreEntityVersionResourceArmPaginatedResult + - Added Interface FeaturestoreEntityVersionsCreateOrUpdateHeaders + - Added Interface FeaturestoreEntityVersionsCreateOrUpdateOptionalParams + - Added Interface FeaturestoreEntityVersionsDeleteHeaders + - Added Interface FeaturestoreEntityVersionsDeleteOptionalParams + - Added Interface FeaturestoreEntityVersionsGetOptionalParams + - Added Interface FeaturestoreEntityVersionsListNextOptionalParams + - Added Interface FeaturestoreEntityVersionsListOptionalParams + - Added Interface FeatureStoreSettings + - Added Interface FeatureSubset + - Added Interface FeatureWindow + - Added Interface FileSystemSource + - Added Interface FixedInputData + - Added Interface FqdnEndpointsPropertyBag + - Added Interface FqdnOutboundRule + - Added Interface GenerationSafetyQualityMetricThreshold + - Added Interface GenerationSafetyQualityMonitoringSignal + - Added Interface GenerationTokenStatisticsMetricThreshold + - Added Interface GenerationTokenStatisticsSignal + - Added Interface GroupStatus + - Added Interface HdfsDatastore + - Added Interface IdleShutdownSetting + - Added Interface Image_2 + - Added Interface ImageMetadata + - Added Interface ImportDataAction + - Added Interface IndexColumn + - Added Interface InferenceEndpoint + - Added Interface InferenceEndpointMinimalTrackedResource + - Added Interface InferenceEndpointMinimalTrackedResourceArmPaginatedResult + - Added Interface InferenceEndpointsCreateOrUpdateHeaders + - Added Interface InferenceEndpointsCreateOrUpdateOptionalParams + - Added Interface InferenceEndpointsDeleteHeaders + - Added Interface InferenceEndpointsDeleteOptionalParams + - Added Interface InferenceEndpointsGetOptionalParams + - Added Interface InferenceEndpointsListNextOptionalParams + - Added Interface InferenceEndpointsListOptionalParams + - Added Interface InferenceEndpointsUpdateHeaders + - Added Interface InferenceEndpointsUpdateOptionalParams + - Added Interface InferenceGroup + - Added Interface InferenceGroupMinimalTrackedResourceWithSku + - Added Interface InferenceGroupMinimalTrackedResourceWithSkuArmPaginatedResult + - Added Interface InferenceGroupsCreateOrUpdateHeaders + - Added Interface InferenceGroupsCreateOrUpdateOptionalParams + - Added Interface InferenceGroupsDeleteHeaders + - Added Interface InferenceGroupsDeleteOptionalParams + - Added Interface InferenceGroupsGetOptionalParams + - Added Interface InferenceGroupsGetStatusOptionalParams + - Added Interface InferenceGroupsListNextOptionalParams + - Added Interface InferenceGroupsListOptionalParams + - Added Interface InferenceGroupsListSkusNextOptionalParams + - Added Interface InferenceGroupsListSkusOptionalParams + - Added Interface InferenceGroupsUpdateHeaders + - Added Interface InferenceGroupsUpdateOptionalParams + - Added Interface InferencePool + - Added Interface InferencePoolProperties + - Added Interface InferencePoolsCreateOrUpdateHeaders + - Added Interface InferencePoolsCreateOrUpdateOptionalParams + - Added Interface InferencePoolsDeleteHeaders + - Added Interface InferencePoolsDeleteOptionalParams + - Added Interface InferencePoolsGetOptionalParams + - Added Interface InferencePoolsGetStatusOptionalParams + - Added Interface InferencePoolsListNextOptionalParams + - Added Interface InferencePoolsListOptionalParams + - Added Interface InferencePoolsListSkusNextOptionalParams + - Added Interface InferencePoolsListSkusOptionalParams + - Added Interface InferencePoolsUpdateHeaders + - Added Interface InferencePoolsUpdateOptionalParams + - Added Interface InferencePoolTrackedResourceArmPaginatedResult + - Added Interface InferencingServer + - Added Interface IntellectualProperty + - Added Interface JobsUpdateOptionalParams + - Added Interface KerberosCredentials + - Added Interface KerberosKeytabCredentials + - Added Interface KerberosKeytabSecrets + - Added Interface KerberosPasswordCredentials + - Added Interface KerberosPasswordSecrets + - Added Interface KeyVaultProperties + - Added Interface LabelCategory + - Added Interface LabelClass + - Added Interface LabelingDataConfiguration + - Added Interface LabelingJob + - Added Interface LabelingJobImageProperties + - Added Interface LabelingJobInstructions + - Added Interface LabelingJobMediaProperties + - Added Interface LabelingJobProperties + - Added Interface LabelingJobResourceArmPaginatedResult + - Added Interface LabelingJobsCreateOrUpdateHeaders + - Added Interface LabelingJobsCreateOrUpdateOptionalParams + - Added Interface LabelingJobsDeleteOptionalParams + - Added Interface LabelingJobsExportLabelsHeaders + - Added Interface LabelingJobsExportLabelsOptionalParams + - Added Interface LabelingJobsGetOptionalParams + - Added Interface LabelingJobsListNextOptionalParams + - Added Interface LabelingJobsListOptionalParams + - Added Interface LabelingJobsPauseOptionalParams + - Added Interface LabelingJobsResumeHeaders + - Added Interface LabelingJobsResumeOptionalParams + - Added Interface LabelingJobTextProperties + - Added Interface LakeHouseArtifact + - Added Interface ManagedComputeIdentity + - Added Interface ManagedNetworkProvisionOptions + - Added Interface ManagedNetworkProvisionsProvisionManagedNetworkHeaders + - Added Interface ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + - Added Interface ManagedNetworkProvisionStatus + - Added Interface ManagedNetworkSettings + - Added Interface ManagedNetworkSettingsRuleCreateOrUpdateHeaders + - Added Interface ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + - Added Interface ManagedNetworkSettingsRuleDeleteHeaders + - Added Interface ManagedNetworkSettingsRuleDeleteOptionalParams + - Added Interface ManagedNetworkSettingsRuleGetOptionalParams + - Added Interface ManagedNetworkSettingsRuleListNextOptionalParams + - Added Interface ManagedNetworkSettingsRuleListOptionalParams + - Added Interface MaterializationComputeResource + - Added Interface MaterializationSettings + - Added Interface MLAssistConfiguration + - Added Interface MLAssistConfigurationDisabled + - Added Interface MLAssistConfigurationEnabled + - Added Interface ModelConfiguration + - Added Interface ModelPackageInput + - Added Interface ModelPerformanceMetricThresholdBase + - Added Interface ModelPerformanceSignal + - Added Interface ModelProfile + - Added Interface ModelVersionsPackageHeaders + - Added Interface ModelVersionsPackageOptionalParams + - Added Interface MonitorComputeConfigurationBase + - Added Interface MonitorComputeIdentityBase + - Added Interface MonitorDefinition + - Added Interface MonitoringAlertNotificationSettingsBase + - Added Interface MonitoringDataSegment + - Added Interface MonitoringFeatureFilterBase + - Added Interface MonitoringInputDataBase + - Added Interface MonitoringSignalBase + - Added Interface MonitoringTarget + - Added Interface MonitoringThreshold + - Added Interface MonitoringWorkspaceConnection + - Added Interface MonitorServerlessSparkCompute + - Added Interface NlpFixedParameters + - Added Interface NlpParameterSubspace + - Added Interface NlpSweepSettings + - Added Interface Nodes + - Added Interface NotificationSetting + - Added Interface NumericalDataDriftMetricThreshold + - Added Interface NumericalDataQualityMetricThreshold + - Added Interface NumericalPredictionDriftMetricThreshold + - Added Interface OneLakeArtifact + - Added Interface OneLakeDatastore + - Added Interface OnlineInferenceConfiguration + - Added Interface OperationDisplay + - Added Interface OsPatchingStatus + - Added Interface OutboundRule + - Added Interface OutboundRuleBasicResource + - Added Interface OutboundRuleListResult + - Added Interface PackageInputPathBase + - Added Interface PackageInputPathId + - Added Interface PackageInputPathUrl + - Added Interface PackageInputPathVersion + - Added Interface PackageRequest + - Added Interface PackageResponse + - Added Interface PartialJobBase + - Added Interface PartialJobBasePartialResource + - Added Interface PartialMinimalTrackedResourceWithSkuAndIdentity + - Added Interface PartialNotificationSetting + - Added Interface PartialRegistryPartialTrackedResource + - Added Interface PendingUploadCredentialDto + - Added Interface PendingUploadRequestDto + - Added Interface PendingUploadResponseDto + - Added Interface PoolEnvironmentConfiguration + - Added Interface PoolModelConfiguration + - Added Interface PoolStatus + - Added Interface PredictionDriftMetricThresholdBase + - Added Interface PredictionDriftMonitoringSignal + - Added Interface PrivateEndpointDestination + - Added Interface PrivateEndpointOutboundRule + - Added Interface PrivateEndpointResource + - Added Interface ProgressMetrics + - Added Interface PropertiesBase + - Added Interface QueueSettings + - Added Interface Ray + - Added Interface Recurrence + - Added Interface RegistriesCreateOrUpdateOptionalParams + - Added Interface RegistriesDeleteHeaders + - Added Interface RegistriesDeleteOptionalParams + - Added Interface RegistriesGetOptionalParams + - Added Interface RegistriesListBySubscriptionNextOptionalParams + - Added Interface RegistriesListBySubscriptionOptionalParams + - Added Interface RegistriesListNextOptionalParams + - Added Interface RegistriesListOptionalParams + - Added Interface RegistriesRemoveRegionsHeaders + - Added Interface RegistriesRemoveRegionsOptionalParams + - Added Interface RegistriesUpdateOptionalParams + - Added Interface Registry + - Added Interface RegistryCodeContainersCreateOrUpdateHeaders + - Added Interface RegistryCodeContainersCreateOrUpdateOptionalParams + - Added Interface RegistryCodeContainersDeleteHeaders + - Added Interface RegistryCodeContainersDeleteOptionalParams + - Added Interface RegistryCodeContainersGetOptionalParams + - Added Interface RegistryCodeContainersListNextOptionalParams + - Added Interface RegistryCodeContainersListOptionalParams + - Added Interface RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams + - Added Interface RegistryCodeVersionsCreateOrUpdateHeaders + - Added Interface RegistryCodeVersionsCreateOrUpdateOptionalParams + - Added Interface RegistryCodeVersionsDeleteHeaders + - Added Interface RegistryCodeVersionsDeleteOptionalParams + - Added Interface RegistryCodeVersionsGetOptionalParams + - Added Interface RegistryCodeVersionsListNextOptionalParams + - Added Interface RegistryCodeVersionsListOptionalParams + - Added Interface RegistryComponentContainersCreateOrUpdateHeaders + - Added Interface RegistryComponentContainersCreateOrUpdateOptionalParams + - Added Interface RegistryComponentContainersDeleteHeaders + - Added Interface RegistryComponentContainersDeleteOptionalParams + - Added Interface RegistryComponentContainersGetOptionalParams + - Added Interface RegistryComponentContainersListNextOptionalParams + - Added Interface RegistryComponentContainersListOptionalParams + - Added Interface RegistryComponentVersionsCreateOrUpdateHeaders + - Added Interface RegistryComponentVersionsCreateOrUpdateOptionalParams + - Added Interface RegistryComponentVersionsDeleteHeaders + - Added Interface RegistryComponentVersionsDeleteOptionalParams + - Added Interface RegistryComponentVersionsGetOptionalParams + - Added Interface RegistryComponentVersionsListNextOptionalParams + - Added Interface RegistryComponentVersionsListOptionalParams + - Added Interface RegistryDataContainersCreateOrUpdateHeaders + - Added Interface RegistryDataContainersCreateOrUpdateOptionalParams + - Added Interface RegistryDataContainersDeleteHeaders + - Added Interface RegistryDataContainersDeleteOptionalParams + - Added Interface RegistryDataContainersGetOptionalParams + - Added Interface RegistryDataContainersListNextOptionalParams + - Added Interface RegistryDataContainersListOptionalParams + - Added Interface RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams + - Added Interface RegistryDataVersionsCreateOrUpdateHeaders + - Added Interface RegistryDataVersionsCreateOrUpdateOptionalParams + - Added Interface RegistryDataVersionsDeleteHeaders + - Added Interface RegistryDataVersionsDeleteOptionalParams + - Added Interface RegistryDataVersionsGetOptionalParams + - Added Interface RegistryDataVersionsListNextOptionalParams + - Added Interface RegistryDataVersionsListOptionalParams + - Added Interface RegistryEnvironmentContainersCreateOrUpdateHeaders + - Added Interface RegistryEnvironmentContainersCreateOrUpdateOptionalParams + - Added Interface RegistryEnvironmentContainersDeleteHeaders + - Added Interface RegistryEnvironmentContainersDeleteOptionalParams + - Added Interface RegistryEnvironmentContainersGetOptionalParams + - Added Interface RegistryEnvironmentContainersListNextOptionalParams + - Added Interface RegistryEnvironmentContainersListOptionalParams + - Added Interface RegistryEnvironmentVersionsCreateOrUpdateHeaders + - Added Interface RegistryEnvironmentVersionsCreateOrUpdateOptionalParams + - Added Interface RegistryEnvironmentVersionsDeleteHeaders + - Added Interface RegistryEnvironmentVersionsDeleteOptionalParams + - Added Interface RegistryEnvironmentVersionsGetOptionalParams + - Added Interface RegistryEnvironmentVersionsListNextOptionalParams + - Added Interface RegistryEnvironmentVersionsListOptionalParams + - Added Interface RegistryModelContainersCreateOrUpdateHeaders + - Added Interface RegistryModelContainersCreateOrUpdateOptionalParams + - Added Interface RegistryModelContainersDeleteHeaders + - Added Interface RegistryModelContainersDeleteOptionalParams + - Added Interface RegistryModelContainersGetOptionalParams + - Added Interface RegistryModelContainersListNextOptionalParams + - Added Interface RegistryModelContainersListOptionalParams + - Added Interface RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams + - Added Interface RegistryModelVersionsCreateOrUpdateHeaders + - Added Interface RegistryModelVersionsCreateOrUpdateOptionalParams + - Added Interface RegistryModelVersionsDeleteHeaders + - Added Interface RegistryModelVersionsDeleteOptionalParams + - Added Interface RegistryModelVersionsGetOptionalParams + - Added Interface RegistryModelVersionsListNextOptionalParams + - Added Interface RegistryModelVersionsListOptionalParams + - Added Interface RegistryModelVersionsPackageHeaders + - Added Interface RegistryModelVersionsPackageOptionalParams + - Added Interface RegistryPartialManagedServiceIdentity + - Added Interface RegistryPrivateEndpointConnection + - Added Interface RegistryPrivateLinkServiceConnectionState + - Added Interface RegistryRegionArmDetails + - Added Interface RegistryTrackedResourceArmPaginatedResult + - Added Interface RegressionModelPerformanceMetricThreshold + - Added Interface RequestConfiguration + - Added Interface RequestLogging + - Added Interface ResizeSchema + - Added Interface SASCredentialDto + - Added Interface SecretConfiguration + - Added Interface ServerlessEndpoint + - Added Interface ServerlessEndpointProperties + - Added Interface ServerlessEndpointsCreateOrUpdateHeaders + - Added Interface ServerlessEndpointsCreateOrUpdateOptionalParams + - Added Interface ServerlessEndpointsDeleteHeaders + - Added Interface ServerlessEndpointsDeleteOptionalParams + - Added Interface ServerlessEndpointsGetOptionalParams + - Added Interface ServerlessEndpointsListKeysOptionalParams + - Added Interface ServerlessEndpointsListNextOptionalParams + - Added Interface ServerlessEndpointsListOptionalParams + - Added Interface ServerlessEndpointsRegenerateKeysHeaders + - Added Interface ServerlessEndpointsRegenerateKeysOptionalParams + - Added Interface ServerlessEndpointsUpdateHeaders + - Added Interface ServerlessEndpointsUpdateOptionalParams + - Added Interface ServerlessEndpointTrackedResourceArmPaginatedResult + - Added Interface ServicePrincipalAuthTypeWorkspaceConnectionProperties + - Added Interface ServiceTagDestination + - Added Interface ServiceTagOutboundRule + - Added Interface SparkJob + - Added Interface SparkJobEntry + - Added Interface SparkJobPythonEntry + - Added Interface SparkJobScalaEntry + - Added Interface SparkResourceConfiguration + - Added Interface StaticInputData + - Added Interface StatusMessage + - Added Interface StorageAccountDetails + - Added Interface SystemCreatedAcrAccount + - Added Interface SystemCreatedStorageAccount + - Added Interface TableFixedParameters + - Added Interface TableParameterSubspace + - Added Interface TableSweepSettings + - Added Interface TmpfsOptions + - Added Interface TopNFeaturesByAttribution + - Added Interface TrailingInputData + - Added Interface TritonInferencingServer + - Added Interface UserCreatedAcrAccount + - Added Interface UserCreatedStorageAccount + - Added Interface VolumeDefinition + - Added Interface VolumeOptions + - Added Interface Webhook + - Added Interface WorkspaceConnectionAccessKey + - Added Interface WorkspaceConnectionApiKey + - Added Interface WorkspaceConnectionServicePrincipal + - Added Interface WorkspaceConnectionsListSecretsOptionalParams + - Added Interface WorkspaceConnectionsUpdateOptionalParams + - Added Interface WorkspaceConnectionUpdateParameter + - Added Interface WorkspaceHubConfig + - Added Interface WorkspacePrivateEndpointResource + - Added Interface WorkspacesCreateOrUpdateHeaders + - Added Interface WorkspacesPrepareNotebookHeaders + - Added Interface WorkspacesResyncKeysHeaders + - Added Class AzureMachineLearningServices + - Added Type Alias AssetProvisioningState + - Added Type Alias AuthMode + - Added Type Alias AutoDeleteCondition + - Added Type Alias BaseEnvironmentSourceType + - Added Type Alias BaseEnvironmentSourceUnion + - Added Type Alias BatchDeploymentConfigurationType + - Added Type Alias BatchDeploymentConfigurationUnion + - Added Type Alias CategoricalDataDriftMetric + - Added Type Alias CategoricalDataQualityMetric + - Added Type Alias CategoricalPredictionDriftMetric + - Added Type Alias ClassificationModelPerformanceMetric + - Added Type Alias CodeVersionsCreateOrGetStartPendingUploadResponse + - Added Type Alias ComputeGetAllowedResizeSizesResponse + - Added Type Alias ComputeResizeResponse + - Added Type Alias DataAvailabilityStatus + - Added Type Alias DataCollectionMode + - Added Type Alias DataDriftMetricThresholdBaseUnion + - Added Type Alias DataImportSourceType + - Added Type Alias DataImportSourceUnion + - Added Type Alias DataQualityMetricThresholdBaseUnion + - Added Type Alias EmailNotificationEnableType + - Added Type Alias EndpointServiceConnectionStatus + - Added Type Alias EnvironmentVariableType + - Added Type Alias ExportFormatType + - Added Type Alias ExportSummaryUnion + - Added Type Alias FeatureAttributionMetric + - Added Type Alias FeatureDataType + - Added Type Alias FeaturesetContainersCreateOrUpdateResponse + - Added Type Alias FeaturesetContainersGetEntityResponse + - Added Type Alias FeaturesetContainersListNextResponse + - Added Type Alias FeaturesetContainersListResponse + - Added Type Alias FeaturesetVersionsBackfillResponse + - Added Type Alias FeaturesetVersionsCreateOrUpdateResponse + - Added Type Alias FeaturesetVersionsGetResponse + - Added Type Alias FeaturesetVersionsListNextResponse + - Added Type Alias FeaturesetVersionsListResponse + - Added Type Alias FeaturesGetResponse + - Added Type Alias FeaturesListNextResponse + - Added Type Alias FeaturesListResponse + - Added Type Alias FeaturestoreEntityContainersCreateOrUpdateResponse + - Added Type Alias FeaturestoreEntityContainersGetEntityResponse + - Added Type Alias FeaturestoreEntityContainersListNextResponse + - Added Type Alias FeaturestoreEntityContainersListResponse + - Added Type Alias FeaturestoreEntityVersionsCreateOrUpdateResponse + - Added Type Alias FeaturestoreEntityVersionsGetResponse + - Added Type Alias FeaturestoreEntityVersionsListNextResponse + - Added Type Alias FeaturestoreEntityVersionsListResponse + - Added Type Alias GenerationSafetyQualityMetric + - Added Type Alias GenerationTokenStatisticsMetric + - Added Type Alias ImageAnnotationType + - Added Type Alias ImageType + - Added Type Alias IncrementalDataRefresh + - Added Type Alias InferenceEndpointsCreateOrUpdateResponse + - Added Type Alias InferenceEndpointsGetResponse + - Added Type Alias InferenceEndpointsListNextResponse + - Added Type Alias InferenceEndpointsListResponse + - Added Type Alias InferenceEndpointsUpdateResponse + - Added Type Alias InferenceGroupsCreateOrUpdateResponse + - Added Type Alias InferenceGroupsGetResponse + - Added Type Alias InferenceGroupsGetStatusResponse + - Added Type Alias InferenceGroupsListNextResponse + - Added Type Alias InferenceGroupsListResponse + - Added Type Alias InferenceGroupsListSkusNextResponse + - Added Type Alias InferenceGroupsListSkusResponse + - Added Type Alias InferenceGroupsUpdateResponse + - Added Type Alias InferencePoolsCreateOrUpdateResponse + - Added Type Alias InferencePoolsGetResponse + - Added Type Alias InferencePoolsGetStatusResponse + - Added Type Alias InferencePoolsListNextResponse + - Added Type Alias InferencePoolsListResponse + - Added Type Alias InferencePoolsListSkusNextResponse + - Added Type Alias InferencePoolsListSkusResponse + - Added Type Alias InferencePoolsUpdateResponse + - Added Type Alias InferencingServerType + - Added Type Alias InferencingServerUnion + - Added Type Alias InputPathType + - Added Type Alias IsolationMode + - Added Type Alias JobProvisioningState + - Added Type Alias JobsUpdateResponse + - Added Type Alias JobTier + - Added Type Alias LabelingJobMediaPropertiesUnion + - Added Type Alias LabelingJobsCreateOrUpdateResponse + - Added Type Alias LabelingJobsExportLabelsResponse + - Added Type Alias LabelingJobsGetResponse + - Added Type Alias LabelingJobsListNextResponse + - Added Type Alias LabelingJobsListResponse + - Added Type Alias LabelingJobsPauseResponse + - Added Type Alias LabelingJobsResumeResponse + - Added Type Alias LogTrainingMetrics + - Added Type Alias LogValidationLoss + - Added Type Alias ManagedNetworkProvisionsProvisionManagedNetworkResponse + - Added Type Alias ManagedNetworkSettingsRuleCreateOrUpdateResponse + - Added Type Alias ManagedNetworkSettingsRuleGetResponse + - Added Type Alias ManagedNetworkSettingsRuleListNextResponse + - Added Type Alias ManagedNetworkSettingsRuleListResponse + - Added Type Alias ManagedNetworkStatus + - Added Type Alias MaterializationStoreType + - Added Type Alias MediaType + - Added Type Alias MLAssistConfigurationType + - Added Type Alias MLAssistConfigurationUnion + - Added Type Alias MlflowAutologger + - Added Type Alias MLFlowAutologgerState + - Added Type Alias ModelPerformanceMetricThresholdBaseUnion + - Added Type Alias ModelTaskType + - Added Type Alias ModelVersionsPackageResponse + - Added Type Alias MonitorComputeConfigurationBaseUnion + - Added Type Alias MonitorComputeIdentityBaseUnion + - Added Type Alias MonitorComputeIdentityType + - Added Type Alias MonitorComputeType + - Added Type Alias MonitoringAlertNotificationSettingsBaseUnion + - Added Type Alias MonitoringAlertNotificationType + - Added Type Alias MonitoringFeatureDataType + - Added Type Alias MonitoringFeatureFilterBaseUnion + - Added Type Alias MonitoringFeatureFilterType + - Added Type Alias MonitoringInputDataBaseUnion + - Added Type Alias MonitoringInputDataType + - Added Type Alias MonitoringModelType + - Added Type Alias MonitoringNotificationMode + - Added Type Alias MonitoringSignalBaseUnion + - Added Type Alias MonitoringSignalType + - Added Type Alias MultiSelect + - Added Type Alias NlpLearningRateScheduler + - Added Type Alias NodesUnion + - Added Type Alias NodesValueType + - Added Type Alias NumericalDataDriftMetric + - Added Type Alias NumericalDataQualityMetric + - Added Type Alias NumericalPredictionDriftMetric + - Added Type Alias OneLakeArtifactType + - Added Type Alias OneLakeArtifactUnion + - Added Type Alias OutboundRuleUnion + - Added Type Alias PackageBuildState + - Added Type Alias PackageInputDeliveryMode + - Added Type Alias PackageInputPathBaseUnion + - Added Type Alias PackageInputType + - Added Type Alias PatchStatus + - Added Type Alias PendingUploadCredentialDtoUnion + - Added Type Alias PendingUploadCredentialType + - Added Type Alias PendingUploadType + - Added Type Alias PoolProvisioningState + - Added Type Alias PredictionDriftMetricThresholdBaseUnion + - Added Type Alias ProtectionLevel + - Added Type Alias Protocol + - Added Type Alias RegistriesCreateOrUpdateResponse + - Added Type Alias RegistriesGetResponse + - Added Type Alias RegistriesListBySubscriptionNextResponse + - Added Type Alias RegistriesListBySubscriptionResponse + - Added Type Alias RegistriesListNextResponse + - Added Type Alias RegistriesListResponse + - Added Type Alias RegistriesRemoveRegionsResponse + - Added Type Alias RegistriesUpdateResponse + - Added Type Alias RegistryCodeContainersCreateOrUpdateResponse + - Added Type Alias RegistryCodeContainersGetResponse + - Added Type Alias RegistryCodeContainersListNextResponse + - Added Type Alias RegistryCodeContainersListResponse + - Added Type Alias RegistryCodeVersionsCreateOrGetStartPendingUploadResponse + - Added Type Alias RegistryCodeVersionsCreateOrUpdateResponse + - Added Type Alias RegistryCodeVersionsGetResponse + - Added Type Alias RegistryCodeVersionsListNextResponse + - Added Type Alias RegistryCodeVersionsListResponse + - Added Type Alias RegistryComponentContainersCreateOrUpdateResponse + - Added Type Alias RegistryComponentContainersGetResponse + - Added Type Alias RegistryComponentContainersListNextResponse + - Added Type Alias RegistryComponentContainersListResponse + - Added Type Alias RegistryComponentVersionsCreateOrUpdateResponse + - Added Type Alias RegistryComponentVersionsGetResponse + - Added Type Alias RegistryComponentVersionsListNextResponse + - Added Type Alias RegistryComponentVersionsListResponse + - Added Type Alias RegistryDataContainersCreateOrUpdateResponse + - Added Type Alias RegistryDataContainersGetResponse + - Added Type Alias RegistryDataContainersListNextResponse + - Added Type Alias RegistryDataContainersListResponse + - Added Type Alias RegistryDataVersionsCreateOrGetStartPendingUploadResponse + - Added Type Alias RegistryDataVersionsCreateOrUpdateResponse + - Added Type Alias RegistryDataVersionsGetResponse + - Added Type Alias RegistryDataVersionsListNextResponse + - Added Type Alias RegistryDataVersionsListResponse + - Added Type Alias RegistryEnvironmentContainersCreateOrUpdateResponse + - Added Type Alias RegistryEnvironmentContainersGetResponse + - Added Type Alias RegistryEnvironmentContainersListNextResponse + - Added Type Alias RegistryEnvironmentContainersListResponse + - Added Type Alias RegistryEnvironmentVersionsCreateOrUpdateResponse + - Added Type Alias RegistryEnvironmentVersionsGetResponse + - Added Type Alias RegistryEnvironmentVersionsListNextResponse + - Added Type Alias RegistryEnvironmentVersionsListResponse + - Added Type Alias RegistryModelContainersCreateOrUpdateResponse + - Added Type Alias RegistryModelContainersGetResponse + - Added Type Alias RegistryModelContainersListNextResponse + - Added Type Alias RegistryModelContainersListResponse + - Added Type Alias RegistryModelVersionsCreateOrGetStartPendingUploadResponse + - Added Type Alias RegistryModelVersionsCreateOrUpdateResponse + - Added Type Alias RegistryModelVersionsGetResponse + - Added Type Alias RegistryModelVersionsListNextResponse + - Added Type Alias RegistryModelVersionsListResponse + - Added Type Alias RegistryModelVersionsPackageResponse + - Added Type Alias RegressionModelPerformanceMetric + - Added Type Alias RollingRateType + - Added Type Alias RuleAction + - Added Type Alias RuleCategory + - Added Type Alias RuleStatus + - Added Type Alias RuleType + - Added Type Alias ServerlessEndpointsCreateOrUpdateResponse + - Added Type Alias ServerlessEndpointsGetResponse + - Added Type Alias ServerlessEndpointsListKeysResponse + - Added Type Alias ServerlessEndpointsListNextResponse + - Added Type Alias ServerlessEndpointsListResponse + - Added Type Alias ServerlessEndpointsRegenerateKeysResponse + - Added Type Alias ServerlessEndpointsUpdateResponse + - Added Type Alias SparkJobEntryType + - Added Type Alias SparkJobEntryUnion + - Added Type Alias StatusMessageLevel + - Added Type Alias TextAnnotationType + - Added Type Alias TrainingMode + - Added Type Alias VolumeDefinitionType + - Added Type Alias WebhookType + - Added Type Alias WebhookUnion + - Added Type Alias WorkspaceConnectionsListSecretsResponse + - Added Type Alias WorkspaceConnectionsUpdateResponse + - Interface AmlOperation has a new optional parameter origin + - Interface AssetBase has a new optional parameter autoDeleteSetting + - Interface AssetJobOutput has a new optional parameter assetName + - Interface AssetJobOutput has a new optional parameter assetVersion + - Interface AssetJobOutput has a new optional parameter autoDeleteSetting + - Interface AutoMLJob has a new optional parameter queueSettings + - Interface BatchDeploymentProperties has a new optional parameter deploymentConfiguration + - Interface CodeContainerProperties has a new optional parameter provisioningState + - Interface CodeVersionProperties has a new optional parameter provisioningState + - Interface CodeVersionsListOptionalParams has a new optional parameter hash + - Interface CodeVersionsListOptionalParams has a new optional parameter hashVersion + - Interface CommandJob has a new optional parameter autologgerSettings + - Interface CommandJob has a new optional parameter queueSettings + - Interface ComponentContainerProperties has a new optional parameter provisioningState + - Interface ComponentVersionProperties has a new optional parameter provisioningState + - Interface ComponentVersionProperties has a new optional parameter stage + - Interface ComponentVersionsListOptionalParams has a new optional parameter stage + - Interface ComputeInstanceProperties has a new optional parameter autologgerSettings + - Interface ComputeInstanceProperties has a new optional parameter customServices + - Interface ComputeInstanceProperties has a new optional parameter enableOSPatching + - Interface ComputeInstanceProperties has a new optional parameter idleTimeBeforeShutdown + - Interface ComputeInstanceProperties has a new optional parameter osImageMetadata + - Interface ComputeInstanceProperties has a new optional parameter releaseQuotaOnStop + - Interface DatastoreProperties has a new optional parameter intellectualProperty + - Interface DataVersionBaseProperties has a new optional parameter intellectualProperty + - Interface DataVersionBaseProperties has a new optional parameter stage + - Interface DataVersionsListOptionalParams has a new optional parameter stage + - Interface EncryptionProperty has a new optional parameter cosmosDbResourceId + - Interface EncryptionProperty has a new optional parameter searchAccountResourceId + - Interface EncryptionProperty has a new optional parameter storageAccountResourceId + - Interface EnvironmentContainerProperties has a new optional parameter provisioningState + - Interface EnvironmentVersionProperties has a new optional parameter intellectualProperty + - Interface EnvironmentVersionProperties has a new optional parameter provisioningState + - Interface EnvironmentVersionProperties has a new optional parameter stage + - Interface EnvironmentVersionsListOptionalParams has a new optional parameter stage + - Interface ForecastingSettings has a new optional parameter featuresUnknownAtForecastTime + - Interface FqdnEndpoints has a new optional parameter category + - Interface FqdnEndpoints has a new optional parameter endpoints + - Interface ImageModelSettingsObjectDetection has a new optional parameter logTrainingMetrics + - Interface ImageModelSettingsObjectDetection has a new optional parameter logValidationLoss + - Interface JobBaseProperties has a new optional parameter notificationSetting + - Interface JobBaseProperties has a new optional parameter secretsConfiguration + - Interface JobService has a new optional parameter nodes + - Interface JobsListOptionalParams has a new optional parameter assetName + - Interface JobsListOptionalParams has a new optional parameter properties + - Interface JobsListOptionalParams has a new optional parameter scheduled + - Interface JobsListOptionalParams has a new optional parameter scheduleId + - Interface ListWorkspaceKeysResult has a new optional parameter userStorageArmId + - Interface ModelContainerProperties has a new optional parameter provisioningState + - Interface ModelVersionProperties has a new optional parameter intellectualProperty + - Interface ModelVersionProperties has a new optional parameter provisioningState + - Interface ModelVersionProperties has a new optional parameter stage + - Interface ModelVersionsListOptionalParams has a new optional parameter stage + - Interface NlpVertical has a new optional parameter fixedParameters + - Interface NlpVertical has a new optional parameter searchSpace + - Interface NlpVertical has a new optional parameter sweepSettings + - Interface NlpVerticalLimitSettings has a new optional parameter maxNodes + - Interface NlpVerticalLimitSettings has a new optional parameter trialTimeout + - Interface NotebookResourceInfo has a new optional parameter isPrivateLinkEnabled + - Interface OnlineDeploymentProperties has a new optional parameter dataCollector + - Interface OnlineEndpointProperties has a new optional parameter mirrorTraffic + - Interface RandomSamplingAlgorithm has a new optional parameter logbase + - Interface ResourceConfiguration has a new optional parameter locations + - Interface ResourceConfiguration has a new optional parameter maxInstanceCount + - Interface SweepJob has a new optional parameter componentConfiguration + - Interface SweepJob has a new optional parameter queueSettings + - Interface SweepJob has a new optional parameter resources + - Interface TableVertical has a new optional parameter fixedParameters + - Interface TableVertical has a new optional parameter searchSpace + - Interface TableVertical has a new optional parameter sweepSettings + - Interface TableVerticalLimitSettings has a new optional parameter maxNodes + - Interface TableVerticalLimitSettings has a new optional parameter sweepConcurrentTrials + - Interface TableVerticalLimitSettings has a new optional parameter sweepTrials + - Interface TrainingSettings has a new optional parameter trainingMode + - Interface Workspace has a new optional parameter associatedWorkspaces + - Interface Workspace has a new optional parameter containerRegistries + - Interface Workspace has a new optional parameter enableDataIsolation + - Interface Workspace has a new optional parameter existingWorkspaces + - Interface Workspace has a new optional parameter featureStoreSettings + - Interface Workspace has a new optional parameter hubResourceId + - Interface Workspace has a new optional parameter keyVaults + - Interface Workspace has a new optional parameter kind + - Interface Workspace has a new optional parameter managedNetwork + - Interface Workspace has a new optional parameter softDeleteRetentionInDays + - Interface Workspace has a new optional parameter storageAccounts + - Interface Workspace has a new optional parameter systemDatastoresAuthMode + - Interface Workspace has a new optional parameter workspaceHubConfig + - Interface WorkspaceConnectionPropertiesV2 has a new optional parameter expiryTime + - Interface WorkspaceConnectionPropertiesV2 has a new optional parameter metadata + - Interface WorkspaceConnectionsCreateOptionalParams has a new optional parameter body + - Interface WorkspacesDeleteOptionalParams has a new optional parameter forceToPurge + - Interface WorkspacesDiagnoseOptionalParams has a new optional parameter body + - Interface WorkspacesListByResourceGroupOptionalParams has a new optional parameter kind + - Interface WorkspacesListBySubscriptionOptionalParams has a new optional parameter kind + - Interface WorkspaceUpdateParameters has a new optional parameter enableDataIsolation + - Interface WorkspaceUpdateParameters has a new optional parameter encryption + - Interface WorkspaceUpdateParameters has a new optional parameter featureStoreSettings + - Interface WorkspaceUpdateParameters has a new optional parameter managedNetwork + - Interface WorkspaceUpdateParameters has a new optional parameter softDeleteRetentionInDays + - Interface WorkspaceUpdateParameters has a new optional parameter v1LegacyMode + - Type of parameter referenceType of interface AssetReferenceBase is changed from "DataPath" | "Id" | "OutputPath" to "Id" | "DataPath" | "OutputPath" + - Type of parameter credentialsType of interface DatastoreCredentials is changed from "AccountKey" | "Certificate" | "None" | "Sas" | "ServicePrincipal" to "AccountKey" | "Certificate" | "KerberosKeytab" | "KerberosPassword" | "None" | "Sas" | "ServicePrincipal" + - Type of parameter secretsType of interface DatastoreSecrets is changed from "AccountKey" | "Certificate" | "Sas" | "ServicePrincipal" to "AccountKey" | "Certificate" | "KerberosKeytab" | "KerberosPassword" | "Sas" | "ServicePrincipal" + - Type of parameter distributionType of interface DistributionConfiguration is changed from "Mpi" | "PyTorch" | "TensorFlow" to "Mpi" | "PyTorch" | "Ray" | "TensorFlow" + - Type of parameter actionType of interface ScheduleActionBase is changed from "InvokeBatchEndpoint" | "CreateJob" to "CreateMonitor" | "InvokeBatchEndpoint" | "ImportData" | "CreateJob" + - Type of parameter authType of interface WorkspaceConnectionPropertiesV2 is changed from "PAT" | "SAS" | "UsernamePassword" | "None" | "ManagedIdentity" to "AccessKey" | "ApiKey" | "CustomKeys" | "ManagedIdentity" | "None" | "PAT" | "SAS" | "ServicePrincipal" | "UsernamePassword" + - Added Enum KnownAssetProvisioningState + - Added Enum KnownAuthMode + - Added Enum KnownAutoDeleteCondition + - Added Enum KnownBaseEnvironmentSourceType + - Added Enum KnownBatchDeploymentConfigurationType + - Added Enum KnownCategoricalDataDriftMetric + - Added Enum KnownCategoricalDataQualityMetric + - Added Enum KnownCategoricalPredictionDriftMetric + - Added Enum KnownClassificationModelPerformanceMetric + - Added Enum KnownDataAvailabilityStatus + - Added Enum KnownDataCollectionMode + - Added Enum KnownDataImportSourceType + - Added Enum KnownEmailNotificationEnableType + - Added Enum KnownEndpointServiceConnectionStatus + - Added Enum KnownEnvironmentVariableType + - Added Enum KnownExportFormatType + - Added Enum KnownFeatureAttributionMetric + - Added Enum KnownFeatureDataType + - Added Enum KnownGenerationSafetyQualityMetric + - Added Enum KnownGenerationTokenStatisticsMetric + - Added Enum KnownImageAnnotationType + - Added Enum KnownImageType + - Added Enum KnownIncrementalDataRefresh + - Added Enum KnownInferencingServerType + - Added Enum KnownInputPathType + - Added Enum KnownIsolationMode + - Added Enum KnownJobProvisioningState + - Added Enum KnownJobTier + - Added Enum KnownLogTrainingMetrics + - Added Enum KnownLogValidationLoss + - Added Enum KnownManagedNetworkStatus + - Added Enum KnownMaterializationStoreType + - Added Enum KnownMediaType + - Added Enum KnownMLAssistConfigurationType + - Added Enum KnownMlflowAutologger + - Added Enum KnownMLFlowAutologgerState + - Added Enum KnownModelTaskType + - Added Enum KnownMonitorComputeIdentityType + - Added Enum KnownMonitorComputeType + - Added Enum KnownMonitoringAlertNotificationType + - Added Enum KnownMonitoringFeatureDataType + - Added Enum KnownMonitoringFeatureFilterType + - Added Enum KnownMonitoringInputDataType + - Added Enum KnownMonitoringModelType + - Added Enum KnownMonitoringNotificationMode + - Added Enum KnownMonitoringSignalType + - Added Enum KnownMultiSelect + - Added Enum KnownNlpLearningRateScheduler + - Added Enum KnownNodesValueType + - Added Enum KnownNumericalDataDriftMetric + - Added Enum KnownNumericalDataQualityMetric + - Added Enum KnownNumericalPredictionDriftMetric + - Added Enum KnownOneLakeArtifactType + - Added Enum KnownPackageBuildState + - Added Enum KnownPackageInputDeliveryMode + - Added Enum KnownPackageInputType + - Added Enum KnownPatchStatus + - Added Enum KnownPendingUploadCredentialType + - Added Enum KnownPendingUploadType + - Added Enum KnownPoolProvisioningState + - Added Enum KnownProtectionLevel + - Added Enum KnownProtocol + - Added Enum KnownRegressionModelPerformanceMetric + - Added Enum KnownRollingRateType + - Added Enum KnownRuleAction + - Added Enum KnownRuleCategory + - Added Enum KnownRuleStatus + - Added Enum KnownRuleType + - Added Enum KnownSparkJobEntryType + - Added Enum KnownStatusMessageLevel + - Added Enum KnownTextAnnotationType + - Added Enum KnownTrainingMode + - Added Enum KnownVolumeDefinitionType + - Added Enum KnownWebhookType + - Enum KnownComputeInstanceState has a new value Resizing + - Enum KnownConnectionAuthType has a new value AccessKey + - Enum KnownConnectionAuthType has a new value ApiKey + - Enum KnownConnectionAuthType has a new value CustomKeys + - Enum KnownConnectionAuthType has a new value ServicePrincipal + - Enum KnownConnectionCategory has a new value AdlsGen2 + - Enum KnownConnectionCategory has a new value ApiKey + - Enum KnownConnectionCategory has a new value AzureMySqlDb + - Enum KnownConnectionCategory has a new value AzureOpenAI + - Enum KnownConnectionCategory has a new value AzurePostgresDb + - Enum KnownConnectionCategory has a new value AzureSqlDb + - Enum KnownConnectionCategory has a new value AzureSynapseAnalytics + - Enum KnownConnectionCategory has a new value CognitiveSearch + - Enum KnownConnectionCategory has a new value CognitiveService + - Enum KnownConnectionCategory has a new value CustomKeys + - Enum KnownConnectionCategory has a new value Redis + - Enum KnownConnectionCategory has a new value S3 + - Enum KnownConnectionCategory has a new value Snowflake + - Enum KnownContainerType has a new value ModelDataCollector + - Enum KnownCredentialsType has a new value KerberosKeytab + - Enum KnownCredentialsType has a new value KerberosPassword + - Enum KnownDatastoreType has a new value Hdfs + - Enum KnownDatastoreType has a new value OneLake + - Enum KnownDistributionType has a new value Ray + - Enum KnownJobStatus has a new value Scheduled + - Enum KnownJobType has a new value Labeling + - Enum KnownJobType has a new value Spark + - Enum KnownOperationName has a new value Resize + - Enum KnownOperationStatus has a new value ResizeFailed + - Enum KnownOutputDeliveryMode has a new value Direct + - Enum KnownScheduleActionType has a new value CreateMonitor + - Enum KnownScheduleActionType has a new value ImportData + - Enum KnownSecretsType has a new value KerberosKeytab + - Enum KnownSecretsType has a new value KerberosPassword -### Other Changes +**Breaking Changes** + - Operation WorkspaceConnections.create has a new signature + - Deleted Class AzureMachineLearningWorkspaces + - Interface BatchDeploymentsListNextOptionalParams no longer has parameter orderBy + - Interface BatchDeploymentsListNextOptionalParams no longer has parameter skip + - Interface BatchDeploymentsListNextOptionalParams no longer has parameter top + - Interface BatchEndpointsListNextOptionalParams no longer has parameter count + - Interface BatchEndpointsListNextOptionalParams no longer has parameter skip + - Interface CodeContainersListNextOptionalParams no longer has parameter skip + - Interface CodeVersionsListNextOptionalParams no longer has parameter orderBy + - Interface CodeVersionsListNextOptionalParams no longer has parameter skip + - Interface CodeVersionsListNextOptionalParams no longer has parameter top + - Interface ComponentContainersListNextOptionalParams no longer has parameter listViewType + - Interface ComponentContainersListNextOptionalParams no longer has parameter skip + - Interface ComponentVersionsListNextOptionalParams no longer has parameter listViewType + - Interface ComponentVersionsListNextOptionalParams no longer has parameter orderBy + - Interface ComponentVersionsListNextOptionalParams no longer has parameter skip + - Interface ComponentVersionsListNextOptionalParams no longer has parameter top + - Interface ComputeListNextOptionalParams no longer has parameter skip + - Interface DataContainersListNextOptionalParams no longer has parameter listViewType + - Interface DataContainersListNextOptionalParams no longer has parameter skip + - Interface DatastoresListNextOptionalParams no longer has parameter count + - Interface DatastoresListNextOptionalParams no longer has parameter isDefault + - Interface DatastoresListNextOptionalParams no longer has parameter names + - Interface DatastoresListNextOptionalParams no longer has parameter orderBy + - Interface DatastoresListNextOptionalParams no longer has parameter orderByAsc + - Interface DatastoresListNextOptionalParams no longer has parameter searchText + - Interface DatastoresListNextOptionalParams no longer has parameter skip + - Interface DataVersionsListNextOptionalParams no longer has parameter listViewType + - Interface DataVersionsListNextOptionalParams no longer has parameter orderBy + - Interface DataVersionsListNextOptionalParams no longer has parameter skip + - Interface DataVersionsListNextOptionalParams no longer has parameter tags + - Interface DataVersionsListNextOptionalParams no longer has parameter top + - Interface EnvironmentContainersListNextOptionalParams no longer has parameter listViewType + - Interface EnvironmentContainersListNextOptionalParams no longer has parameter skip + - Interface EnvironmentVersionsListNextOptionalParams no longer has parameter listViewType + - Interface EnvironmentVersionsListNextOptionalParams no longer has parameter orderBy + - Interface EnvironmentVersionsListNextOptionalParams no longer has parameter skip + - Interface EnvironmentVersionsListNextOptionalParams no longer has parameter top + - Interface FqdnEndpoints no longer has parameter properties + - Interface JobsListNextOptionalParams no longer has parameter jobType + - Interface JobsListNextOptionalParams no longer has parameter listViewType + - Interface JobsListNextOptionalParams no longer has parameter skip + - Interface JobsListNextOptionalParams no longer has parameter tag + - Interface ListWorkspaceKeysResult no longer has parameter userStorageResourceId + - Interface ModelContainersListNextOptionalParams no longer has parameter count + - Interface ModelContainersListNextOptionalParams no longer has parameter listViewType + - Interface ModelContainersListNextOptionalParams no longer has parameter skip + - Interface ModelVersionsListNextOptionalParams no longer has parameter description + - Interface ModelVersionsListNextOptionalParams no longer has parameter feed + - Interface ModelVersionsListNextOptionalParams no longer has parameter listViewType + - Interface ModelVersionsListNextOptionalParams no longer has parameter offset + - Interface ModelVersionsListNextOptionalParams no longer has parameter orderBy + - Interface ModelVersionsListNextOptionalParams no longer has parameter properties + - Interface ModelVersionsListNextOptionalParams no longer has parameter skip + - Interface ModelVersionsListNextOptionalParams no longer has parameter tags + - Interface ModelVersionsListNextOptionalParams no longer has parameter top + - Interface ModelVersionsListNextOptionalParams no longer has parameter version + - Interface OnlineDeploymentsListNextOptionalParams no longer has parameter orderBy + - Interface OnlineDeploymentsListNextOptionalParams no longer has parameter skip + - Interface OnlineDeploymentsListNextOptionalParams no longer has parameter top + - Interface OnlineDeploymentsListSkusNextOptionalParams no longer has parameter count + - Interface OnlineDeploymentsListSkusNextOptionalParams no longer has parameter skip + - Interface OnlineEndpointsListNextOptionalParams no longer has parameter computeType + - Interface OnlineEndpointsListNextOptionalParams no longer has parameter count + - Interface OnlineEndpointsListNextOptionalParams no longer has parameter name + - Interface OnlineEndpointsListNextOptionalParams no longer has parameter orderBy + - Interface OnlineEndpointsListNextOptionalParams no longer has parameter properties + - Interface OnlineEndpointsListNextOptionalParams no longer has parameter skip + - Interface OnlineEndpointsListNextOptionalParams no longer has parameter tags + - Interface PrivateEndpoint no longer has parameter subnetArmId + - Interface SchedulesListNextOptionalParams no longer has parameter listViewType + - Interface SchedulesListNextOptionalParams no longer has parameter skip + - Interface WorkspaceConnectionPropertiesV2 no longer has parameter value + - Interface WorkspaceConnectionPropertiesV2 no longer has parameter valueFormat + - Interface WorkspaceConnectionsListNextOptionalParams no longer has parameter category + - Interface WorkspaceConnectionsListNextOptionalParams no longer has parameter target + - Interface WorkspacesDiagnoseOptionalParams no longer has parameter parameters + - Interface WorkspacesListByResourceGroupNextOptionalParams no longer has parameter skip + - Interface WorkspacesListBySubscriptionNextOptionalParams no longer has parameter skip + - Type of parameter display of interface AmlOperation is changed from AmlOperationDisplay to OperationDisplay + - Type of parameter cron of interface ComputeStartStopSchedule is changed from CronTrigger to Cron + - Type of parameter recurrence of interface ComputeStartStopSchedule is changed from RecurrenceTrigger to Recurrence + - Type of parameter applicationInsights of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter containerRegistry of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter dnsResolution of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter keyVault of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter nsg of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter others of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter resourceLock of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter storageAccount of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter udr of interface DiagnoseRequestProperties is changed from { + [propertyName: string]: Record; + } to { + [propertyName: string]: any; + } + - Type of parameter keyVaultProperties of interface EncryptionProperty is changed from EncryptionKeyVaultProperties to KeyVaultProperties + - Type of parameter value of interface ExternalFqdnResponse is changed from FqdnEndpoints[] to FqdnEndpointsPropertyBag[] + - Type of parameter privateEndpoint of interface PrivateEndpointConnection is changed from PrivateEndpoint to WorkspacePrivateEndpointResource + - Type of parameter status of interface PrivateLinkServiceConnectionState is changed from PrivateEndpointServiceConnectionStatus to EndpointServiceConnectionStatus + - Type of parameter status of interface SharedPrivateLinkResource is changed from PrivateEndpointServiceConnectionStatus to EndpointServiceConnectionStatus + - Type of parameter publicNetworkAccess of interface Workspace is changed from PublicNetworkAccess to PublicNetworkAccessType + - Type of parameter publicNetworkAccess of interface WorkspaceUpdateParameters is changed from PublicNetworkAccess to PublicNetworkAccessType + - Removed Enum KnownPrivateEndpointServiceConnectionStatus + - Removed Enum KnownPublicNetworkAccess + - Removed Enum KnownValueFormat + + ## 2.1.1 (2022-11-28) **Features** diff --git a/sdk/machinelearning/arm-machinelearning/LICENSE b/sdk/machinelearning/arm-machinelearning/LICENSE index 5d1d36e0af80..3a1d9b6f24f7 100644 --- a/sdk/machinelearning/arm-machinelearning/LICENSE +++ b/sdk/machinelearning/arm-machinelearning/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2023 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/machinelearning/arm-machinelearning/README.md b/sdk/machinelearning/arm-machinelearning/README.md index c7c7e6faee9e..43953a6ab3e8 100644 --- a/sdk/machinelearning/arm-machinelearning/README.md +++ b/sdk/machinelearning/arm-machinelearning/README.md @@ -1,12 +1,12 @@ -# AzureMachineLearningWorkspaces client library for JavaScript +# Azure Machine Learning client library for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMachineLearningWorkspaces client. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Machine Learning client. These APIs allow end users to operate on Azure Machine Learning Workspace resources. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-machinelearning) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started @@ -24,16 +24,16 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP ### Install the `@azure/arm-machinelearning` package -Install the AzureMachineLearningWorkspaces client library for JavaScript with `npm`: +Install the Azure Machine Learning client library for JavaScript with `npm`: ```bash npm install @azure/arm-machinelearning ``` -### Create and authenticate a `AzureMachineLearningWorkspaces` +### Create and authenticate a `AzureMachineLearningServices` -To create a client object to access the AzureMachineLearningWorkspaces API, you will need the `endpoint` of your AzureMachineLearningWorkspaces resource and a `credential`. The AzureMachineLearningWorkspaces client can use Azure Active Directory credentials to authenticate. -You can find the endpoint for your AzureMachineLearningWorkspaces resource in the [Azure Portal][azure_portal]. +To create a client object to access the Azure Machine Learning API, you will need the `endpoint` of your Azure Machine Learning resource and a `credential`. The Azure Machine Learning client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure Machine Learning resource in the [Azure Portal][azure_portal]. You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). @@ -43,25 +43,25 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below npm install @azure/identity ``` -You will also need to **register a new AAD application and grant access to AzureMachineLearningWorkspaces** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). +You will also need to **register a new AAD application and grant access to Azure Machine Learning** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). ```javascript -const { AzureMachineLearningWorkspaces } = require("@azure/arm-machinelearning"); +const { AzureMachineLearningServices } = require("@azure/arm-machinelearning"); const { DefaultAzureCredential } = require("@azure/identity"); // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. const subscriptionId = "00000000-0000-0000-0000-000000000000"; -const client = new AzureMachineLearningWorkspaces(new DefaultAzureCredential(), subscriptionId); +const client = new AzureMachineLearningServices(new DefaultAzureCredential(), subscriptionId); // For client-side applications running in the browser, use this code instead: // const credential = new InteractiveBrowserCredential({ // tenantId: "", // clientId: "" // }); -// const client = new AzureMachineLearningWorkspaces(credential, subscriptionId); +// const client = new AzureMachineLearningServices(credential, subscriptionId); ``` @@ -70,9 +70,9 @@ To use this client library in the browser, first you need to use a bundler. For ## Key concepts -### AzureMachineLearningWorkspaces +### AzureMachineLearningServices -`AzureMachineLearningWorkspaces` is the primary interface for developers using the AzureMachineLearningWorkspaces client library. Explore the methods on this client object to understand the different features of the AzureMachineLearningWorkspaces service that you can access. +`AzureMachineLearningServices` is the primary interface for developers using the Azure Machine Learning client library. Explore the methods on this client object to understand the different features of the Azure Machine Learning service that you can access. ## Troubleshooting diff --git a/sdk/machinelearning/arm-machinelearning/_meta.json b/sdk/machinelearning/arm-machinelearning/_meta.json index ed615b9d846a..03a83173146a 100644 --- a/sdk/machinelearning/arm-machinelearning/_meta.json +++ b/sdk/machinelearning/arm-machinelearning/_meta.json @@ -1,8 +1,8 @@ { - "commit": "1fefe3f5cee88319b17c08a2dbf95e1e983a9f8c", + "commit": "a2f1652a44f86c27277b025615c6ba98bfc3440f", "readme": "specification/machinelearningservices/resource-manager/readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\machinelearningservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.3.20221108.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/package.json b/sdk/machinelearning/arm-machinelearning/package.json index 6b5e704d6f45..16c346c01719 100644 --- a/sdk/machinelearning/arm-machinelearning/package.json +++ b/sdk/machinelearning/arm-machinelearning/package.json @@ -2,18 +2,18 @@ "name": "@azure/arm-machinelearning", "sdk-type": "mgmt", "author": "Microsoft Corporation", - "description": "A generated SDK for AzureMachineLearningWorkspaces.", - "version": "2.1.2", + "description": "A generated SDK for AzureMachineLearningServices.", + "version": "3.0.0-beta.1", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -33,12 +33,13 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~5.0.0", "uglify-js": "^3.4.9", - "rimraf": "^3.0.0", + "rimraf": "^5.0.0", + "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -47,10 +48,9 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^14.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" @@ -84,7 +84,7 @@ "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -106,18 +106,11 @@ "//metadata": { "constantPaths": [ { - "path": "src/azureMachineLearningWorkspaces.ts", + "path": "src/azureMachineLearningServices.ts", "prefix": "packageDetails" } ] }, "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning" +} \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md b/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md index 550802b181a7..a32c32b6e53f 100644 --- a/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md +++ b/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md @@ -6,9 +6,16 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; + +// @public (undocumented) +export interface AccessKeyAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "AccessKey"; + // (undocumented) + credentials?: WorkspaceConnectionAccessKey; +} // @public export interface AccountKeyDatastoreCredentials extends DatastoreCredentials { @@ -22,6 +29,19 @@ export interface AccountKeyDatastoreSecrets extends DatastoreSecrets { secretsType: "AccountKey"; } +// @public +export interface AcrDetails { + systemCreatedAcrAccount?: SystemCreatedAcrAccount; + userCreatedAcrAccount?: UserCreatedAcrAccount; +} + +// @public (undocumented) +export interface ActualCapacityInfo { + allocated?: number; + assignmentFailed?: number; + assignmentSuccess?: number; +} + // @public export interface Aks extends Compute, AKSSchema { computeType: "AKS"; @@ -65,6 +85,16 @@ export interface AKSSchemaProperties { readonly systemServices?: SystemService[]; } +// @public (undocumented) +export interface AllFeatures extends MonitoringFeatureFilterBase { + filterType: "AllFeatures"; +} + +// @public +export interface AllNodes extends Nodes { + nodesValueType: "All"; +} + // @public export type AllocationState = string; @@ -117,17 +147,10 @@ export interface AmlComputeSchema { // @public export interface AmlOperation { - display?: AmlOperationDisplay; + display?: OperationDisplay; isDataAction?: boolean; name?: string; -} - -// @public -export interface AmlOperationDisplay { - description?: string; - operation?: string; - provider?: string; - resource?: string; + origin?: string; } // @public @@ -140,6 +163,11 @@ export interface AmlToken extends IdentityConfiguration { identityType: "AMLToken"; } +// @public +export interface AmlTokenComputeIdentity extends MonitorComputeIdentityBase { + computeIdentityType: "AmlToken"; +} + // @public export interface AmlUserFeature { description?: string; @@ -147,11 +175,23 @@ export interface AmlUserFeature { id?: string; } +// @public +export interface ApiKeyAuthWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "ApiKey"; + credentials?: WorkspaceConnectionApiKey; +} + // @public export type ApplicationSharingPolicy = string; +// @public +export interface ArmResourceId { + resourceId?: string; +} + // @public (undocumented) export interface AssetBase extends ResourceBase { + autoDeleteSetting?: AutoDeleteSetting; isAnonymous?: boolean; isArchived?: boolean; } @@ -171,17 +211,23 @@ export interface AssetJobInput { // @public export interface AssetJobOutput { + assetName?: string; + assetVersion?: string; + autoDeleteSetting?: AutoDeleteSetting; mode?: OutputDeliveryMode; uri?: string; } +// @public +export type AssetProvisioningState = string; + // @public export interface AssetReferenceBase { - referenceType: "DataPath" | "Id" | "OutputPath"; + referenceType: "Id" | "DataPath" | "OutputPath"; } // @public (undocumented) -export type AssetReferenceBaseUnion = AssetReferenceBase | DataPathAssetReference | IdAssetReference | OutputPathAssetReference; +export type AssetReferenceBaseUnion = AssetReferenceBase | IdAssetReference | DataPathAssetReference | OutputPathAssetReference; // @public export interface AssignedUser { @@ -189,11 +235,28 @@ export interface AssignedUser { tenantId: string; } +// @public +export type AuthMode = string; + +// @public +export type AutoDeleteCondition = string; + +// @public (undocumented) +export interface AutoDeleteSetting { + condition?: AutoDeleteCondition; + value?: string; +} + // @public export interface AutoForecastHorizon extends ForecastHorizon { mode: "Auto"; } +// @public +export interface AutologgerSettings { + mlflowAutologger: MLFlowAutologgerState; +} + // @public export interface AutoMLJob extends JobBaseProperties { environmentId?: string; @@ -204,6 +267,7 @@ export interface AutoMLJob extends JobBaseProperties { outputs?: { [propertyName: string]: JobOutputUnion | null; }; + queueSettings?: QueueSettings; resources?: JobResourceConfiguration; taskDetails: AutoMLVerticalUnion; } @@ -263,27 +327,29 @@ export interface AutoTargetRollingWindowSize extends TargetRollingWindowSize { mode: "Auto"; } +// @public (undocumented) +export interface AzMonMonitoringAlertNotificationSettings extends MonitoringAlertNotificationSettingsBase { + alertNotificationType: "AzureMonitor"; +} + // @public -export interface AzureBlobDatastore extends DatastoreProperties { +export interface AzureBlobDatastore extends AzureDatastore, DatastoreProperties { accountName?: string; containerName?: string; - datastoreType: "AzureBlob"; endpoint?: string; protocol?: string; serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; } // @public -export interface AzureDataLakeGen1Datastore extends DatastoreProperties { - datastoreType: "AzureDataLakeGen1"; +export interface AzureDataLakeGen1Datastore extends AzureDatastore, DatastoreProperties { serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; storeName: string; } // @public -export interface AzureDataLakeGen2Datastore extends DatastoreProperties { +export interface AzureDataLakeGen2Datastore extends AzureDatastore, DatastoreProperties { accountName: string; - datastoreType: "AzureDataLakeGen2"; endpoint?: string; filesystem: string; protocol?: string; @@ -291,9 +357,19 @@ export interface AzureDataLakeGen2Datastore extends DatastoreProperties { } // @public -export interface AzureFileDatastore extends DatastoreProperties { +export interface AzureDatastore { + resourceGroup?: string; + subscriptionId?: string; +} + +// @public +export interface AzureDevOpsWebhook extends Webhook { + webhookType: "AzureDevOps"; +} + +// @public +export interface AzureFileDatastore extends AzureDatastore, DatastoreProperties { accountName: string; - datastoreType: "AzureFile"; endpoint?: string; fileShareName: string; protocol?: string; @@ -301,10 +377,10 @@ export interface AzureFileDatastore extends DatastoreProperties { } // @public (undocumented) -export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { +export class AzureMachineLearningServices extends coreClient.ServiceClient { // (undocumented) $host: string; - constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMachineLearningWorkspacesOptionalParams); + constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMachineLearningServicesOptionalParams); // (undocumented) apiVersion: string; // (undocumented) @@ -332,8 +408,30 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { // (undocumented) environmentVersions: EnvironmentVersions; // (undocumented) + features: Features; + // (undocumented) + featuresetContainers: FeaturesetContainers; + // (undocumented) + featuresetVersions: FeaturesetVersions; + // (undocumented) + featurestoreEntityContainers: FeaturestoreEntityContainers; + // (undocumented) + featurestoreEntityVersions: FeaturestoreEntityVersions; + // (undocumented) + inferenceEndpoints: InferenceEndpoints; + // (undocumented) + inferenceGroups: InferenceGroups; + // (undocumented) + inferencePools: InferencePools; + // (undocumented) jobs: Jobs; // (undocumented) + labelingJobs: LabelingJobs; + // (undocumented) + managedNetworkProvisions: ManagedNetworkProvisions; + // (undocumented) + managedNetworkSettingsRule: ManagedNetworkSettingsRule; + // (undocumented) modelContainers: ModelContainers; // (undocumented) modelVersions: ModelVersions; @@ -350,8 +448,32 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { // (undocumented) quotas: Quotas; // (undocumented) + registries: Registries; + // (undocumented) + registryCodeContainers: RegistryCodeContainers; + // (undocumented) + registryCodeVersions: RegistryCodeVersions; + // (undocumented) + registryComponentContainers: RegistryComponentContainers; + // (undocumented) + registryComponentVersions: RegistryComponentVersions; + // (undocumented) + registryDataContainers: RegistryDataContainers; + // (undocumented) + registryDataVersions: RegistryDataVersions; + // (undocumented) + registryEnvironmentContainers: RegistryEnvironmentContainers; + // (undocumented) + registryEnvironmentVersions: RegistryEnvironmentVersions; + // (undocumented) + registryModelContainers: RegistryModelContainers; + // (undocumented) + registryModelVersions: RegistryModelVersions; + // (undocumented) schedules: Schedules; // (undocumented) + serverlessEndpoints: ServerlessEndpoints; + // (undocumented) subscriptionId: string; // (undocumented) usages: Usages; @@ -366,12 +488,24 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { } // @public -export interface AzureMachineLearningWorkspacesOptionalParams extends coreClient.ServiceClientOptions { +export interface AzureMachineLearningServicesOptionalParams extends coreClient.ServiceClientOptions { $host?: string; apiVersion?: string; endpoint?: string; } +// @public +export interface AzureMLBatchInferencingServer extends InferencingServer { + codeConfiguration?: CodeConfiguration; + serverType: "AzureMLBatch"; +} + +// @public +export interface AzureMLOnlineInferencingServer extends InferencingServer { + codeConfiguration?: CodeConfiguration; + serverType: "AzureMLOnline"; +} + // @public export interface BanditPolicy extends EarlyTerminationPolicy { policyType: "Bandit"; @@ -379,6 +513,23 @@ export interface BanditPolicy extends EarlyTerminationPolicy { slackFactor?: number; } +// @public +export interface BaseEnvironmentId extends BaseEnvironmentSource { + baseEnvironmentSourceType: "EnvironmentAsset"; + resourceId: string; +} + +// @public (undocumented) +export interface BaseEnvironmentSource { + baseEnvironmentSourceType: "EnvironmentAsset"; +} + +// @public +export type BaseEnvironmentSourceType = string; + +// @public (undocumented) +export type BaseEnvironmentSourceUnion = BaseEnvironmentSource | BaseEnvironmentId; + // @public (undocumented) export interface BatchDeployment extends TrackedResource { identity?: ManagedServiceIdentity; @@ -387,9 +538,21 @@ export interface BatchDeployment extends TrackedResource { sku?: Sku; } +// @public +export interface BatchDeploymentConfiguration { + deploymentConfigurationType: "PipelineComponent"; +} + +// @public +export type BatchDeploymentConfigurationType = string; + +// @public (undocumented) +export type BatchDeploymentConfigurationUnion = BatchDeploymentConfiguration | BatchPipelineComponentDeploymentConfiguration; + // @public export interface BatchDeploymentProperties extends EndpointDeploymentPropertiesBase { compute?: string; + deploymentConfiguration?: BatchDeploymentConfigurationUnion; errorThreshold?: number; loggingLevel?: BatchLoggingLevel; maxConcurrencyPerInstance?: number; @@ -404,11 +567,11 @@ export interface BatchDeploymentProperties extends EndpointDeploymentPropertiesB // @public export interface BatchDeployments { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: BatchDeployment, options?: BatchDeploymentsCreateOrUpdateOptionalParams): Promise, BatchDeploymentsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: BatchDeployment, options?: BatchDeploymentsCreateOrUpdateOptionalParams): Promise, BatchDeploymentsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: BatchDeployment, options?: BatchDeploymentsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: BatchDeploymentsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: BatchDeploymentsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: BatchDeploymentsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties, options?: BatchDeploymentsUpdateOptionalParams): Promise, BatchDeploymentsUpdateResponse>>; + beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties, options?: BatchDeploymentsUpdateOptionalParams): Promise, BatchDeploymentsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties, options?: BatchDeploymentsUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: BatchDeploymentsGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchDeploymentsListOptionalParams): PagedAsyncIterableIterator; @@ -451,9 +614,6 @@ export type BatchDeploymentsGetResponse = BatchDeployment; // @public export interface BatchDeploymentsListNextOptionalParams extends coreClient.OperationOptions { - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -512,11 +672,11 @@ export interface BatchEndpointProperties extends EndpointPropertiesBase { // @public export interface BatchEndpoints { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: BatchEndpoint, options?: BatchEndpointsCreateOrUpdateOptionalParams): Promise, BatchEndpointsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: BatchEndpoint, options?: BatchEndpointsCreateOrUpdateOptionalParams): Promise, BatchEndpointsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: BatchEndpoint, options?: BatchEndpointsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchEndpointsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchEndpointsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchEndpointsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialMinimalTrackedResourceWithIdentity, options?: BatchEndpointsUpdateOptionalParams): Promise, BatchEndpointsUpdateResponse>>; + beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialMinimalTrackedResourceWithIdentity, options?: BatchEndpointsUpdateOptionalParams): Promise, BatchEndpointsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialMinimalTrackedResourceWithIdentity, options?: BatchEndpointsUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, endpointName: string, options?: BatchEndpointsGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, options?: BatchEndpointsListOptionalParams): PagedAsyncIterableIterator; @@ -567,8 +727,6 @@ export type BatchEndpointsListKeysResponse = EndpointAuthKeys; // @public export interface BatchEndpointsListNextOptionalParams extends coreClient.OperationOptions { - count?: number; - skip?: string; } // @public @@ -611,6 +769,19 @@ export type BatchLoggingLevel = string; // @public export type BatchOutputAction = string; +// @public +export interface BatchPipelineComponentDeploymentConfiguration extends BatchDeploymentConfiguration { + componentId?: IdAssetReference; + deploymentConfigurationType: "PipelineComponent"; + description?: string; + settings?: { + [propertyName: string]: string | null; + }; + tags?: { + [propertyName: string]: string | null; + }; +} + // @public export interface BatchRetrySettings { maxRetries?: number; @@ -625,6 +796,20 @@ export interface BayesianSamplingAlgorithm extends SamplingAlgorithm { // @public export type BillingCurrency = string; +// @public (undocumented) +export interface BindOptions { + createHostPath?: boolean; + propagation?: string; + selinux?: string; +} + +// @public (undocumented) +export interface BlobReferenceForConsumptionDto { + blobUri?: string; + credential?: PendingUploadCredentialDtoUnion; + storageAccountArmId?: string; +} + // @public export type BlockedTransformers = string; @@ -637,6 +822,33 @@ export interface BuildContext { // @public export type Caching = string; +// @public +export type CategoricalDataDriftMetric = string; + +// @public (undocumented) +export interface CategoricalDataDriftMetricThreshold extends DataDriftMetricThresholdBase { + dataType: "Categorical"; + metric: CategoricalDataDriftMetric; +} + +// @public +export type CategoricalDataQualityMetric = string; + +// @public (undocumented) +export interface CategoricalDataQualityMetricThreshold extends DataQualityMetricThresholdBase { + dataType: "Categorical"; + metric: CategoricalDataQualityMetric; +} + +// @public +export type CategoricalPredictionDriftMetric = string; + +// @public (undocumented) +export interface CategoricalPredictionDriftMetricThreshold extends PredictionDriftMetricThresholdBase { + dataType: "Categorical"; + metric: CategoricalPredictionDriftMetric; +} + // @public export interface CertificateDatastoreCredentials extends DatastoreCredentials { authorityUrl?: string; @@ -661,6 +873,15 @@ export interface Classification extends TableVertical, AutoMLVertical { trainingSettings?: ClassificationTrainingSettings; } +// @public +export type ClassificationModelPerformanceMetric = string; + +// @public (undocumented) +export interface ClassificationModelPerformanceMetricThreshold extends ModelPerformanceMetricThresholdBase { + metric: ClassificationModelPerformanceMetric; + modelType: "Classification"; +} + // @public export type ClassificationModels = string; @@ -684,6 +905,13 @@ export interface ClusterUpdateParameters { properties?: ScaleSettingsInformation; } +// @public (undocumented) +export interface CocoExportSummary extends ExportSummary { + readonly containerName?: string; + format: "Coco"; + readonly snapshotPath?: string; +} + // @public export interface CodeConfiguration { codeId?: string; @@ -697,6 +925,7 @@ export interface CodeContainer extends Resource { // @public export interface CodeContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public @@ -733,7 +962,6 @@ export type CodeContainersGetResponse = CodeContainer; // @public export interface CodeContainersListNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -755,6 +983,7 @@ export interface CodeVersion extends Resource { // @public export interface CodeVersionProperties extends AssetBase { codeUri?: string; + readonly provisioningState?: AssetProvisioningState; } // @public @@ -765,12 +994,20 @@ export interface CodeVersionResourceArmPaginatedResult { // @public export interface CodeVersions { + createOrGetStartPendingUpload(resourceGroupName: string, workspaceName: string, name: string, version: string, body: PendingUploadRequestDto, options?: CodeVersionsCreateOrGetStartPendingUploadOptionalParams): Promise; createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: CodeVersion, options?: CodeVersionsCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: CodeVersionsDeleteOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: CodeVersionsGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, name: string, options?: CodeVersionsListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface CodeVersionsCreateOrGetStartPendingUploadOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CodeVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; + // @public export interface CodeVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } @@ -791,9 +1028,6 @@ export type CodeVersionsGetResponse = CodeVersion; // @public export interface CodeVersionsListNextOptionalParams extends coreClient.OperationOptions { - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -801,6 +1035,8 @@ export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult // @public export interface CodeVersionsListOptionalParams extends coreClient.OperationOptions { + hash?: string; + hashVersion?: string; orderBy?: string; skip?: string; top?: number; @@ -809,6 +1045,14 @@ export interface CodeVersionsListOptionalParams extends coreClient.OperationOpti // @public export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; +// @public (undocumented) +export interface Collection { + clientId?: string; + dataCollectionMode?: DataCollectionMode; + dataId?: string; + samplingRate?: number; +} + // @public export interface ColumnTransformer { fields?: string[]; @@ -817,6 +1061,7 @@ export interface ColumnTransformer { // @public export interface CommandJob extends JobBaseProperties { + autologgerSettings?: AutologgerSettings; codeId?: string; command: string; distribution?: DistributionConfigurationUnion; @@ -833,6 +1078,7 @@ export interface CommandJob extends JobBaseProperties { [propertyName: string]: JobOutputUnion | null; }; readonly parameters?: Record; + queueSettings?: QueueSettings; resources?: JobResourceConfiguration; } @@ -841,6 +1087,11 @@ export interface CommandJobLimits extends JobLimits { jobLimitsType: "Command"; } +// @public +export interface ComponentConfiguration { + pipelineSettings?: Record; +} + // @public export interface ComponentContainer extends Resource { properties: ComponentContainerProperties; @@ -848,6 +1099,7 @@ export interface ComponentContainer extends Resource { // @public export interface ComponentContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public @@ -884,8 +1136,6 @@ export type ComponentContainersGetResponse = ComponentContainer; // @public export interface ComponentContainersListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - skip?: string; } // @public @@ -908,6 +1158,8 @@ export interface ComponentVersion extends Resource { // @public export interface ComponentVersionProperties extends AssetBase { componentSpec?: Record; + readonly provisioningState?: AssetProvisioningState; + stage?: string; } // @public @@ -944,10 +1196,6 @@ export type ComponentVersionsGetResponse = ComponentVersion; // @public export interface ComponentVersionsListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -958,6 +1206,7 @@ export interface ComponentVersionsListOptionalParams extends coreClient.Operatio listViewType?: ListViewType; orderBy?: string; skip?: string; + stage?: string; top?: number; } @@ -1004,6 +1253,13 @@ export interface ComputeDeleteOptionalParams extends coreClient.OperationOptions updateIntervalInMs?: number; } +// @public +export interface ComputeGetAllowedResizeSizesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ComputeGetAllowedResizeSizesResponse = VirtualMachineSizeListResult; + // @public export interface ComputeGetOptionalParams extends coreClient.OperationOptions { } @@ -1025,6 +1281,11 @@ export interface ComputeInstanceApplication { // @public export type ComputeInstanceAuthorizationType = string; +// @public +export interface ComputeInstanceAutologgerSettings { + mlflowAutologger?: MlflowAutologger; +} + // @public export interface ComputeInstanceConnectivityEndpoints { readonly privateIpAddress?: string; @@ -1087,17 +1348,23 @@ export interface ComputeInstanceLastOperation { export interface ComputeInstanceProperties { readonly applications?: ComputeInstanceApplication[]; applicationSharingPolicy?: ApplicationSharingPolicy; + autologgerSettings?: ComputeInstanceAutologgerSettings; computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; readonly containers?: ComputeInstanceContainer[]; readonly createdBy?: ComputeInstanceCreatedBy; + customServices?: CustomService[]; readonly dataDisks?: ComputeInstanceDataDisk[]; readonly dataMounts?: ComputeInstanceDataMount[]; enableNodePublicIp?: boolean; + enableOSPatching?: boolean; readonly errors?: ErrorResponse[]; + idleTimeBeforeShutdown?: string; readonly lastOperation?: ComputeInstanceLastOperation; + readonly osImageMetadata?: ImageMetadata; personalComputeInstanceSettings?: PersonalComputeInstanceSettings; - readonly schedules?: ComputeSchedules; + releaseQuotaOnStop?: boolean; + schedules?: ComputeSchedules; setupScripts?: SetupScripts; sshSettings?: ComputeInstanceSshSettings; readonly state?: ComputeInstanceState; @@ -1136,7 +1403,6 @@ export type ComputeListKeysResponse = ComputeSecretsUnion; // @public export interface ComputeListNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -1166,27 +1432,47 @@ export type ComputeListResponse = PaginatedComputeResourcesList; // @public export interface ComputeOperations { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ComputeResource, options?: ComputeCreateOrUpdateOptionalParams): Promise, ComputeCreateOrUpdateResponse>>; + 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>>; + 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>>; + beginResize(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ResizeSchema, options?: ComputeResizeOptionalParams): Promise, ComputeResizeResponse>>; + beginResizeAndWait(resourceGroupName: string, workspaceName: string, computeName: string, parameters: ResizeSchema, options?: ComputeResizeOptionalParams): 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>>; + 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>>; + 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>>; + 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; + getAllowedResizeSizes(resourceGroupName: string, workspaceName: string, computeName: string, options?: ComputeGetAllowedResizeSizesOptionalParams): 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; + updateCustomServices(resourceGroupName: string, workspaceName: string, computeName: string, customServices: CustomService[], options?: ComputeUpdateCustomServicesOptionalParams): Promise; + updateIdleShutdownSetting(resourceGroupName: string, workspaceName: string, computeName: string, parameters: IdleShutdownSetting, options?: ComputeUpdateIdleShutdownSettingOptionalParams): Promise; } // @public export type ComputePowerAction = string; +// @public +export interface ComputeResizeHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ComputeResizeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ComputeResizeResponse = ComputeResizeHeaders; + // @public export interface ComputeResource extends Resource, ComputeResourceSchema { identity?: ManagedServiceIdentity; @@ -1208,6 +1494,12 @@ export interface ComputeRestartOptionalParams extends coreClient.OperationOption updateIntervalInMs?: number; } +// @public (undocumented) +export interface ComputeRuntimeDto { + // (undocumented) + sparkRuntimeVersion?: string; +} + // @public export interface ComputeSchedules { computeStartStop?: ComputeStartStopSchedule[]; @@ -1230,10 +1522,10 @@ export interface ComputeStartOptionalParams extends coreClient.OperationOptions // @public export interface ComputeStartStopSchedule { action?: ComputePowerAction; - cron?: CronTrigger; + cron?: Cron; readonly id?: string; readonly provisioningStatus?: ProvisioningStatus; - recurrence?: RecurrenceTrigger; + recurrence?: Recurrence; schedule?: ScheduleBase; status?: ScheduleStatus; triggerType?: TriggerType; @@ -1251,6 +1543,14 @@ export type ComputeType = string; // @public (undocumented) export type ComputeUnion = Compute | Aks | Kubernetes | AmlCompute | ComputeInstance | VirtualMachine | HDInsight | DataFactory | Databricks | DataLakeAnalytics | SynapseSpark; +// @public +export interface ComputeUpdateCustomServicesOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ComputeUpdateIdleShutdownSettingOptionalParams extends coreClient.OperationOptions { +} + // @public export interface ComputeUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -1284,27 +1584,73 @@ export type ContainerType = string; // @public (undocumented) export interface CosmosDbSettings { + // (undocumented) collectionsThroughput?: number; } // @public export type CreatedByType = string; +// @public (undocumented) +export interface CreateMonitorAction extends ScheduleActionBase { + actionType: "CreateMonitor"; + monitorDefinition: MonitorDefinition; +} + // @public export type CredentialsType = string; +// @public +export interface Cron { + expression?: string; + startTime?: string; + timeZone?: string; +} + // @public (undocumented) export interface CronTrigger extends TriggerBase { expression: string; triggerType: "Cron"; } +// @public (undocumented) +export interface CsvExportSummary extends ExportSummary { + readonly containerName?: string; + format: "CSV"; + readonly snapshotPath?: string; +} + // @public export interface CustomForecastHorizon extends ForecastHorizon { mode: "Custom"; value: number; } +// @public +export interface CustomInferencingServer extends InferencingServer { + inferenceConfiguration?: OnlineInferenceConfiguration; + serverType: "Custom"; +} + +// @public +export interface CustomKeys { + keys?: { + [propertyName: string]: string; + }; +} + +// @public +export interface CustomKeysWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "CustomKeys"; + credentials?: CustomKeys; +} + +// @public (undocumented) +export interface CustomMetricThreshold { + metric: string; + threshold?: MonitoringThreshold; +} + // @public (undocumented) export interface CustomModelJobInput extends AssetJobInput, JobInput { } @@ -1313,6 +1659,20 @@ export interface CustomModelJobInput extends AssetJobInput, JobInput { export interface CustomModelJobOutput extends AssetJobOutput, JobOutput { } +// @public (undocumented) +export interface CustomMonitoringSignal extends MonitoringSignalBase { + componentId: string; + inputAssets?: { + [propertyName: string]: MonitoringInputDataBaseUnion | null; + }; + inputs?: { + [propertyName: string]: JobInputUnion | null; + }; + metricThresholds: CustomMetricThreshold[]; + signalType: "Custom"; + workspaceConnection: MonitoringWorkspaceConnection; +} + // @public export interface CustomNCrossValidations extends NCrossValidations { mode: "Custom"; @@ -1325,6 +1685,19 @@ export interface CustomSeasonality extends Seasonality { value: number; } +// @public +export interface CustomService { + [property: string]: any; + docker?: Docker; + endpoints?: Endpoint[]; + environmentVariables?: { + [propertyName: string]: EnvironmentVariable; + }; + image?: Image_2; + name?: string; + volumes?: VolumeDefinition[]; +} + // @public (undocumented) export interface CustomTargetLags extends TargetLags { mode: "Custom"; @@ -1337,6 +1710,20 @@ export interface CustomTargetRollingWindowSize extends TargetRollingWindowSize { value: number; } +// @public +export type DataAvailabilityStatus = string; + +// @public (undocumented) +export interface DatabaseSource extends DataImportSource { + query?: string; + sourceType: "database"; + storedProcedure?: string; + storedProcedureParams?: { + [propertyName: string]: string; + }[]; + tableName?: string; +} + // @public export interface Databricks extends Compute, DatabricksSchema { computeType: "Databricks"; @@ -1363,6 +1750,18 @@ export interface DatabricksSchema { properties?: DatabricksProperties; } +// @public +export type DataCollectionMode = string; + +// @public (undocumented) +export interface DataCollector { + collections: { + [propertyName: string]: Collection | null; + }; + requestLogging?: RequestLogging; + rollingRate?: RollingRateType; +} + // @public export interface DataContainer extends Resource { properties: DataContainerProperties; @@ -1407,8 +1806,6 @@ export type DataContainersGetResponse = DataContainer; // @public export interface DataContainersListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - skip?: string; } // @public @@ -1423,11 +1820,52 @@ export interface DataContainersListOptionalParams extends coreClient.OperationOp // @public export type DataContainersListResponse = DataContainerResourceArmPaginatedResult; -// @public -export interface DataFactory extends Compute { +// @public (undocumented) +export interface DataDriftMetricThresholdBase { + dataType: "Categorical" | "Numerical"; + threshold?: MonitoringThreshold; +} + +// @public (undocumented) +export type DataDriftMetricThresholdBaseUnion = DataDriftMetricThresholdBase | CategoricalDataDriftMetricThreshold | NumericalDataDriftMetricThreshold; + +// @public (undocumented) +export interface DataDriftMonitoringSignal extends MonitoringSignalBase { + dataSegment?: MonitoringDataSegment; + featureDataTypeOverride?: { + [propertyName: string]: MonitoringFeatureDataType; + }; + features?: MonitoringFeatureFilterBaseUnion; + metricThresholds: DataDriftMetricThresholdBaseUnion[]; + productionData: MonitoringInputDataBaseUnion; + referenceData: MonitoringInputDataBaseUnion; + signalType: "DataDrift"; +} + +// @public +export interface DataFactory extends Compute { computeType: "DataFactory"; } +// @public (undocumented) +export interface DataImport extends DataVersionBaseProperties { + assetName?: string; + dataType: "uri_folder"; + source?: DataImportSourceUnion; +} + +// @public (undocumented) +export interface DataImportSource { + connection?: string; + sourceType: "database" | "file_system"; +} + +// @public +export type DataImportSourceType = string; + +// @public (undocumented) +export type DataImportSourceUnion = DataImportSource | DatabaseSource | FileSystemSource; + // @public export interface DataLakeAnalytics extends Compute, DataLakeAnalyticsSchema { computeType: "DataLakeAnalytics"; @@ -1451,6 +1889,33 @@ export interface DataPathAssetReference extends AssetReferenceBase { referenceType: "DataPath"; } +// @public (undocumented) +export interface DataQualityMetricThresholdBase { + dataType: "Categorical" | "Numerical"; + threshold?: MonitoringThreshold; +} + +// @public (undocumented) +export type DataQualityMetricThresholdBaseUnion = DataQualityMetricThresholdBase | CategoricalDataQualityMetricThreshold | NumericalDataQualityMetricThreshold; + +// @public (undocumented) +export interface DataQualityMonitoringSignal extends MonitoringSignalBase { + featureDataTypeOverride?: { + [propertyName: string]: MonitoringFeatureDataType; + }; + features?: MonitoringFeatureFilterBaseUnion; + metricThresholds: DataQualityMetricThresholdBaseUnion[]; + productionData: MonitoringInputDataBaseUnion; + referenceData: MonitoringInputDataBaseUnion; + signalType: "DataQuality"; +} + +// @public (undocumented) +export interface DatasetExportSummary extends ExportSummary { + format: "Dataset"; + readonly labeledAssetName?: string; +} + // @public export interface Datastore extends Resource { properties: DatastorePropertiesUnion; @@ -1458,21 +1923,22 @@ export interface Datastore extends Resource { // @public export interface DatastoreCredentials { - credentialsType: "AccountKey" | "Certificate" | "None" | "Sas" | "ServicePrincipal"; + credentialsType: "AccountKey" | "Certificate" | "KerberosKeytab" | "KerberosPassword" | "None" | "Sas" | "ServicePrincipal"; } // @public (undocumented) -export type DatastoreCredentialsUnion = DatastoreCredentials | AccountKeyDatastoreCredentials | CertificateDatastoreCredentials | NoneDatastoreCredentials | SasDatastoreCredentials | ServicePrincipalDatastoreCredentials; +export type DatastoreCredentialsUnion = DatastoreCredentials | AccountKeyDatastoreCredentials | CertificateDatastoreCredentials | KerberosKeytabCredentials | KerberosPasswordCredentials | NoneDatastoreCredentials | SasDatastoreCredentials | ServicePrincipalDatastoreCredentials; // @public export interface DatastoreProperties extends ResourceBase { credentials: DatastoreCredentialsUnion; datastoreType: DatastoreType; + intellectualProperty?: IntellectualProperty; readonly isDefault?: boolean; } // @public (undocumented) -export type DatastorePropertiesUnion = DatastoreProperties | AzureBlobDatastore | AzureDataLakeGen1Datastore | AzureDataLakeGen2Datastore | AzureFileDatastore; +export type DatastorePropertiesUnion = DatastoreProperties | AzureBlobDatastore | AzureDataLakeGen1Datastore | AzureDataLakeGen2Datastore | AzureFileDatastore | HdfsDatastore | OneLakeDatastore; // @public export interface DatastoreResourceArmPaginatedResult { @@ -1503,11 +1969,11 @@ export interface DatastoresDeleteOptionalParams extends coreClient.OperationOpti // @public export interface DatastoreSecrets { - secretsType: "AccountKey" | "Certificate" | "Sas" | "ServicePrincipal"; + secretsType: "AccountKey" | "Certificate" | "KerberosKeytab" | "KerberosPassword" | "Sas" | "ServicePrincipal"; } // @public (undocumented) -export type DatastoreSecretsUnion = DatastoreSecrets | AccountKeyDatastoreSecrets | CertificateDatastoreSecrets | SasDatastoreSecrets | ServicePrincipalDatastoreSecrets; +export type DatastoreSecretsUnion = DatastoreSecrets | AccountKeyDatastoreSecrets | CertificateDatastoreSecrets | KerberosKeytabSecrets | KerberosPasswordSecrets | SasDatastoreSecrets | ServicePrincipalDatastoreSecrets; // @public export interface DatastoresGetOptionalParams extends coreClient.OperationOptions { @@ -1518,13 +1984,6 @@ export type DatastoresGetResponse = Datastore; // @public export interface DatastoresListNextOptionalParams extends coreClient.OperationOptions { - count?: number; - isDefault?: boolean; - names?: string[]; - orderBy?: string; - orderByAsc?: boolean; - searchText?: string; - skip?: string; } // @public @@ -1566,10 +2025,12 @@ export interface DataVersionBase extends Resource { export interface DataVersionBaseProperties extends AssetBase { dataType: DataType; dataUri: string; + intellectualProperty?: IntellectualProperty; + stage?: string; } // @public (undocumented) -export type DataVersionBasePropertiesUnion = DataVersionBaseProperties | MLTableData | UriFileDataVersion | UriFolderDataVersion; +export type DataVersionBasePropertiesUnion = DataVersionBaseProperties | DataImport | MLTableData | UriFileDataVersion | UriFolderDataVersion; // @public export interface DataVersionBaseResourceArmPaginatedResult { @@ -1605,11 +2066,6 @@ export type DataVersionsGetResponse = DataVersionBase; // @public export interface DataVersionsListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - orderBy?: string; - skip?: string; - tags?: string; - top?: number; } // @public @@ -1620,6 +2076,7 @@ export interface DataVersionsListOptionalParams extends coreClient.OperationOpti listViewType?: ListViewType; orderBy?: string; skip?: string; + stage?: string; tags?: string; top?: number; } @@ -1653,31 +2110,31 @@ export interface DeploymentResourceConfiguration extends ResourceConfiguration { // @public (undocumented) export interface DiagnoseRequestProperties { applicationInsights?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; containerRegistry?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; dnsResolution?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; keyVault?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; nsg?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; others?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; resourceLock?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; storageAccount?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; udr?: { - [propertyName: string]: Record; + [propertyName: string]: any; }; } @@ -1721,20 +2178,27 @@ export type DiagnoseResultLevel = string; // @public export interface DiagnoseWorkspaceParameters { + // (undocumented) value?: DiagnoseRequestProperties; } // @public export interface DistributionConfiguration { - distributionType: "Mpi" | "PyTorch" | "TensorFlow"; + distributionType: "Mpi" | "PyTorch" | "Ray" | "TensorFlow"; } // @public (undocumented) -export type DistributionConfigurationUnion = DistributionConfiguration | Mpi | PyTorch | TensorFlow; +export type DistributionConfigurationUnion = DistributionConfiguration | Mpi | PyTorch | Ray | TensorFlow; // @public export type DistributionType = string; +// @public (undocumented) +export interface Docker { + [property: string]: any; + privileged?: boolean; +} + // @public export interface EarlyTerminationPolicy { delayEvaluation?: number; @@ -1752,22 +2216,48 @@ export type EarlyTerminationPolicyUnion = EarlyTerminationPolicy | BanditPolicy export type EgressPublicNetworkAccessType = string; // @public (undocumented) -export interface EncryptionKeyVaultProperties { - identityClientId?: string; +export interface EmailMonitoringAlertNotificationSettings extends MonitoringAlertNotificationSettingsBase { + alertNotificationType: "Email"; + emailNotificationSetting?: NotificationSetting; +} + +// @public +export type EmailNotificationEnableType = string; + +// @public (undocumented) +export interface EncryptionKeyVaultUpdateProperties { + // (undocumented) keyIdentifier: string; - keyVaultArmId: string; } // @public (undocumented) export interface EncryptionProperty { + cosmosDbResourceId?: string; identity?: IdentityForCmk; - keyVaultProperties: EncryptionKeyVaultProperties; + keyVaultProperties: KeyVaultProperties; + searchAccountResourceId?: string; status: EncryptionStatus; + storageAccountResourceId?: string; } // @public export type EncryptionStatus = string; +// @public (undocumented) +export interface EncryptionUpdateProperties { + // (undocumented) + keyVaultProperties: EncryptionKeyVaultUpdateProperties; +} + +// @public (undocumented) +export interface Endpoint { + hostIp?: string; + name?: string; + protocol?: Protocol; + published?: number; + target?: number; +} + // @public export interface EndpointAuthKeys { primaryKey?: string; @@ -1822,6 +2312,9 @@ export interface EndpointScheduleAction extends ScheduleActionBase { endpointInvocationDefinition: Record; } +// @public +export type EndpointServiceConnectionStatus = string; + // @public export interface EnvironmentContainer extends Resource { properties: EnvironmentContainerProperties; @@ -1829,6 +2322,7 @@ export interface EnvironmentContainer extends Resource { // @public export interface EnvironmentContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public @@ -1865,8 +2359,6 @@ export type EnvironmentContainersGetResponse = EnvironmentContainer; // @public export interface EnvironmentContainersListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - skip?: string; } // @public @@ -1884,6 +2376,16 @@ export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmP // @public export type EnvironmentType = string; +// @public (undocumented) +export interface EnvironmentVariable { + [property: string]: any; + type?: EnvironmentVariableType; + value?: string; +} + +// @public +export type EnvironmentVariableType = string; + // @public export interface EnvironmentVersion extends Resource { properties: EnvironmentVersionProperties; @@ -1897,7 +2399,10 @@ export interface EnvironmentVersionProperties extends AssetBase { readonly environmentType?: EnvironmentType; image?: string; inferenceConfig?: InferenceContainerProperties; + intellectualProperty?: IntellectualProperty; osType?: OperatingSystemType; + readonly provisioningState?: AssetProvisioningState; + stage?: string; } // @public @@ -1934,10 +2439,6 @@ export type EnvironmentVersionsGetResponse = EnvironmentVersion; // @public export interface EnvironmentVersionsListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ListViewType; - orderBy?: string; - skip?: string; - top?: number; } // @public @@ -1948,6 +2449,7 @@ export interface EnvironmentVersionsListOptionalParams extends coreClient.Operat listViewType?: ListViewType; orderBy?: string; skip?: string; + stage?: string; top?: number; } @@ -1988,2481 +2490,5802 @@ export interface EstimatedVMPrices { values: EstimatedVMPrice[]; } +// @public +export type ExportFormatType = string; + // @public (undocumented) -export interface ExternalFqdnResponse { - // (undocumented) - value?: FqdnEndpoints[]; +export interface ExportSummary { + readonly endDateTime?: Date; + readonly exportedRowCount?: number; + format: "Coco" | "CSV" | "Dataset"; + readonly labelingJobId?: string; + readonly startDateTime?: Date; } -// @public -export type FeatureLags = string; +// @public (undocumented) +export type ExportSummaryUnion = ExportSummary | CocoExportSummary | CsvExportSummary | DatasetExportSummary; -// @public -export type FeaturizationMode = string; +// @public (undocumented) +export interface ExternalFqdnResponse { + // (undocumented) + value?: FqdnEndpointsPropertyBag[]; +} // @public -export interface FeaturizationSettings { - datasetLanguage?: string; +export interface Feature extends Resource { + properties: FeatureProperties; } // @public (undocumented) -export interface FlavorData { - data?: { - [propertyName: string]: string | null; - }; +export interface FeatureAttributionDriftMonitoringSignal extends MonitoringSignalBase { + metricThreshold: FeatureAttributionMetricThreshold; + productionData: MonitoringInputDataBaseUnion[]; + referenceData: MonitoringInputDataBaseUnion; + signalType: "FeatureAttributionDrift"; } // @public -export interface ForecastHorizon { - mode: "Auto" | "Custom"; +export type FeatureAttributionMetric = string; + +// @public (undocumented) +export interface FeatureAttributionMetricThreshold { + metric: FeatureAttributionMetric; + threshold?: MonitoringThreshold; } // @public -export type ForecastHorizonMode = string; +export type FeatureDataType = string; -// @public (undocumented) -export type ForecastHorizonUnion = ForecastHorizon | AutoForecastHorizon | CustomForecastHorizon; +// @public +export type FeatureLags = string; // @public -export interface Forecasting extends TableVertical, AutoMLVertical { - forecastingSettings?: ForecastingSettings; - primaryMetric?: ForecastingPrimaryMetrics; - trainingSettings?: ForecastingTrainingSettings; +export interface FeatureProperties extends ResourceBase { + dataType?: FeatureDataType; + featureName?: string; } // @public -export type ForecastingModels = string; +export interface FeatureResourceArmPaginatedResult { + nextLink?: string; + value?: Feature[]; +} // @public -export type ForecastingPrimaryMetrics = string; +export interface Features { + get(resourceGroupName: string, workspaceName: string, featuresetName: string, featuresetVersion: string, featureName: string, options?: FeaturesGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, featuresetName: string, featuresetVersion: string, options?: FeaturesListOptionalParams): PagedAsyncIterableIterator; +} // @public -export interface ForecastingSettings { - countryOrRegionForHolidays?: string; - cvStepSize?: number; - featureLags?: FeatureLags; - forecastHorizon?: ForecastHorizonUnion; - frequency?: string; - seasonality?: SeasonalityUnion; - shortSeriesHandlingConfig?: ShortSeriesHandlingConfiguration; - targetAggregateFunction?: TargetAggregationFunction; - targetLags?: TargetLagsUnion; - targetRollingWindowSize?: TargetRollingWindowSizeUnion; - timeColumnName?: string; - timeSeriesIdColumnNames?: string[]; - useStl?: UseStl; +export interface FeaturesetContainer extends Resource { + properties: FeaturesetContainerProperties; } // @public -export interface ForecastingTrainingSettings extends TrainingSettings { - allowedTrainingAlgorithms?: ForecastingModels[]; - blockedTrainingAlgorithms?: ForecastingModels[]; +export interface FeaturesetContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } -// @public (undocumented) -export interface FqdnEndpoint { - // (undocumented) - domainName?: string; - // (undocumented) - endpointDetails?: FqdnEndpointDetail[]; +// @public +export interface FeaturesetContainerResourceArmPaginatedResult { + nextLink?: string; + value?: FeaturesetContainer[]; } -// @public (undocumented) -export interface FqdnEndpointDetail { - // (undocumented) - port?: number; +// @public +export interface FeaturesetContainers { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: FeaturesetContainer, options?: FeaturesetContainersCreateOrUpdateOptionalParams): Promise, FeaturesetContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, body: FeaturesetContainer, options?: FeaturesetContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturesetContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturesetContainersDeleteOptionalParams): Promise; + getEntity(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturesetContainersGetEntityOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: FeaturesetContainersListOptionalParams): PagedAsyncIterableIterator; } -// @public (undocumented) -export interface FqdnEndpoints { - // (undocumented) - properties?: FqdnEndpointsProperties; +// @public +export interface FeaturesetContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } -// @public (undocumented) -export interface FqdnEndpointsProperties { - // (undocumented) - category?: string; - // (undocumented) - endpoints?: FqdnEndpoint[]; +// @public +export interface FeaturesetContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export function getContinuationToken(page: unknown): string | undefined; +export type FeaturesetContainersCreateOrUpdateResponse = FeaturesetContainer; // @public -export type Goal = string; +export interface FeaturesetContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} // @public -export interface GridSamplingAlgorithm extends SamplingAlgorithm { - samplingAlgorithmType: "Grid"; +export interface FeaturesetContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface HDInsight extends Compute, HDInsightSchema { - computeType: "HDInsight"; +export interface FeaturesetContainersGetEntityOptionalParams extends coreClient.OperationOptions { } // @public -export interface HDInsightProperties { - address?: string; - administratorAccount?: VirtualMachineSshCredentials; - sshPort?: number; +export type FeaturesetContainersGetEntityResponse = FeaturesetContainer; + +// @public +export interface FeaturesetContainersListNextOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface HDInsightSchema { - properties?: HDInsightProperties; +// @public +export type FeaturesetContainersListNextResponse = FeaturesetContainerResourceArmPaginatedResult; + +// @public +export interface FeaturesetContainersListOptionalParams extends coreClient.OperationOptions { + createdBy?: string; + description?: string; + listViewType?: ListViewType; + name?: string; + pageSize?: number; + skip?: string; + tags?: string; } // @public -export interface IdAssetReference extends AssetReferenceBase { - assetId: string; - referenceType: "Id"; +export type FeaturesetContainersListResponse = FeaturesetContainerResourceArmPaginatedResult; + +// @public +export interface FeaturesetSpecification { + path?: string; } // @public -export interface IdentityConfiguration { - identityType: "AMLToken" | "Managed" | "UserIdentity"; +export interface FeaturesetVersion extends Resource { + properties: FeaturesetVersionProperties; } // @public -export type IdentityConfigurationType = string; +export interface FeaturesetVersionBackfillRequest { + dataAvailabilityStatus?: DataAvailabilityStatus[]; + description?: string; + displayName?: string; + featureWindow?: FeatureWindow; + jobId?: string; + properties?: { + [propertyName: string]: string | null; + }; + resource?: MaterializationComputeResource; + sparkConfiguration?: { + [propertyName: string]: string | null; + }; + tags?: { + [propertyName: string]: string | null; + }; +} -// @public (undocumented) -export type IdentityConfigurationUnion = IdentityConfiguration | AmlToken | ManagedIdentity | UserIdentity; +// @public +export interface FeaturesetVersionBackfillResponse { + jobIds?: string[]; +} // @public -export interface IdentityForCmk { - userAssignedIdentity?: string; +export interface FeaturesetVersionProperties extends AssetBase { + entities?: string[]; + materializationSettings?: MaterializationSettings; + readonly provisioningState?: AssetProvisioningState; + specification?: FeaturesetSpecification; + stage?: string; } // @public -export interface ImageClassification extends ImageClassificationBase, AutoMLVertical { - primaryMetric?: ClassificationPrimaryMetrics; +export interface FeaturesetVersionResourceArmPaginatedResult { + nextLink?: string; + value?: FeaturesetVersion[]; } -// @public (undocumented) -export interface ImageClassificationBase extends ImageVertical { - modelSettings?: ImageModelSettingsClassification; - searchSpace?: ImageModelDistributionSettingsClassification[]; +// @public +export interface FeaturesetVersions { + beginBackfill(resourceGroupName: string, workspaceName: string, name: string, version: string, body: FeaturesetVersionBackfillRequest, options?: FeaturesetVersionsBackfillOptionalParams): Promise, FeaturesetVersionsBackfillResponse>>; + beginBackfillAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, body: FeaturesetVersionBackfillRequest, options?: FeaturesetVersionsBackfillOptionalParams): Promise; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: FeaturesetVersion, options?: FeaturesetVersionsCreateOrUpdateOptionalParams): Promise, FeaturesetVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, body: FeaturesetVersion, options?: FeaturesetVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: FeaturesetVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: FeaturesetVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: FeaturesetVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturesetVersionsListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface ImageClassificationMultilabel extends ImageClassificationBase, AutoMLVertical { - primaryMetric?: ClassificationMultilabelPrimaryMetrics; +export interface FeaturesetVersionsBackfillHeaders { + location?: string; + retryAfter?: number; } // @public -export interface ImageInstanceSegmentation extends ImageObjectDetectionBase, AutoMLVertical { - primaryMetric?: InstanceSegmentationPrimaryMetrics; +export interface FeaturesetVersionsBackfillOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface ImageLimitSettings { - maxConcurrentTrials?: number; - maxTrials?: number; - timeout?: string; +export type FeaturesetVersionsBackfillResponse = FeaturesetVersionBackfillResponse; + +// @public +export interface FeaturesetVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export interface ImageModelDistributionSettings { - amsGradient?: string; - augmentations?: string; - beta1?: string; - beta2?: string; - distributed?: string; - earlyStopping?: string; - earlyStoppingDelay?: string; - earlyStoppingPatience?: string; - enableOnnxNormalization?: string; - evaluationFrequency?: string; - gradientAccumulationStep?: string; - layersToFreeze?: string; - learningRate?: string; - learningRateScheduler?: string; - modelName?: string; - momentum?: string; - nesterov?: string; - numberOfEpochs?: string; - numberOfWorkers?: string; - optimizer?: string; - randomSeed?: string; - stepLRGamma?: string; - stepLRStepSize?: string; - trainingBatchSize?: string; - validationBatchSize?: string; - warmupCosineLRCycles?: string; - warmupCosineLRWarmupEpochs?: string; - weightDecay?: string; +export interface FeaturesetVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface ImageModelDistributionSettingsClassification extends ImageModelDistributionSettings { - trainingCropSize?: string; - validationCropSize?: string; - validationResizeSize?: string; - weightedLoss?: string; -} +export type FeaturesetVersionsCreateOrUpdateResponse = FeaturesetVersion; // @public -export interface ImageModelDistributionSettingsObjectDetection extends ImageModelDistributionSettings { - boxDetectionsPerImage?: string; - boxScoreThreshold?: string; - imageSize?: string; - maxSize?: string; - minSize?: string; - modelSize?: string; - multiScale?: string; - nmsIouThreshold?: string; - tileGridSize?: string; - tileOverlapRatio?: string; - tilePredictionsNmsThreshold?: string; - validationIouThreshold?: string; - validationMetricType?: string; +export interface FeaturesetVersionsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface ImageModelSettings { - advancedSettings?: string; - amsGradient?: boolean; - augmentations?: string; - beta1?: number; - beta2?: number; - checkpointFrequency?: number; - checkpointModel?: MLFlowModelJobInput; - checkpointRunId?: string; - distributed?: boolean; - earlyStopping?: boolean; - earlyStoppingDelay?: number; - earlyStoppingPatience?: number; - enableOnnxNormalization?: boolean; - evaluationFrequency?: number; - gradientAccumulationStep?: number; - layersToFreeze?: number; - learningRate?: number; - learningRateScheduler?: LearningRateScheduler; - modelName?: string; - momentum?: number; - nesterov?: boolean; - numberOfEpochs?: number; - numberOfWorkers?: number; - optimizer?: StochasticOptimizer; - randomSeed?: number; - stepLRGamma?: number; - stepLRStepSize?: number; - trainingBatchSize?: number; - validationBatchSize?: number; - warmupCosineLRCycles?: number; - warmupCosineLRWarmupEpochs?: number; - weightDecay?: number; +export interface FeaturesetVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface ImageModelSettingsClassification extends ImageModelSettings { - trainingCropSize?: number; - validationCropSize?: number; - validationResizeSize?: number; - weightedLoss?: number; +export interface FeaturesetVersionsGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface ImageModelSettingsObjectDetection extends ImageModelSettings { - boxDetectionsPerImage?: number; - boxScoreThreshold?: number; - imageSize?: number; - maxSize?: number; - minSize?: number; - modelSize?: ModelSize; - multiScale?: boolean; - nmsIouThreshold?: number; - tileGridSize?: string; - tileOverlapRatio?: number; - tilePredictionsNmsThreshold?: number; - validationIouThreshold?: number; - validationMetricType?: ValidationMetricType; -} +export type FeaturesetVersionsGetResponse = FeaturesetVersion; // @public -export interface ImageObjectDetection extends ImageObjectDetectionBase, AutoMLVertical { - primaryMetric?: ObjectDetectionPrimaryMetrics; +export interface FeaturesetVersionsListNextOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface ImageObjectDetectionBase extends ImageVertical { - modelSettings?: ImageModelSettingsObjectDetection; - searchSpace?: ImageModelDistributionSettingsObjectDetection[]; +// @public +export type FeaturesetVersionsListNextResponse = FeaturesetVersionResourceArmPaginatedResult; + +// @public +export interface FeaturesetVersionsListOptionalParams extends coreClient.OperationOptions { + createdBy?: string; + description?: string; + listViewType?: ListViewType; + pageSize?: number; + skip?: string; + stage?: string; + tags?: string; + version?: string; + versionName?: string; } // @public -export interface ImageSweepSettings { - earlyTermination?: EarlyTerminationPolicyUnion; - samplingAlgorithm: SamplingAlgorithmType; +export type FeaturesetVersionsListResponse = FeaturesetVersionResourceArmPaginatedResult; + +// @public +export interface FeaturesGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface ImageVertical { - limitSettings: ImageLimitSettings; - sweepSettings?: ImageSweepSettings; - validationData?: MLTableJobInput; - validationDataSize?: number; +export type FeaturesGetResponse = Feature; + +// @public +export interface FeaturesListNextOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface InferenceContainerProperties { - livenessRoute?: Route; - readinessRoute?: Route; - scoringRoute?: Route; +// @public +export type FeaturesListNextResponse = FeatureResourceArmPaginatedResult; + +// @public +export interface FeaturesListOptionalParams extends coreClient.OperationOptions { + description?: string; + featureName?: string; + listViewType?: ListViewType; + pageSize?: number; + skip?: string; + tags?: string; } // @public -export type InputDeliveryMode = string; +export type FeaturesListResponse = FeatureResourceArmPaginatedResult; // @public -export type InstanceSegmentationPrimaryMetrics = string; +export interface FeaturestoreEntityContainer extends Resource { + properties: FeaturestoreEntityContainerProperties; +} // @public -export interface InstanceTypeSchema { - nodeSelector?: { - [propertyName: string]: string | null; - }; - resources?: InstanceTypeSchemaResources; +export interface FeaturestoreEntityContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; } // @public -export interface InstanceTypeSchemaResources { - limits?: { - [propertyName: string]: string; - }; - requests?: { - [propertyName: string]: string; - }; +export interface FeaturestoreEntityContainerResourceArmPaginatedResult { + nextLink?: string; + value?: FeaturestoreEntityContainer[]; } // @public -export interface JobBase extends Resource { - properties: JobBasePropertiesUnion; +export interface FeaturestoreEntityContainers { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: FeaturestoreEntityContainer, options?: FeaturestoreEntityContainersCreateOrUpdateOptionalParams): Promise, FeaturestoreEntityContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, body: FeaturestoreEntityContainer, options?: FeaturestoreEntityContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturestoreEntityContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturestoreEntityContainersDeleteOptionalParams): Promise; + getEntity(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturestoreEntityContainersGetEntityOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: FeaturestoreEntityContainersListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface JobBaseProperties extends ResourceBase { - componentId?: string; - computeId?: string; - displayName?: string; - experimentName?: string; - identity?: IdentityConfigurationUnion; - isArchived?: boolean; - jobType: JobType; - services?: { - [propertyName: string]: JobService | null; - }; - readonly status?: JobStatus; +export interface FeaturestoreEntityContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } -// @public (undocumented) -export type JobBasePropertiesUnion = JobBaseProperties | AutoMLJob | CommandJob | PipelineJob | SweepJob; +// @public +export interface FeaturestoreEntityContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface JobBaseResourceArmPaginatedResult { - nextLink?: string; - value?: JobBase[]; +export type FeaturestoreEntityContainersCreateOrUpdateResponse = FeaturestoreEntityContainer; + +// @public +export interface FeaturestoreEntityContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface JobInput { - description?: string; - jobInputType: "mltable" | "custom_model" | "mlflow_model" | "literal" | "triton_model" | "uri_file" | "uri_folder"; +export interface FeaturestoreEntityContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type JobInputType = string; +export interface FeaturestoreEntityContainersGetEntityOptionalParams extends coreClient.OperationOptions { +} -// @public (undocumented) -export type JobInputUnion = JobInput | MLTableJobInput | CustomModelJobInput | MLFlowModelJobInput | LiteralJobInput | TritonModelJobInput | UriFileJobInput | UriFolderJobInput; +// @public +export type FeaturestoreEntityContainersGetEntityResponse = FeaturestoreEntityContainer; -// @public (undocumented) -export interface JobLimits { - jobLimitsType: "Command" | "Sweep"; - timeout?: string; +// @public +export interface FeaturestoreEntityContainersListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type JobLimitsType = string; - -// @public (undocumented) -export type JobLimitsUnion = JobLimits | CommandJobLimits | SweepJobLimits; +export type FeaturestoreEntityContainersListNextResponse = FeaturestoreEntityContainerResourceArmPaginatedResult; // @public -export interface JobOutput { +export interface FeaturestoreEntityContainersListOptionalParams extends coreClient.OperationOptions { + createdBy?: string; description?: string; - jobOutputType: "custom_model" | "mlflow_model" | "mltable" | "triton_model" | "uri_file" | "uri_folder"; + listViewType?: ListViewType; + name?: string; + pageSize?: number; + skip?: string; + tags?: string; } // @public -export type JobOutputType = string; - -// @public (undocumented) -export type JobOutputUnion = JobOutput | CustomModelJobOutput | MLFlowModelJobOutput | MLTableJobOutput | TritonModelJobOutput | UriFileJobOutput | UriFolderJobOutput; +export type FeaturestoreEntityContainersListResponse = FeaturestoreEntityContainerResourceArmPaginatedResult; -// @public (undocumented) -export interface JobResourceConfiguration extends ResourceConfiguration { - dockerArgs?: string; - shmSize?: string; +// @public +export interface FeaturestoreEntityVersion extends Resource { + properties: FeaturestoreEntityVersionProperties; } // @public -export interface Jobs { - beginCancel(resourceGroupName: string, workspaceName: string, id: string, options?: JobsCancelOptionalParams): Promise, void>>; - beginCancelAndWait(resourceGroupName: string, workspaceName: string, id: string, options?: JobsCancelOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, id: string, options?: JobsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, workspaceName: string, id: string, options?: JobsDeleteOptionalParams): Promise; - createOrUpdate(resourceGroupName: string, workspaceName: string, id: string, body: JobBase, options?: JobsCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, workspaceName: string, id: string, options?: JobsGetOptionalParams): Promise; - list(resourceGroupName: string, workspaceName: string, options?: JobsListOptionalParams): PagedAsyncIterableIterator; +export interface FeaturestoreEntityVersionProperties extends AssetBase { + indexColumns?: IndexColumn[]; + readonly provisioningState?: AssetProvisioningState; + stage?: string; } // @public -export interface JobsCancelHeaders { - location?: string; - retryAfter?: number; +export interface FeaturestoreEntityVersionResourceArmPaginatedResult { + nextLink?: string; + value?: FeaturestoreEntityVersion[]; } // @public -export interface JobsCancelOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface FeaturestoreEntityVersions { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: FeaturestoreEntityVersion, options?: FeaturestoreEntityVersionsCreateOrUpdateOptionalParams): Promise, FeaturestoreEntityVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, body: FeaturestoreEntityVersion, options?: FeaturestoreEntityVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: FeaturestoreEntityVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: FeaturestoreEntityVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: FeaturestoreEntityVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, name: string, options?: FeaturestoreEntityVersionsListOptionalParams): PagedAsyncIterableIterator; } -// @public (undocumented) -export interface JobScheduleAction extends ScheduleActionBase { - actionType: "CreateJob"; - jobDefinition: JobBasePropertiesUnion; +// @public +export interface FeaturestoreEntityVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface FeaturestoreEntityVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type JobsCreateOrUpdateResponse = JobBase; +export type FeaturestoreEntityVersionsCreateOrUpdateResponse = FeaturestoreEntityVersion; // @public -export interface JobsDeleteHeaders { +export interface FeaturestoreEntityVersionsDeleteHeaders { location?: string; retryAfter?: number; xMsAsyncOperationTimeout?: string; } // @public -export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { +export interface FeaturestoreEntityVersionsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface JobService { - endpoint?: string; - readonly errorMessage?: string; - jobServiceType?: string; - port?: number; - properties?: { - [propertyName: string]: string | null; - }; - readonly status?: string; +export interface FeaturestoreEntityVersionsGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface JobsGetOptionalParams extends coreClient.OperationOptions { +export type FeaturestoreEntityVersionsGetResponse = FeaturestoreEntityVersion; + +// @public +export interface FeaturestoreEntityVersionsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type JobsGetResponse = JobBase; +export type FeaturestoreEntityVersionsListNextResponse = FeaturestoreEntityVersionResourceArmPaginatedResult; // @public -export interface JobsListNextOptionalParams extends coreClient.OperationOptions { - jobType?: string; +export interface FeaturestoreEntityVersionsListOptionalParams extends coreClient.OperationOptions { + createdBy?: string; + description?: string; listViewType?: ListViewType; + pageSize?: number; skip?: string; - tag?: string; + stage?: string; + tags?: string; + version?: string; + versionName?: string; } // @public -export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; +export type FeaturestoreEntityVersionsListResponse = FeaturestoreEntityVersionResourceArmPaginatedResult; -// @public -export interface JobsListOptionalParams extends coreClient.OperationOptions { - jobType?: string; - listViewType?: ListViewType; - skip?: string; - tag?: string; +// @public (undocumented) +export interface FeatureStoreSettings { + // (undocumented) + computeRuntime?: ComputeRuntimeDto; + // (undocumented) + offlineStoreConnectionName?: string; + // (undocumented) + onlineStoreConnectionName?: string; } -// @public -export type JobsListResponse = JobBaseResourceArmPaginatedResult; +// @public (undocumented) +export interface FeatureSubset extends MonitoringFeatureFilterBase { + features: string[]; + filterType: "FeatureSubset"; +} // @public -export type JobStatus = string; +export interface FeatureWindow { + featureWindowEnd?: Date; + featureWindowStart?: Date; +} // @public -export type JobType = string; +export type FeaturizationMode = string; // @public -type KeyType_2 = string; -export { KeyType_2 as KeyType } +export interface FeaturizationSettings { + datasetLanguage?: string; +} -// @public -export enum KnownAllocationState { - Resizing = "Resizing", - Steady = "Steady" +// @public (undocumented) +export interface FileSystemSource extends DataImportSource { + path?: string; + sourceType: "file_system"; } // @public -export enum KnownApplicationSharingPolicy { - Personal = "Personal", - Shared = "Shared" +export interface FixedInputData extends MonitoringInputDataBase { + inputDataType: "Fixed"; } -// @public -export enum KnownAutoRebuildSetting { - Disabled = "Disabled", - OnBaseImageUpdate = "OnBaseImageUpdate" +// @public (undocumented) +export interface FlavorData { + data?: { + [propertyName: string]: string | null; + }; } // @public -export enum KnownAutosave { - Local = "Local", - None = "None", - Remote = "Remote" +export interface ForecastHorizon { + mode: "Auto" | "Custom"; } // @public -export enum KnownBatchLoggingLevel { - Debug = "Debug", - Info = "Info", - Warning = "Warning" -} +export type ForecastHorizonMode = string; + +// @public (undocumented) +export type ForecastHorizonUnion = ForecastHorizon | AutoForecastHorizon | CustomForecastHorizon; // @public -export enum KnownBatchOutputAction { - AppendRow = "AppendRow", - SummaryOnly = "SummaryOnly" +export interface Forecasting extends TableVertical, AutoMLVertical { + forecastingSettings?: ForecastingSettings; + primaryMetric?: ForecastingPrimaryMetrics; + trainingSettings?: ForecastingTrainingSettings; } // @public -export enum KnownBillingCurrency { - USD = "USD" -} +export type ForecastingModels = string; // @public -export enum KnownBlockedTransformers { - CatTargetEncoder = "CatTargetEncoder", - CountVectorizer = "CountVectorizer", - HashOneHotEncoder = "HashOneHotEncoder", - LabelEncoder = "LabelEncoder", - NaiveBayes = "NaiveBayes", - OneHotEncoder = "OneHotEncoder", - TextTargetEncoder = "TextTargetEncoder", - TfIdf = "TfIdf", - WoETargetEncoder = "WoETargetEncoder", - WordEmbedding = "WordEmbedding" -} +export type ForecastingPrimaryMetrics = string; // @public -export enum KnownCaching { - None = "None", - ReadOnly = "ReadOnly", - ReadWrite = "ReadWrite" +export interface ForecastingSettings { + countryOrRegionForHolidays?: string; + cvStepSize?: number; + featureLags?: FeatureLags; + featuresUnknownAtForecastTime?: string[]; + forecastHorizon?: ForecastHorizonUnion; + frequency?: string; + seasonality?: SeasonalityUnion; + shortSeriesHandlingConfig?: ShortSeriesHandlingConfiguration; + targetAggregateFunction?: TargetAggregationFunction; + targetLags?: TargetLagsUnion; + targetRollingWindowSize?: TargetRollingWindowSizeUnion; + timeColumnName?: string; + timeSeriesIdColumnNames?: string[]; + useStl?: UseStl; } // @public -export enum KnownClassificationModels { - BernoulliNaiveBayes = "BernoulliNaiveBayes", - DecisionTree = "DecisionTree", - ExtremeRandomTrees = "ExtremeRandomTrees", - GradientBoosting = "GradientBoosting", - KNN = "KNN", - LightGBM = "LightGBM", - LinearSVM = "LinearSVM", - LogisticRegression = "LogisticRegression", - MultinomialNaiveBayes = "MultinomialNaiveBayes", - RandomForest = "RandomForest", - SGD = "SGD", - SVM = "SVM", - XGBoostClassifier = "XGBoostClassifier" +export interface ForecastingTrainingSettings extends TrainingSettings { + allowedTrainingAlgorithms?: ForecastingModels[]; + blockedTrainingAlgorithms?: ForecastingModels[]; } -// @public -export enum KnownClassificationMultilabelPrimaryMetrics { - Accuracy = "Accuracy", - AUCWeighted = "AUCWeighted", - AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", - IOU = "IOU", - NormMacroRecall = "NormMacroRecall", - PrecisionScoreWeighted = "PrecisionScoreWeighted" +// @public (undocumented) +export interface FqdnEndpoint { + // (undocumented) + domainName?: string; + // (undocumented) + endpointDetails?: FqdnEndpointDetail[]; } -// @public -export enum KnownClassificationPrimaryMetrics { - Accuracy = "Accuracy", - AUCWeighted = "AUCWeighted", - AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", - NormMacroRecall = "NormMacroRecall", - PrecisionScoreWeighted = "PrecisionScoreWeighted" +// @public (undocumented) +export interface FqdnEndpointDetail { + // (undocumented) + port?: number; } -// @public -export enum KnownClusterPurpose { - DenseProd = "DenseProd", - DevTest = "DevTest", - FastProd = "FastProd" +// @public (undocumented) +export interface FqdnEndpoints { + // (undocumented) + category?: string; + // (undocumented) + endpoints?: FqdnEndpoint[]; } // @public -export enum KnownComputeInstanceAuthorizationType { - Personal = "personal" +export interface FqdnEndpointsPropertyBag { + // (undocumented) + properties?: FqdnEndpoints; } // @public -export enum KnownComputeInstanceState { - CreateFailed = "CreateFailed", - Creating = "Creating", - Deleting = "Deleting", - JobRunning = "JobRunning", - Restarting = "Restarting", - Running = "Running", - SettingUp = "SettingUp", - SetupFailed = "SetupFailed", - Starting = "Starting", - Stopped = "Stopped", - Stopping = "Stopping", - Unknown = "Unknown", - Unusable = "Unusable", - UserSettingUp = "UserSettingUp", - UserSetupFailed = "UserSetupFailed" +export interface FqdnOutboundRule extends OutboundRule { + // (undocumented) + destination?: string; + type: "FQDN"; } // @public -export enum KnownComputePowerAction { - Start = "Start", - Stop = "Stop" -} +export type GenerationSafetyQualityMetric = string; // @public -export enum KnownComputeType { - AKS = "AKS", - AmlCompute = "AmlCompute", - ComputeInstance = "ComputeInstance", - Databricks = "Databricks", - DataFactory = "DataFactory", - DataLakeAnalytics = "DataLakeAnalytics", - HDInsight = "HDInsight", - Kubernetes = "Kubernetes", - SynapseSpark = "SynapseSpark", - VirtualMachine = "VirtualMachine" +export interface GenerationSafetyQualityMetricThreshold { + metric: GenerationSafetyQualityMetric; + threshold?: MonitoringThreshold; } // @public -export enum KnownConnectionAuthType { - ManagedIdentity = "ManagedIdentity", - None = "None", - PAT = "PAT", - SAS = "SAS", - UsernamePassword = "UsernamePassword" +export interface GenerationSafetyQualityMonitoringSignal extends MonitoringSignalBase { + metricThresholds: GenerationSafetyQualityMetricThreshold[]; + productionData?: MonitoringInputDataBaseUnion[]; + samplingRate: number; + signalType: "GenerationSafetyQuality"; + workspaceConnectionId?: string; } // @public -export enum KnownConnectionCategory { - ContainerRegistry = "ContainerRegistry", - Git = "Git", - PythonFeed = "PythonFeed" -} +export type GenerationTokenStatisticsMetric = string; // @public -export enum KnownContainerType { - InferenceServer = "InferenceServer", - StorageInitializer = "StorageInitializer" +export interface GenerationTokenStatisticsMetricThreshold { + metric: GenerationTokenStatisticsMetric; + threshold?: MonitoringThreshold; } // @public -export enum KnownCreatedByType { - Application = "Application", - Key = "Key", - ManagedIdentity = "ManagedIdentity", - User = "User" +export interface GenerationTokenStatisticsSignal extends MonitoringSignalBase { + metricThresholds: GenerationTokenStatisticsMetricThreshold[]; + productionData?: MonitoringInputDataBaseUnion; + samplingRate: number; + signalType: "GenerationTokenStatistics"; } // @public -export enum KnownCredentialsType { - AccountKey = "AccountKey", - Certificate = "Certificate", - None = "None", - Sas = "Sas", - ServicePrincipal = "ServicePrincipal" -} +export function getContinuationToken(page: unknown): string | undefined; // @public -export enum KnownDatastoreType { - AzureBlob = "AzureBlob", - AzureDataLakeGen1 = "AzureDataLakeGen1", - AzureDataLakeGen2 = "AzureDataLakeGen2", - AzureFile = "AzureFile" -} +export type Goal = string; // @public -export enum KnownDataType { - Mltable = "mltable", - UriFile = "uri_file", - UriFolder = "uri_folder" +export interface GridSamplingAlgorithm extends SamplingAlgorithm { + samplingAlgorithmType: "Grid"; } -// @public -export enum KnownDeploymentProvisioningState { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Scaling = "Scaling", - Succeeded = "Succeeded", - Updating = "Updating" +// @public (undocumented) +export interface GroupStatus { + actualCapacityInfo?: ActualCapacityInfo; + bonusExtraCapacity?: number; + endpointCount?: number; + eventLog?: Record[]; + requestedCapacity?: number; } -// @public -export enum KnownDiagnoseResultLevel { - Error = "Error", - Information = "Information", - Warning = "Warning" +// @public (undocumented) +export interface HdfsDatastore extends DatastoreProperties { + datastoreType: "Hdfs"; + hdfsServerCertificate?: string; + nameNodeAddress: string; + protocol?: string; } // @public -export enum KnownDistributionType { +export interface HDInsight extends Compute, HDInsightSchema { + computeType: "HDInsight"; +} + +// @public +export interface HDInsightProperties { + address?: string; + administratorAccount?: VirtualMachineSshCredentials; + sshPort?: number; +} + +// @public (undocumented) +export interface HDInsightSchema { + properties?: HDInsightProperties; +} + +// @public +export interface IdAssetReference extends AssetReferenceBase { + assetId: string; + referenceType: "Id"; +} + +// @public +export interface IdentityConfiguration { + identityType: "AMLToken" | "Managed" | "UserIdentity"; +} + +// @public +export type IdentityConfigurationType = string; + +// @public (undocumented) +export type IdentityConfigurationUnion = IdentityConfiguration | AmlToken | ManagedIdentity | UserIdentity; + +// @public +export interface IdentityForCmk { + userAssignedIdentity?: string; +} + +// @public +export interface IdleShutdownSetting { + idleTimeBeforeShutdown?: string; +} + +// @public (undocumented) +interface Image_2 { + [property: string]: any; + reference?: string; + type?: ImageType; +} +export { Image_2 as Image } + +// @public +export type ImageAnnotationType = string; + +// @public +export interface ImageClassification extends ImageClassificationBase, AutoMLVertical { + primaryMetric?: ClassificationPrimaryMetrics; +} + +// @public (undocumented) +export interface ImageClassificationBase extends ImageVertical { + modelSettings?: ImageModelSettingsClassification; + searchSpace?: ImageModelDistributionSettingsClassification[]; +} + +// @public +export interface ImageClassificationMultilabel extends ImageClassificationBase, AutoMLVertical { + primaryMetric?: ClassificationMultilabelPrimaryMetrics; +} + +// @public +export interface ImageInstanceSegmentation extends ImageObjectDetectionBase, AutoMLVertical { + primaryMetric?: InstanceSegmentationPrimaryMetrics; +} + +// @public +export interface ImageLimitSettings { + maxConcurrentTrials?: number; + maxTrials?: number; + timeout?: string; +} + +// @public +export interface ImageMetadata { + currentImageVersion?: string; + isLatestOsImageVersion?: boolean; + latestImageVersion?: string; + readonly osPatchingStatus?: OsPatchingStatus; +} + +// @public +export interface ImageModelDistributionSettings { + amsGradient?: string; + augmentations?: string; + beta1?: string; + beta2?: string; + distributed?: string; + earlyStopping?: string; + earlyStoppingDelay?: string; + earlyStoppingPatience?: string; + enableOnnxNormalization?: string; + evaluationFrequency?: string; + gradientAccumulationStep?: string; + layersToFreeze?: string; + learningRate?: string; + learningRateScheduler?: string; + modelName?: string; + momentum?: string; + nesterov?: string; + numberOfEpochs?: string; + numberOfWorkers?: string; + optimizer?: string; + randomSeed?: string; + stepLRGamma?: string; + stepLRStepSize?: string; + trainingBatchSize?: string; + validationBatchSize?: string; + warmupCosineLRCycles?: string; + warmupCosineLRWarmupEpochs?: string; + weightDecay?: string; +} + +// @public +export interface ImageModelDistributionSettingsClassification extends ImageModelDistributionSettings { + trainingCropSize?: string; + validationCropSize?: string; + validationResizeSize?: string; + weightedLoss?: string; +} + +// @public +export interface ImageModelDistributionSettingsObjectDetection extends ImageModelDistributionSettings { + boxDetectionsPerImage?: string; + boxScoreThreshold?: string; + imageSize?: string; + maxSize?: string; + minSize?: string; + modelSize?: string; + multiScale?: string; + nmsIouThreshold?: string; + tileGridSize?: string; + tileOverlapRatio?: string; + tilePredictionsNmsThreshold?: string; + validationIouThreshold?: string; + validationMetricType?: string; +} + +// @public +export interface ImageModelSettings { + advancedSettings?: string; + amsGradient?: boolean; + augmentations?: string; + beta1?: number; + beta2?: number; + checkpointFrequency?: number; + checkpointModel?: MLFlowModelJobInput; + checkpointRunId?: string; + distributed?: boolean; + earlyStopping?: boolean; + earlyStoppingDelay?: number; + earlyStoppingPatience?: number; + enableOnnxNormalization?: boolean; + evaluationFrequency?: number; + gradientAccumulationStep?: number; + layersToFreeze?: number; + learningRate?: number; + learningRateScheduler?: LearningRateScheduler; + modelName?: string; + momentum?: number; + nesterov?: boolean; + numberOfEpochs?: number; + numberOfWorkers?: number; + optimizer?: StochasticOptimizer; + randomSeed?: number; + stepLRGamma?: number; + stepLRStepSize?: number; + trainingBatchSize?: number; + validationBatchSize?: number; + warmupCosineLRCycles?: number; + warmupCosineLRWarmupEpochs?: number; + weightDecay?: number; +} + +// @public +export interface ImageModelSettingsClassification extends ImageModelSettings { + trainingCropSize?: number; + validationCropSize?: number; + validationResizeSize?: number; + weightedLoss?: number; +} + +// @public +export interface ImageModelSettingsObjectDetection extends ImageModelSettings { + boxDetectionsPerImage?: number; + boxScoreThreshold?: number; + imageSize?: number; + logTrainingMetrics?: LogTrainingMetrics; + logValidationLoss?: LogValidationLoss; + maxSize?: number; + minSize?: number; + modelSize?: ModelSize; + multiScale?: boolean; + nmsIouThreshold?: number; + tileGridSize?: string; + tileOverlapRatio?: number; + tilePredictionsNmsThreshold?: number; + validationIouThreshold?: number; + validationMetricType?: ValidationMetricType; +} + +// @public +export interface ImageObjectDetection extends ImageObjectDetectionBase, AutoMLVertical { + primaryMetric?: ObjectDetectionPrimaryMetrics; +} + +// @public (undocumented) +export interface ImageObjectDetectionBase extends ImageVertical { + modelSettings?: ImageModelSettingsObjectDetection; + searchSpace?: ImageModelDistributionSettingsObjectDetection[]; +} + +// @public +export interface ImageSweepSettings { + earlyTermination?: EarlyTerminationPolicyUnion; + samplingAlgorithm: SamplingAlgorithmType; +} + +// @public +export type ImageType = string; + +// @public +export interface ImageVertical { + limitSettings: ImageLimitSettings; + sweepSettings?: ImageSweepSettings; + validationData?: MLTableJobInput; + validationDataSize?: number; +} + +// @public (undocumented) +export interface ImportDataAction extends ScheduleActionBase { + actionType: "ImportData"; + dataImportDefinition: DataImport; +} + +// @public +export type IncrementalDataRefresh = string; + +// @public +export interface IndexColumn { + columnName?: string; + dataType?: FeatureDataType; +} + +// @public (undocumented) +export interface InferenceContainerProperties { + livenessRoute?: Route; + readinessRoute?: Route; + scoringRoute?: Route; +} + +// @public +export interface InferenceEndpoint extends PropertiesBase { + authMode: AuthMode; + readonly endpointUri?: string; + readonly provisioningState?: PoolProvisioningState; +} + +// @public (undocumented) +export interface InferenceEndpointMinimalTrackedResource { + readonly id?: string; + kind?: string; + location: string; + readonly name?: string; + properties: InferenceEndpoint; + readonly systemData?: SystemData; + tags?: { + [propertyName: string]: string | null; + }; + readonly type?: string; +} + +// @public +export interface InferenceEndpointMinimalTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: InferenceEndpointMinimalTrackedResource[]; +} + +// @public +export interface InferenceEndpoints { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, name: string, body: InferenceEndpointMinimalTrackedResource, options?: InferenceEndpointsCreateOrUpdateOptionalParams): Promise, InferenceEndpointsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, name: string, body: InferenceEndpointMinimalTrackedResource, options?: InferenceEndpointsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, name: string, options?: InferenceEndpointsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, name: string, options?: InferenceEndpointsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, name: string, body: any, options?: InferenceEndpointsUpdateOptionalParams): Promise, InferenceEndpointsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, name: string, body: any, options?: InferenceEndpointsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, name: string, options?: InferenceEndpointsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, poolName: string, groupName: string, options?: InferenceEndpointsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface InferenceEndpointsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface InferenceEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type InferenceEndpointsCreateOrUpdateResponse = InferenceEndpointMinimalTrackedResource; + +// @public +export interface InferenceEndpointsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface InferenceEndpointsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface InferenceEndpointsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InferenceEndpointsGetResponse = InferenceEndpointMinimalTrackedResource; + +// @public +export interface InferenceEndpointsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InferenceEndpointsListNextResponse = InferenceEndpointMinimalTrackedResourceArmPaginatedResult; + +// @public +export interface InferenceEndpointsListOptionalParams extends coreClient.OperationOptions { + count?: number; + orderBy?: OrderString; + properties?: string; + skip?: string; + tags?: string; +} + +// @public +export type InferenceEndpointsListResponse = InferenceEndpointMinimalTrackedResourceArmPaginatedResult; + +// @public +export interface InferenceEndpointsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface InferenceEndpointsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type InferenceEndpointsUpdateResponse = InferenceEndpointMinimalTrackedResource; + +// @public +export interface InferenceGroup extends PropertiesBase { + bonusExtraCapacity?: number; + data?: string; + priority?: number; + readonly provisioningState?: PoolProvisioningState; +} + +// @public (undocumented) +export interface InferenceGroupMinimalTrackedResourceWithSku { + readonly id?: string; + kind?: string; + location: string; + readonly name?: string; + properties: InferenceGroup; + sku?: Sku; + readonly systemData?: SystemData; + tags?: { + [propertyName: string]: string | null; + }; + readonly type?: string; +} + +// @public +export interface InferenceGroupMinimalTrackedResourceWithSkuArmPaginatedResult { + nextLink?: string; + value?: InferenceGroupMinimalTrackedResourceWithSku[]; +} + +// @public +export interface InferenceGroups { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, poolName: string, name: string, body: InferenceGroupMinimalTrackedResourceWithSku, options?: InferenceGroupsCreateOrUpdateOptionalParams): Promise, InferenceGroupsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, poolName: string, name: string, body: InferenceGroupMinimalTrackedResourceWithSku, options?: InferenceGroupsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, poolName: string, name: string, options?: InferenceGroupsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, poolName: string, name: string, options?: InferenceGroupsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, poolName: string, name: string, body: PartialMinimalTrackedResourceWithSku, options?: InferenceGroupsUpdateOptionalParams): Promise, InferenceGroupsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, poolName: string, name: string, body: PartialMinimalTrackedResourceWithSku, options?: InferenceGroupsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, poolName: string, name: string, options?: InferenceGroupsGetOptionalParams): Promise; + getStatus(resourceGroupName: string, workspaceName: string, poolName: string, name: string, options?: InferenceGroupsGetStatusOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, poolName: string, options?: InferenceGroupsListOptionalParams): PagedAsyncIterableIterator; + listSkus(resourceGroupName: string, workspaceName: string, poolName: string, name: string, options?: InferenceGroupsListSkusOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface InferenceGroupsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface InferenceGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type InferenceGroupsCreateOrUpdateResponse = InferenceGroupMinimalTrackedResourceWithSku; + +// @public +export interface InferenceGroupsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface InferenceGroupsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface InferenceGroupsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InferenceGroupsGetResponse = InferenceGroupMinimalTrackedResourceWithSku; + +// @public +export interface InferenceGroupsGetStatusOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InferenceGroupsGetStatusResponse = GroupStatus; + +// @public +export interface InferenceGroupsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InferenceGroupsListNextResponse = InferenceGroupMinimalTrackedResourceWithSkuArmPaginatedResult; + +// @public +export interface InferenceGroupsListOptionalParams extends coreClient.OperationOptions { + count?: number; + orderBy?: OrderString; + properties?: string; + skip?: string; + tags?: string; +} + +// @public +export type InferenceGroupsListResponse = InferenceGroupMinimalTrackedResourceWithSkuArmPaginatedResult; + +// @public +export interface InferenceGroupsListSkusNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InferenceGroupsListSkusNextResponse = SkuResourceArmPaginatedResult; + +// @public +export interface InferenceGroupsListSkusOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type InferenceGroupsListSkusResponse = SkuResourceArmPaginatedResult; + +// @public +export interface InferenceGroupsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface InferenceGroupsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type InferenceGroupsUpdateResponse = InferenceGroupMinimalTrackedResourceWithSku; + +// @public (undocumented) +export interface InferencePool extends TrackedResource { + identity?: ManagedServiceIdentity; + kind?: string; + properties: InferencePoolProperties; + sku?: Sku; +} + +// @public +export interface InferencePoolProperties extends PropertiesBase { + codeConfiguration?: CodeConfiguration; + environmentConfiguration?: PoolEnvironmentConfiguration; + modelConfiguration?: PoolModelConfiguration; + nodeSkuType: string; + readonly provisioningState?: PoolProvisioningState; + requestConfiguration?: RequestConfiguration; +} + +// @public +export interface InferencePools { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: InferencePool, options?: InferencePoolsCreateOrUpdateOptionalParams): Promise, InferencePoolsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, body: InferencePool, options?: InferencePoolsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, name: string, options?: InferencePoolsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, name: string, options?: InferencePoolsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, name: string, body: PartialMinimalTrackedResourceWithSkuAndIdentity, options?: InferencePoolsUpdateOptionalParams): Promise, InferencePoolsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, body: PartialMinimalTrackedResourceWithSkuAndIdentity, options?: InferencePoolsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, options?: InferencePoolsGetOptionalParams): Promise; + getStatus(resourceGroupName: string, workspaceName: string, name: string, options?: InferencePoolsGetStatusOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: InferencePoolsListOptionalParams): PagedAsyncIterableIterator; + listSkus(resourceGroupName: string, workspaceName: string, name: string, options?: InferencePoolsListSkusOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface InferencePoolsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface InferencePoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type InferencePoolsCreateOrUpdateResponse = InferencePool; + +// @public +export interface InferencePoolsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface InferencePoolsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface InferencePoolsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InferencePoolsGetResponse = InferencePool; + +// @public +export interface InferencePoolsGetStatusOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InferencePoolsGetStatusResponse = PoolStatus; + +// @public +export interface InferencePoolsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InferencePoolsListNextResponse = InferencePoolTrackedResourceArmPaginatedResult; + +// @public +export interface InferencePoolsListOptionalParams extends coreClient.OperationOptions { + count?: number; + orderBy?: OrderString; + properties?: string; + skip?: string; + tags?: string; +} + +// @public +export type InferencePoolsListResponse = InferencePoolTrackedResourceArmPaginatedResult; + +// @public +export interface InferencePoolsListSkusNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InferencePoolsListSkusNextResponse = SkuResourceArmPaginatedResult; + +// @public +export interface InferencePoolsListSkusOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type InferencePoolsListSkusResponse = SkuResourceArmPaginatedResult; + +// @public +export interface InferencePoolsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface InferencePoolsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type InferencePoolsUpdateResponse = InferencePool; + +// @public +export interface InferencePoolTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: InferencePool[]; +} + +// @public (undocumented) +export interface InferencingServer { + serverType: "AzureMLBatch" | "AzureMLOnline" | "Custom" | "Triton"; +} + +// @public +export type InferencingServerType = string; + +// @public (undocumented) +export type InferencingServerUnion = InferencingServer | AzureMLBatchInferencingServer | AzureMLOnlineInferencingServer | CustomInferencingServer | TritonInferencingServer; + +// @public +export type InputDeliveryMode = string; + +// @public +export type InputPathType = string; + +// @public +export type InstanceSegmentationPrimaryMetrics = string; + +// @public +export interface InstanceTypeSchema { + nodeSelector?: { + [propertyName: string]: string | null; + }; + resources?: InstanceTypeSchemaResources; +} + +// @public +export interface InstanceTypeSchemaResources { + limits?: { + [propertyName: string]: string; + }; + requests?: { + [propertyName: string]: string; + }; +} + +// @public +export interface IntellectualProperty { + protectionLevel?: ProtectionLevel; + publisher: string; +} + +// @public +export type IsolationMode = string; + +// @public +export interface JobBase extends Resource { + properties: JobBasePropertiesUnion; +} + +// @public +export interface JobBaseProperties extends ResourceBase { + componentId?: string; + computeId?: string; + displayName?: string; + experimentName?: string; + identity?: IdentityConfigurationUnion; + isArchived?: boolean; + jobType: JobType; + notificationSetting?: NotificationSetting; + secretsConfiguration?: { + [propertyName: string]: SecretConfiguration | null; + }; + services?: { + [propertyName: string]: JobService | null; + }; + readonly status?: JobStatus; +} + +// @public (undocumented) +export type JobBasePropertiesUnion = JobBaseProperties | LabelingJobProperties | AutoMLJob | CommandJob | PipelineJob | SparkJob | SweepJob; + +// @public +export interface JobBaseResourceArmPaginatedResult { + nextLink?: string; + value?: JobBase[]; +} + +// @public +export interface JobInput { + description?: string; + jobInputType: "mltable" | "custom_model" | "mlflow_model" | "literal" | "triton_model" | "uri_file" | "uri_folder"; +} + +// @public +export type JobInputType = string; + +// @public (undocumented) +export type JobInputUnion = JobInput | MLTableJobInput | CustomModelJobInput | MLFlowModelJobInput | LiteralJobInput | TritonModelJobInput | UriFileJobInput | UriFolderJobInput; + +// @public (undocumented) +export interface JobLimits { + jobLimitsType: "Command" | "Sweep"; + timeout?: string; +} + +// @public +export type JobLimitsType = string; + +// @public (undocumented) +export type JobLimitsUnion = JobLimits | CommandJobLimits | SweepJobLimits; + +// @public +export interface JobOutput { + description?: string; + jobOutputType: "custom_model" | "mlflow_model" | "mltable" | "triton_model" | "uri_file" | "uri_folder"; +} + +// @public +export type JobOutputType = string; + +// @public (undocumented) +export type JobOutputUnion = JobOutput | CustomModelJobOutput | MLFlowModelJobOutput | MLTableJobOutput | TritonModelJobOutput | UriFileJobOutput | UriFolderJobOutput; + +// @public +export type JobProvisioningState = string; + +// @public (undocumented) +export interface JobResourceConfiguration extends ResourceConfiguration { + dockerArgs?: string; + shmSize?: string; +} + +// @public +export interface Jobs { + beginCancel(resourceGroupName: string, workspaceName: string, id: string, options?: JobsCancelOptionalParams): Promise, void>>; + beginCancelAndWait(resourceGroupName: string, workspaceName: string, id: string, options?: JobsCancelOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, id: string, options?: JobsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, id: string, options?: JobsDeleteOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, workspaceName: string, id: string, body: JobBase, options?: JobsCreateOrUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, id: string, options?: JobsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: JobsListOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, workspaceName: string, id: string, body: PartialJobBasePartialResource, options?: JobsUpdateOptionalParams): Promise; +} + +// @public +export interface JobsCancelHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface JobsCancelOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public (undocumented) +export interface JobScheduleAction extends ScheduleActionBase { + actionType: "CreateJob"; + jobDefinition: JobBasePropertiesUnion; +} + +// @public +export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobsCreateOrUpdateResponse = JobBase; + +// @public +export interface JobsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface JobService { + endpoint?: string; + readonly errorMessage?: string; + jobServiceType?: string; + nodes?: NodesUnion; + port?: number; + properties?: { + [propertyName: string]: string | null; + }; + readonly status?: string; +} + +// @public +export interface JobsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobsGetResponse = JobBase; + +// @public +export interface JobsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; + +// @public +export interface JobsListOptionalParams extends coreClient.OperationOptions { + assetName?: string; + jobType?: string; + listViewType?: ListViewType; + properties?: string; + scheduled?: boolean; + scheduleId?: string; + skip?: string; + tag?: string; +} + +// @public +export type JobsListResponse = JobBaseResourceArmPaginatedResult; + +// @public +export type JobStatus = string; + +// @public +export interface JobsUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type JobsUpdateResponse = JobBase; + +// @public +export type JobTier = string; + +// @public +export type JobType = string; + +// @public (undocumented) +export interface KerberosCredentials { + kerberosKdcAddress: string; + kerberosPrincipal: string; + kerberosRealm: string; +} + +// @public (undocumented) +export interface KerberosKeytabCredentials extends KerberosCredentials, DatastoreCredentials { + secrets: KerberosKeytabSecrets; +} + +// @public (undocumented) +export interface KerberosKeytabSecrets extends DatastoreSecrets { + kerberosKeytab?: string; + secretsType: "KerberosKeytab"; +} + +// @public (undocumented) +export interface KerberosPasswordCredentials extends KerberosCredentials, DatastoreCredentials { + secrets: KerberosPasswordSecrets; +} + +// @public (undocumented) +export interface KerberosPasswordSecrets extends DatastoreSecrets { + kerberosPassword?: string; + secretsType: "KerberosPassword"; +} + +// @public +type KeyType_2 = string; +export { KeyType_2 as KeyType } + +// @public +export interface KeyVaultProperties { + identityClientId?: string; + keyIdentifier: string; + keyVaultArmId: string; +} + +// @public +export enum KnownAllocationState { + Resizing = "Resizing", + Steady = "Steady" +} + +// @public +export enum KnownApplicationSharingPolicy { + Personal = "Personal", + Shared = "Shared" +} + +// @public +export enum KnownAssetProvisioningState { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownAuthMode { + AAD = "AAD" +} + +// @public +export enum KnownAutoDeleteCondition { + CreatedGreaterThan = "CreatedGreaterThan", + LastAccessedGreaterThan = "LastAccessedGreaterThan" +} + +// @public +export enum KnownAutoRebuildSetting { + Disabled = "Disabled", + OnBaseImageUpdate = "OnBaseImageUpdate" +} + +// @public +export enum KnownAutosave { + Local = "Local", + None = "None", + Remote = "Remote" +} + +// @public +export enum KnownBaseEnvironmentSourceType { + EnvironmentAsset = "EnvironmentAsset" +} + +// @public +export enum KnownBatchDeploymentConfigurationType { + Model = "Model", + PipelineComponent = "PipelineComponent" +} + +// @public +export enum KnownBatchLoggingLevel { + Debug = "Debug", + Info = "Info", + Warning = "Warning" +} + +// @public +export enum KnownBatchOutputAction { + AppendRow = "AppendRow", + SummaryOnly = "SummaryOnly" +} + +// @public +export enum KnownBillingCurrency { + USD = "USD" +} + +// @public +export enum KnownBlockedTransformers { + CatTargetEncoder = "CatTargetEncoder", + CountVectorizer = "CountVectorizer", + HashOneHotEncoder = "HashOneHotEncoder", + LabelEncoder = "LabelEncoder", + NaiveBayes = "NaiveBayes", + OneHotEncoder = "OneHotEncoder", + TextTargetEncoder = "TextTargetEncoder", + TfIdf = "TfIdf", + WoETargetEncoder = "WoETargetEncoder", + WordEmbedding = "WordEmbedding" +} + +// @public +export enum KnownCaching { + None = "None", + ReadOnly = "ReadOnly", + ReadWrite = "ReadWrite" +} + +// @public +export enum KnownCategoricalDataDriftMetric { + JensenShannonDistance = "JensenShannonDistance", + PearsonsChiSquaredTest = "PearsonsChiSquaredTest", + PopulationStabilityIndex = "PopulationStabilityIndex" +} + +// @public +export enum KnownCategoricalDataQualityMetric { + DataTypeErrorRate = "DataTypeErrorRate", + NullValueRate = "NullValueRate", + OutOfBoundsRate = "OutOfBoundsRate" +} + +// @public +export enum KnownCategoricalPredictionDriftMetric { + JensenShannonDistance = "JensenShannonDistance", + PearsonsChiSquaredTest = "PearsonsChiSquaredTest", + PopulationStabilityIndex = "PopulationStabilityIndex" +} + +// @public +export enum KnownClassificationModelPerformanceMetric { + Accuracy = "Accuracy", + Precision = "Precision", + Recall = "Recall" +} + +// @public +export enum KnownClassificationModels { + BernoulliNaiveBayes = "BernoulliNaiveBayes", + DecisionTree = "DecisionTree", + ExtremeRandomTrees = "ExtremeRandomTrees", + GradientBoosting = "GradientBoosting", + KNN = "KNN", + LightGBM = "LightGBM", + LinearSVM = "LinearSVM", + LogisticRegression = "LogisticRegression", + MultinomialNaiveBayes = "MultinomialNaiveBayes", + RandomForest = "RandomForest", + SGD = "SGD", + SVM = "SVM", + XGBoostClassifier = "XGBoostClassifier" +} + +// @public +export enum KnownClassificationMultilabelPrimaryMetrics { + Accuracy = "Accuracy", + AUCWeighted = "AUCWeighted", + AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", + IOU = "IOU", + NormMacroRecall = "NormMacroRecall", + PrecisionScoreWeighted = "PrecisionScoreWeighted" +} + +// @public +export enum KnownClassificationPrimaryMetrics { + Accuracy = "Accuracy", + AUCWeighted = "AUCWeighted", + AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", + NormMacroRecall = "NormMacroRecall", + PrecisionScoreWeighted = "PrecisionScoreWeighted" +} + +// @public +export enum KnownClusterPurpose { + DenseProd = "DenseProd", + DevTest = "DevTest", + FastProd = "FastProd" +} + +// @public +export enum KnownComputeInstanceAuthorizationType { + Personal = "personal" +} + +// @public +export enum KnownComputeInstanceState { + CreateFailed = "CreateFailed", + Creating = "Creating", + Deleting = "Deleting", + JobRunning = "JobRunning", + Resizing = "Resizing", + Restarting = "Restarting", + Running = "Running", + SettingUp = "SettingUp", + SetupFailed = "SetupFailed", + Starting = "Starting", + Stopped = "Stopped", + Stopping = "Stopping", + Unknown = "Unknown", + Unusable = "Unusable", + UserSettingUp = "UserSettingUp", + UserSetupFailed = "UserSetupFailed" +} + +// @public +export enum KnownComputePowerAction { + Start = "Start", + Stop = "Stop" +} + +// @public +export enum KnownComputeType { + AKS = "AKS", + AmlCompute = "AmlCompute", + ComputeInstance = "ComputeInstance", + Databricks = "Databricks", + DataFactory = "DataFactory", + DataLakeAnalytics = "DataLakeAnalytics", + HDInsight = "HDInsight", + Kubernetes = "Kubernetes", + SynapseSpark = "SynapseSpark", + VirtualMachine = "VirtualMachine" +} + +// @public +export enum KnownConnectionAuthType { + AccessKey = "AccessKey", + ApiKey = "ApiKey", + CustomKeys = "CustomKeys", + ManagedIdentity = "ManagedIdentity", + None = "None", + PAT = "PAT", + SAS = "SAS", + ServicePrincipal = "ServicePrincipal", + UsernamePassword = "UsernamePassword" +} + +// @public +export enum KnownConnectionCategory { + AdlsGen2 = "ADLSGen2", + ApiKey = "ApiKey", + AzureMySqlDb = "AzureMySqlDb", + AzureOpenAI = "AzureOpenAI", + AzurePostgresDb = "AzurePostgresDb", + AzureSqlDb = "AzureSqlDb", + AzureSynapseAnalytics = "AzureSynapseAnalytics", + CognitiveSearch = "CognitiveSearch", + CognitiveService = "CognitiveService", + ContainerRegistry = "ContainerRegistry", + CustomKeys = "CustomKeys", + Git = "Git", + PythonFeed = "PythonFeed", + Redis = "Redis", + S3 = "S3", + Snowflake = "Snowflake" +} + +// @public +export enum KnownContainerType { + InferenceServer = "InferenceServer", + ModelDataCollector = "ModelDataCollector", + StorageInitializer = "StorageInitializer" +} + +// @public +export enum KnownCreatedByType { + Application = "Application", + Key = "Key", + ManagedIdentity = "ManagedIdentity", + User = "User" +} + +// @public +export enum KnownCredentialsType { + AccountKey = "AccountKey", + Certificate = "Certificate", + KerberosKeytab = "KerberosKeytab", + KerberosPassword = "KerberosPassword", + None = "None", + Sas = "Sas", + ServicePrincipal = "ServicePrincipal" +} + +// @public +export enum KnownDataAvailabilityStatus { + Complete = "Complete", + Incomplete = "Incomplete", + None = "None", + Pending = "Pending" +} + +// @public +export enum KnownDataCollectionMode { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownDataImportSourceType { + Database = "database", + FileSystem = "file_system" +} + +// @public +export enum KnownDatastoreType { + AzureBlob = "AzureBlob", + AzureDataLakeGen1 = "AzureDataLakeGen1", + AzureDataLakeGen2 = "AzureDataLakeGen2", + AzureFile = "AzureFile", + Hdfs = "Hdfs", + OneLake = "OneLake" +} + +// @public +export enum KnownDataType { + Mltable = "mltable", + UriFile = "uri_file", + UriFolder = "uri_folder" +} + +// @public +export enum KnownDeploymentProvisioningState { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Scaling = "Scaling", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownDiagnoseResultLevel { + Error = "Error", + Information = "Information", + Warning = "Warning" +} + +// @public +export enum KnownDistributionType { Mpi = "Mpi", PyTorch = "PyTorch", + Ray = "Ray", TensorFlow = "TensorFlow" } // @public -export enum KnownEarlyTerminationPolicyType { - Bandit = "Bandit", - MedianStopping = "MedianStopping", - TruncationSelection = "TruncationSelection" +export enum KnownEarlyTerminationPolicyType { + Bandit = "Bandit", + MedianStopping = "MedianStopping", + TruncationSelection = "TruncationSelection" +} + +// @public +export enum KnownEgressPublicNetworkAccessType { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownEmailNotificationEnableType { + JobCancelled = "JobCancelled", + JobCompleted = "JobCompleted", + JobFailed = "JobFailed" +} + +// @public +export enum KnownEncryptionStatus { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownEndpointAuthMode { + AADToken = "AADToken", + AMLToken = "AMLToken", + Key = "Key" +} + +// @public +export enum KnownEndpointComputeType { + AzureMLCompute = "AzureMLCompute", + Kubernetes = "Kubernetes", + Managed = "Managed" +} + +// @public +export enum KnownEndpointProvisioningState { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownEndpointServiceConnectionStatus { + Approved = "Approved", + Disconnected = "Disconnected", + Pending = "Pending", + Rejected = "Rejected", + Timeout = "Timeout" +} + +// @public +export enum KnownEnvironmentType { + Curated = "Curated", + UserCreated = "UserCreated" +} + +// @public +export enum KnownEnvironmentVariableType { + Local = "local" +} + +// @public +export enum KnownExportFormatType { + Coco = "Coco", + CSV = "CSV", + Dataset = "Dataset" +} + +// @public +export enum KnownFeatureAttributionMetric { + NormalizedDiscountedCumulativeGain = "NormalizedDiscountedCumulativeGain" +} + +// @public +export enum KnownFeatureDataType { + Binary = "Binary", + Boolean = "Boolean", + Datetime = "Datetime", + Double = "Double", + Float = "Float", + Integer = "Integer", + Long = "Long", + String = "String" +} + +// @public +export enum KnownFeatureLags { + Auto = "Auto", + None = "None" +} + +// @public +export enum KnownFeaturizationMode { + Auto = "Auto", + Custom = "Custom", + Off = "Off" +} + +// @public +export enum KnownForecastHorizonMode { + Auto = "Auto", + Custom = "Custom" +} + +// @public +export enum KnownForecastingModels { + Arimax = "Arimax", + AutoArima = "AutoArima", + Average = "Average", + DecisionTree = "DecisionTree", + ElasticNet = "ElasticNet", + ExponentialSmoothing = "ExponentialSmoothing", + ExtremeRandomTrees = "ExtremeRandomTrees", + GradientBoosting = "GradientBoosting", + KNN = "KNN", + LassoLars = "LassoLars", + LightGBM = "LightGBM", + Naive = "Naive", + Prophet = "Prophet", + RandomForest = "RandomForest", + SeasonalAverage = "SeasonalAverage", + SeasonalNaive = "SeasonalNaive", + SGD = "SGD", + TCNForecaster = "TCNForecaster", + XGBoostRegressor = "XGBoostRegressor" +} + +// @public +export enum KnownForecastingPrimaryMetrics { + NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError", + NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", + R2Score = "R2Score", + SpearmanCorrelation = "SpearmanCorrelation" +} + +// @public +export enum KnownGenerationSafetyQualityMetric { + AcceptableCoherenceScorePerInstance = "AcceptableCoherenceScorePerInstance", + AcceptableFluencyScorePerInstance = "AcceptableFluencyScorePerInstance", + AcceptableGroundednessScorePerInstance = "AcceptableGroundednessScorePerInstance", + AcceptableRelevanceScorePerInstance = "AcceptableRelevanceScorePerInstance", + AcceptableSimilarityScorePerInstance = "AcceptableSimilarityScorePerInstance", + AggregatedCoherencePassRate = "AggregatedCoherencePassRate", + AggregatedFluencyPassRate = "AggregatedFluencyPassRate", + AggregatedGroundednessPassRate = "AggregatedGroundednessPassRate", + AggregatedRelevancePassRate = "AggregatedRelevancePassRate", + AggregatedSimilarityPassRate = "AggregatedSimilarityPassRate" +} + +// @public +export enum KnownGenerationTokenStatisticsMetric { + TotalTokenCount = "TotalTokenCount", + TotalTokenCountPerGroup = "TotalTokenCountPerGroup" +} + +// @public +export enum KnownGoal { + Maximize = "Maximize", + Minimize = "Minimize" +} + +// @public +export enum KnownIdentityConfigurationType { + AMLToken = "AMLToken", + Managed = "Managed", + UserIdentity = "UserIdentity" +} + +// @public +export enum KnownImageAnnotationType { + BoundingBox = "BoundingBox", + Classification = "Classification", + InstanceSegmentation = "InstanceSegmentation" +} + +// @public +export enum KnownImageType { + Azureml = "azureml", + Docker = "docker" +} + +// @public +export enum KnownIncrementalDataRefresh { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownInferencingServerType { + AzureMLBatch = "AzureMLBatch", + AzureMLOnline = "AzureMLOnline", + Custom = "Custom", + Triton = "Triton" +} + +// @public +export enum KnownInputDeliveryMode { + Direct = "Direct", + Download = "Download", + EvalDownload = "EvalDownload", + EvalMount = "EvalMount", + ReadOnlyMount = "ReadOnlyMount", + ReadWriteMount = "ReadWriteMount" +} + +// @public +export enum KnownInputPathType { + PathId = "PathId", + PathVersion = "PathVersion", + Url = "Url" +} + +// @public +export enum KnownInstanceSegmentationPrimaryMetrics { + MeanAveragePrecision = "MeanAveragePrecision" +} + +// @public +export enum KnownIsolationMode { + AllowInternetOutbound = "AllowInternetOutbound", + AllowOnlyApprovedOutbound = "AllowOnlyApprovedOutbound", + Disabled = "Disabled" +} + +// @public +export enum KnownJobInputType { + CustomModel = "custom_model", + Literal = "literal", + MlflowModel = "mlflow_model", + Mltable = "mltable", + TritonModel = "triton_model", + UriFile = "uri_file", + UriFolder = "uri_folder" +} + +// @public +export enum KnownJobLimitsType { + Command = "Command", + Sweep = "Sweep" +} + +// @public +export enum KnownJobOutputType { + CustomModel = "custom_model", + MlflowModel = "mlflow_model", + Mltable = "mltable", + TritonModel = "triton_model", + UriFile = "uri_file", + UriFolder = "uri_folder" +} + +// @public +export enum KnownJobProvisioningState { + Canceled = "Canceled", + Failed = "Failed", + InProgress = "InProgress", + Succeeded = "Succeeded" +} + +// @public +export enum KnownJobStatus { + Canceled = "Canceled", + CancelRequested = "CancelRequested", + Completed = "Completed", + Failed = "Failed", + Finalizing = "Finalizing", + NotResponding = "NotResponding", + NotStarted = "NotStarted", + Paused = "Paused", + Preparing = "Preparing", + Provisioning = "Provisioning", + Queued = "Queued", + Running = "Running", + Scheduled = "Scheduled", + Starting = "Starting", + Unknown = "Unknown" +} + +// @public +export enum KnownJobTier { + Basic = "Basic", + Null = "Null", + Premium = "Premium", + Spot = "Spot", + Standard = "Standard" +} + +// @public +export enum KnownJobType { + AutoML = "AutoML", + Command = "Command", + Labeling = "Labeling", + Pipeline = "Pipeline", + Spark = "Spark", + Sweep = "Sweep" +} + +// @public +export enum KnownKeyType { + Primary = "Primary", + Secondary = "Secondary" +} + +// @public +export enum KnownLearningRateScheduler { + None = "None", + Step = "Step", + WarmupCosine = "WarmupCosine" +} + +// @public +export enum KnownListViewType { + ActiveOnly = "ActiveOnly", + All = "All", + ArchivedOnly = "ArchivedOnly" +} + +// @public +export enum KnownLoadBalancerType { + InternalLoadBalancer = "InternalLoadBalancer", + PublicIp = "PublicIp" +} + +// @public +export enum KnownLogTrainingMetrics { + Disable = "Disable", + Enable = "Enable" +} + +// @public +export enum KnownLogValidationLoss { + Disable = "Disable", + Enable = "Enable" +} + +// @public +export enum KnownLogVerbosity { + Critical = "Critical", + Debug = "Debug", + Error = "Error", + Info = "Info", + NotSet = "NotSet", + Warning = "Warning" +} + +// @public +export enum KnownManagedNetworkStatus { + Active = "Active", + Inactive = "Inactive" +} + +// @public +export enum KnownManagedServiceIdentityType { + None = "None", + SystemAssigned = "SystemAssigned", + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", + UserAssigned = "UserAssigned" +} + +// @public +export enum KnownMaterializationStoreType { + None = "None", + Offline = "Offline", + Online = "Online", + OnlineAndOffline = "OnlineAndOffline" +} + +// @public +export enum KnownMediaType { + Image = "Image", + Text = "Text" +} + +// @public +export enum KnownMLAssistConfigurationType { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownMlflowAutologger { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownMLFlowAutologgerState { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownModelSize { + ExtraLarge = "ExtraLarge", + Large = "Large", + Medium = "Medium", + None = "None", + Small = "Small" +} + +// @public +export enum KnownModelTaskType { + Classification = "Classification", + QuestionAnswering = "QuestionAnswering", + Regression = "Regression" +} + +// @public +export enum KnownMonitorComputeIdentityType { + AmlToken = "AmlToken", + ManagedIdentity = "ManagedIdentity" +} + +// @public +export enum KnownMonitorComputeType { + ServerlessSpark = "ServerlessSpark" +} + +// @public +export enum KnownMonitoringAlertNotificationType { + AzureMonitor = "AzureMonitor", + Email = "Email" +} + +// @public +export enum KnownMonitoringFeatureDataType { + Categorical = "Categorical", + Numerical = "Numerical" +} + +// @public +export enum KnownMonitoringFeatureFilterType { + AllFeatures = "AllFeatures", + FeatureSubset = "FeatureSubset", + TopNByAttribution = "TopNByAttribution" +} + +// @public +export enum KnownMonitoringInputDataType { + Fixed = "Fixed", + Static = "Static", + Trailing = "Trailing" +} + +// @public +export enum KnownMonitoringModelType { + Classification = "Classification", + Regression = "Regression" +} + +// @public +export enum KnownMonitoringNotificationMode { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownMonitoringSignalType { + Custom = "Custom", + DataDrift = "DataDrift", + DataQuality = "DataQuality", + FeatureAttributionDrift = "FeatureAttributionDrift", + GenerationSafetyQuality = "GenerationSafetyQuality", + GenerationTokenStatistics = "GenerationTokenStatistics", + ModelPerformance = "ModelPerformance", + PredictionDrift = "PredictionDrift" +} + +// @public +export enum KnownMountAction { + Mount = "Mount", + Unmount = "Unmount" +} + +// @public +export enum KnownMountState { + Mounted = "Mounted", + MountFailed = "MountFailed", + MountRequested = "MountRequested", + Unmounted = "Unmounted", + UnmountFailed = "UnmountFailed", + UnmountRequested = "UnmountRequested" +} + +// @public +export enum KnownMultiSelect { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownNCrossValidationsMode { + Auto = "Auto", + Custom = "Custom" +} + +// @public +export enum KnownNetwork { + Bridge = "Bridge", + Host = "Host" +} + +// @public +export enum KnownNlpLearningRateScheduler { + Constant = "Constant", + ConstantWithWarmup = "ConstantWithWarmup", + Cosine = "Cosine", + CosineWithRestarts = "CosineWithRestarts", + Linear = "Linear", + None = "None", + Polynomial = "Polynomial" +} + +// @public +export enum KnownNodeState { + Idle = "idle", + Leaving = "leaving", + Preempted = "preempted", + Preparing = "preparing", + Running = "running", + Unusable = "unusable" +} + +// @public +export enum KnownNodesValueType { + All = "All", + Custom = "Custom" +} + +// @public +export enum KnownNumericalDataDriftMetric { + JensenShannonDistance = "JensenShannonDistance", + NormalizedWassersteinDistance = "NormalizedWassersteinDistance", + PopulationStabilityIndex = "PopulationStabilityIndex", + TwoSampleKolmogorovSmirnovTest = "TwoSampleKolmogorovSmirnovTest" +} + +// @public +export enum KnownNumericalDataQualityMetric { + DataTypeErrorRate = "DataTypeErrorRate", + NullValueRate = "NullValueRate", + OutOfBoundsRate = "OutOfBoundsRate" +} + +// @public +export enum KnownNumericalPredictionDriftMetric { + JensenShannonDistance = "JensenShannonDistance", + NormalizedWassersteinDistance = "NormalizedWassersteinDistance", + PopulationStabilityIndex = "PopulationStabilityIndex", + TwoSampleKolmogorovSmirnovTest = "TwoSampleKolmogorovSmirnovTest" +} + +// @public +export enum KnownObjectDetectionPrimaryMetrics { + MeanAveragePrecision = "MeanAveragePrecision" +} + +// @public +export enum KnownOneLakeArtifactType { + LakeHouse = "LakeHouse" +} + +// @public +export enum KnownOperatingSystemType { + Linux = "Linux", + Windows = "Windows" +} + +// @public +export enum KnownOperationName { + Create = "Create", + Delete = "Delete", + Reimage = "Reimage", + Resize = "Resize", + Restart = "Restart", + Start = "Start", + Stop = "Stop" +} + +// @public +export enum KnownOperationStatus { + CreateFailed = "CreateFailed", + DeleteFailed = "DeleteFailed", + InProgress = "InProgress", + ReimageFailed = "ReimageFailed", + ResizeFailed = "ResizeFailed", + RestartFailed = "RestartFailed", + StartFailed = "StartFailed", + StopFailed = "StopFailed", + Succeeded = "Succeeded" +} + +// @public +export enum KnownOperationTrigger { + IdleShutdown = "IdleShutdown", + Schedule = "Schedule", + User = "User" +} + +// @public +export enum KnownOrderString { + CreatedAtAsc = "CreatedAtAsc", + CreatedAtDesc = "CreatedAtDesc", + UpdatedAtAsc = "UpdatedAtAsc", + UpdatedAtDesc = "UpdatedAtDesc" +} + +// @public +export enum KnownOsType { + Linux = "Linux", + Windows = "Windows" +} + +// @public +export enum KnownOutputDeliveryMode { + Direct = "Direct", + ReadWriteMount = "ReadWriteMount", + Upload = "Upload" +} + +// @public +export enum KnownPackageBuildState { + Failed = "Failed", + NotStarted = "NotStarted", + Running = "Running", + Succeeded = "Succeeded" +} + +// @public +export enum KnownPackageInputDeliveryMode { + Copy = "Copy", + Download = "Download" +} + +// @public +export enum KnownPackageInputType { + UriFile = "UriFile", + UriFolder = "UriFolder" +} + +// @public +export enum KnownPatchStatus { + CompletedWithWarnings = "CompletedWithWarnings", + Failed = "Failed", + InProgress = "InProgress", + Succeeded = "Succeeded", + Unknown = "Unknown" +} + +// @public +export enum KnownPendingUploadCredentialType { + SAS = "SAS" +} + +// @public +export enum KnownPendingUploadType { + None = "None", + TemporaryBlobReference = "TemporaryBlobReference" +} + +// @public +export enum KnownPoolProvisioningState { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownPrivateEndpointConnectionProvisioningState { + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded" +} + +// @public +export enum KnownProtectionLevel { + All = "All", + None = "None" +} + +// @public +export enum KnownProtocol { + Http = "http", + Tcp = "tcp", + Udp = "udp" +} + +// @public +export enum KnownProvisioningState { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Unknown = "Unknown", + Updating = "Updating" +} + +// @public +export enum KnownProvisioningStatus { + Completed = "Completed", + Failed = "Failed", + Provisioning = "Provisioning" +} + +// @public +export enum KnownPublicNetworkAccessType { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownQuotaUnit { + Count = "Count" +} + +// @public +export enum KnownRandomSamplingAlgorithmRule { + Random = "Random", + Sobol = "Sobol" +} + +// @public +export enum KnownRecurrenceFrequency { + Day = "Day", + Hour = "Hour", + Minute = "Minute", + Month = "Month", + Week = "Week" +} + +// @public +export enum KnownReferenceType { + DataPath = "DataPath", + Id = "Id", + OutputPath = "OutputPath" +} + +// @public +export enum KnownRegressionModelPerformanceMetric { + MeanAbsoluteError = "MeanAbsoluteError", + MeanSquaredError = "MeanSquaredError", + RootMeanSquaredError = "RootMeanSquaredError" +} + +// @public +export enum KnownRegressionModels { + DecisionTree = "DecisionTree", + ElasticNet = "ElasticNet", + ExtremeRandomTrees = "ExtremeRandomTrees", + GradientBoosting = "GradientBoosting", + KNN = "KNN", + LassoLars = "LassoLars", + LightGBM = "LightGBM", + RandomForest = "RandomForest", + SGD = "SGD", + XGBoostRegressor = "XGBoostRegressor" +} + +// @public +export enum KnownRegressionPrimaryMetrics { + NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError", + NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", + R2Score = "R2Score", + SpearmanCorrelation = "SpearmanCorrelation" +} + +// @public +export enum KnownRemoteLoginPortPublicAccess { + Disabled = "Disabled", + Enabled = "Enabled", + NotSpecified = "NotSpecified" +} + +// @public +export enum KnownRollingRateType { + Day = "Day", + Hour = "Hour", + Minute = "Minute", + Month = "Month", + Year = "Year" +} + +// @public +export enum KnownRuleAction { + Allow = "Allow", + Deny = "Deny" +} + +// @public +export enum KnownRuleCategory { + Recommended = "Recommended", + Required = "Required", + UserDefined = "UserDefined" +} + +// @public +export enum KnownRuleStatus { + Active = "Active", + Inactive = "Inactive" +} + +// @public +export enum KnownRuleType { + Fqdn = "FQDN", + PrivateEndpoint = "PrivateEndpoint", + ServiceTag = "ServiceTag" +} + +// @public +export enum KnownSamplingAlgorithmType { + Bayesian = "Bayesian", + Grid = "Grid", + Random = "Random" +} + +// @public +export enum KnownScaleType { + Default = "Default", + TargetUtilization = "TargetUtilization" +} + +// @public +export enum KnownScheduleActionType { + CreateJob = "CreateJob", + CreateMonitor = "CreateMonitor", + ImportData = "ImportData", + InvokeBatchEndpoint = "InvokeBatchEndpoint" +} + +// @public +export enum KnownScheduleListViewType { + All = "All", + DisabledOnly = "DisabledOnly", + EnabledOnly = "EnabledOnly" +} + +// @public +export enum KnownScheduleProvisioningState { + Completed = "Completed", + Failed = "Failed", + Provisioning = "Provisioning" +} + +// @public +export enum KnownScheduleProvisioningStatus { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownScheduleStatus { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownSeasonalityMode { + Auto = "Auto", + Custom = "Custom" +} + +// @public +export enum KnownSecretsType { + AccountKey = "AccountKey", + Certificate = "Certificate", + KerberosKeytab = "KerberosKeytab", + KerberosPassword = "KerberosPassword", + Sas = "Sas", + ServicePrincipal = "ServicePrincipal" +} + +// @public +export enum KnownServiceDataAccessAuthIdentity { + None = "None", + WorkspaceSystemAssignedIdentity = "WorkspaceSystemAssignedIdentity", + WorkspaceUserAssignedIdentity = "WorkspaceUserAssignedIdentity" +} + +// @public +export enum KnownShortSeriesHandlingConfiguration { + Auto = "Auto", + Drop = "Drop", + None = "None", + Pad = "Pad" +} + +// @public +export enum KnownSkuScaleType { + Automatic = "Automatic", + Manual = "Manual", + None = "None" +} + +// @public +export enum KnownSourceType { + Dataset = "Dataset", + Datastore = "Datastore", + URI = "URI" +} + +// @public +export enum KnownSparkJobEntryType { + SparkJobPythonEntry = "SparkJobPythonEntry", + SparkJobScalaEntry = "SparkJobScalaEntry" +} + +// @public +export enum KnownSshPublicAccess { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownSslConfigStatus { + Auto = "Auto", + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownStackMetaLearnerType { + ElasticNet = "ElasticNet", + ElasticNetCV = "ElasticNetCV", + LightGBMClassifier = "LightGBMClassifier", + LightGBMRegressor = "LightGBMRegressor", + LinearRegression = "LinearRegression", + LogisticRegression = "LogisticRegression", + LogisticRegressionCV = "LogisticRegressionCV", + None = "None" +} + +// @public +export enum KnownStatus { + Failure = "Failure", + InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", + InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", + InvalidVMFamilyName = "InvalidVMFamilyName", + OperationNotEnabledForRegion = "OperationNotEnabledForRegion", + OperationNotSupportedForSku = "OperationNotSupportedForSku", + Success = "Success", + Undefined = "Undefined" +} + +// @public +export enum KnownStatusMessageLevel { + Error = "Error", + Information = "Information", + Warning = "Warning" +} + +// @public +export enum KnownStochasticOptimizer { + Adam = "Adam", + Adamw = "Adamw", + None = "None", + Sgd = "Sgd" +} + +// @public +export enum KnownStorageAccountType { + PremiumLRS = "Premium_LRS", + StandardLRS = "Standard_LRS" +} + +// @public +export enum KnownTargetAggregationFunction { + Max = "Max", + Mean = "Mean", + Min = "Min", + None = "None", + Sum = "Sum" +} + +// @public +export enum KnownTargetLagsMode { + Auto = "Auto", + Custom = "Custom" +} + +// @public +export enum KnownTargetRollingWindowSizeMode { + Auto = "Auto", + Custom = "Custom" +} + +// @public +export enum KnownTaskType { + Classification = "Classification", + Forecasting = "Forecasting", + ImageClassification = "ImageClassification", + ImageClassificationMultilabel = "ImageClassificationMultilabel", + ImageInstanceSegmentation = "ImageInstanceSegmentation", + ImageObjectDetection = "ImageObjectDetection", + Regression = "Regression", + TextClassification = "TextClassification", + TextClassificationMultilabel = "TextClassificationMultilabel", + TextNER = "TextNER" +} + +// @public +export enum KnownTextAnnotationType { + Classification = "Classification", + NamedEntityRecognition = "NamedEntityRecognition" +} + +// @public +export enum KnownTrainingMode { + Auto = "Auto", + Distributed = "Distributed", + NonDistributed = "NonDistributed" +} + +// @public +export enum KnownTriggerType { + Cron = "Cron", + Recurrence = "Recurrence" +} + +// @public +export enum KnownUnderlyingResourceAction { + Delete = "Delete", + Detach = "Detach" +} + +// @public +export enum KnownUnitOfMeasure { + OneHour = "OneHour" +} + +// @public +export enum KnownUsageUnit { + Count = "Count" +} + +// @public +export enum KnownUseStl { + None = "None", + Season = "Season", + SeasonTrend = "SeasonTrend" +} + +// @public +export enum KnownValidationMetricType { + Coco = "Coco", + CocoVoc = "CocoVoc", + None = "None", + Voc = "Voc" +} + +// @public +export enum KnownVMPriceOSType { + Linux = "Linux", + Windows = "Windows" +} + +// @public +export enum KnownVmPriority { + Dedicated = "Dedicated", + LowPriority = "LowPriority" +} + +// @public +export enum KnownVMTier { + LowPriority = "LowPriority", + Spot = "Spot", + Standard = "Standard" +} + +// @public +export enum KnownVolumeDefinitionType { + Bind = "bind", + Npipe = "npipe", + Tmpfs = "tmpfs", + Volume = "volume" +} + +// @public +export enum KnownWebhookType { + AzureDevOps = "AzureDevOps" +} + +// @public +export enum KnownWeekDay { + Friday = "Friday", + Monday = "Monday", + Saturday = "Saturday", + Sunday = "Sunday", + Thursday = "Thursday", + Tuesday = "Tuesday", + Wednesday = "Wednesday" +} + +// @public +export interface Kubernetes extends Compute, KubernetesSchema { + computeType: "Kubernetes"; +} + +// @public +export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties { + containerResourceRequirements?: ContainerResourceRequirements; + endpointComputeType: "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 LabelCategory { + classes?: { + [propertyName: string]: LabelClass | null; + }; + displayName?: string; + multiSelect?: MultiSelect; +} + +// @public +export interface LabelClass { + displayName?: string; + subclasses?: { + [propertyName: string]: LabelClass | null; + }; +} + +// @public +export interface LabelingDataConfiguration { + dataId?: string; + incrementalDataRefresh?: IncrementalDataRefresh; +} + +// @public +export interface LabelingJob extends Resource { + properties: LabelingJobProperties; +} + +// @public +export interface LabelingJobImageProperties extends LabelingJobMediaProperties { + annotationType?: ImageAnnotationType; + mediaType: "Image"; +} + +// @public +export interface LabelingJobInstructions { + uri?: string; +} + +// @public +export interface LabelingJobMediaProperties { + mediaType: "Image" | "Text"; +} + +// @public (undocumented) +export type LabelingJobMediaPropertiesUnion = LabelingJobMediaProperties | LabelingJobImageProperties | LabelingJobTextProperties; + +// @public +export interface LabelingJobProperties extends JobBaseProperties { + readonly createdDateTime?: Date; + dataConfiguration?: LabelingDataConfiguration; + jobInstructions?: LabelingJobInstructions; + jobType: "Labeling"; + labelCategories?: { + [propertyName: string]: LabelCategory | null; + }; + labelingJobMediaProperties?: LabelingJobMediaPropertiesUnion; + mlAssistConfiguration?: MLAssistConfigurationUnion; + readonly progressMetrics?: ProgressMetrics; + readonly projectId?: string; + readonly provisioningState?: JobProvisioningState; + readonly statusMessages?: StatusMessage[]; +} + +// @public +export interface LabelingJobResourceArmPaginatedResult { + nextLink?: string; + value?: LabelingJob[]; +} + +// @public +export interface LabelingJobs { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, id: string, body: LabelingJob, options?: LabelingJobsCreateOrUpdateOptionalParams): Promise, LabelingJobsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, id: string, body: LabelingJob, options?: LabelingJobsCreateOrUpdateOptionalParams): Promise; + beginExportLabels(resourceGroupName: string, workspaceName: string, id: string, body: ExportSummaryUnion, options?: LabelingJobsExportLabelsOptionalParams): Promise, LabelingJobsExportLabelsResponse>>; + beginExportLabelsAndWait(resourceGroupName: string, workspaceName: string, id: string, body: ExportSummaryUnion, options?: LabelingJobsExportLabelsOptionalParams): Promise; + beginResume(resourceGroupName: string, workspaceName: string, id: string, options?: LabelingJobsResumeOptionalParams): Promise, LabelingJobsResumeResponse>>; + beginResumeAndWait(resourceGroupName: string, workspaceName: string, id: string, options?: LabelingJobsResumeOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, id: string, options?: LabelingJobsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, id: string, options?: LabelingJobsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: LabelingJobsListOptionalParams): PagedAsyncIterableIterator; + pause(resourceGroupName: string, workspaceName: string, id: string, options?: LabelingJobsPauseOptionalParams): Promise; +} + +// @public +export interface LabelingJobsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface LabelingJobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type LabelingJobsCreateOrUpdateResponse = LabelingJob; + +// @public +export interface LabelingJobsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface LabelingJobsExportLabelsHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface LabelingJobsExportLabelsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type LabelingJobsExportLabelsResponse = ExportSummaryUnion; + +// @public +export interface LabelingJobsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type LabelingJobsGetResponse = LabelingJob; + +// @public +export interface LabelingJobsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type LabelingJobsListNextResponse = LabelingJobResourceArmPaginatedResult; + +// @public +export interface LabelingJobsListOptionalParams extends coreClient.OperationOptions { + skip?: string; + top?: number; +} + +// @public +export type LabelingJobsListResponse = LabelingJobResourceArmPaginatedResult; + +// @public +export interface LabelingJobsPauseOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type LabelingJobsPauseResponse = LabelingJobProperties; + +// @public +export interface LabelingJobsResumeHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface LabelingJobsResumeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type LabelingJobsResumeResponse = LabelingJobProperties; + +// @public +export interface LabelingJobTextProperties extends LabelingJobMediaProperties { + annotationType?: TextAnnotationType; + mediaType: "Text"; +} + +// @public (undocumented) +export interface LakeHouseArtifact extends OneLakeArtifact { + artifactType: "LakeHouse"; +} + +// @public +export type LearningRateScheduler = string; + +// @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 +export type ListViewType = string; + +// @public (undocumented) +export interface ListWorkspaceKeysResult { + readonly appInsightsInstrumentationKey?: string; + // (undocumented) + containerRegistryCredentials?: RegistryListCredentialsResult; + // (undocumented) + notebookAccessKeys?: ListNotebookKeysResult; + readonly userStorageArmId?: string; + readonly userStorageKey?: string; +} + +// @public +export interface ListWorkspaceQuotas { + readonly nextLink?: string; + readonly value?: ResourceQuota[]; +} + +// @public +export interface LiteralJobInput extends JobInput { + jobInputType: "literal"; + value: string; +} + +// @public +export type LoadBalancerType = string; + +// @public +export type LogTrainingMetrics = string; + +// @public +export type LogValidationLoss = string; + +// @public +export type LogVerbosity = string; + +// @public +export interface ManagedComputeIdentity extends MonitorComputeIdentityBase { + computeIdentityType: "ManagedIdentity"; + identity?: ManagedServiceIdentity; +} + +// @public +export interface ManagedIdentity extends IdentityConfiguration { + clientId?: string; + identityType: "Managed"; + objectId?: string; + resourceId?: string; +} + +// @public (undocumented) +export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "ManagedIdentity"; + // (undocumented) + credentials?: WorkspaceConnectionManagedIdentity; +} + +// @public +export interface ManagedNetworkProvisionOptions { + // (undocumented) + includeSpark?: boolean; +} + +// @public +export interface ManagedNetworkProvisions { + beginProvisionManagedNetwork(resourceGroupName: string, workspaceName: string, options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams): Promise, ManagedNetworkProvisionsProvisionManagedNetworkResponse>>; + beginProvisionManagedNetworkAndWait(resourceGroupName: string, workspaceName: string, options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams): Promise; +} + +// @public +export interface ManagedNetworkProvisionsProvisionManagedNetworkHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams extends coreClient.OperationOptions { + body?: ManagedNetworkProvisionOptions; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedNetworkProvisionsProvisionManagedNetworkResponse = ManagedNetworkProvisionStatus; + +// @public +export interface ManagedNetworkProvisionStatus { + // (undocumented) + sparkReady?: boolean; + status?: ManagedNetworkStatus; +} + +// @public +export interface ManagedNetworkSettings { + isolationMode?: IsolationMode; + readonly networkId?: string; + outboundRules?: { + [propertyName: string]: OutboundRuleUnion; + }; + status?: ManagedNetworkProvisionStatus; +} + +// @public +export interface ManagedNetworkSettingsRule { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, ruleName: string, body: OutboundRuleBasicResource, options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams): Promise, ManagedNetworkSettingsRuleCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, ruleName: string, body: OutboundRuleBasicResource, options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, ruleName: string, options?: ManagedNetworkSettingsRuleDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, ruleName: string, options?: ManagedNetworkSettingsRuleDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, ruleName: string, options?: ManagedNetworkSettingsRuleGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: ManagedNetworkSettingsRuleListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ManagedNetworkSettingsRuleCreateOrUpdateHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ManagedNetworkSettingsRuleCreateOrUpdateResponse = OutboundRuleBasicResource; + +// @public +export interface ManagedNetworkSettingsRuleDeleteHeaders { + location?: string; +} + +// @public +export interface ManagedNetworkSettingsRuleDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface ManagedNetworkSettingsRuleGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedNetworkSettingsRuleGetResponse = OutboundRuleBasicResource; + +// @public +export interface ManagedNetworkSettingsRuleListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedNetworkSettingsRuleListNextResponse = OutboundRuleListResult; + +// @public +export interface ManagedNetworkSettingsRuleListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ManagedNetworkSettingsRuleListResponse = OutboundRuleListResult; + +// @public +export type ManagedNetworkStatus = string; + +// @public +export interface ManagedOnlineDeployment extends OnlineDeploymentProperties { + endpointComputeType: "Managed"; +} + +// @public +export interface ManagedServiceIdentity { + readonly principalId?: string; + readonly tenantId?: string; + type: ManagedServiceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: UserAssignedIdentity; + }; +} + +// @public +export type ManagedServiceIdentityType = string; + +// @public +export interface MaterializationComputeResource { + instanceType?: string; +} + +// @public (undocumented) +export interface MaterializationSettings { + notification?: NotificationSetting; + resource?: MaterializationComputeResource; + schedule?: RecurrenceTrigger; + sparkConfiguration?: { + [propertyName: string]: string | null; + }; + storeType?: MaterializationStoreType; +} + +// @public +export type MaterializationStoreType = string; + +// @public +export interface MedianStoppingPolicy extends EarlyTerminationPolicy { + policyType: "MedianStopping"; +} + +// @public +export type MediaType = string; + +// @public +export interface MLAssistConfiguration { + mlAssist: "Disabled" | "Enabled"; +} + +// @public +export interface MLAssistConfigurationDisabled extends MLAssistConfiguration { + mlAssist: "Disabled"; +} + +// @public +export interface MLAssistConfigurationEnabled extends MLAssistConfiguration { + inferencingComputeBinding: string; + mlAssist: "Enabled"; + trainingComputeBinding: string; +} + +// @public +export type MLAssistConfigurationType = string; + +// @public (undocumented) +export type MLAssistConfigurationUnion = MLAssistConfiguration | MLAssistConfigurationDisabled | MLAssistConfigurationEnabled; + +// @public +export type MlflowAutologger = string; + +// @public +export type MLFlowAutologgerState = string; + +// @public (undocumented) +export interface MLFlowModelJobInput extends AssetJobInput, JobInput { +} + +// @public (undocumented) +export interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput { +} + +// @public +export interface MLTableData extends DataVersionBaseProperties { + dataType: "mltable"; + referencedUris?: string[]; +} + +// @public (undocumented) +export interface MLTableJobInput extends AssetJobInput, JobInput { +} + +// @public (undocumented) +export interface MLTableJobOutput extends AssetJobOutput, JobOutput { +} + +// @public +export interface ModelConfiguration { + mode?: PackageInputDeliveryMode; + mountPath?: string; +} + +// @public +export interface ModelContainer extends Resource { + properties: ModelContainerProperties; +} + +// @public (undocumented) +export interface ModelContainerProperties extends AssetContainer { + readonly provisioningState?: AssetProvisioningState; +} + +// @public +export interface ModelContainerResourceArmPaginatedResult { + nextLink?: string; + value?: ModelContainer[]; +} + +// @public +export interface ModelContainers { + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: ModelContainer, options?: ModelContainersCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, options?: ModelContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, options?: ModelContainersGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: ModelContainersListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ModelContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelContainersCreateOrUpdateResponse = ModelContainer; + +// @public +export interface ModelContainersDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ModelContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelContainersGetResponse = ModelContainer; + +// @public +export interface ModelContainersListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; + +// @public +export interface ModelContainersListOptionalParams extends coreClient.OperationOptions { + count?: number; + listViewType?: ListViewType; + skip?: string; +} + +// @public +export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; + +// @public +export interface ModelPackageInput { + inputType: PackageInputType; + mode?: PackageInputDeliveryMode; + mountPath?: string; + path: PackageInputPathBaseUnion; +} + +// @public (undocumented) +export interface ModelPerformanceMetricThresholdBase { + modelType: "Classification" | "Regression"; + threshold?: MonitoringThreshold; +} + +// @public (undocumented) +export type ModelPerformanceMetricThresholdBaseUnion = ModelPerformanceMetricThresholdBase | ClassificationModelPerformanceMetricThreshold | RegressionModelPerformanceMetricThreshold; + +// @public +export interface ModelPerformanceSignal extends MonitoringSignalBase { + dataSegment?: MonitoringDataSegment; + metricThreshold: ModelPerformanceMetricThresholdBaseUnion; + productionData: MonitoringInputDataBaseUnion[]; + referenceData: MonitoringInputDataBaseUnion; + signalType: "ModelPerformance"; +} + +// @public (undocumented) +export interface ModelProfile { + modelUri: string; +} + +// @public +export type ModelSize = string; + +// @public +export type ModelTaskType = string; + +// @public +export interface ModelVersion extends Resource { + properties: ModelVersionProperties; +} + +// @public +export interface ModelVersionProperties extends AssetBase { + flavors?: { + [propertyName: string]: FlavorData | null; + }; + intellectualProperty?: IntellectualProperty; + jobName?: string; + modelType?: string; + modelUri?: string; + readonly provisioningState?: AssetProvisioningState; + stage?: string; +} + +// @public +export interface ModelVersionResourceArmPaginatedResult { + nextLink?: string; + value?: ModelVersion[]; +} + +// @public +export interface ModelVersions { + beginPackage(resourceGroupName: string, workspaceName: string, name: string, version: string, body: PackageRequest, options?: ModelVersionsPackageOptionalParams): Promise, ModelVersionsPackageResponse>>; + beginPackageAndWait(resourceGroupName: string, workspaceName: string, name: string, version: string, body: PackageRequest, options?: ModelVersionsPackageOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: ModelVersion, options?: ModelVersionsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: ModelVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: ModelVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, name: string, options?: ModelVersionsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ModelVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelVersionsCreateOrUpdateResponse = ModelVersion; + +// @public +export interface ModelVersionsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ModelVersionsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelVersionsGetResponse = ModelVersion; + +// @public +export interface ModelVersionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; + +// @public +export interface ModelVersionsListOptionalParams extends coreClient.OperationOptions { + description?: string; + feed?: string; + listViewType?: ListViewType; + offset?: number; + orderBy?: string; + properties?: string; + skip?: string; + stage?: string; + tags?: string; + top?: number; + version?: string; +} + +// @public +export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; + +// @public +export interface ModelVersionsPackageHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface ModelVersionsPackageOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ModelVersionsPackageResponse = PackageResponse; + +// @public +export interface MonitorComputeConfigurationBase { + computeType: "ServerlessSpark"; +} + +// @public (undocumented) +export type MonitorComputeConfigurationBaseUnion = MonitorComputeConfigurationBase | MonitorServerlessSparkCompute; + +// @public +export interface MonitorComputeIdentityBase { + computeIdentityType: "AmlToken" | "ManagedIdentity"; +} + +// @public (undocumented) +export type MonitorComputeIdentityBaseUnion = MonitorComputeIdentityBase | AmlTokenComputeIdentity | ManagedComputeIdentity; + +// @public +export type MonitorComputeIdentityType = string; + +// @public +export type MonitorComputeType = string; + +// @public (undocumented) +export interface MonitorDefinition { + alertNotificationSetting?: MonitoringAlertNotificationSettingsBaseUnion; + computeConfiguration: MonitorComputeConfigurationBaseUnion; + monitoringTarget?: MonitoringTarget; + signals: { + [propertyName: string]: MonitoringSignalBaseUnion | null; + }; +} + +// @public (undocumented) +export interface MonitoringAlertNotificationSettingsBase { + alertNotificationType: "AzureMonitor" | "Email"; +} + +// @public (undocumented) +export type MonitoringAlertNotificationSettingsBaseUnion = MonitoringAlertNotificationSettingsBase | AzMonMonitoringAlertNotificationSettings | EmailMonitoringAlertNotificationSettings; + +// @public +export type MonitoringAlertNotificationType = string; + +// @public (undocumented) +export interface MonitoringDataSegment { + feature?: string; + values?: string[]; +} + +// @public +export type MonitoringFeatureDataType = string; + +// @public (undocumented) +export interface MonitoringFeatureFilterBase { + filterType: "AllFeatures" | "FeatureSubset" | "TopNByAttribution"; +} + +// @public (undocumented) +export type MonitoringFeatureFilterBaseUnion = MonitoringFeatureFilterBase | AllFeatures | FeatureSubset | TopNFeaturesByAttribution; + +// @public +export type MonitoringFeatureFilterType = string; + +// @public +export interface MonitoringInputDataBase { + columns?: { + [propertyName: string]: string | null; + }; + dataContext?: string; + inputDataType: "Fixed" | "Static" | "Trailing"; + jobInputType: JobInputType; + uri: string; +} + +// @public (undocumented) +export type MonitoringInputDataBaseUnion = MonitoringInputDataBase | FixedInputData | StaticInputData | TrailingInputData; + +// @public +export type MonitoringInputDataType = string; + +// @public +export type MonitoringModelType = string; + +// @public +export type MonitoringNotificationMode = string; + +// @public (undocumented) +export interface MonitoringSignalBase { + mode?: MonitoringNotificationMode; + properties?: { + [propertyName: string]: string | null; + }; + signalType: "Custom" | "DataDrift" | "DataQuality" | "FeatureAttributionDrift" | "GenerationSafetyQuality" | "GenerationTokenStatistics" | "ModelPerformance" | "PredictionDrift"; +} + +// @public (undocumented) +export type MonitoringSignalBaseUnion = MonitoringSignalBase | CustomMonitoringSignal | DataDriftMonitoringSignal | DataQualityMonitoringSignal | FeatureAttributionDriftMonitoringSignal | GenerationSafetyQualityMonitoringSignal | GenerationTokenStatisticsSignal | ModelPerformanceSignal | PredictionDriftMonitoringSignal; + +// @public +export type MonitoringSignalType = string; + +// @public +export interface MonitoringTarget { + deploymentId?: string; + modelId?: string; + taskType: ModelTaskType; +} + +// @public (undocumented) +export interface MonitoringThreshold { + value?: number; +} + +// @public +export interface MonitoringWorkspaceConnection { + environmentVariables?: { + [propertyName: string]: string | null; + }; + secrets?: { + [propertyName: string]: string | null; + }; +} + +// @public +export interface MonitorServerlessSparkCompute extends MonitorComputeConfigurationBase { + computeIdentity: MonitorComputeIdentityBaseUnion; + computeType: "ServerlessSpark"; + instanceType: string; + runtimeVersion: string; +} + +// @public +export type MountAction = string; + +// @public +export type MountState = string; + +// @public +export interface Mpi extends DistributionConfiguration { + distributionType: "Mpi"; + processCountPerInstance?: number; +} + +// @public +export type MultiSelect = string; + +// @public +export interface NCrossValidations { + mode: "Auto" | "Custom"; +} + +// @public +export type NCrossValidationsMode = string; + +// @public (undocumented) +export type NCrossValidationsUnion = NCrossValidations | AutoNCrossValidations | CustomNCrossValidations; + +// @public +export type Network = string; + +// @public +export interface NlpFixedParameters { + gradientAccumulationSteps?: number; + learningRate?: number; + learningRateScheduler?: NlpLearningRateScheduler; + modelName?: string; + numberOfEpochs?: number; + trainingBatchSize?: number; + validationBatchSize?: number; + warmupRatio?: number; + weightDecay?: number; +} + +// @public +export type NlpLearningRateScheduler = string; + +// @public +export interface NlpParameterSubspace { + gradientAccumulationSteps?: string; + learningRate?: string; + learningRateScheduler?: string; + modelName?: string; + numberOfEpochs?: string; + trainingBatchSize?: string; + validationBatchSize?: string; + warmupRatio?: string; + weightDecay?: string; +} + +// @public +export interface NlpSweepSettings { + earlyTermination?: EarlyTerminationPolicyUnion; + samplingAlgorithm: SamplingAlgorithmType; +} + +// @public +export interface NlpVertical { + featurizationSettings?: NlpVerticalFeaturizationSettings; + fixedParameters?: NlpFixedParameters; + limitSettings?: NlpVerticalLimitSettings; + searchSpace?: NlpParameterSubspace[]; + sweepSettings?: NlpSweepSettings; + validationData?: MLTableJobInput; +} + +// @public (undocumented) +export interface NlpVerticalFeaturizationSettings extends FeaturizationSettings { +} + +// @public +export interface NlpVerticalLimitSettings { + maxConcurrentTrials?: number; + maxNodes?: number; + maxTrials?: number; + timeout?: string; + trialTimeout?: string; +} + +// @public +export interface Nodes { + nodesValueType: "All"; +} + +// @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 type NodesUnion = Nodes | AllNodes; + +// @public +export type NodesValueType = string; + +// @public (undocumented) +export interface NoneAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "None"; +} + +// @public +export interface NoneDatastoreCredentials extends DatastoreCredentials { + credentialsType: "None"; +} + +// @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; + // (undocumented) + isPrivateLinkEnabled?: boolean; + notebookPreparationError?: NotebookPreparationError; + resourceId?: string; +} + +// @public +export interface NotificationSetting { + emailOn?: EmailNotificationEnableType[]; + emails?: string[]; + webhooks?: { + [propertyName: string]: WebhookUnion | null; + }; } // @public -export enum KnownEgressPublicNetworkAccessType { - Disabled = "Disabled", - Enabled = "Enabled" +export type NumericalDataDriftMetric = string; + +// @public (undocumented) +export interface NumericalDataDriftMetricThreshold extends DataDriftMetricThresholdBase { + dataType: "Numerical"; + metric: NumericalDataDriftMetric; } // @public -export enum KnownEncryptionStatus { - Disabled = "Disabled", - Enabled = "Enabled" +export type NumericalDataQualityMetric = string; + +// @public (undocumented) +export interface NumericalDataQualityMetricThreshold extends DataQualityMetricThresholdBase { + dataType: "Numerical"; + metric: NumericalDataQualityMetric; } // @public -export enum KnownEndpointAuthMode { - AADToken = "AADToken", - AMLToken = "AMLToken", - Key = "Key" +export type NumericalPredictionDriftMetric = string; + +// @public (undocumented) +export interface NumericalPredictionDriftMetricThreshold extends PredictionDriftMetricThresholdBase { + dataType: "Numerical"; + metric: NumericalPredictionDriftMetric; } // @public -export enum KnownEndpointComputeType { - AzureMLCompute = "AzureMLCompute", - Kubernetes = "Kubernetes", - Managed = "Managed" +export type ObjectDetectionPrimaryMetrics = string; + +// @public +export interface Objective { + goal: Goal; + primaryMetric: string; } // @public -export enum KnownEndpointProvisioningState { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" +export interface OneLakeArtifact { + artifactName: string; + artifactType: "LakeHouse"; } // @public -export enum KnownEnvironmentType { - Curated = "Curated", - UserCreated = "UserCreated" +export type OneLakeArtifactType = string; + +// @public (undocumented) +export type OneLakeArtifactUnion = OneLakeArtifact | LakeHouseArtifact; + +// @public +export interface OneLakeDatastore extends DatastoreProperties { + artifact: OneLakeArtifactUnion; + datastoreType: "OneLake"; + endpoint?: string; + oneLakeWorkspaceName: string; + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +} + +// @public (undocumented) +export interface OnlineDeployment extends TrackedResource { + identity?: ManagedServiceIdentity; + kind?: string; + properties: OnlineDeploymentPropertiesUnion; + sku?: Sku; +} + +// @public (undocumented) +export interface OnlineDeploymentProperties extends EndpointDeploymentPropertiesBase { + appInsightsEnabled?: boolean; + dataCollector?: DataCollector; + egressPublicNetworkAccess?: EgressPublicNetworkAccessType; + endpointComputeType: EndpointComputeType; + instanceType?: string; + livenessProbe?: ProbeSettings; + model?: string; + modelMountPath?: string; + readonly provisioningState?: DeploymentProvisioningState; + readinessProbe?: ProbeSettings; + requestSettings?: OnlineRequestSettings; + scaleSettings?: OnlineScaleSettingsUnion; } +// @public (undocumented) +export type OnlineDeploymentPropertiesUnion = OnlineDeploymentProperties | KubernetesOnlineDeployment | ManagedOnlineDeployment; + // @public -export enum KnownFeatureLags { - Auto = "Auto", - None = "None" +export interface OnlineDeployments { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: OnlineDeployment, options?: OnlineDeploymentsCreateOrUpdateOptionalParams): Promise, OnlineDeploymentsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: OnlineDeployment, options?: OnlineDeploymentsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialMinimalTrackedResourceWithSku, options?: OnlineDeploymentsUpdateOptionalParams): Promise, OnlineDeploymentsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialMinimalTrackedResourceWithSku, options?: OnlineDeploymentsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsGetOptionalParams): Promise; + getLogs(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: DeploymentLogsRequest, options?: OnlineDeploymentsGetLogsOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineDeploymentsListOptionalParams): PagedAsyncIterableIterator; + listSkus(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsListSkusOptionalParams): PagedAsyncIterableIterator; } // @public -export enum KnownFeaturizationMode { - Auto = "Auto", - Custom = "Custom", - Off = "Off" +export interface OnlineDeploymentsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export enum KnownForecastHorizonMode { - Auto = "Auto", - Custom = "Custom" +export interface OnlineDeploymentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownForecastingModels { - Arimax = "Arimax", - AutoArima = "AutoArima", - Average = "Average", - DecisionTree = "DecisionTree", - ElasticNet = "ElasticNet", - ExponentialSmoothing = "ExponentialSmoothing", - ExtremeRandomTrees = "ExtremeRandomTrees", - GradientBoosting = "GradientBoosting", - KNN = "KNN", - LassoLars = "LassoLars", - LightGBM = "LightGBM", - Naive = "Naive", - Prophet = "Prophet", - RandomForest = "RandomForest", - SeasonalAverage = "SeasonalAverage", - SeasonalNaive = "SeasonalNaive", - SGD = "SGD", - TCNForecaster = "TCNForecaster", - XGBoostRegressor = "XGBoostRegressor" +export type OnlineDeploymentsCreateOrUpdateResponse = OnlineDeployment; + +// @public +export interface OnlineDeploymentsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineDeploymentsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface OnlineDeploymentsGetLogsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineDeploymentsGetLogsResponse = DeploymentLogs; + +// @public +export interface OnlineDeploymentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineDeploymentsGetResponse = OnlineDeployment; + +// @public +export interface OnlineDeploymentsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + top?: number; +} + +// @public +export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsListSkusNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OnlineDeploymentsListSkusNextResponse = SkuResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsListSkusOptionalParams extends coreClient.OperationOptions { + count?: number; + skip?: string; +} + +// @public +export type OnlineDeploymentsListSkusResponse = SkuResourceArmPaginatedResult; + +// @public +export interface OnlineDeploymentsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface OnlineDeploymentsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OnlineDeploymentsUpdateResponse = OnlineDeployment; + +// @public +export interface OnlineDeploymentTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: OnlineDeployment[]; +} + +// @public (undocumented) +export interface OnlineEndpoint extends TrackedResource { + identity?: ManagedServiceIdentity; + kind?: string; + properties: OnlineEndpointProperties; + sku?: Sku; +} + +// @public +export interface OnlineEndpointProperties extends EndpointPropertiesBase { + compute?: string; + mirrorTraffic?: { + [propertyName: string]: number; + }; + readonly provisioningState?: EndpointProvisioningState; + publicNetworkAccess?: PublicNetworkAccessType; + traffic?: { + [propertyName: string]: number; + }; +} + +// @public +export interface OnlineEndpoints { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: OnlineEndpoint, options?: OnlineEndpointsCreateOrUpdateOptionalParams): Promise, OnlineEndpointsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: OnlineEndpoint, options?: OnlineEndpointsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsDeleteOptionalParams): Promise; + beginRegenerateKeys(resourceGroupName: string, workspaceName: string, endpointName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams): Promise, void>>; + beginRegenerateKeysAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialMinimalTrackedResourceWithIdentity, options?: OnlineEndpointsUpdateOptionalParams): Promise, OnlineEndpointsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialMinimalTrackedResourceWithIdentity, options?: OnlineEndpointsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsGetOptionalParams): Promise; + getToken(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsGetTokenOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: OnlineEndpointsListOptionalParams): PagedAsyncIterableIterator; + listKeys(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsListKeysOptionalParams): Promise; } // @public -export enum KnownForecastingPrimaryMetrics { - NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError", - NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", - R2Score = "R2Score", - SpearmanCorrelation = "SpearmanCorrelation" +export interface OnlineEndpointsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export enum KnownGoal { - Maximize = "Maximize", - Minimize = "Minimize" +export interface OnlineEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownIdentityConfigurationType { - AMLToken = "AMLToken", - Managed = "Managed", - UserIdentity = "UserIdentity" -} +export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpoint; // @public -export enum KnownInputDeliveryMode { - Direct = "Direct", - Download = "Download", - EvalDownload = "EvalDownload", - EvalMount = "EvalMount", - ReadOnlyMount = "ReadOnlyMount", - ReadWriteMount = "ReadWriteMount" +export interface OnlineEndpointsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export enum KnownInstanceSegmentationPrimaryMetrics { - MeanAveragePrecision = "MeanAveragePrecision" +export interface OnlineEndpointsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownJobInputType { - CustomModel = "custom_model", - Literal = "literal", - MlflowModel = "mlflow_model", - Mltable = "mltable", - TritonModel = "triton_model", - UriFile = "uri_file", - UriFolder = "uri_folder" +export interface OnlineEndpointsGetOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownJobLimitsType { - Command = "Command", - Sweep = "Sweep" -} +export type OnlineEndpointsGetResponse = OnlineEndpoint; // @public -export enum KnownJobOutputType { - CustomModel = "custom_model", - MlflowModel = "mlflow_model", - Mltable = "mltable", - TritonModel = "triton_model", - UriFile = "uri_file", - UriFolder = "uri_folder" +export interface OnlineEndpointsGetTokenOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownJobStatus { - Canceled = "Canceled", - CancelRequested = "CancelRequested", - Completed = "Completed", - Failed = "Failed", - Finalizing = "Finalizing", - NotResponding = "NotResponding", - NotStarted = "NotStarted", - Paused = "Paused", - Preparing = "Preparing", - Provisioning = "Provisioning", - Queued = "Queued", - Running = "Running", - Starting = "Starting", - Unknown = "Unknown" -} +export type OnlineEndpointsGetTokenResponse = EndpointAuthToken; // @public -export enum KnownJobType { - AutoML = "AutoML", - Command = "Command", - Pipeline = "Pipeline", - Sweep = "Sweep" +export interface OnlineEndpointsListKeysOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownKeyType { - Primary = "Primary", - Secondary = "Secondary" -} +export type OnlineEndpointsListKeysResponse = EndpointAuthKeys; // @public -export enum KnownLearningRateScheduler { - None = "None", - Step = "Step", - WarmupCosine = "WarmupCosine" +export interface OnlineEndpointsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownListViewType { - ActiveOnly = "ActiveOnly", - All = "All", - ArchivedOnly = "ArchivedOnly" -} +export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult; // @public -export enum KnownLoadBalancerType { - InternalLoadBalancer = "InternalLoadBalancer", - PublicIp = "PublicIp" +export interface OnlineEndpointsListOptionalParams extends coreClient.OperationOptions { + computeType?: EndpointComputeType; + count?: number; + name?: string; + orderBy?: OrderString; + properties?: string; + skip?: string; + tags?: string; } // @public -export enum KnownLogVerbosity { - Critical = "Critical", - Debug = "Debug", - Error = "Error", - Info = "Info", - NotSet = "NotSet", - Warning = "Warning" -} +export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult; // @public -export enum KnownManagedServiceIdentityType { - None = "None", - SystemAssigned = "SystemAssigned", - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned", - UserAssigned = "UserAssigned" +export interface OnlineEndpointsRegenerateKeysHeaders { + location?: string; + retryAfter?: number; } // @public -export enum KnownModelSize { - ExtraLarge = "ExtraLarge", - Large = "Large", - Medium = "Medium", - None = "None", - Small = "Small" +export interface OnlineEndpointsRegenerateKeysOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownMountAction { - Mount = "Mount", - Unmount = "Unmount" +export interface OnlineEndpointsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export enum KnownMountState { - Mounted = "Mounted", - MountFailed = "MountFailed", - MountRequested = "MountRequested", - Unmounted = "Unmounted", - UnmountFailed = "UnmountFailed", - UnmountRequested = "UnmountRequested" +export interface OnlineEndpointsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownNCrossValidationsMode { - Auto = "Auto", - Custom = "Custom" -} +export type OnlineEndpointsUpdateResponse = OnlineEndpoint; // @public -export enum KnownNetwork { - Bridge = "Bridge", - Host = "Host" +export interface OnlineEndpointTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: OnlineEndpoint[]; } // @public -export enum KnownNodeState { - Idle = "idle", - Leaving = "leaving", - Preempted = "preempted", - Preparing = "preparing", - Running = "running", - Unusable = "unusable" +export interface OnlineInferenceConfiguration { + configurations?: { + [propertyName: string]: string | null; + }; + entryScript?: string; + livenessRoute?: Route; + readinessRoute?: Route; + scoringRoute?: Route; } // @public -export enum KnownObjectDetectionPrimaryMetrics { - MeanAveragePrecision = "MeanAveragePrecision" +export interface OnlineRequestSettings { + maxConcurrentRequestsPerInstance?: number; + maxQueueWait?: string; + requestTimeout?: string; } // @public -export enum KnownOperatingSystemType { - Linux = "Linux", - Windows = "Windows" +export interface OnlineScaleSettings { + scaleType: "Default" | "TargetUtilization"; } +// @public (undocumented) +export type OnlineScaleSettingsUnion = OnlineScaleSettings | DefaultScaleSettings | TargetUtilizationScaleSettings; + // @public -export enum KnownOperationName { - Create = "Create", - Delete = "Delete", - Reimage = "Reimage", - Restart = "Restart", - Start = "Start", - Stop = "Stop" -} +export type OperatingSystemType = string; // @public -export enum KnownOperationStatus { - CreateFailed = "CreateFailed", - DeleteFailed = "DeleteFailed", - InProgress = "InProgress", - ReimageFailed = "ReimageFailed", - RestartFailed = "RestartFailed", - StartFailed = "StartFailed", - StopFailed = "StopFailed", - Succeeded = "Succeeded" +export interface OperationDisplay { + description?: string; + operation?: string; + provider?: string; + resource?: string; } // @public -export enum KnownOperationTrigger { - IdleShutdown = "IdleShutdown", - Schedule = "Schedule", - User = "User" -} +export type OperationName = string; // @public -export enum KnownOrderString { - CreatedAtAsc = "CreatedAtAsc", - CreatedAtDesc = "CreatedAtDesc", - UpdatedAtAsc = "UpdatedAtAsc", - UpdatedAtDesc = "UpdatedAtDesc" +export interface Operations { + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } // @public -export enum KnownOsType { - Linux = "Linux", - Windows = "Windows" +export interface OperationsListOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownOutputDeliveryMode { - ReadWriteMount = "ReadWriteMount", - Upload = "Upload" -} +export type OperationsListResponse = AmlOperationListResult; // @public -export enum KnownPrivateEndpointConnectionProvisioningState { - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded" -} +export type OperationStatus = string; // @public -export enum KnownPrivateEndpointServiceConnectionStatus { - Approved = "Approved", - Disconnected = "Disconnected", - Pending = "Pending", - Rejected = "Rejected", - Timeout = "Timeout" -} +export type OperationTrigger = string; // @public -export enum KnownProvisioningState { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Unknown = "Unknown", - Updating = "Updating" -} +export type OrderString = string; // @public -export enum KnownProvisioningStatus { - Completed = "Completed", - Failed = "Failed", - Provisioning = "Provisioning" +export interface OsPatchingStatus { + latestPatchTime?: string; + patchStatus?: PatchStatus; + rebootPending?: boolean; + scheduledRebootTime?: string; } // @public -export enum KnownPublicNetworkAccess { - Disabled = "Disabled", - Enabled = "Enabled" -} +export type OsType = string; // @public -export enum KnownPublicNetworkAccessType { - Disabled = "Disabled", - Enabled = "Enabled" +export interface OutboundRule { + category?: RuleCategory; + status?: RuleStatus; + type: "FQDN" | "PrivateEndpoint" | "ServiceTag"; } // @public -export enum KnownQuotaUnit { - Count = "Count" +export interface OutboundRuleBasicResource extends Resource { + properties: OutboundRuleUnion; } // @public -export enum KnownRandomSamplingAlgorithmRule { - Random = "Random", - Sobol = "Sobol" +export interface OutboundRuleListResult { + nextLink?: string; + value?: OutboundRuleBasicResource[]; } +// @public (undocumented) +export type OutboundRuleUnion = OutboundRule | FqdnOutboundRule | PrivateEndpointOutboundRule | ServiceTagOutboundRule; + // @public -export enum KnownRecurrenceFrequency { - Day = "Day", - Hour = "Hour", - Minute = "Minute", - Month = "Month", - Week = "Week" -} +export type OutputDeliveryMode = string; // @public -export enum KnownReferenceType { - DataPath = "DataPath", - Id = "Id", - OutputPath = "OutputPath" +export interface OutputPathAssetReference extends AssetReferenceBase { + jobId?: string; + path?: string; + referenceType: "OutputPath"; } // @public -export enum KnownRegressionModels { - DecisionTree = "DecisionTree", - ElasticNet = "ElasticNet", - ExtremeRandomTrees = "ExtremeRandomTrees", - GradientBoosting = "GradientBoosting", - KNN = "KNN", - LassoLars = "LassoLars", - LightGBM = "LightGBM", - RandomForest = "RandomForest", - SGD = "SGD", - XGBoostRegressor = "XGBoostRegressor" -} +export type PackageBuildState = string; // @public -export enum KnownRegressionPrimaryMetrics { - NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError", - NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", - R2Score = "R2Score", - SpearmanCorrelation = "SpearmanCorrelation" +export type PackageInputDeliveryMode = string; + +// @public (undocumented) +export interface PackageInputPathBase { + inputPathType: "PathId" | "Url" | "PathVersion"; } +// @public (undocumented) +export type PackageInputPathBaseUnion = PackageInputPathBase | PackageInputPathId | PackageInputPathUrl | PackageInputPathVersion; + // @public -export enum KnownRemoteLoginPortPublicAccess { - Disabled = "Disabled", - Enabled = "Enabled", - NotSpecified = "NotSpecified" +export interface PackageInputPathId extends PackageInputPathBase { + inputPathType: "PathId"; + resourceId?: string; } // @public -export enum KnownSamplingAlgorithmType { - Bayesian = "Bayesian", - Grid = "Grid", - Random = "Random" +export interface PackageInputPathUrl extends PackageInputPathBase { + inputPathType: "Url"; + url?: string; } // @public -export enum KnownScaleType { - Default = "Default", - TargetUtilization = "TargetUtilization" +export interface PackageInputPathVersion extends PackageInputPathBase { + inputPathType: "PathVersion"; + resourceName?: string; + resourceVersion?: string; } // @public -export enum KnownScheduleActionType { - CreateJob = "CreateJob", - InvokeBatchEndpoint = "InvokeBatchEndpoint" -} +export type PackageInputType = string; // @public -export enum KnownScheduleListViewType { - All = "All", - DisabledOnly = "DisabledOnly", - EnabledOnly = "EnabledOnly" +export interface PackageRequest { + baseEnvironmentSource?: BaseEnvironmentSourceUnion; + environmentVariables?: { + [propertyName: string]: string | null; + }; + inferencingServer: InferencingServerUnion; + inputs?: ModelPackageInput[]; + modelConfiguration?: ModelConfiguration; + properties?: { + [propertyName: string]: string | null; + }; + tags?: { + [propertyName: string]: string | null; + }; + targetEnvironmentId: string; } // @public -export enum KnownScheduleProvisioningState { - Completed = "Completed", - Failed = "Failed", - Provisioning = "Provisioning" +export interface PackageResponse { + readonly baseEnvironmentSource?: BaseEnvironmentSourceUnion; + readonly buildId?: string; + readonly buildState?: PackageBuildState; + readonly environmentVariables?: { + [propertyName: string]: string | null; + }; + readonly inferencingServer?: InferencingServerUnion; + readonly inputs?: ModelPackageInput[]; + readonly logUrl?: string; + readonly modelConfiguration?: ModelConfiguration; + readonly properties?: { + [propertyName: string]: string | null; + }; + readonly tags?: { + [propertyName: string]: string | null; + }; + readonly targetEnvironmentId?: string; } // @public -export enum KnownScheduleProvisioningStatus { - Canceled = "Canceled", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Succeeded = "Succeeded", - Updating = "Updating" +export interface PaginatedComputeResourcesList { + nextLink?: string; + value?: ComputeResource[]; } // @public -export enum KnownScheduleStatus { - Disabled = "Disabled", - Enabled = "Enabled" +export interface PartialBatchDeployment { + description?: string; } // @public -export enum KnownSeasonalityMode { - Auto = "Auto", - Custom = "Custom" +export interface PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties { + properties?: PartialBatchDeployment; + tags?: { + [propertyName: string]: string | null; + }; } // @public -export enum KnownSecretsType { - AccountKey = "AccountKey", - Certificate = "Certificate", - Sas = "Sas", - ServicePrincipal = "ServicePrincipal" +export interface PartialJobBase { + notificationSetting?: PartialNotificationSetting; } // @public -export enum KnownServiceDataAccessAuthIdentity { - None = "None", - WorkspaceSystemAssignedIdentity = "WorkspaceSystemAssignedIdentity", - WorkspaceUserAssignedIdentity = "WorkspaceUserAssignedIdentity" +export interface PartialJobBasePartialResource { + properties?: PartialJobBase; } // @public -export enum KnownShortSeriesHandlingConfiguration { - Auto = "Auto", - Drop = "Drop", - None = "None", - Pad = "Pad" +export interface PartialManagedServiceIdentity { + type?: ManagedServiceIdentityType; + userAssignedIdentities?: { + [propertyName: string]: Record; + }; } // @public -export enum KnownSkuScaleType { - Automatic = "Automatic", - Manual = "Manual", - None = "None" +export interface PartialMinimalTrackedResource { + tags?: { + [propertyName: string]: string | null; + }; } // @public -export enum KnownSourceType { - Dataset = "Dataset", - Datastore = "Datastore", - URI = "URI" +export interface PartialMinimalTrackedResourceWithIdentity extends PartialMinimalTrackedResource { + identity?: PartialManagedServiceIdentity; } // @public -export enum KnownSshPublicAccess { - Disabled = "Disabled", - Enabled = "Enabled" +export interface PartialMinimalTrackedResourceWithSku extends PartialMinimalTrackedResource { + sku?: PartialSku; } // @public -export enum KnownSslConfigStatus { - Auto = "Auto", - Disabled = "Disabled", - Enabled = "Enabled" +export interface PartialMinimalTrackedResourceWithSkuAndIdentity extends PartialMinimalTrackedResource { + identity?: PartialManagedServiceIdentity; + sku?: PartialSku; } // @public -export enum KnownStackMetaLearnerType { - ElasticNet = "ElasticNet", - ElasticNetCV = "ElasticNetCV", - LightGBMClassifier = "LightGBMClassifier", - LightGBMRegressor = "LightGBMRegressor", - LinearRegression = "LinearRegression", - LogisticRegression = "LogisticRegression", - LogisticRegressionCV = "LogisticRegressionCV", - None = "None" +export interface PartialNotificationSetting { + webhooks?: { + [propertyName: string]: WebhookUnion | null; + }; } // @public -export enum KnownStatus { - Failure = "Failure", - InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", - InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", - InvalidVMFamilyName = "InvalidVMFamilyName", - OperationNotEnabledForRegion = "OperationNotEnabledForRegion", - OperationNotSupportedForSku = "OperationNotSupportedForSku", - Success = "Success", - Undefined = "Undefined" +export interface PartialRegistryPartialTrackedResource { + identity?: RegistryPartialManagedServiceIdentity; + sku?: PartialSku; + tags?: { + [propertyName: string]: string | null; + }; } // @public -export enum KnownStochasticOptimizer { - Adam = "Adam", - Adamw = "Adamw", - None = "None", - Sgd = "Sgd" +export interface PartialSku { + capacity?: number; + family?: string; + name?: string; + size?: string; + tier?: SkuTier; } -// @public -export enum KnownStorageAccountType { - PremiumLRS = "Premium_LRS", - StandardLRS = "Standard_LRS" +// @public (undocumented) +export interface Password { + readonly name?: string; + readonly value?: string; +} + +// @public (undocumented) +export interface PATAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "PAT"; + // (undocumented) + credentials?: WorkspaceConnectionPersonalAccessToken; } // @public -export enum KnownTargetAggregationFunction { - Max = "Max", - Mean = "Mean", - Min = "Min", - None = "None", - Sum = "Sum" +export type PatchStatus = string; + +// @public (undocumented) +export interface PendingUploadCredentialDto { + credentialType: "SAS"; } +// @public (undocumented) +export type PendingUploadCredentialDtoUnion = PendingUploadCredentialDto | SASCredentialDto; + // @public -export enum KnownTargetLagsMode { - Auto = "Auto", - Custom = "Custom" +export type PendingUploadCredentialType = string; + +// @public (undocumented) +export interface PendingUploadRequestDto { + pendingUploadId?: string; + pendingUploadType?: PendingUploadType; +} + +// @public (undocumented) +export interface PendingUploadResponseDto { + blobReferenceForConsumption?: BlobReferenceForConsumptionDto; + pendingUploadId?: string; + pendingUploadType?: PendingUploadType; } // @public -export enum KnownTargetRollingWindowSizeMode { - Auto = "Auto", - Custom = "Custom" +export type PendingUploadType = string; + +// @public +export interface PersonalComputeInstanceSettings { + assignedUser?: AssignedUser; } // @public -export enum KnownTaskType { - Classification = "Classification", - Forecasting = "Forecasting", - ImageClassification = "ImageClassification", - ImageClassificationMultilabel = "ImageClassificationMultilabel", - ImageInstanceSegmentation = "ImageInstanceSegmentation", - ImageObjectDetection = "ImageObjectDetection", - Regression = "Regression", - TextClassification = "TextClassification", - TextClassificationMultilabel = "TextClassificationMultilabel", - TextNER = "TextNER" +export interface PipelineJob extends JobBaseProperties { + inputs?: { + [propertyName: string]: JobInputUnion | null; + }; + jobs?: { + [propertyName: string]: Record; + }; + jobType: "Pipeline"; + outputs?: { + [propertyName: string]: JobOutputUnion | null; + }; + settings?: Record; + sourceJobId?: string; } // @public -export enum KnownTriggerType { - Cron = "Cron", - Recurrence = "Recurrence" +export interface PoolEnvironmentConfiguration { + environmentId?: string; + environmentVariables?: { + [propertyName: string]: string | null; + }; + livenessProbe?: ProbeSettings; + readinessProbe?: ProbeSettings; + startupProbe?: ProbeSettings; } // @public -export enum KnownUnderlyingResourceAction { - Delete = "Delete", - Detach = "Detach" +export interface PoolModelConfiguration { + modelId?: string; } // @public -export enum KnownUnitOfMeasure { - OneHour = "OneHour" -} +export type PoolProvisioningState = string; -// @public -export enum KnownUsageUnit { - Count = "Count" +// @public (undocumented) +export interface PoolStatus { + actualCapacity?: number; + eventLog?: Record[]; + groupCount?: number; + requestedCapacity?: number; + reservedCapacity?: number; } -// @public -export enum KnownUseStl { - None = "None", - Season = "Season", - SeasonTrend = "SeasonTrend" +// @public (undocumented) +export interface PredictionDriftMetricThresholdBase { + dataType: "Categorical" | "Numerical"; + threshold?: MonitoringThreshold; } -// @public -export enum KnownValidationMetricType { - Coco = "Coco", - CocoVoc = "CocoVoc", - None = "None", - Voc = "Voc" +// @public (undocumented) +export type PredictionDriftMetricThresholdBaseUnion = PredictionDriftMetricThresholdBase | CategoricalPredictionDriftMetricThreshold | NumericalPredictionDriftMetricThreshold; + +// @public (undocumented) +export interface PredictionDriftMonitoringSignal extends MonitoringSignalBase { + metricThresholds: PredictionDriftMetricThresholdBaseUnion[]; + modelType: MonitoringModelType; + productionData: MonitoringInputDataBaseUnion; + referenceData: MonitoringInputDataBaseUnion; + signalType: "PredictionDrift"; } // @public -export enum KnownValueFormat { - Json = "JSON" +export interface PrivateEndpoint { + readonly id?: string; } // @public -export enum KnownVMPriceOSType { - Linux = "Linux", - Windows = "Windows" +export interface PrivateEndpointConnection extends Resource { + identity?: ManagedServiceIdentity; + location?: string; + privateEndpoint?: WorkspacePrivateEndpointResource; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; + sku?: Sku; + tags?: { + [propertyName: string]: string; + }; } // @public -export enum KnownVmPriority { - Dedicated = "Dedicated", - LowPriority = "LowPriority" +export interface PrivateEndpointConnectionListResult { + value?: PrivateEndpointConnection[]; } // @public -export enum KnownVMTier { - LowPriority = "LowPriority", - Spot = "Spot", - Standard = "Standard" -} +export type PrivateEndpointConnectionProvisioningState = string; // @public -export enum KnownWeekDay { - Friday = "Friday", - Monday = "Monday", - Saturday = "Saturday", - Sunday = "Sunday", - Thursday = "Thursday", - Tuesday = "Tuesday", - Wednesday = "Wednesday" +export interface PrivateEndpointConnections { + createOrUpdate(resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, body: 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 Kubernetes extends Compute, KubernetesSchema { - computeType: "Kubernetes"; +export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties { - containerResourceRequirements?: ContainerResourceRequirements; - endpointComputeType: "Kubernetes"; -} +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; // @public -export interface KubernetesProperties { - defaultInstanceType?: string; - extensionInstanceReleaseTrain?: string; - extensionPrincipalId?: string; - instanceTypes?: { - [propertyName: string]: InstanceTypeSchema; - }; - namespace?: string; - relayConnectionString?: string; - serviceBusConnectionString?: string; - vcName?: string; +export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { } // @public -export interface KubernetesSchema { - properties?: KubernetesProperties; +export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type LearningRateScheduler = string; +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; // @public -export interface ListAmlUserFeatureResult { - readonly nextLink?: string; - readonly value?: AmlUserFeature[]; +export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface ListNotebookKeysResult { - readonly primaryAccessKey?: string; - readonly secondaryAccessKey?: string; -} +// @public +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; -// @public (undocumented) -export interface ListStorageAccountKeysResult { - readonly userStorageKey?: string; +// @public +export interface PrivateEndpointDestination { + // (undocumented) + serviceResourceId?: string; + // (undocumented) + sparkEnabled?: boolean; + sparkStatus?: RuleStatus; + // (undocumented) + subresourceTarget?: string; } // @public -export interface ListUsagesResult { - readonly nextLink?: string; - readonly value?: Usage[]; +export interface PrivateEndpointOutboundRule extends OutboundRule { + destination?: PrivateEndpointDestination; + type: "PrivateEndpoint"; } // @public -export type ListViewType = string; +export interface PrivateEndpointResource extends PrivateEndpoint { + subnetArmId?: string; +} -// @public (undocumented) -export interface ListWorkspaceKeysResult { - readonly appInsightsInstrumentationKey?: string; - readonly containerRegistryCredentials?: RegistryListCredentialsResult; - readonly notebookAccessKeys?: ListNotebookKeysResult; - readonly userStorageKey?: string; - readonly userStorageResourceId?: string; +// @public +export interface PrivateLinkResource extends Resource { + groupId?: string; + identity?: ManagedServiceIdentity; + location?: string; + requiredMembers?: string[]; + requiredZoneNames?: string[]; + sku?: Sku; + tags?: { + [propertyName: string]: string; + }; } // @public -export interface ListWorkspaceQuotas { - readonly nextLink?: string; - readonly value?: ResourceQuota[]; +export interface PrivateLinkResourceListResult { + // (undocumented) + value?: PrivateLinkResource[]; } // @public -export interface LiteralJobInput extends JobInput { - jobInputType: "literal"; - value: string; +export interface PrivateLinkResources { + list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): PagedAsyncIterableIterator; } // @public -export type LoadBalancerType = string; +export interface PrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { +} // @public -export type LogVerbosity = string; +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; // @public -export interface ManagedIdentity extends IdentityConfiguration { - clientId?: string; - identityType: "Managed"; - objectId?: string; - resourceId?: string; +export interface PrivateLinkServiceConnectionState { + actionsRequired?: string; + description?: string; + status?: EndpointServiceConnectionStatus; } -// @public (undocumented) -export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { - authType: "ManagedIdentity"; - // (undocumented) - credentials?: WorkspaceConnectionManagedIdentity; +// @public +export interface ProbeSettings { + failureThreshold?: number; + initialDelay?: string; + period?: string; + successThreshold?: number; + timeout?: string; } // @public -export interface ManagedOnlineDeployment extends OnlineDeploymentProperties { - endpointComputeType: "Managed"; +export interface ProgressMetrics { + readonly completedDatapointCount?: number; + readonly incrementalDataLastRefreshDateTime?: Date; + readonly skippedDatapointCount?: number; + readonly totalDatapointCount?: number; } // @public -export interface ManagedServiceIdentity { - readonly principalId?: string; - readonly tenantId?: string; - type: ManagedServiceIdentityType; - userAssignedIdentities?: { - [propertyName: string]: UserAssignedIdentity; +export interface PropertiesBase { + description?: string; + properties?: { + [propertyName: string]: string | null; }; } // @public -export type ManagedServiceIdentityType = string; +export type ProtectionLevel = string; // @public -export interface MedianStoppingPolicy extends EarlyTerminationPolicy { - policyType: "MedianStopping"; -} +export type Protocol = string; -// @public (undocumented) -export interface MLFlowModelJobInput extends AssetJobInput, JobInput { +// @public +export type ProvisioningState = string; + +// @public +export type ProvisioningStatus = string; + +// @public +export type PublicNetworkAccessType = string; + +// @public +export interface PyTorch extends DistributionConfiguration { + distributionType: "PyTorch"; + processCountPerInstance?: number; } // @public (undocumented) -export interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput { +export interface QueueSettings { + jobTier?: JobTier; + priority?: number; } // @public -export interface MLTableData extends DataVersionBaseProperties { - dataType: "mltable"; - referencedUris?: string[]; +export interface QuotaBaseProperties { + id?: string; + limit?: number; + type?: string; + unit?: QuotaUnit; } -// @public (undocumented) -export interface MLTableJobInput extends AssetJobInput, JobInput { +// @public +export interface Quotas { + list(location: string, options?: QuotasListOptionalParams): PagedAsyncIterableIterator; + update(location: string, parameters: QuotaUpdateParameters, options?: QuotasUpdateOptionalParams): Promise; } -// @public (undocumented) -export interface MLTableJobOutput extends AssetJobOutput, JobOutput { +// @public +export interface QuotasListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface ModelContainer extends Resource { - properties: ModelContainerProperties; -} +export type QuotasListNextResponse = ListWorkspaceQuotas; -// @public (undocumented) -export interface ModelContainerProperties extends AssetContainer { +// @public +export interface QuotasListOptionalParams extends coreClient.OperationOptions { } // @public -export interface ModelContainerResourceArmPaginatedResult { - nextLink?: string; - value?: ModelContainer[]; +export type QuotasListResponse = ListWorkspaceQuotas; + +// @public +export interface QuotasUpdateOptionalParams extends coreClient.OperationOptions { } // @public -export interface ModelContainers { - createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: ModelContainer, options?: ModelContainersCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, workspaceName: string, name: string, options?: ModelContainersDeleteOptionalParams): Promise; - get(resourceGroupName: string, workspaceName: string, name: string, options?: ModelContainersGetOptionalParams): Promise; - list(resourceGroupName: string, workspaceName: string, options?: ModelContainersListOptionalParams): PagedAsyncIterableIterator; +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; + +// @public +export type QuotaUnit = string; + +// @public +export interface QuotaUpdateParameters { + location?: string; + value?: QuotaBaseProperties[]; } // @public -export interface ModelContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface RandomSamplingAlgorithm extends SamplingAlgorithm { + logbase?: string; + rule?: RandomSamplingAlgorithmRule; + samplingAlgorithmType: "Random"; + seed?: number; } // @public -export type ModelContainersCreateOrUpdateResponse = ModelContainer; +export type RandomSamplingAlgorithmRule = string; // @public -export interface ModelContainersDeleteOptionalParams extends coreClient.OperationOptions { +export interface Ray extends DistributionConfiguration { + address?: string; + dashboardPort?: number; + distributionType: "Ray"; + headNodeAdditionalArgs?: string; + includeDashboard?: boolean; + port?: number; + workerNodeAdditionalArgs?: string; } // @public -export interface ModelContainersGetOptionalParams extends coreClient.OperationOptions { +export interface Recurrence { + frequency?: RecurrenceFrequency; + interval?: number; + schedule?: RecurrenceSchedule; + startTime?: string; + timeZone?: string; } // @public -export type ModelContainersGetResponse = ModelContainer; +export type RecurrenceFrequency = string; -// @public -export interface ModelContainersListNextOptionalParams extends coreClient.OperationOptions { - count?: number; - listViewType?: ListViewType; - skip?: string; +// @public (undocumented) +export interface RecurrenceSchedule { + hours: number[]; + minutes: number[]; + monthDays?: number[]; + weekDays?: WeekDay[]; } -// @public -export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; - -// @public -export interface ModelContainersListOptionalParams extends coreClient.OperationOptions { - count?: number; - listViewType?: ListViewType; - skip?: string; +// @public (undocumented) +export interface RecurrenceTrigger extends TriggerBase { + frequency: RecurrenceFrequency; + interval: number; + schedule?: RecurrenceSchedule; + triggerType: "Recurrence"; } // @public -export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; +export type ReferenceType = string; -// @public -export type ModelSize = string; +// @public (undocumented) +export interface RegenerateEndpointKeysRequest { + keyType: KeyType_2; + keyValue?: string; +} // @public -export interface ModelVersion extends Resource { - properties: ModelVersionProperties; +export interface Registries { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, body: Registry, options?: RegistriesCreateOrUpdateOptionalParams): Promise, RegistriesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, body: Registry, options?: RegistriesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, options?: RegistriesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, options?: RegistriesDeleteOptionalParams): Promise; + beginRemoveRegions(resourceGroupName: string, registryName: string, body: Registry, options?: RegistriesRemoveRegionsOptionalParams): Promise, RegistriesRemoveRegionsResponse>>; + beginRemoveRegionsAndWait(resourceGroupName: string, registryName: string, body: Registry, options?: RegistriesRemoveRegionsOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, options?: RegistriesGetOptionalParams): Promise; + list(resourceGroupName: string, options?: RegistriesListOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: RegistriesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, registryName: string, body: PartialRegistryPartialTrackedResource, options?: RegistriesUpdateOptionalParams): Promise; } // @public -export interface ModelVersionProperties extends AssetBase { - flavors?: { - [propertyName: string]: FlavorData | null; - }; - jobName?: string; - modelType?: string; - modelUri?: string; +export interface RegistriesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface ModelVersionResourceArmPaginatedResult { - nextLink?: string; - value?: ModelVersion[]; -} +export type RegistriesCreateOrUpdateResponse = Registry; // @public -export interface ModelVersions { - createOrUpdate(resourceGroupName: string, workspaceName: string, name: string, version: string, body: ModelVersion, options?: ModelVersionsCreateOrUpdateOptionalParams): Promise; - delete(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: ModelVersionsDeleteOptionalParams): Promise; - get(resourceGroupName: string, workspaceName: string, name: string, version: string, options?: ModelVersionsGetOptionalParams): Promise; - list(resourceGroupName: string, workspaceName: string, name: string, options?: ModelVersionsListOptionalParams): PagedAsyncIterableIterator; +export interface RegistriesDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface ModelVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistriesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type ModelVersionsCreateOrUpdateResponse = ModelVersion; +export interface RegistriesGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface ModelVersionsDeleteOptionalParams extends coreClient.OperationOptions { -} +export type RegistriesGetResponse = Registry; // @public -export interface ModelVersionsGetOptionalParams extends coreClient.OperationOptions { +export interface RegistriesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ModelVersionsGetResponse = ModelVersion; +export type RegistriesListBySubscriptionNextResponse = RegistryTrackedResourceArmPaginatedResult; // @public -export interface ModelVersionsListNextOptionalParams extends coreClient.OperationOptions { - description?: string; - feed?: string; - listViewType?: ListViewType; - offset?: number; - orderBy?: string; - properties?: string; - skip?: string; - tags?: string; - top?: number; - version?: string; +export interface RegistriesListBySubscriptionOptionalParams extends coreClient.OperationOptions { } // @public -export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; +export type RegistriesListBySubscriptionResponse = RegistryTrackedResourceArmPaginatedResult; // @public -export interface ModelVersionsListOptionalParams extends coreClient.OperationOptions { - description?: string; - feed?: string; - listViewType?: ListViewType; - offset?: number; - orderBy?: string; - properties?: string; - skip?: string; - tags?: string; - top?: number; - version?: string; +export interface RegistriesListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; +export type RegistriesListNextResponse = RegistryTrackedResourceArmPaginatedResult; // @public -export type MountAction = string; +export interface RegistriesListOptionalParams extends coreClient.OperationOptions { +} // @public -export type MountState = string; +export type RegistriesListResponse = RegistryTrackedResourceArmPaginatedResult; // @public -export interface Mpi extends DistributionConfiguration { - distributionType: "Mpi"; - processCountPerInstance?: number; +export interface RegistriesRemoveRegionsHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface NCrossValidations { - mode: "Auto" | "Custom"; +export interface RegistriesRemoveRegionsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type NCrossValidationsMode = string; - -// @public (undocumented) -export type NCrossValidationsUnion = NCrossValidations | AutoNCrossValidations | CustomNCrossValidations; +export type RegistriesRemoveRegionsResponse = Registry; // @public -export type Network = string; +export interface RegistriesUpdateOptionalParams extends coreClient.OperationOptions { +} // @public -export interface NlpVertical { - featurizationSettings?: NlpVerticalFeaturizationSettings; - limitSettings?: NlpVerticalLimitSettings; - validationData?: MLTableJobInput; -} +export type RegistriesUpdateResponse = Registry; // @public (undocumented) -export interface NlpVerticalFeaturizationSettings extends FeaturizationSettings { +export interface Registry extends TrackedResource { + discoveryUrl?: string; + identity?: ManagedServiceIdentity; + intellectualPropertyPublisher?: string; + kind?: string; + managedResourceGroup?: ArmResourceId; + mlFlowRegistryUri?: string; + publicNetworkAccess?: string; + regionDetails?: RegistryRegionArmDetails[]; + registryPrivateEndpointConnections?: RegistryPrivateEndpointConnection[]; + sku?: Sku; } // @public -export interface NlpVerticalLimitSettings { - maxConcurrentTrials?: number; - maxTrials?: number; - timeout?: string; +export interface RegistryCodeContainers { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, codeName: string, body: CodeContainer, options?: RegistryCodeContainersCreateOrUpdateOptionalParams): Promise, RegistryCodeContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, codeName: string, body: CodeContainer, options?: RegistryCodeContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, codeName: string, options?: RegistryCodeContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, codeName: string, options?: RegistryCodeContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, codeName: string, options?: RegistryCodeContainersGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: RegistryCodeContainersListOptionalParams): PagedAsyncIterableIterator; } // @public -export type NodeState = string; +export interface RegistryCodeContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} // @public -export interface NodeStateCounts { - readonly idleNodeCount?: number; - readonly leavingNodeCount?: number; - readonly preemptedNodeCount?: number; - readonly preparingNodeCount?: number; - readonly runningNodeCount?: number; - readonly unusableNodeCount?: number; +export interface RegistryCodeContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } -// @public (undocumented) -export interface NoneAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { - authType: "None"; -} +// @public +export type RegistryCodeContainersCreateOrUpdateResponse = CodeContainer; // @public -export interface NoneDatastoreCredentials extends DatastoreCredentials { - credentialsType: "None"; +export interface RegistryCodeContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } -// @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 +export interface RegistryCodeContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } -// @public (undocumented) -export interface NotebookPreparationError { - // (undocumented) - errorMessage?: string; - // (undocumented) - statusCode?: number; +// @public +export interface RegistryCodeContainersGetOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface NotebookResourceInfo { - // (undocumented) - fqdn?: string; - notebookPreparationError?: NotebookPreparationError; - resourceId?: string; +// @public +export type RegistryCodeContainersGetResponse = CodeContainer; + +// @public +export interface RegistryCodeContainersListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ObjectDetectionPrimaryMetrics = string; +export type RegistryCodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; // @public -export interface Objective { - goal: Goal; - primaryMetric: string; +export interface RegistryCodeContainersListOptionalParams extends coreClient.OperationOptions { + skip?: string; } -// @public (undocumented) -export interface OnlineDeployment extends TrackedResource { - identity?: ManagedServiceIdentity; - kind?: string; - properties: OnlineDeploymentPropertiesUnion; - sku?: Sku; -} +// @public +export type RegistryCodeContainersListResponse = CodeContainerResourceArmPaginatedResult; -// @public (undocumented) -export interface OnlineDeploymentProperties extends EndpointDeploymentPropertiesBase { - appInsightsEnabled?: boolean; - egressPublicNetworkAccess?: EgressPublicNetworkAccessType; - endpointComputeType: EndpointComputeType; - instanceType?: string; - livenessProbe?: ProbeSettings; - model?: string; - modelMountPath?: string; - readonly provisioningState?: DeploymentProvisioningState; - readinessProbe?: ProbeSettings; - requestSettings?: OnlineRequestSettings; - scaleSettings?: OnlineScaleSettingsUnion; +// @public +export interface RegistryCodeVersions { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, codeName: string, version: string, body: CodeVersion, options?: RegistryCodeVersionsCreateOrUpdateOptionalParams): Promise, RegistryCodeVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, codeName: string, version: string, body: CodeVersion, options?: RegistryCodeVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, codeName: string, version: string, options?: RegistryCodeVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, codeName: string, version: string, options?: RegistryCodeVersionsDeleteOptionalParams): Promise; + createOrGetStartPendingUpload(resourceGroupName: string, registryName: string, codeName: string, version: string, body: PendingUploadRequestDto, options?: RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, codeName: string, version: string, options?: RegistryCodeVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, codeName: string, options?: RegistryCodeVersionsListOptionalParams): PagedAsyncIterableIterator; } -// @public (undocumented) -export type OnlineDeploymentPropertiesUnion = OnlineDeploymentProperties | KubernetesOnlineDeployment | ManagedOnlineDeployment; - // @public -export interface OnlineDeployments { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: OnlineDeployment, options?: OnlineDeploymentsCreateOrUpdateOptionalParams): Promise, OnlineDeploymentsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: OnlineDeployment, options?: OnlineDeploymentsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialMinimalTrackedResourceWithSku, options?: OnlineDeploymentsUpdateOptionalParams): Promise, OnlineDeploymentsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: PartialMinimalTrackedResourceWithSku, options?: OnlineDeploymentsUpdateOptionalParams): Promise; - get(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsGetOptionalParams): Promise; - getLogs(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, body: DeploymentLogsRequest, options?: OnlineDeploymentsGetLogsOptionalParams): Promise; - list(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineDeploymentsListOptionalParams): PagedAsyncIterableIterator; - listSkus(resourceGroupName: string, workspaceName: string, endpointName: string, deploymentName: string, options?: OnlineDeploymentsListSkusOptionalParams): PagedAsyncIterableIterator; +export interface RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams extends coreClient.OperationOptions { } // @public -export interface OnlineDeploymentsCreateOrUpdateHeaders { +export type RegistryCodeVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; + +// @public +export interface RegistryCodeVersionsCreateOrUpdateHeaders { azureAsyncOperation?: string; xMsAsyncOperationTimeout?: string; } // @public -export interface OnlineDeploymentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistryCodeVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type OnlineDeploymentsCreateOrUpdateResponse = OnlineDeployment; +export type RegistryCodeVersionsCreateOrUpdateResponse = CodeVersion; // @public -export interface OnlineDeploymentsDeleteHeaders { +export interface RegistryCodeVersionsDeleteHeaders { location?: string; retryAfter?: number; xMsAsyncOperationTimeout?: string; } // @public -export interface OnlineDeploymentsDeleteOptionalParams extends coreClient.OperationOptions { +export interface RegistryCodeVersionsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface OnlineDeploymentsGetLogsOptionalParams extends coreClient.OperationOptions { +export interface RegistryCodeVersionsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type OnlineDeploymentsGetLogsResponse = DeploymentLogs; +export type RegistryCodeVersionsGetResponse = CodeVersion; // @public -export interface OnlineDeploymentsGetOptionalParams extends coreClient.OperationOptions { +export interface RegistryCodeVersionsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type OnlineDeploymentsGetResponse = OnlineDeployment; +export type RegistryCodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; // @public -export interface OnlineDeploymentsListNextOptionalParams extends coreClient.OperationOptions { +export interface RegistryCodeVersionsListOptionalParams extends coreClient.OperationOptions { orderBy?: string; skip?: string; top?: number; } // @public -export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; +export type RegistryCodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; // @public -export interface OnlineDeploymentsListOptionalParams extends coreClient.OperationOptions { - orderBy?: string; - skip?: string; - top?: number; +export interface RegistryComponentContainers { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, componentName: string, body: ComponentContainer, options?: RegistryComponentContainersCreateOrUpdateOptionalParams): Promise, RegistryComponentContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, componentName: string, body: ComponentContainer, options?: RegistryComponentContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, componentName: string, options?: RegistryComponentContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, componentName: string, options?: RegistryComponentContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, componentName: string, options?: RegistryComponentContainersGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: RegistryComponentContainersListOptionalParams): PagedAsyncIterableIterator; } // @public -export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; - -// @public -export interface OnlineDeploymentsListSkusNextOptionalParams extends coreClient.OperationOptions { - count?: number; - skip?: string; +export interface RegistryComponentContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export type OnlineDeploymentsListSkusNextResponse = SkuResourceArmPaginatedResult; - -// @public -export interface OnlineDeploymentsListSkusOptionalParams extends coreClient.OperationOptions { - count?: number; - skip?: string; +export interface RegistryComponentContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type OnlineDeploymentsListSkusResponse = SkuResourceArmPaginatedResult; +export type RegistryComponentContainersCreateOrUpdateResponse = ComponentContainer; // @public -export interface OnlineDeploymentsUpdateHeaders { +export interface RegistryComponentContainersDeleteHeaders { location?: string; retryAfter?: number; xMsAsyncOperationTimeout?: string; } // @public -export interface OnlineDeploymentsUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistryComponentContainersDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type OnlineDeploymentsUpdateResponse = OnlineDeployment; +export interface RegistryComponentContainersGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface OnlineDeploymentTrackedResourceArmPaginatedResult { - nextLink?: string; - value?: OnlineDeployment[]; -} +export type RegistryComponentContainersGetResponse = ComponentContainer; -// @public (undocumented) -export interface OnlineEndpoint extends TrackedResource { - identity?: ManagedServiceIdentity; - kind?: string; - properties: OnlineEndpointProperties; - sku?: Sku; +// @public +export interface RegistryComponentContainersListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface OnlineEndpointProperties extends EndpointPropertiesBase { - compute?: string; - readonly provisioningState?: EndpointProvisioningState; - publicNetworkAccess?: PublicNetworkAccessType; - traffic?: { - [propertyName: string]: number; - }; +export type RegistryComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult; + +// @public +export interface RegistryComponentContainersListOptionalParams extends coreClient.OperationOptions { + skip?: string; } // @public -export interface OnlineEndpoints { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: OnlineEndpoint, options?: OnlineEndpointsCreateOrUpdateOptionalParams): Promise, OnlineEndpointsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: OnlineEndpoint, options?: OnlineEndpointsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsDeleteOptionalParams): Promise; - beginRegenerateKeys(resourceGroupName: string, workspaceName: string, endpointName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams): Promise, void>>; - beginRegenerateKeysAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialMinimalTrackedResourceWithIdentity, options?: OnlineEndpointsUpdateOptionalParams): Promise, OnlineEndpointsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, workspaceName: string, endpointName: string, body: PartialMinimalTrackedResourceWithIdentity, options?: OnlineEndpointsUpdateOptionalParams): Promise; - get(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsGetOptionalParams): Promise; - getToken(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsGetTokenOptionalParams): Promise; - list(resourceGroupName: string, workspaceName: string, options?: OnlineEndpointsListOptionalParams): PagedAsyncIterableIterator; - listKeys(resourceGroupName: string, workspaceName: string, endpointName: string, options?: OnlineEndpointsListKeysOptionalParams): Promise; +export type RegistryComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; + +// @public +export interface RegistryComponentVersions { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, componentName: string, version: string, body: ComponentVersion, options?: RegistryComponentVersionsCreateOrUpdateOptionalParams): Promise, RegistryComponentVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, componentName: string, version: string, body: ComponentVersion, options?: RegistryComponentVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, componentName: string, version: string, options?: RegistryComponentVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, componentName: string, version: string, options?: RegistryComponentVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, componentName: string, version: string, options?: RegistryComponentVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, componentName: string, options?: RegistryComponentVersionsListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface OnlineEndpointsCreateOrUpdateHeaders { +export interface RegistryComponentVersionsCreateOrUpdateHeaders { azureAsyncOperation?: string; xMsAsyncOperationTimeout?: string; } // @public -export interface OnlineEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistryComponentVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpoint; +export type RegistryComponentVersionsCreateOrUpdateResponse = ComponentVersion; // @public -export interface OnlineEndpointsDeleteHeaders { +export interface RegistryComponentVersionsDeleteHeaders { location?: string; retryAfter?: number; xMsAsyncOperationTimeout?: string; } // @public -export interface OnlineEndpointsDeleteOptionalParams extends coreClient.OperationOptions { +export interface RegistryComponentVersionsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface OnlineEndpointsGetOptionalParams extends coreClient.OperationOptions { +export interface RegistryComponentVersionsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type OnlineEndpointsGetResponse = OnlineEndpoint; +export type RegistryComponentVersionsGetResponse = ComponentVersion; // @public -export interface OnlineEndpointsGetTokenOptionalParams extends coreClient.OperationOptions { +export interface RegistryComponentVersionsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type OnlineEndpointsGetTokenResponse = EndpointAuthToken; +export type RegistryComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult; // @public -export interface OnlineEndpointsListKeysOptionalParams extends coreClient.OperationOptions { +export interface RegistryComponentVersionsListOptionalParams extends coreClient.OperationOptions { + orderBy?: string; + skip?: string; + stage?: string; + top?: number; } // @public -export type OnlineEndpointsListKeysResponse = EndpointAuthKeys; +export type RegistryComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; // @public -export interface OnlineEndpointsListNextOptionalParams extends coreClient.OperationOptions { - computeType?: EndpointComputeType; - count?: number; - name?: string; - orderBy?: OrderString; - properties?: string; - skip?: string; - tags?: string; +export interface RegistryDataContainers { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, name: string, body: DataContainer, options?: RegistryDataContainersCreateOrUpdateOptionalParams): Promise, RegistryDataContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, name: string, body: DataContainer, options?: RegistryDataContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, name: string, options?: RegistryDataContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, name: string, options?: RegistryDataContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, name: string, options?: RegistryDataContainersGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: RegistryDataContainersListOptionalParams): PagedAsyncIterableIterator; } // @public -export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult; +export interface RegistryDataContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} // @public -export interface OnlineEndpointsListOptionalParams extends coreClient.OperationOptions { - computeType?: EndpointComputeType; - count?: number; - name?: string; - orderBy?: OrderString; - properties?: string; - skip?: string; - tags?: string; +export interface RegistryDataContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult; +export type RegistryDataContainersCreateOrUpdateResponse = DataContainer; // @public -export interface OnlineEndpointsRegenerateKeysHeaders { +export interface RegistryDataContainersDeleteHeaders { location?: string; retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface OnlineEndpointsRegenerateKeysOptionalParams extends coreClient.OperationOptions { +export interface RegistryDataContainersDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface OnlineEndpointsUpdateHeaders { - location?: string; - retryAfter?: number; - xMsAsyncOperationTimeout?: string; +export interface RegistryDataContainersGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface OnlineEndpointsUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export type RegistryDataContainersGetResponse = DataContainer; + +// @public +export interface RegistryDataContainersListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type OnlineEndpointsUpdateResponse = OnlineEndpoint; +export type RegistryDataContainersListNextResponse = DataContainerResourceArmPaginatedResult; // @public -export interface OnlineEndpointTrackedResourceArmPaginatedResult { - nextLink?: string; - value?: OnlineEndpoint[]; +export interface RegistryDataContainersListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; } // @public -export interface OnlineRequestSettings { - maxConcurrentRequestsPerInstance?: number; - maxQueueWait?: string; - requestTimeout?: string; +export type RegistryDataContainersListResponse = DataContainerResourceArmPaginatedResult; + +// @public +export interface RegistryDataVersions { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, name: string, version: string, body: DataVersionBase, options?: RegistryDataVersionsCreateOrUpdateOptionalParams): Promise, RegistryDataVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, name: string, version: string, body: DataVersionBase, options?: RegistryDataVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, name: string, version: string, options?: RegistryDataVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, name: string, version: string, options?: RegistryDataVersionsDeleteOptionalParams): Promise; + createOrGetStartPendingUpload(resourceGroupName: string, registryName: string, name: string, version: string, body: PendingUploadRequestDto, options?: RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, name: string, version: string, options?: RegistryDataVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, name: string, options?: RegistryDataVersionsListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface OnlineScaleSettings { - scaleType: "Default" | "TargetUtilization"; +export interface RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export type OnlineScaleSettingsUnion = OnlineScaleSettings | DefaultScaleSettings | TargetUtilizationScaleSettings; +// @public +export type RegistryDataVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; // @public -export type OperatingSystemType = string; +export interface RegistryDataVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} // @public -export type OperationName = string; +export interface RegistryDataVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface Operations { - list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; +export type RegistryDataVersionsCreateOrUpdateResponse = DataVersionBase; + +// @public +export interface RegistryDataVersionsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface OperationsListOptionalParams extends coreClient.OperationOptions { +export interface RegistryDataVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type OperationsListResponse = AmlOperationListResult; +export interface RegistryDataVersionsGetOptionalParams extends coreClient.OperationOptions { +} // @public -export type OperationStatus = string; +export type RegistryDataVersionsGetResponse = DataVersionBase; // @public -export type OperationTrigger = string; +export interface RegistryDataVersionsListNextOptionalParams extends coreClient.OperationOptions { +} // @public -export type OrderString = string; +export type RegistryDataVersionsListNextResponse = DataVersionBaseResourceArmPaginatedResult; // @public -export type OsType = string; +export interface RegistryDataVersionsListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + orderBy?: string; + skip?: string; + tags?: string; + top?: number; +} // @public -export type OutputDeliveryMode = string; +export type RegistryDataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; // @public -export interface OutputPathAssetReference extends AssetReferenceBase { - jobId?: string; - path?: string; - referenceType: "OutputPath"; +export interface RegistryEnvironmentContainers { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, environmentName: string, body: EnvironmentContainer, options?: RegistryEnvironmentContainersCreateOrUpdateOptionalParams): Promise, RegistryEnvironmentContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, environmentName: string, body: EnvironmentContainer, options?: RegistryEnvironmentContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, environmentName: string, options?: RegistryEnvironmentContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, environmentName: string, options?: RegistryEnvironmentContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, environmentName: string, options?: RegistryEnvironmentContainersGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: RegistryEnvironmentContainersListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface PaginatedComputeResourcesList { - nextLink?: string; - value?: ComputeResource[]; +export interface RegistryEnvironmentContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export interface PartialBatchDeployment { - description?: string; +export interface RegistryEnvironmentContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties { - properties?: PartialBatchDeployment; - tags?: { - [propertyName: string]: string | null; - }; -} +export type RegistryEnvironmentContainersCreateOrUpdateResponse = EnvironmentContainer; // @public -export interface PartialManagedServiceIdentity { - type?: ManagedServiceIdentityType; - userAssignedIdentities?: { - [propertyName: string]: Record; - }; +export interface RegistryEnvironmentContainersDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface PartialMinimalTrackedResource { - tags?: { - [propertyName: string]: string | null; - }; +export interface RegistryEnvironmentContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface PartialMinimalTrackedResourceWithIdentity extends PartialMinimalTrackedResource { - identity?: PartialManagedServiceIdentity; +export interface RegistryEnvironmentContainersGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface PartialMinimalTrackedResourceWithSku extends PartialMinimalTrackedResource { - sku?: PartialSku; -} +export type RegistryEnvironmentContainersGetResponse = EnvironmentContainer; // @public -export interface PartialSku { - capacity?: number; - family?: string; - name?: string; - size?: string; - tier?: SkuTier; +export interface RegistryEnvironmentContainersListNextOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export interface Password { - readonly name?: string; - readonly value?: string; -} +// @public +export type RegistryEnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; -// @public (undocumented) -export interface PATAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { - authType: "PAT"; - // (undocumented) - credentials?: WorkspaceConnectionPersonalAccessToken; +// @public +export interface RegistryEnvironmentContainersListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; } // @public -export interface PersonalComputeInstanceSettings { - assignedUser?: AssignedUser; +export type RegistryEnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; + +// @public +export interface RegistryEnvironmentVersions { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, environmentName: string, version: string, body: EnvironmentVersion, options?: RegistryEnvironmentVersionsCreateOrUpdateOptionalParams): Promise, RegistryEnvironmentVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, environmentName: string, version: string, body: EnvironmentVersion, options?: RegistryEnvironmentVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, environmentName: string, version: string, options?: RegistryEnvironmentVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, environmentName: string, version: string, options?: RegistryEnvironmentVersionsDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, environmentName: string, version: string, options?: RegistryEnvironmentVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, environmentName: string, options?: RegistryEnvironmentVersionsListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface PipelineJob extends JobBaseProperties { - inputs?: { - [propertyName: string]: JobInputUnion | null; - }; - jobs?: { - [propertyName: string]: Record; - }; - jobType: "Pipeline"; - outputs?: { - [propertyName: string]: JobOutputUnion | null; - }; - settings?: Record; - sourceJobId?: string; +export interface RegistryEnvironmentVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export interface PrivateEndpoint { - readonly id?: string; - readonly subnetArmId?: string; +export interface RegistryEnvironmentVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface PrivateEndpointConnection extends Resource { - identity?: ManagedServiceIdentity; +export type RegistryEnvironmentVersionsCreateOrUpdateResponse = EnvironmentVersion; + +// @public +export interface RegistryEnvironmentVersionsDeleteHeaders { location?: string; - privateEndpoint?: PrivateEndpoint; - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; - readonly provisioningState?: PrivateEndpointConnectionProvisioningState; - sku?: Sku; - tags?: { - [propertyName: string]: string; - }; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface PrivateEndpointConnectionListResult { - value?: PrivateEndpointConnection[]; +export interface RegistryEnvironmentVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type PrivateEndpointConnectionProvisioningState = string; +export interface RegistryEnvironmentVersionsGetOptionalParams extends coreClient.OperationOptions { +} // @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; -} +export type RegistryEnvironmentVersionsGetResponse = EnvironmentVersion; // @public -export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistryEnvironmentVersionsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +export type RegistryEnvironmentVersionsListNextResponse = EnvironmentVersionResourceArmPaginatedResult; // @public -export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions { +export interface RegistryEnvironmentVersionsListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + orderBy?: string; + skip?: string; + stage?: string; + top?: number; } // @public -export interface PrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions { +export type RegistryEnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; + +// @public (undocumented) +export interface RegistryListCredentialsResult { + readonly location?: string; + // (undocumented) + passwords?: Password[]; + readonly username?: string; } // @public -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; +export interface RegistryModelContainers { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, modelName: string, body: ModelContainer, options?: RegistryModelContainersCreateOrUpdateOptionalParams): Promise, RegistryModelContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, modelName: string, body: ModelContainer, options?: RegistryModelContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, modelName: string, options?: RegistryModelContainersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, modelName: string, options?: RegistryModelContainersDeleteOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, modelName: string, options?: RegistryModelContainersGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, options?: RegistryModelContainersListOptionalParams): PagedAsyncIterableIterator; +} // @public -export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelContainersCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; +export interface RegistryModelContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export type PrivateEndpointServiceConnectionStatus = string; +export type RegistryModelContainersCreateOrUpdateResponse = ModelContainer; // @public -export interface PrivateLinkResource extends Resource { - readonly groupId?: string; - identity?: ManagedServiceIdentity; +export interface RegistryModelContainersDeleteHeaders { location?: string; - readonly requiredMembers?: string[]; - requiredZoneNames?: string[]; - sku?: Sku; - tags?: { - [propertyName: string]: string; - }; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export interface PrivateLinkResourceListResult { - value?: PrivateLinkResource[]; +export interface RegistryModelContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface PrivateLinkResources { - list(resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams): Promise; +export interface RegistryModelContainersGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface PrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions { -} +export type RegistryModelContainersGetResponse = ModelContainer; // @public -export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; +export interface RegistryModelContainersListNextOptionalParams extends coreClient.OperationOptions { +} // @public -export interface PrivateLinkServiceConnectionState { - actionsRequired?: string; - description?: string; - status?: PrivateEndpointServiceConnectionStatus; -} +export type RegistryModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; // @public -export interface ProbeSettings { - failureThreshold?: number; - initialDelay?: string; - period?: string; - successThreshold?: number; - timeout?: string; +export interface RegistryModelContainersListOptionalParams extends coreClient.OperationOptions { + listViewType?: ListViewType; + skip?: string; } // @public -export type ProvisioningState = string; +export type RegistryModelContainersListResponse = ModelContainerResourceArmPaginatedResult; // @public -export type ProvisioningStatus = string; +export interface RegistryModelVersions { + beginCreateOrUpdate(resourceGroupName: string, registryName: string, modelName: string, version: string, body: ModelVersion, options?: RegistryModelVersionsCreateOrUpdateOptionalParams): Promise, RegistryModelVersionsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, registryName: string, modelName: string, version: string, body: ModelVersion, options?: RegistryModelVersionsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, registryName: string, modelName: string, version: string, options?: RegistryModelVersionsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, registryName: string, modelName: string, version: string, options?: RegistryModelVersionsDeleteOptionalParams): Promise; + beginPackage(resourceGroupName: string, registryName: string, modelName: string, version: string, body: PackageRequest, options?: RegistryModelVersionsPackageOptionalParams): Promise, RegistryModelVersionsPackageResponse>>; + beginPackageAndWait(resourceGroupName: string, registryName: string, modelName: string, version: string, body: PackageRequest, options?: RegistryModelVersionsPackageOptionalParams): Promise; + createOrGetStartPendingUpload(resourceGroupName: string, registryName: string, modelName: string, version: string, body: PendingUploadRequestDto, options?: RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams): Promise; + get(resourceGroupName: string, registryName: string, modelName: string, version: string, options?: RegistryModelVersionsGetOptionalParams): Promise; + list(resourceGroupName: string, registryName: string, modelName: string, options?: RegistryModelVersionsListOptionalParams): PagedAsyncIterableIterator; +} // @public -export type PublicNetworkAccess = string; +export interface RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams extends coreClient.OperationOptions { +} // @public -export type PublicNetworkAccessType = string; +export type RegistryModelVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; // @public -export interface PyTorch extends DistributionConfiguration { - distributionType: "PyTorch"; - processCountPerInstance?: number; +export interface RegistryModelVersionsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; } // @public -export interface QuotaBaseProperties { - id?: string; - limit?: number; - type?: string; - unit?: QuotaUnit; +export interface RegistryModelVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface Quotas { - list(location: string, options?: QuotasListOptionalParams): PagedAsyncIterableIterator; - update(location: string, parameters: QuotaUpdateParameters, options?: QuotasUpdateOptionalParams): Promise; -} +export type RegistryModelVersionsCreateOrUpdateResponse = ModelVersion; // @public -export interface QuotasListNextOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelVersionsDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export type QuotasListNextResponse = ListWorkspaceQuotas; +export interface RegistryModelVersionsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface QuotasListOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelVersionsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type QuotasListResponse = ListWorkspaceQuotas; +export type RegistryModelVersionsGetResponse = ModelVersion; // @public -export interface QuotasUpdateOptionalParams extends coreClient.OperationOptions { +export interface RegistryModelVersionsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; +export type RegistryModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; // @public -export type QuotaUnit = string; +export interface RegistryModelVersionsListOptionalParams extends coreClient.OperationOptions { + description?: string; + listViewType?: ListViewType; + orderBy?: string; + properties?: string; + skip?: string; + tags?: string; + top?: number; + version?: string; +} // @public -export interface QuotaUpdateParameters { +export type RegistryModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; + +// @public +export interface RegistryModelVersionsPackageHeaders { location?: string; - value?: QuotaBaseProperties[]; + retryAfter?: number; } // @public -export interface RandomSamplingAlgorithm extends SamplingAlgorithm { - rule?: RandomSamplingAlgorithmRule; - samplingAlgorithmType: "Random"; - seed?: number; +export interface RegistryModelVersionsPackageOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type RandomSamplingAlgorithmRule = string; +export type RegistryModelVersionsPackageResponse = PackageResponse; // @public -export type RecurrenceFrequency = string; - -// @public (undocumented) -export interface RecurrenceSchedule { - hours: number[]; - minutes: number[]; - monthDays?: number[]; - weekDays?: WeekDay[]; +export interface RegistryPartialManagedServiceIdentity extends ManagedServiceIdentity { } -// @public (undocumented) -export interface RecurrenceTrigger extends TriggerBase { - frequency: RecurrenceFrequency; - interval: number; - schedule?: RecurrenceSchedule; - triggerType: "Recurrence"; +// @public +export interface RegistryPrivateEndpointConnection { + groupIds?: string[]; + id?: string; + location?: string; + privateEndpoint?: PrivateEndpointResource; + provisioningState?: string; + registryPrivateLinkServiceConnectionState?: RegistryPrivateLinkServiceConnectionState; } // @public -export type ReferenceType = string; +export interface RegistryPrivateLinkServiceConnectionState { + actionsRequired?: string; + description?: string; + status?: EndpointServiceConnectionStatus; +} -// @public (undocumented) -export interface RegenerateEndpointKeysRequest { - keyType: KeyType_2; - keyValue?: string; +// @public +export interface RegistryRegionArmDetails { + acrDetails?: AcrDetails[]; + location?: string; + storageAccountDetails?: StorageAccountDetails[]; } -// @public (undocumented) -export interface RegistryListCredentialsResult { - readonly location?: string; - // (undocumented) - passwords?: Password[]; - readonly username?: string; +// @public +export interface RegistryTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: Registry[]; } // @public @@ -4471,6 +8294,15 @@ export interface Regression extends TableVertical, AutoMLVertical { trainingSettings?: RegressionTrainingSettings; } +// @public +export type RegressionModelPerformanceMetric = string; + +// @public (undocumented) +export interface RegressionModelPerformanceMetricThreshold extends ModelPerformanceMetricThresholdBase { + metric: RegressionModelPerformanceMetric; + modelType: "Regression"; +} + // @public export type RegressionModels = string; @@ -4486,6 +8318,22 @@ export interface RegressionTrainingSettings extends TrainingSettings { // @public export type RemoteLoginPortPublicAccess = string; +// @public +export interface RequestConfiguration { + maxConcurrentRequestsPerInstance?: number; + requestTimeout?: string; +} + +// @public (undocumented) +export interface RequestLogging { + captureHeaders?: string[]; +} + +// @public +export interface ResizeSchema { + targetVMSize?: string; +} + // @public export interface Resource { readonly id?: string; @@ -4509,6 +8357,8 @@ export interface ResourceBase { export interface ResourceConfiguration { instanceCount?: number; instanceType?: string; + locations?: string[]; + maxInstanceCount?: number; properties?: { [propertyName: string]: Record; }; @@ -4535,12 +8385,27 @@ export interface ResourceQuota { readonly unit?: QuotaUnit; } +// @public +export type RollingRateType = string; + // @public (undocumented) export interface Route { path: string; port: number; } +// @public +export type RuleAction = string; + +// @public +export type RuleCategory = string; + +// @public +export type RuleStatus = string; + +// @public +export type RuleType = string; + // @public export interface SamplingAlgorithm { samplingAlgorithmType: "Bayesian" | "Grid" | "Random"; @@ -4559,6 +8424,12 @@ export interface SASAuthTypeWorkspaceConnectionProperties extends WorkspaceConne credentials?: WorkspaceConnectionSharedAccessSignature; } +// @public (undocumented) +export interface SASCredentialDto extends PendingUploadCredentialDto { + credentialType: "SAS"; + sasUri?: string; +} + // @public export interface SasDatastoreCredentials extends DatastoreCredentials { credentialsType: "Sas"; @@ -4593,11 +8464,11 @@ export interface Schedule extends Resource { // @public (undocumented) export interface ScheduleActionBase { - actionType: "InvokeBatchEndpoint" | "CreateJob"; + actionType: "CreateMonitor" | "InvokeBatchEndpoint" | "ImportData" | "CreateJob"; } // @public (undocumented) -export type ScheduleActionBaseUnion = ScheduleActionBase | EndpointScheduleAction | JobScheduleAction; +export type ScheduleActionBaseUnion = ScheduleActionBase | CreateMonitorAction | EndpointScheduleAction | ImportDataAction | JobScheduleAction; // @public export type ScheduleActionType = string; @@ -4635,9 +8506,9 @@ export interface ScheduleResourceArmPaginatedResult { // @public export interface Schedules { - beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: Schedule, options?: SchedulesCreateOrUpdateOptionalParams): Promise, SchedulesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: Schedule, options?: SchedulesCreateOrUpdateOptionalParams): Promise, SchedulesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, body: Schedule, options?: SchedulesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, workspaceName: string, name: string, options?: SchedulesDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, workspaceName: string, name: string, options?: SchedulesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, workspaceName: string, name: string, options?: SchedulesDeleteOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, name: string, options?: SchedulesGetOptionalParams): Promise; list(resourceGroupName: string, workspaceName: string, options?: SchedulesListOptionalParams): PagedAsyncIterableIterator; @@ -4650,91 +8521,227 @@ export interface SchedulesCreateOrUpdateHeaders { } // @public -export interface SchedulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export interface SchedulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type SchedulesCreateOrUpdateResponse = Schedule; + +// @public +export interface SchedulesDeleteHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface SchedulesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface SchedulesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SchedulesGetResponse = Schedule; + +// @public +export interface SchedulesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SchedulesListNextResponse = ScheduleResourceArmPaginatedResult; + +// @public +export interface SchedulesListOptionalParams extends coreClient.OperationOptions { + listViewType?: ScheduleListViewType; + skip?: string; +} + +// @public +export type SchedulesListResponse = ScheduleResourceArmPaginatedResult; + +// @public +export type ScheduleStatus = string; + +// @public +export interface ScriptReference { + scriptArguments?: string; + scriptData?: string; + scriptSource?: string; + timeout?: string; +} + +// @public +export interface ScriptsToExecute { + creationScript?: ScriptReference; + startupScript?: ScriptReference; +} + +// @public +export interface Seasonality { + mode: "Auto" | "Custom"; +} + +// @public +export type SeasonalityMode = string; + +// @public (undocumented) +export type SeasonalityUnion = Seasonality | AutoSeasonality | CustomSeasonality; + +// @public +export interface SecretConfiguration { + uri?: string; + workspaceSecretName?: string; +} + +// @public +export type SecretsType = string; + +// @public (undocumented) +export interface ServerlessEndpoint extends TrackedResource { + identity?: ManagedServiceIdentity; + kind?: string; + properties: ServerlessEndpointProperties; + sku?: Sku; +} + +// @public (undocumented) +export interface ServerlessEndpointProperties { + readonly inferenceUri?: string; + modelProfile: ModelProfile; + readonly provisioningState?: EndpointProvisioningState; +} + +// @public +export interface ServerlessEndpoints { + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, name: string, body: ServerlessEndpoint, options?: ServerlessEndpointsCreateOrUpdateOptionalParams): Promise, ServerlessEndpointsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, body: ServerlessEndpoint, options?: ServerlessEndpointsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, workspaceName: string, name: string, options?: ServerlessEndpointsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, workspaceName: string, name: string, options?: ServerlessEndpointsDeleteOptionalParams): Promise; + beginRegenerateKeys(resourceGroupName: string, workspaceName: string, name: string, body: RegenerateEndpointKeysRequest, options?: ServerlessEndpointsRegenerateKeysOptionalParams): Promise, ServerlessEndpointsRegenerateKeysResponse>>; + beginRegenerateKeysAndWait(resourceGroupName: string, workspaceName: string, name: string, body: RegenerateEndpointKeysRequest, options?: ServerlessEndpointsRegenerateKeysOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, name: string, body: PartialMinimalTrackedResourceWithSkuAndIdentity, options?: ServerlessEndpointsUpdateOptionalParams): Promise, ServerlessEndpointsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, name: string, body: PartialMinimalTrackedResourceWithSkuAndIdentity, options?: ServerlessEndpointsUpdateOptionalParams): Promise; + get(resourceGroupName: string, workspaceName: string, name: string, options?: ServerlessEndpointsGetOptionalParams): Promise; + list(resourceGroupName: string, workspaceName: string, options?: ServerlessEndpointsListOptionalParams): PagedAsyncIterableIterator; + listKeys(resourceGroupName: string, workspaceName: string, name: string, options?: ServerlessEndpointsListKeysOptionalParams): Promise; +} + +// @public +export interface ServerlessEndpointsCreateOrUpdateHeaders { + azureAsyncOperation?: string; + xMsAsyncOperationTimeout?: string; +} + +// @public +export interface ServerlessEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type SchedulesCreateOrUpdateResponse = Schedule; +export type ServerlessEndpointsCreateOrUpdateResponse = ServerlessEndpoint; // @public -export interface SchedulesDeleteHeaders { +export interface ServerlessEndpointsDeleteHeaders { location?: string; retryAfter?: number; xMsAsyncOperationTimeout?: string; } // @public -export interface SchedulesDeleteOptionalParams extends coreClient.OperationOptions { +export interface ServerlessEndpointsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface SchedulesGetOptionalParams extends coreClient.OperationOptions { +export interface ServerlessEndpointsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type SchedulesGetResponse = Schedule; +export type ServerlessEndpointsGetResponse = ServerlessEndpoint; // @public -export interface SchedulesListNextOptionalParams extends coreClient.OperationOptions { - listViewType?: ScheduleListViewType; - skip?: string; +export interface ServerlessEndpointsListKeysOptionalParams extends coreClient.OperationOptions { } // @public -export type SchedulesListNextResponse = ScheduleResourceArmPaginatedResult; +export type ServerlessEndpointsListKeysResponse = EndpointAuthKeys; // @public -export interface SchedulesListOptionalParams extends coreClient.OperationOptions { - listViewType?: ScheduleListViewType; - skip?: string; +export interface ServerlessEndpointsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type SchedulesListResponse = ScheduleResourceArmPaginatedResult; +export type ServerlessEndpointsListNextResponse = ServerlessEndpointTrackedResourceArmPaginatedResult; // @public -export type ScheduleStatus = string; +export interface ServerlessEndpointsListOptionalParams extends coreClient.OperationOptions { + skip?: string; +} // @public -export interface ScriptReference { - scriptArguments?: string; - scriptData?: string; - scriptSource?: string; - timeout?: string; +export type ServerlessEndpointsListResponse = ServerlessEndpointTrackedResourceArmPaginatedResult; + +// @public +export interface ServerlessEndpointsRegenerateKeysHeaders { + location?: string; + retryAfter?: number; } // @public -export interface ScriptsToExecute { - creationScript?: ScriptReference; - startupScript?: ScriptReference; +export interface ServerlessEndpointsRegenerateKeysOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface Seasonality { - mode: "Auto" | "Custom"; +export type ServerlessEndpointsRegenerateKeysResponse = EndpointAuthKeys; + +// @public +export interface ServerlessEndpointsUpdateHeaders { + location?: string; + retryAfter?: number; + xMsAsyncOperationTimeout?: string; } // @public -export type SeasonalityMode = string; +export interface ServerlessEndpointsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} -// @public (undocumented) -export type SeasonalityUnion = Seasonality | AutoSeasonality | CustomSeasonality; +// @public +export type ServerlessEndpointsUpdateResponse = ServerlessEndpoint; // @public -export type SecretsType = string; +export interface ServerlessEndpointTrackedResourceArmPaginatedResult { + nextLink?: string; + value?: ServerlessEndpoint[]; +} // @public export type ServiceDataAccessAuthIdentity = string; // @public (undocumented) export interface ServiceManagedResourcesSettings { + // (undocumented) cosmosDb?: CosmosDbSettings; } +// @public (undocumented) +export interface ServicePrincipalAuthTypeWorkspaceConnectionProperties extends WorkspaceConnectionPropertiesV2 { + authType: "ServicePrincipal"; + // (undocumented) + credentials?: WorkspaceConnectionServicePrincipal; +} + // @public export interface ServicePrincipalDatastoreCredentials extends DatastoreCredentials { authorityUrl?: string; @@ -4751,6 +8758,24 @@ export interface ServicePrincipalDatastoreSecrets extends DatastoreSecrets { secretsType: "ServicePrincipal"; } +// @public +export interface ServiceTagDestination { + action?: RuleAction; + readonly addressPrefixes?: string[]; + // (undocumented) + portRanges?: string; + // (undocumented) + protocol?: string; + // (undocumented) + serviceTag?: string; +} + +// @public +export interface ServiceTagOutboundRule extends OutboundRule { + destination?: ServiceTagDestination; + type: "ServiceTag"; +} + // @public export interface SetupScripts { scripts?: ScriptsToExecute; @@ -4762,7 +8787,7 @@ export interface SharedPrivateLinkResource { name?: string; privateLinkResourceId?: string; requestMessage?: string; - status?: PrivateEndpointServiceConnectionStatus; + status?: EndpointServiceConnectionStatus; } // @public @@ -4813,6 +8838,59 @@ export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; // @public export type SourceType = string; +// @public +export interface SparkJob extends JobBaseProperties { + archives?: string[]; + args?: string; + codeId: string; + conf?: { + [propertyName: string]: string | null; + }; + entry: SparkJobEntryUnion; + environmentId?: string; + files?: string[]; + inputs?: { + [propertyName: string]: JobInputUnion | null; + }; + jars?: string[]; + jobType: "Spark"; + outputs?: { + [propertyName: string]: JobOutputUnion | null; + }; + pyFiles?: string[]; + queueSettings?: QueueSettings; + resources?: SparkResourceConfiguration; +} + +// @public +export interface SparkJobEntry { + sparkJobEntryType: "SparkJobPythonEntry" | "SparkJobScalaEntry"; +} + +// @public +export type SparkJobEntryType = string; + +// @public (undocumented) +export type SparkJobEntryUnion = SparkJobEntry | SparkJobPythonEntry | SparkJobScalaEntry; + +// @public (undocumented) +export interface SparkJobPythonEntry extends SparkJobEntry { + file: string; + sparkJobEntryType: "SparkJobPythonEntry"; +} + +// @public (undocumented) +export interface SparkJobScalaEntry extends SparkJobEntry { + className: string; + sparkJobEntryType: "SparkJobScalaEntry"; +} + +// @public (undocumented) +export interface SparkResourceConfiguration { + instanceType?: string; + runtimeVersion?: string; +} + // @public export type SshPublicAccess = string; @@ -4839,17 +8917,43 @@ export interface StackEnsembleSettings { // @public export type StackMetaLearnerType = string; +// @public +export interface StaticInputData extends MonitoringInputDataBase { + inputDataType: "Static"; + preprocessingComponentId?: string; + windowEnd: Date; + windowStart: Date; +} + // @public export type Status = string; +// @public +export interface StatusMessage { + readonly code?: string; + readonly createdDateTime?: Date; + readonly level?: StatusMessageLevel; + readonly message?: string; +} + +// @public +export type StatusMessageLevel = string; + // @public export type StochasticOptimizer = string; +// @public +export interface StorageAccountDetails { + systemCreatedStorageAccount?: SystemCreatedStorageAccount; + userCreatedStorageAccount?: UserCreatedStorageAccount; +} + // @public export type StorageAccountType = string; // @public export interface SweepJob extends JobBaseProperties { + componentConfiguration?: ComponentConfiguration; earlyTermination?: EarlyTerminationPolicyUnion; inputs?: { [propertyName: string]: JobInputUnion | null; @@ -4860,6 +8964,8 @@ export interface SweepJob extends JobBaseProperties { outputs?: { [propertyName: string]: JobOutputUnion | null; }; + queueSettings?: QueueSettings; + resources?: JobResourceConfiguration; samplingAlgorithm: SamplingAlgorithmUnion; searchSpace: Record; trial: TrialComponent; @@ -4894,6 +9000,22 @@ export interface SynapseSparkProperties { workspaceName?: string; } +// @public (undocumented) +export interface SystemCreatedAcrAccount { + acrAccountName?: string; + acrAccountSku?: string; + armResourceId?: ArmResourceId; +} + +// @public (undocumented) +export interface SystemCreatedStorageAccount { + allowBlobPublicAccess?: boolean; + armResourceId?: ArmResourceId; + storageAccountHnsEnabled?: boolean; + storageAccountName?: string; + storageAccountType?: string; +} + // @public export interface SystemData { createdAt?: Date; @@ -4911,12 +9033,69 @@ export interface SystemService { readonly version?: string; } +// @public +export interface TableFixedParameters { + booster?: string; + boostingType?: string; + growPolicy?: string; + learningRate?: number; + maxBin?: number; + maxDepth?: number; + maxLeaves?: number; + minDataInLeaf?: number; + minSplitGain?: number; + modelName?: string; + nEstimators?: number; + numLeaves?: number; + preprocessorName?: string; + regAlpha?: number; + regLambda?: number; + subsample?: number; + subsampleFreq?: number; + treeMethod?: string; + withMean?: boolean; + withStd?: boolean; +} + +// @public (undocumented) +export interface TableParameterSubspace { + booster?: string; + boostingType?: string; + growPolicy?: string; + learningRate?: string; + maxBin?: string; + maxDepth?: string; + maxLeaves?: string; + minDataInLeaf?: string; + minSplitGain?: string; + modelName?: string; + nEstimators?: string; + numLeaves?: string; + preprocessorName?: string; + regAlpha?: string; + regLambda?: string; + subsample?: string; + subsampleFreq?: string; + treeMethod?: string; + withMean?: string; + withStd?: string; +} + +// @public (undocumented) +export interface TableSweepSettings { + earlyTermination?: EarlyTerminationPolicyUnion; + samplingAlgorithm: SamplingAlgorithmType; +} + // @public export interface TableVertical { cvSplitColumnNames?: string[]; featurizationSettings?: TableVerticalFeaturizationSettings; + fixedParameters?: TableFixedParameters; limitSettings?: TableVerticalLimitSettings; nCrossValidations?: NCrossValidationsUnion; + searchSpace?: TableParameterSubspace[]; + sweepSettings?: TableSweepSettings; testData?: MLTableJobInput; testDataSize?: number; validationData?: MLTableJobInput; @@ -4943,7 +9122,10 @@ export interface TableVerticalLimitSettings { exitScore?: number; maxConcurrentTrials?: number; maxCoresPerTrial?: number; + maxNodes?: number; maxTrials?: number; + sweepConcurrentTrials?: number; + sweepTrials?: number; timeout?: string; trialTimeout?: string; } @@ -4992,6 +9174,9 @@ export interface TensorFlow extends DistributionConfiguration { workerCount?: number; } +// @public +export type TextAnnotationType = string; + // @public export interface TextClassification extends NlpVertical, AutoMLVertical { primaryMetric?: ClassificationPrimaryMetrics; @@ -5007,6 +9192,17 @@ export interface TextNer extends NlpVertical, AutoMLVertical { readonly primaryMetric?: ClassificationPrimaryMetrics; } +// @public (undocumented) +export interface TmpfsOptions { + size?: number; +} + +// @public (undocumented) +export interface TopNFeaturesByAttribution extends MonitoringFeatureFilterBase { + filterType: "TopNByAttribution"; + top?: number; +} + // @public export interface TrackedResource extends Resource { location: string; @@ -5015,6 +9211,17 @@ export interface TrackedResource extends Resource { }; } +// @public +export interface TrailingInputData extends MonitoringInputDataBase { + inputDataType: "Trailing"; + preprocessingComponentId?: string; + windowOffset: string; + windowSize: string; +} + +// @public +export type TrainingMode = string; + // @public export interface TrainingSettings { enableDnnTraining?: boolean; @@ -5024,6 +9231,7 @@ export interface TrainingSettings { enableVoteEnsemble?: boolean; ensembleModelDownloadTimeout?: string; stackEnsembleSettings?: StackEnsembleSettings; + trainingMode?: TrainingMode; } // @public @@ -5052,6 +9260,12 @@ export type TriggerBaseUnion = TriggerBase | RecurrenceTrigger | CronTrigger; // @public export type TriggerType = string; +// @public +export interface TritonInferencingServer extends InferencingServer { + inferenceConfiguration?: OnlineInferenceConfiguration; + serverType: "Triton"; +} + // @public (undocumented) export interface TritonModelJobInput extends AssetJobInput, JobInput { } @@ -5165,6 +9379,16 @@ export interface UserAssignedIdentity { readonly principalId?: string; } +// @public (undocumented) +export interface UserCreatedAcrAccount { + armResourceId?: ArmResourceId; +} + +// @public (undocumented) +export interface UserCreatedStorageAccount { + armResourceId?: ArmResourceId; +} + // @public export interface UserIdentity extends IdentityConfiguration { identityType: "UserIdentity"; @@ -5183,9 +9407,6 @@ export type UseStl = string; // @public export type ValidationMetricType = string; -// @public -export type ValueFormat = string; - // @public export interface VirtualMachine extends Compute, VirtualMachineSchema { computeType: "VirtualMachine"; @@ -5271,6 +9492,38 @@ export type VmPriority = string; // @public export type VMTier = string; +// @public (undocumented) +export interface VolumeDefinition { + bind?: BindOptions; + consistency?: string; + readOnly?: boolean; + source?: string; + target?: string; + tmpfs?: TmpfsOptions; + type?: VolumeDefinitionType; + volume?: VolumeOptions; +} + +// @public +export type VolumeDefinitionType = string; + +// @public (undocumented) +export interface VolumeOptions { + nocopy?: boolean; +} + +// @public +export interface Webhook { + eventType?: string; + webhookType: "AzureDevOps"; +} + +// @public +export type WebhookType = string; + +// @public (undocumented) +export type WebhookUnion = Webhook | AzureDevOpsWebhook; + // @public export type WeekDay = string; @@ -5278,37 +9531,74 @@ export type WeekDay = string; export interface Workspace extends Resource { allowPublicAccessWhenBehindVnet?: boolean; applicationInsights?: string; + // (undocumented) + associatedWorkspaces?: string[]; + // (undocumented) + containerRegistries?: string[]; containerRegistry?: string; description?: string; discoveryUrl?: string; + // (undocumented) + enableDataIsolation?: boolean; + // (undocumented) encryption?: EncryptionProperty; + // (undocumented) + existingWorkspaces?: string[]; + featureStoreSettings?: FeatureStoreSettings; friendlyName?: string; hbiWorkspace?: boolean; + // (undocumented) + hubResourceId?: string; identity?: ManagedServiceIdentity; imageBuildCompute?: string; keyVault?: string; + // (undocumented) + keyVaults?: string[]; + // (undocumented) + kind?: string; + // (undocumented) location?: string; + managedNetwork?: ManagedNetworkSettings; readonly mlFlowTrackingUri?: string; readonly notebookInfo?: NotebookResourceInfo; primaryUserAssignedIdentity?: string; readonly privateEndpointConnections?: PrivateEndpointConnection[]; readonly privateLinkCount?: number; readonly provisioningState?: ProvisioningState; - publicNetworkAccess?: PublicNetworkAccess; + publicNetworkAccess?: PublicNetworkAccessType; serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; readonly serviceProvisionedResourceGroup?: string; sharedPrivateLinkResources?: SharedPrivateLinkResource[]; sku?: Sku; + softDeleteRetentionInDays?: number; storageAccount?: string; + // (undocumented) + storageAccounts?: string[]; readonly storageHnsEnabled?: boolean; + systemDatastoresAuthMode?: string; tags?: { [propertyName: string]: string; }; readonly tenantId?: string; v1LegacyMode?: boolean; + workspaceHubConfig?: WorkspaceHubConfig; readonly workspaceId?: string; } +// @public (undocumented) +export interface WorkspaceConnectionAccessKey { + // (undocumented) + accessKeyId?: string; + // (undocumented) + secretAccessKey?: string; +} + +// @public +export interface WorkspaceConnectionApiKey { + // (undocumented) + key?: string; +} + // @public (undocumented) export interface WorkspaceConnectionManagedIdentity { // (undocumented) @@ -5325,12 +9615,13 @@ export interface WorkspaceConnectionPersonalAccessToken { // @public (undocumented) export interface WorkspaceConnectionPropertiesV2 { - authType: "PAT" | "SAS" | "UsernamePassword" | "None" | "ManagedIdentity"; + authType: "AccessKey" | "ApiKey" | "CustomKeys" | "ManagedIdentity" | "None" | "PAT" | "SAS" | "ServicePrincipal" | "UsernamePassword"; category?: ConnectionCategory; // (undocumented) + expiryTime?: Date; + metadata?: Record; + // (undocumented) target?: string; - value?: string; - valueFormat?: ValueFormat; } // @public (undocumented) @@ -5341,28 +9632,28 @@ export interface WorkspaceConnectionPropertiesV2BasicResource extends Resource { // @public (undocumented) export interface WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { - readonly nextLink?: string; + // (undocumented) + nextLink?: string; // (undocumented) value?: WorkspaceConnectionPropertiesV2BasicResource[]; } // @public (undocumented) -export type WorkspaceConnectionPropertiesV2Union = WorkspaceConnectionPropertiesV2 | PATAuthTypeWorkspaceConnectionProperties | SASAuthTypeWorkspaceConnectionProperties | UsernamePasswordAuthTypeWorkspaceConnectionProperties | NoneAuthTypeWorkspaceConnectionProperties | ManagedIdentityAuthTypeWorkspaceConnectionProperties; +export type WorkspaceConnectionPropertiesV2Union = WorkspaceConnectionPropertiesV2 | AccessKeyAuthTypeWorkspaceConnectionProperties | ApiKeyAuthWorkspaceConnectionProperties | CustomKeysWorkspaceConnectionProperties | ManagedIdentityAuthTypeWorkspaceConnectionProperties | NoneAuthTypeWorkspaceConnectionProperties | PATAuthTypeWorkspaceConnectionProperties | SASAuthTypeWorkspaceConnectionProperties | ServicePrincipalAuthTypeWorkspaceConnectionProperties | UsernamePasswordAuthTypeWorkspaceConnectionProperties; // @public export interface WorkspaceConnections { - // (undocumented) - create(resourceGroupName: string, workspaceName: string, connectionName: string, parameters: WorkspaceConnectionPropertiesV2BasicResource, options?: WorkspaceConnectionsCreateOptionalParams): Promise; - // (undocumented) + create(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsCreateOptionalParams): Promise; delete(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsDeleteOptionalParams): Promise; - // (undocumented) get(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsGetOptionalParams): Promise; - // (undocumented) list(resourceGroupName: string, workspaceName: string, options?: WorkspaceConnectionsListOptionalParams): PagedAsyncIterableIterator; + listSecrets(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsListSecretsOptionalParams): Promise; + update(resourceGroupName: string, workspaceName: string, connectionName: string, options?: WorkspaceConnectionsUpdateOptionalParams): Promise; } // @public export interface WorkspaceConnectionsCreateOptionalParams extends coreClient.OperationOptions { + body?: WorkspaceConnectionPropertiesV2BasicResource; } // @public @@ -5372,6 +9663,16 @@ export type WorkspaceConnectionsCreateResponse = WorkspaceConnectionPropertiesV2 export interface WorkspaceConnectionsDeleteOptionalParams extends coreClient.OperationOptions { } +// @public (undocumented) +export interface WorkspaceConnectionServicePrincipal { + // (undocumented) + clientId?: string; + // (undocumented) + clientSecret?: string; + // (undocumented) + tenantId?: string; +} + // @public export interface WorkspaceConnectionsGetOptionalParams extends coreClient.OperationOptions { } @@ -5387,8 +9688,6 @@ export interface WorkspaceConnectionSharedAccessSignature { // @public export interface WorkspaceConnectionsListNextOptionalParams extends coreClient.OperationOptions { - category?: string; - target?: string; } // @public @@ -5403,6 +9702,26 @@ export interface WorkspaceConnectionsListOptionalParams extends coreClient.Opera // @public export type WorkspaceConnectionsListResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; +// @public +export interface WorkspaceConnectionsListSecretsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceConnectionsListSecretsResponse = WorkspaceConnectionPropertiesV2BasicResource; + +// @public +export interface WorkspaceConnectionsUpdateOptionalParams extends coreClient.OperationOptions { + body?: WorkspaceConnectionUpdateParameter; +} + +// @public +export type WorkspaceConnectionsUpdateResponse = WorkspaceConnectionPropertiesV2BasicResource; + +// @public +export interface WorkspaceConnectionUpdateParameter { + properties?: WorkspaceConnectionPropertiesV2Union; +} + // @public (undocumented) export interface WorkspaceConnectionUsernamePassword { // (undocumented) @@ -5430,26 +9749,40 @@ export interface WorkspaceFeaturesListOptionalParams extends coreClient.Operatio // @public export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult; +// @public +export interface WorkspaceHubConfig { + // (undocumented) + additionalWorkspaceStorageAccounts?: string[]; + // (undocumented) + defaultWorkspaceResourceGroup?: string; +} + // @public export interface WorkspaceListResult { nextLink?: string; value?: Workspace[]; } +// @public +export interface WorkspacePrivateEndpointResource { + readonly id?: string; + readonly subnetArmId?: string; +} + // @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>>; + beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, body: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, workspaceName: string, body: 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>>; + 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>>; + 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>>; + beginResyncKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesResyncKeysOptionalParams): Promise, void>>; beginResyncKeysAndWait(resourceGroupName: string, workspaceName: string, options?: WorkspacesResyncKeysOptionalParams): Promise; - beginUpdate(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise, WorkspacesUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise; + beginUpdate(resourceGroupName: string, workspaceName: string, body: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise, WorkspacesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, workspaceName: string, body: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise; get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: WorkspacesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; @@ -5460,6 +9793,12 @@ export interface Workspaces { listStorageAccountKeys(resourceGroupName: string, workspaceName: string, options?: WorkspacesListStorageAccountKeysOptionalParams): Promise; } +// @public +export interface WorkspacesCreateOrUpdateHeaders { + location?: string; + retryAfter?: number; +} + // @public export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -5471,6 +9810,7 @@ export type WorkspacesCreateOrUpdateResponse = Workspace; // @public export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions { + forceToPurge?: boolean; resumeFrom?: string; updateIntervalInMs?: number; } @@ -5483,7 +9823,7 @@ export interface WorkspacesDiagnoseHeaders { // @public export interface WorkspacesDiagnoseOptionalParams extends coreClient.OperationOptions { - parameters?: DiagnoseWorkspaceParameters; + body?: DiagnoseWorkspaceParameters; resumeFrom?: string; updateIntervalInMs?: number; } @@ -5500,7 +9840,6 @@ export type WorkspacesGetResponse = Workspace; // @public export interface WorkspacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -5508,6 +9847,7 @@ export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; // @public export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions { + kind?: string; skip?: string; } @@ -5516,7 +9856,6 @@ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; // @public export interface WorkspacesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { - skip?: string; } // @public @@ -5524,6 +9863,7 @@ export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; // @public export interface WorkspacesListBySubscriptionOptionalParams extends coreClient.OperationOptions { + kind?: string; skip?: string; } @@ -5565,6 +9905,12 @@ export interface WorkspacesListStorageAccountKeysOptionalParams extends coreClie // @public export type WorkspacesListStorageAccountKeysResponse = ListStorageAccountKeysResult; +// @public +export interface WorkspacesPrepareNotebookHeaders { + location?: string; + retryAfter?: number; +} + // @public export interface WorkspacesPrepareNotebookOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -5574,6 +9920,12 @@ export interface WorkspacesPrepareNotebookOptionalParams extends coreClient.Oper // @public export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo; +// @public +export interface WorkspacesResyncKeysHeaders { + location?: string; + retryAfter?: number; +} + // @public export interface WorkspacesResyncKeysOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -5594,16 +9946,24 @@ export interface WorkspaceUpdateParameters { applicationInsights?: string; containerRegistry?: string; description?: string; + // (undocumented) + enableDataIsolation?: boolean; + // (undocumented) + encryption?: EncryptionUpdateProperties; + featureStoreSettings?: FeatureStoreSettings; friendlyName?: string; identity?: ManagedServiceIdentity; imageBuildCompute?: string; + managedNetwork?: ManagedNetworkSettings; primaryUserAssignedIdentity?: string; - publicNetworkAccess?: PublicNetworkAccess; + publicNetworkAccess?: PublicNetworkAccessType; serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; sku?: Sku; + softDeleteRetentionInDays?: number; tags?: { [propertyName: string]: string; }; + v1LegacyMode?: boolean; } // (No @packageDocumentation comment for this package) diff --git a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServices.ts similarity index 63% rename from sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts rename to sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServices.ts index 141a281ef475..383f17268c4f 100644 --- a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningServices.ts @@ -15,15 +15,20 @@ import { } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { - OperationsImpl, - WorkspacesImpl, UsagesImpl, VirtualMachineSizesImpl, QuotasImpl, ComputeOperationsImpl, - PrivateEndpointConnectionsImpl, - PrivateLinkResourcesImpl, - WorkspaceConnectionsImpl, + RegistryCodeContainersImpl, + RegistryCodeVersionsImpl, + RegistryComponentContainersImpl, + RegistryComponentVersionsImpl, + RegistryDataContainersImpl, + RegistryDataVersionsImpl, + RegistryEnvironmentContainersImpl, + RegistryEnvironmentVersionsImpl, + RegistryModelContainersImpl, + RegistryModelVersionsImpl, BatchEndpointsImpl, BatchDeploymentsImpl, CodeContainersImpl, @@ -35,24 +40,47 @@ import { DatastoresImpl, EnvironmentContainersImpl, EnvironmentVersionsImpl, + FeaturesetContainersImpl, + FeaturesImpl, + FeaturesetVersionsImpl, + FeaturestoreEntityContainersImpl, + FeaturestoreEntityVersionsImpl, + InferencePoolsImpl, + InferenceGroupsImpl, + InferenceEndpointsImpl, JobsImpl, + LabelingJobsImpl, ModelContainersImpl, ModelVersionsImpl, OnlineEndpointsImpl, OnlineDeploymentsImpl, SchedulesImpl, - WorkspaceFeaturesImpl + ServerlessEndpointsImpl, + RegistriesImpl, + WorkspaceFeaturesImpl, + OperationsImpl, + WorkspacesImpl, + WorkspaceConnectionsImpl, + ManagedNetworkSettingsRuleImpl, + PrivateEndpointConnectionsImpl, + PrivateLinkResourcesImpl, + ManagedNetworkProvisionsImpl } from "./operations"; import { - Operations, - Workspaces, Usages, VirtualMachineSizes, Quotas, ComputeOperations, - PrivateEndpointConnections, - PrivateLinkResources, - WorkspaceConnections, + RegistryCodeContainers, + RegistryCodeVersions, + RegistryComponentContainers, + RegistryComponentVersions, + RegistryDataContainers, + RegistryDataVersions, + RegistryEnvironmentContainers, + RegistryEnvironmentVersions, + RegistryModelContainers, + RegistryModelVersions, BatchEndpoints, BatchDeployments, CodeContainers, @@ -64,23 +92,41 @@ import { Datastores, EnvironmentContainers, EnvironmentVersions, + FeaturesetContainers, + Features, + FeaturesetVersions, + FeaturestoreEntityContainers, + FeaturestoreEntityVersions, + InferencePools, + InferenceGroups, + InferenceEndpoints, Jobs, + LabelingJobs, ModelContainers, ModelVersions, OnlineEndpoints, OnlineDeployments, Schedules, - WorkspaceFeatures + ServerlessEndpoints, + Registries, + WorkspaceFeatures, + Operations, + Workspaces, + WorkspaceConnections, + ManagedNetworkSettingsRule, + PrivateEndpointConnections, + PrivateLinkResources, + ManagedNetworkProvisions } from "./operationsInterfaces"; -import { AzureMachineLearningWorkspacesOptionalParams } from "./models"; +import { AzureMachineLearningServicesOptionalParams } from "./models"; -export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { +export class AzureMachineLearningServices extends coreClient.ServiceClient { $host: string; apiVersion: string; subscriptionId: string; /** - * Initializes a new instance of the AzureMachineLearningWorkspaces class. + * Initializes a new instance of the AzureMachineLearningServices class. * @param credentials Subscription credentials which uniquely identify client subscription. * @param subscriptionId The ID of the target subscription. * @param options The parameter options @@ -88,7 +134,7 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: AzureMachineLearningWorkspacesOptionalParams + options?: AzureMachineLearningServicesOptionalParams ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -101,12 +147,12 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { if (!options) { options = {}; } - const defaults: AzureMachineLearningWorkspacesOptionalParams = { + const defaults: AzureMachineLearningServicesOptionalParams = { requestContentType: "application/json; charset=utf-8", credential: credentials }; - const packageDetails = `azsdk-js-arm-machinelearning/2.1.2`; + const packageDetails = `azsdk-js-arm-machinelearning/3.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -159,16 +205,27 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-10-01"; - this.operations = new OperationsImpl(this); - this.workspaces = new WorkspacesImpl(this); + this.apiVersion = options.apiVersion || "2023-08-01-preview"; 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.registryCodeContainers = new RegistryCodeContainersImpl(this); + this.registryCodeVersions = new RegistryCodeVersionsImpl(this); + this.registryComponentContainers = new RegistryComponentContainersImpl( + this + ); + this.registryComponentVersions = new RegistryComponentVersionsImpl(this); + this.registryDataContainers = new RegistryDataContainersImpl(this); + this.registryDataVersions = new RegistryDataVersionsImpl(this); + this.registryEnvironmentContainers = new RegistryEnvironmentContainersImpl( + this + ); + this.registryEnvironmentVersions = new RegistryEnvironmentVersionsImpl( + this + ); + this.registryModelContainers = new RegistryModelContainersImpl(this); + this.registryModelVersions = new RegistryModelVersionsImpl(this); this.batchEndpoints = new BatchEndpointsImpl(this); this.batchDeployments = new BatchDeploymentsImpl(this); this.codeContainers = new CodeContainersImpl(this); @@ -180,13 +237,33 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { this.datastores = new DatastoresImpl(this); this.environmentContainers = new EnvironmentContainersImpl(this); this.environmentVersions = new EnvironmentVersionsImpl(this); + this.featuresetContainers = new FeaturesetContainersImpl(this); + this.features = new FeaturesImpl(this); + this.featuresetVersions = new FeaturesetVersionsImpl(this); + this.featurestoreEntityContainers = new FeaturestoreEntityContainersImpl( + this + ); + this.featurestoreEntityVersions = new FeaturestoreEntityVersionsImpl(this); + this.inferencePools = new InferencePoolsImpl(this); + this.inferenceGroups = new InferenceGroupsImpl(this); + this.inferenceEndpoints = new InferenceEndpointsImpl(this); this.jobs = new JobsImpl(this); + this.labelingJobs = new LabelingJobsImpl(this); this.modelContainers = new ModelContainersImpl(this); this.modelVersions = new ModelVersionsImpl(this); this.onlineEndpoints = new OnlineEndpointsImpl(this); this.onlineDeployments = new OnlineDeploymentsImpl(this); this.schedules = new SchedulesImpl(this); + this.serverlessEndpoints = new ServerlessEndpointsImpl(this); + this.registries = new RegistriesImpl(this); this.workspaceFeatures = new WorkspaceFeaturesImpl(this); + this.operations = new OperationsImpl(this); + this.workspaces = new WorkspacesImpl(this); + this.workspaceConnections = new WorkspaceConnectionsImpl(this); + this.managedNetworkSettingsRule = new ManagedNetworkSettingsRuleImpl(this); + this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); + this.privateLinkResources = new PrivateLinkResourcesImpl(this); + this.managedNetworkProvisions = new ManagedNetworkProvisionsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -218,15 +295,20 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { this.pipeline.addPolicy(apiVersionPolicy); } - operations: Operations; - workspaces: Workspaces; usages: Usages; virtualMachineSizes: VirtualMachineSizes; quotas: Quotas; computeOperations: ComputeOperations; - privateEndpointConnections: PrivateEndpointConnections; - privateLinkResources: PrivateLinkResources; - workspaceConnections: WorkspaceConnections; + registryCodeContainers: RegistryCodeContainers; + registryCodeVersions: RegistryCodeVersions; + registryComponentContainers: RegistryComponentContainers; + registryComponentVersions: RegistryComponentVersions; + registryDataContainers: RegistryDataContainers; + registryDataVersions: RegistryDataVersions; + registryEnvironmentContainers: RegistryEnvironmentContainers; + registryEnvironmentVersions: RegistryEnvironmentVersions; + registryModelContainers: RegistryModelContainers; + registryModelVersions: RegistryModelVersions; batchEndpoints: BatchEndpoints; batchDeployments: BatchDeployments; codeContainers: CodeContainers; @@ -238,11 +320,29 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { datastores: Datastores; environmentContainers: EnvironmentContainers; environmentVersions: EnvironmentVersions; + featuresetContainers: FeaturesetContainers; + features: Features; + featuresetVersions: FeaturesetVersions; + featurestoreEntityContainers: FeaturestoreEntityContainers; + featurestoreEntityVersions: FeaturestoreEntityVersions; + inferencePools: InferencePools; + inferenceGroups: InferenceGroups; + inferenceEndpoints: InferenceEndpoints; jobs: Jobs; + labelingJobs: LabelingJobs; modelContainers: ModelContainers; modelVersions: ModelVersions; onlineEndpoints: OnlineEndpoints; onlineDeployments: OnlineDeployments; schedules: Schedules; + serverlessEndpoints: ServerlessEndpoints; + registries: Registries; workspaceFeatures: WorkspaceFeatures; + operations: Operations; + workspaces: Workspaces; + workspaceConnections: WorkspaceConnections; + managedNetworkSettingsRule: ManagedNetworkSettingsRule; + privateEndpointConnections: PrivateEndpointConnections; + privateLinkResources: PrivateLinkResources; + managedNetworkProvisions: ManagedNetworkProvisions; } diff --git a/sdk/machinelearning/arm-machinelearning/src/index.ts b/sdk/machinelearning/arm-machinelearning/src/index.ts index fa7dd652dbe3..e034d9465142 100644 --- a/sdk/machinelearning/arm-machinelearning/src/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/index.ts @@ -9,5 +9,5 @@ /// export { getContinuationToken } from "./pagingHelper"; export * from "./models"; -export { AzureMachineLearningWorkspaces } from "./azureMachineLearningWorkspaces"; +export { AzureMachineLearningServices } from "./azureMachineLearningServices"; export * from "./operationsInterfaces"; diff --git a/sdk/machinelearning/arm-machinelearning/src/lroImpl.ts b/sdk/machinelearning/arm-machinelearning/src/lroImpl.ts index 518d5f053b4e..dd803cd5e28c 100644 --- a/sdk/machinelearning/arm-machinelearning/src/lroImpl.ts +++ b/sdk/machinelearning/arm-machinelearning/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AbortSignalLike } from "@azure/abort-controller"; 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" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike } + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal + }); + } + }; } diff --git a/sdk/machinelearning/arm-machinelearning/src/models/index.ts b/sdk/machinelearning/arm-machinelearning/src/models/index.ts index bb0f66101d3d..79f30551044b 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/index.ts @@ -25,22 +25,37 @@ export type ComputeSecretsUnion = | AksComputeSecrets | VirtualMachineSecrets | DatabricksComputeSecrets; -export type WorkspaceConnectionPropertiesV2Union = - | WorkspaceConnectionPropertiesV2 - | PATAuthTypeWorkspaceConnectionProperties - | SASAuthTypeWorkspaceConnectionProperties - | UsernamePasswordAuthTypeWorkspaceConnectionProperties - | NoneAuthTypeWorkspaceConnectionProperties - | ManagedIdentityAuthTypeWorkspaceConnectionProperties; +export type PendingUploadCredentialDtoUnion = + | PendingUploadCredentialDto + | SASCredentialDto; +export type BaseEnvironmentSourceUnion = + | BaseEnvironmentSource + | BaseEnvironmentId; +export type InferencingServerUnion = + | InferencingServer + | AzureMLBatchInferencingServer + | AzureMLOnlineInferencingServer + | CustomInferencingServer + | TritonInferencingServer; +export type PackageInputPathBaseUnion = + | PackageInputPathBase + | PackageInputPathId + | PackageInputPathUrl + | PackageInputPathVersion; +export type BatchDeploymentConfigurationUnion = + | BatchDeploymentConfiguration + | BatchPipelineComponentDeploymentConfiguration; export type AssetReferenceBaseUnion = | AssetReferenceBase - | DataPathAssetReference | IdAssetReference + | DataPathAssetReference | OutputPathAssetReference; export type DatastoreCredentialsUnion = | DatastoreCredentials | AccountKeyDatastoreCredentials | CertificateDatastoreCredentials + | KerberosKeytabCredentials + | KerberosPasswordCredentials | NoneDatastoreCredentials | SasDatastoreCredentials | ServicePrincipalDatastoreCredentials; @@ -48,22 +63,66 @@ export type DatastoreSecretsUnion = | DatastoreSecrets | AccountKeyDatastoreSecrets | CertificateDatastoreSecrets + | KerberosKeytabSecrets + | KerberosPasswordSecrets | SasDatastoreSecrets | ServicePrincipalDatastoreSecrets; +export type WebhookUnion = Webhook | AzureDevOpsWebhook; +export type TriggerBaseUnion = TriggerBase | RecurrenceTrigger | CronTrigger; export type IdentityConfigurationUnion = | IdentityConfiguration | AmlToken | ManagedIdentity | UserIdentity; +export type NodesUnion = Nodes | AllNodes; +export type LabelingJobMediaPropertiesUnion = + | LabelingJobMediaProperties + | LabelingJobImageProperties + | LabelingJobTextProperties; +export type MLAssistConfigurationUnion = + | MLAssistConfiguration + | MLAssistConfigurationDisabled + | MLAssistConfigurationEnabled; +export type ExportSummaryUnion = + | ExportSummary + | CocoExportSummary + | CsvExportSummary + | DatasetExportSummary; export type OnlineScaleSettingsUnion = | OnlineScaleSettings | DefaultScaleSettings | TargetUtilizationScaleSettings; export type ScheduleActionBaseUnion = | ScheduleActionBase + | CreateMonitorAction | EndpointScheduleAction + | ImportDataAction | JobScheduleAction; -export type TriggerBaseUnion = TriggerBase | RecurrenceTrigger | CronTrigger; +export type OutboundRuleUnion = + | OutboundRule + | FqdnOutboundRule + | PrivateEndpointOutboundRule + | ServiceTagOutboundRule; +export type WorkspaceConnectionPropertiesV2Union = + | WorkspaceConnectionPropertiesV2 + | AccessKeyAuthTypeWorkspaceConnectionProperties + | ApiKeyAuthWorkspaceConnectionProperties + | CustomKeysWorkspaceConnectionProperties + | ManagedIdentityAuthTypeWorkspaceConnectionProperties + | NoneAuthTypeWorkspaceConnectionProperties + | PATAuthTypeWorkspaceConnectionProperties + | SASAuthTypeWorkspaceConnectionProperties + | ServicePrincipalAuthTypeWorkspaceConnectionProperties + | UsernamePasswordAuthTypeWorkspaceConnectionProperties; +export type MonitoringFeatureFilterBaseUnion = + | MonitoringFeatureFilterBase + | AllFeatures + | FeatureSubset + | TopNFeaturesByAttribution; +export type MonitorComputeIdentityBaseUnion = + | MonitorComputeIdentityBase + | AmlTokenComputeIdentity + | ManagedComputeIdentity; export type ForecastHorizonUnion = | ForecastHorizon | AutoForecastHorizon @@ -110,6 +169,10 @@ export type TargetRollingWindowSizeUnion = | TargetRollingWindowSize | AutoTargetRollingWindowSize | CustomTargetRollingWindowSize; +export type MonitoringAlertNotificationSettingsBaseUnion = + | MonitoringAlertNotificationSettingsBase + | AzMonMonitoringAlertNotificationSettings + | EmailMonitoringAlertNotificationSettings; export type EarlyTerminationPolicyUnion = | EarlyTerminationPolicy | BanditPolicy @@ -120,60 +183,148 @@ export type SamplingAlgorithmUnion = | BayesianSamplingAlgorithm | GridSamplingAlgorithm | RandomSamplingAlgorithm; +export type DataDriftMetricThresholdBaseUnion = + | DataDriftMetricThresholdBase + | CategoricalDataDriftMetricThreshold + | NumericalDataDriftMetricThreshold; +export type DataQualityMetricThresholdBaseUnion = + | DataQualityMetricThresholdBase + | CategoricalDataQualityMetricThreshold + | NumericalDataQualityMetricThreshold; +export type PredictionDriftMetricThresholdBaseUnion = + | PredictionDriftMetricThresholdBase + | CategoricalPredictionDriftMetricThreshold + | NumericalPredictionDriftMetricThreshold; +export type ModelPerformanceMetricThresholdBaseUnion = + | ModelPerformanceMetricThresholdBase + | ClassificationModelPerformanceMetricThreshold + | RegressionModelPerformanceMetricThreshold; export type DistributionConfigurationUnion = | DistributionConfiguration | Mpi | PyTorch + | Ray | TensorFlow; export type JobLimitsUnion = JobLimits | CommandJobLimits | SweepJobLimits; -export type OnlineDeploymentPropertiesUnion = - | OnlineDeploymentProperties - | KubernetesOnlineDeployment - | ManagedOnlineDeployment; +export type MonitorComputeConfigurationBaseUnion = + | MonitorComputeConfigurationBase + | MonitorServerlessSparkCompute; +export type MonitoringSignalBaseUnion = + | MonitoringSignalBase + | CustomMonitoringSignal + | DataDriftMonitoringSignal + | DataQualityMonitoringSignal + | FeatureAttributionDriftMonitoringSignal + | GenerationSafetyQualityMonitoringSignal + | GenerationTokenStatisticsSignal + | ModelPerformanceSignal + | PredictionDriftMonitoringSignal; +export type MonitoringInputDataBaseUnion = + | MonitoringInputDataBase + | FixedInputData + | StaticInputData + | TrailingInputData; +export type DataImportSourceUnion = + | DataImportSource + | DatabaseSource + | FileSystemSource; +export type OneLakeArtifactUnion = OneLakeArtifact | LakeHouseArtifact; +export type SparkJobEntryUnion = + | SparkJobEntry + | SparkJobPythonEntry + | SparkJobScalaEntry; export type DatastorePropertiesUnion = | DatastoreProperties | AzureBlobDatastore | AzureDataLakeGen1Datastore | AzureDataLakeGen2Datastore - | AzureFileDatastore; + | AzureFileDatastore + | HdfsDatastore + | OneLakeDatastore; export type JobBasePropertiesUnion = | JobBaseProperties + | LabelingJobProperties | AutoMLJob | CommandJob | PipelineJob + | SparkJob | SweepJob; +export type OnlineDeploymentPropertiesUnion = + | OnlineDeploymentProperties + | KubernetesOnlineDeployment + | ManagedOnlineDeployment; export type DataVersionBasePropertiesUnion = | DataVersionBaseProperties + | DataImport | MLTableData | UriFileDataVersion | UriFolderDataVersion; -/** An array of operations supported by the resource provider. */ -export interface AmlOperationListResult { - /** List of AML workspace operations supported by the AML workspace resource provider. */ - value?: AmlOperation[]; +/** The List Usages operation response. */ +export interface ListUsagesResult { + /** + * The list of AML resource usages. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Usage[]; + /** + * 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; } -/** Azure Machine Learning workspace REST API operation */ -export interface AmlOperation { - /** Operation name: {provider}/{resource}/{operation} */ - name?: string; - /** Display name of operation */ - display?: AmlOperationDisplay; - /** Indicates whether the operation applies to data-plane */ - isDataAction?: boolean; +/** Describes AML Resource Usage. */ +export interface Usage { + /** + * Specifies the resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Region of the AML workspace in the id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly amlWorkspaceLocation?: string; + /** + * Specifies the resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * An enum describing the unit of usage measurement. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unit?: UsageUnit; + /** + * The current usage of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentValue?: number; + /** + * The maximum permitted usage 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. + */ + readonly name?: UsageName; } -/** Display name of operation */ -export interface AmlOperationDisplay { - /** The resource provider name: Microsoft.MachineLearningExperimentation */ - provider?: string; - /** The resource on which the operation is performed. */ - resource?: string; - /** The operation that users can perform. */ - operation?: string; - /** The description for the operation. */ - description?: string; +/** The Usage Names. */ +export interface UsageName { + /** + * The name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: string; + /** + * The localized name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly localizedValue?: string; } /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ @@ -225,323 +376,158 @@ export interface ErrorAdditionalInfo { 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: EncryptionKeyVaultProperties; -} - -/** 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 EncryptionKeyVaultProperties { - /** 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 List Virtual Machine size operation response. */ +export interface VirtualMachineSizeListResult { + /** The list of virtual machine sizes supported by AmlCompute. */ + value?: VirtualMachineSize[]; } -/** 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. - */ - readonly id?: string; +/** Describes the properties of a VM size. */ +export interface VirtualMachineSize { /** - * The ARM identifier for Subnet resource that private endpoint links to + * The name of the virtual machine size. * 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. */ -export interface PrivateLinkServiceConnectionState { - /** 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; -} - -/** Managed service identity (system assigned and/or user assigned identities) */ -export interface ManagedServiceIdentity { + readonly name?: string; /** - * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + * The family name of the virtual machine size. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly principalId?: string; + readonly family?: string; /** - * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + * 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 tenantId?: string; - /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ - type: ManagedServiceIdentityType; - /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ - userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; -} - -/** User assigned identity properties */ -export interface UserAssignedIdentity { + readonly vCPUs?: number; /** - * The principal ID of the assigned identity. + * 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 principalId?: string; + readonly gpus?: number; /** - * The client ID of the assigned identity. + * 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. */ - readonly clientId?: string; -} - -/** The resource model definition representing SKU */ -export interface Sku { - /** The name of the SKU. Ex - P3. It is typically a letter+number code */ - name: string; - /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ - tier?: SkuTier; - /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ - size?: string; - /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ - family?: string; - /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */ - capacity?: number; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { + readonly osVhdSizeMB?: number; /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * 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. */ - readonly id?: string; + readonly maxResourceVolumeMB?: number; /** - * The name of the resource + * 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 name?: string; + readonly memoryGB?: number; /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * 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. */ - readonly type?: string; + readonly lowPriorityCapable?: boolean; /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * 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 systemData?: SystemData; -} - -/** 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; -} - -export interface SharedPrivateLinkResource { - /** Unique name of the private link. */ - name?: string; - /** The resource id that private link links to. */ - privateLinkResourceId?: string; - /** The private link resource group id. */ - groupId?: string; - /** Request message. */ - requestMessage?: string; - /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ - status?: PrivateEndpointServiceConnectionStatus; + 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[]; } -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; +/** 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[]; } -export interface NotebookPreparationError { - errorMessage?: string; - statusCode?: number; +/** 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; } -export interface ServiceManagedResourcesSettings { - /** The settings for the service managed cosmosdb account. */ - cosmosDb?: CosmosDbSettings; +/** Quota update parameters. */ +export interface QuotaUpdateParameters { + /** The list for update quota. */ + value?: QuotaBaseProperties[]; + /** Region of workspace quota to be updated. */ + location?: string; } -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?: ManagedServiceIdentity; - /** 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; - /** ARM id of the application insights associated with this workspace. */ - applicationInsights?: string; - /** ARM id of the container registry associated with this workspace. */ - containerRegistry?: string; -} - -/** 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; +/** 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; } -export interface DiagnoseResponseResultValue { - userDefinedRouteResults?: DiagnoseResult[]; - networkSecurityRuleResults?: DiagnoseResult[]; - resourceLockResults?: DiagnoseResult[]; - dnsResolutionResults?: DiagnoseResult[]; - storageAccountResults?: DiagnoseResult[]; - keyVaultResults?: DiagnoseResult[]; - containerRegistryResults?: DiagnoseResult[]; - applicationInsightsResults?: DiagnoseResult[]; - otherResults?: DiagnoseResult[]; +/** The result of update workspace quota. */ +export interface UpdateWorkspaceQuotasResult { + /** + * The list of workspace quota update result. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: UpdateWorkspaceQuotas[]; + /** + * 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. + */ + readonly nextLink?: string; } -/** Result of Diagnose */ -export interface DiagnoseResult { +/** The properties for update Quota response. */ +export interface UpdateWorkspaceQuotas { /** - * Code for workspace setup error + * Specifies the resource ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly code?: string; + readonly id?: string; /** - * Level of workspace setup error + * Specifies the resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly level?: DiagnoseResultLevel; + readonly type?: string; + /** The maximum permitted quota of the resource. */ + limit?: number; /** - * Message of workspace setup error + * An enum describing the unit of quota measurement. * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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; + readonly unit?: QuotaUnit; + /** Status of update workspace quota. */ + status?: Status; } -/** The List Usages operation response. */ -export interface ListUsagesResult { +/** The List WorkspaceQuotasByVMFamily operation response. */ +export interface ListWorkspaceQuotas { /** - * The list of AML resource usages. + * 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?: Usage[]; + readonly value?: ResourceQuota[]; /** - * 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. + * 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; } -/** 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. @@ -558,29 +544,24 @@ export interface Usage { */ readonly type?: string; /** - * An enum describing the unit of usage measurement. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unit?: UsageUnit; - /** - * The current usage of the resource. + * 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. + * 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. + * 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 Usage Names. */ -export interface UsageName { +/** The Resource Name. */ +export interface ResourceName { /** * The name of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -593,210 +574,98 @@ export interface UsageName { readonly localizedValue?: string; } -/** The List Virtual Machine size operation response. */ -export interface VirtualMachineSizeListResult { - /** The list of virtual machine sizes supported by AmlCompute. */ - value?: VirtualMachineSize[]; +/** 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 { - /** - * 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; +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface ManagedServiceIdentity { /** - * The family name of the virtual machine size. + * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly family?: string; + readonly principalId?: string; /** - * The number of vCPUs supported by the virtual machine size. + * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly vCPUs?: number; + readonly tenantId?: string; + /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */ + type: ManagedServiceIdentityType; + /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */ + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; +} + +/** User assigned identity properties */ +export interface UserAssignedIdentity { /** - * The number of gPUs supported by the virtual machine size. + * The principal ID of the assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly gpus?: number; + readonly principalId?: string; /** - * The OS VHD disk size, in MB, allowed by the virtual machine size. + * The client ID of the assigned identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly osVhdSizeMB?: number; + readonly clientId?: string; +} + +/** The resource model definition representing SKU */ +export interface Sku { + /** The name of the SKU. Ex - P3. It is typically a letter+number code */ + name: string; + /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */ + tier?: SkuTier; + /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */ + size?: string; + /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */ + family?: string; + /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */ + capacity?: number; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { /** - * The resource volume size, in MB, allowed by the virtual machine size. + * 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. */ - readonly maxResourceVolumeMB?: number; + readonly id?: string; /** - * The amount of memory, in GB, supported by the virtual machine size. + * The name of the resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly memoryGB?: number; + readonly name?: string; /** - * Specifies if the virtual machine size supports low priority VMs. + * 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. */ - readonly lowPriorityCapable?: boolean; + readonly type?: string; /** - * Specifies if the virtual machine size supports premium IO. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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[]; + readonly systemData?: SystemData; } -/** 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 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 list of workspace quota update result. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: UpdateWorkspaceQuotas[]; - /** - * 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. - */ - readonly nextLink?: string; -} - -/** The properties for update Quota response. */ -export interface UpdateWorkspaceQuotas { - /** - * Specifies the resource ID. - * 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; - /** The maximum permitted quota of the resource. */ - limit?: number; - /** - * An enum describing the unit of quota measurement. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unit?: QuotaUnit; - /** Status of update workspace quota. */ - status?: Status; -} - -/** The List WorkspaceQuotasByVMFamily operation response. */ -export interface ListWorkspaceQuotas { - /** - * 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?: ResourceQuota[]; - /** - * 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; -} - -/** 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. - */ - readonly id?: string; - /** - * Region of the AML workspace in the id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly amlWorkspaceLocation?: string; - /** - * Specifies the resource type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: ResourceName; - /** - * 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; - /** - * An enum describing the unit of quota measurement. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unit?: QuotaUnit; -} - -/** The Resource Name. */ -export interface ResourceName { - /** - * The name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: string; - /** - * The localized name of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly localizedValue?: string; -} - -/** 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; +/** 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; } export interface ComputeResourceSchema { @@ -875,6 +744,100 @@ export interface ScaleSettings { nodeIdleTimeBeforeScaleDown?: string; } +/** Specifies the custom service configuration */ +export interface CustomService { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Name of the Custom Service */ + name?: string; + /** Describes the Image Specifications */ + image?: Image; + /** Environment Variable for the container */ + environmentVariables?: { [propertyName: string]: EnvironmentVariable }; + /** Describes the docker settings for the image */ + docker?: Docker; + /** Configuring the endpoints for the container */ + endpoints?: Endpoint[]; + /** Configuring the volumes for the container */ + volumes?: VolumeDefinition[]; +} + +export interface Image { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Type of the image. Possible values are: docker - For docker images. azureml - For AzureML images */ + type?: ImageType; + /** Image reference URL */ + reference?: string; +} + +export interface EnvironmentVariable { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Type of the Environment Variable. Possible values are: local - For local variable */ + type?: EnvironmentVariableType; + /** Value of the Environment variable */ + value?: string; +} + +export interface Docker { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Indicate whether container shall run in privileged or non-privileged mode. */ + privileged?: boolean; +} + +export interface Endpoint { + /** Protocol over which communication will happen over this endpoint */ + protocol?: Protocol; + /** Name of the Endpoint */ + name?: string; + /** Application port inside the container. */ + target?: number; + /** Port over which the application is exposed from container. */ + published?: number; + /** Host IP over which the application is exposed from the container */ + hostIp?: string; +} + +export interface VolumeDefinition { + /** Type of Volume Definition. Possible Values: bind,volume,tmpfs,npipe */ + type?: VolumeDefinitionType; + /** Indicate whether to mount volume as readOnly. Default value for this is false. */ + readOnly?: boolean; + /** Source of the mount. For bind mounts this is the host path. */ + source?: string; + /** Target of the mount. For bind mounts this is the path in the container. */ + target?: string; + /** Consistency of the volume */ + consistency?: string; + /** Bind Options of the mount */ + bind?: BindOptions; + /** Volume Options of the mount */ + volume?: VolumeOptions; + /** tmpfs option of the mount */ + tmpfs?: TmpfsOptions; +} + +export interface BindOptions { + /** Type of Bind Option */ + propagation?: string; + /** Indicate whether to create host path. */ + createHostPath?: boolean; + /** Mention the selinux options. */ + selinux?: string; +} + +export interface VolumeOptions { + /** Indicate whether volume is nocopy */ + nocopy?: boolean; +} + +export interface TmpfsOptions { + /** Mention the Tmpfs size */ + size?: number; +} + /** Result of AmlCompute Nodes */ export interface AmlComputeNodesInformation { /** @@ -923,102 +886,324 @@ export interface AmlComputeNodeInformation { readonly runId?: string; } -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[]; +/** Stops compute instance after user defined period of inactivity. */ +export interface IdleShutdownSetting { + /** Time is defined in ISO8601 format. Minimum is 15 min, maximum is 3 days. */ + idleTimeBeforeShutdown?: string; } -/** A list of private link resources */ -export interface PrivateLinkResourceListResult { - /** Array of private link resources */ - value?: PrivateLinkResource[]; +/** Schema for Compute Instance resize. */ +export interface ResizeSchema { + /** The name of the virtual machine size. */ + targetVMSize?: string; } -export interface ListStorageAccountKeysResult { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userStorageKey?: string; +/** A paginated list of CodeContainer entities. */ +export interface CodeContainerResourceArmPaginatedResult { + /** The link to the next page of CodeContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type CodeContainer. */ + value?: CodeContainer[]; } -export interface WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "PAT" | "SAS" | "UsernamePassword" | "None" | "ManagedIdentity"; - /** Category of the connection */ - category?: ConnectionCategory; - target?: string; - /** Value details of the workspace connection. */ - value?: string; - /** format for the workspace connection value */ - valueFormat?: ValueFormat; +export interface ResourceBase { + /** The asset description text. */ + description?: string; + /** The asset property dictionary. */ + properties?: { [propertyName: string]: string | null }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string | null }; } -export interface WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { - value?: WorkspaceConnectionPropertiesV2BasicResource[]; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; +/** A paginated list of CodeVersion entities. */ +export interface CodeVersionResourceArmPaginatedResult { + /** The link to the next page of CodeVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type CodeVersion. */ + value?: CodeVersion[]; } -export interface ExternalFqdnResponse { - value?: FqdnEndpoints[]; +export interface AutoDeleteSetting { + /** When to check if an asset is expired */ + condition?: AutoDeleteCondition; + /** Expiration condition value. */ + value?: string; } -export interface FqdnEndpoints { - properties?: FqdnEndpointsProperties; +export interface PendingUploadRequestDto { + /** If PendingUploadId = null then random guid will be used. */ + pendingUploadId?: string; + /** TemporaryBlobReference is the only supported type */ + pendingUploadType?: PendingUploadType; } -export interface FqdnEndpointsProperties { - category?: string; - endpoints?: FqdnEndpoint[]; +export interface PendingUploadResponseDto { + /** Container level read, write, list SAS */ + blobReferenceForConsumption?: BlobReferenceForConsumptionDto; + /** ID for this upload request */ + pendingUploadId?: string; + /** TemporaryBlobReference is the only supported type */ + pendingUploadType?: PendingUploadType; } -export interface FqdnEndpoint { - domainName?: string; - endpointDetails?: FqdnEndpointDetail[]; +export interface BlobReferenceForConsumptionDto { + /** + * Blob URI path for client to upload data. + * Example: https://blob.windows.core.net/Container/Path + */ + blobUri?: string; + /** Credential info to access storage account */ + credential?: PendingUploadCredentialDtoUnion; + /** Arm ID of the storage account to use */ + storageAccountArmId?: string; } -export interface FqdnEndpointDetail { - port?: number; +export interface PendingUploadCredentialDto { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialType: "SAS"; } -/** A paginated list of BatchEndpoint entities. */ -export interface BatchEndpointTrackedResourceArmPaginatedResult { - /** The link to the next page of BatchEndpoint objects. If null, there are no additional pages. */ +/** A paginated list of ComponentContainer entities. */ +export interface ComponentContainerResourceArmPaginatedResult { + /** The link to the next page of ComponentContainer objects. If null, there are no additional pages. */ nextLink?: string; - /** An array of objects of type BatchEndpoint. */ - value?: BatchEndpoint[]; + /** An array of objects of type ComponentContainer. */ + value?: ComponentContainer[]; } -/** Batch endpoint default values */ -export interface BatchEndpointDefaults { - /** - * Name of the deployment that will be default for the endpoint. - * This deployment will end up getting 100% traffic when the endpoint scoring URL is invoked. - */ +/** A paginated list of ComponentVersion entities. */ +export interface ComponentVersionResourceArmPaginatedResult { + /** The link to the next page of ComponentVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ComponentVersion. */ + value?: ComponentVersion[]; +} + +/** A paginated list of DataContainer entities. */ +export interface DataContainerResourceArmPaginatedResult { + /** The link to the next page of DataContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type DataContainer. */ + value?: DataContainer[]; +} + +/** A paginated list of DataVersionBase entities. */ +export interface DataVersionBaseResourceArmPaginatedResult { + /** The link to the next page of DataVersionBase objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type DataVersionBase. */ + value?: DataVersionBase[]; +} + +/** Intellectual Property details for a resource. */ +export interface IntellectualProperty { + /** Protection level of the Intellectual Property. */ + protectionLevel?: ProtectionLevel; + /** [Required] Publisher of the Intellectual Property. Must be the same as Registry publisher name. */ + publisher: string; +} + +/** A paginated list of EnvironmentContainer entities. */ +export interface EnvironmentContainerResourceArmPaginatedResult { + /** The link to the next page of EnvironmentContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type EnvironmentContainer. */ + value?: EnvironmentContainer[]; +} + +/** A paginated list of EnvironmentVersion entities. */ +export interface EnvironmentVersionResourceArmPaginatedResult { + /** The link to the next page of EnvironmentVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type EnvironmentVersion. */ + value?: EnvironmentVersion[]; +} + +/** Configuration settings for Docker build context */ +export interface BuildContext { + /** + * [Required] URI of the Docker build context used to build the image. Supports blob URIs on environment creation and may return blob or Git URIs. + * + */ + contextUri: string; + /** + * Path to the Dockerfile in the build context. + * + */ + dockerfilePath?: string; +} + +export interface InferenceContainerProperties { + /** The route to check the liveness of the inference server container. */ + livenessRoute?: Route; + /** The route to check the readiness of the inference server container. */ + readinessRoute?: Route; + /** The port to send the scoring requests to, within the inference server container. */ + scoringRoute?: Route; +} + +export interface Route { + /** [Required] The path for the route. */ + path: string; + /** [Required] The port for the route. */ + port: number; +} + +/** A paginated list of ModelContainer entities. */ +export interface ModelContainerResourceArmPaginatedResult { + /** The link to the next page of ModelContainer objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ModelContainer. */ + value?: ModelContainer[]; +} + +/** A paginated list of ModelVersion entities. */ +export interface ModelVersionResourceArmPaginatedResult { + /** The link to the next page of ModelVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ModelVersion. */ + value?: ModelVersion[]; +} + +export interface FlavorData { + /** Model flavor-specific data. */ + data?: { [propertyName: string]: string | null }; +} + +/** Model package operation request properties. */ +export interface PackageRequest { + /** Base environment to start with. */ + baseEnvironmentSource?: BaseEnvironmentSourceUnion; + /** Collection of environment variables. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** [Required] Inferencing server configurations. */ + inferencingServer: InferencingServerUnion; + /** Collection of inputs. */ + inputs?: ModelPackageInput[]; + /** Model configuration including the mount mode. */ + modelConfiguration?: ModelConfiguration; + /** Property dictionary. Properties can be added, removed, and updated. */ + properties?: { [propertyName: string]: string | null }; + /** Tag dictionary. Tags can be added, removed, and updated. */ + tags?: { [propertyName: string]: string | null }; + /** [Required] Arm ID of the target environment to be created by package operation. */ + targetEnvironmentId: string; +} + +export interface BaseEnvironmentSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + baseEnvironmentSourceType: "EnvironmentAsset"; +} + +export interface InferencingServer { + /** Polymorphic discriminator, which specifies the different types this object can be */ + serverType: "AzureMLBatch" | "AzureMLOnline" | "Custom" | "Triton"; +} + +/** Model package input options. */ +export interface ModelPackageInput { + /** [Required] Type of the input included in the target image. */ + inputType: PackageInputType; + /** Input delivery mode of the input. */ + mode?: PackageInputDeliveryMode; + /** Relative mount path of the input in the target image. */ + mountPath?: string; + /** [Required] Location of the input. */ + path: PackageInputPathBaseUnion; +} + +export interface PackageInputPathBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputPathType: "PathId" | "Url" | "PathVersion"; +} + +/** Model configuration options. */ +export interface ModelConfiguration { + /** Input delivery mode for the model. */ + mode?: PackageInputDeliveryMode; + /** Relative mounting path of the model in the target image. */ + mountPath?: string; +} + +/** Package response returned after async package operation completes successfully. */ +export interface PackageResponse { + /** + * Base environment to start with. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly baseEnvironmentSource?: BaseEnvironmentSourceUnion; + /** + * Build id of the image build operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly buildId?: string; + /** + * Build state of the image build operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly buildState?: PackageBuildState; + /** + * Collection of environment variables. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly environmentVariables?: { [propertyName: string]: string | null }; + /** + * Inferencing server configurations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly inferencingServer?: InferencingServerUnion; + /** + * Collection of inputs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly inputs?: ModelPackageInput[]; + /** + * Log url of the image build operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly logUrl?: string; + /** + * Model configuration including the mount mode. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly modelConfiguration?: ModelConfiguration; + /** + * Property dictionary. Tags can be added, removed, and updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly properties?: { [propertyName: string]: string | null }; + /** + * Tag dictionary. Tags can be added, removed, and updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tags?: { [propertyName: string]: string | null }; + /** + * Asset ID of the target environment created by package operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly targetEnvironmentId?: string; +} + +/** A paginated list of BatchEndpoint entities. */ +export interface BatchEndpointTrackedResourceArmPaginatedResult { + /** The link to the next page of BatchEndpoint objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type BatchEndpoint. */ + value?: BatchEndpoint[]; +} + +/** Batch endpoint default values */ +export interface BatchEndpointDefaults { + /** + * Name of the deployment that will be default for the endpoint. + * This deployment will end up getting 100% traffic when the endpoint scoring URL is invoked. + */ deploymentName?: string; } @@ -1036,7 +1221,7 @@ export interface EndpointPropertiesBase { /** Property dictionary. Properties can be added, but not removed or altered. */ properties?: { [propertyName: string]: string | null }; /** - * Endpoint URI. + * Endpoint URI for the inference endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly scoringUri?: string; @@ -1077,10 +1262,16 @@ export interface BatchDeploymentTrackedResourceArmPaginatedResult { value?: BatchDeployment[]; } +/** Properties relevant to different deployment types. */ +export interface BatchDeploymentConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + deploymentConfigurationType: "PipelineComponent"; +} + /** Base definition for asset references. */ export interface AssetReferenceBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - referenceType: "DataPath" | "Id" | "OutputPath"; + referenceType: "Id" | "DataPath" | "OutputPath"; } export interface ResourceConfiguration { @@ -1088,6 +1279,13 @@ export interface ResourceConfiguration { instanceCount?: number; /** Optional type of VM used as supported by the compute target. */ instanceType?: string; + /** Locations where the job can run. */ + locations?: string[]; + /** + * Optional max allowed number of instances or nodes to be used by the compute target. + * For use with elastic training, currently supported by PyTorch distribution type only. + */ + maxInstanceCount?: number; /** Additional properties bag. */ properties?: { [propertyName: string]: Record }; } @@ -1106,7 +1304,7 @@ export interface EndpointDeploymentPropertiesBase { codeConfiguration?: CodeConfiguration; /** Description of the endpoint deployment. */ description?: string; - /** ARM resource ID or AssetId of the environment specification for the endpoint deployment. */ + /** ARM resource ID of the environment specification for the endpoint deployment. */ environmentId?: string; /** Environment variables configuration for the deployment. */ environmentVariables?: { [propertyName: string]: string | null }; @@ -1136,63 +1334,6 @@ export interface PartialBatchDeployment { description?: string; } -/** A paginated list of CodeContainer entities. */ -export interface CodeContainerResourceArmPaginatedResult { - /** The link to the next page of CodeContainer objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type CodeContainer. */ - value?: CodeContainer[]; -} - -export interface ResourceBase { - /** The asset description text. */ - description?: string; - /** The asset property dictionary. */ - properties?: { [propertyName: string]: string | null }; - /** Tag dictionary. Tags can be added, removed, and updated. */ - tags?: { [propertyName: string]: string | null }; -} - -/** A paginated list of CodeVersion entities. */ -export interface CodeVersionResourceArmPaginatedResult { - /** The link to the next page of CodeVersion objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type CodeVersion. */ - value?: CodeVersion[]; -} - -/** A paginated list of ComponentContainer entities. */ -export interface ComponentContainerResourceArmPaginatedResult { - /** The link to the next page of ComponentContainer objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type ComponentContainer. */ - value?: ComponentContainer[]; -} - -/** A paginated list of ComponentVersion entities. */ -export interface ComponentVersionResourceArmPaginatedResult { - /** The link to the next page of ComponentVersion objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type ComponentVersion. */ - value?: ComponentVersion[]; -} - -/** A paginated list of DataContainer entities. */ -export interface DataContainerResourceArmPaginatedResult { - /** The link to the next page of DataContainer objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type DataContainer. */ - value?: DataContainer[]; -} - -/** A paginated list of DataVersionBase entities. */ -export interface DataVersionBaseResourceArmPaginatedResult { - /** The link to the next page of DataVersionBase objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type DataVersionBase. */ - value?: DataVersionBase[]; -} - /** A paginated list of Datastore entities. */ export interface DatastoreResourceArmPaginatedResult { /** The link to the next page of Datastore objects. If null, there are no additional pages. */ @@ -1207,6 +1348,8 @@ export interface DatastoreCredentials { credentialsType: | "AccountKey" | "Certificate" + | "KerberosKeytab" + | "KerberosPassword" | "None" | "Sas" | "ServicePrincipal"; @@ -1215,126 +1358,191 @@ export interface DatastoreCredentials { /** Base definition for datastore secrets. */ export interface DatastoreSecrets { /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "AccountKey" | "Certificate" | "Sas" | "ServicePrincipal"; + secretsType: + | "AccountKey" + | "Certificate" + | "KerberosKeytab" + | "KerberosPassword" + | "Sas" + | "ServicePrincipal"; } -/** A paginated list of EnvironmentContainer entities. */ -export interface EnvironmentContainerResourceArmPaginatedResult { - /** The link to the next page of EnvironmentContainer objects. If null, there are no additional pages. */ +/** A paginated list of FeaturesetContainer entities. */ +export interface FeaturesetContainerResourceArmPaginatedResult { + /** The link to the next page of FeaturesetContainer objects. If null, there are no additional pages. */ nextLink?: string; - /** An array of objects of type EnvironmentContainer. */ - value?: EnvironmentContainer[]; + /** An array of objects of type FeaturesetContainer. */ + value?: FeaturesetContainer[]; } -/** A paginated list of EnvironmentVersion entities. */ -export interface EnvironmentVersionResourceArmPaginatedResult { - /** The link to the next page of EnvironmentVersion objects. If null, there are no additional pages. */ +/** A paginated list of Feature entities. */ +export interface FeatureResourceArmPaginatedResult { + /** The link to the next page of Feature objects. If null, there are no additional pages. */ nextLink?: string; - /** An array of objects of type EnvironmentVersion. */ - value?: EnvironmentVersion[]; + /** An array of objects of type Feature. */ + value?: Feature[]; } -/** Configuration settings for Docker build context */ -export interface BuildContext { - /** - * [Required] URI of the Docker build context used to build the image. Supports blob URIs on environment creation and may return blob or Git URIs. - * - */ - contextUri: string; - /** - * Path to the Dockerfile in the build context. - * - */ - dockerfilePath?: string; +/** A paginated list of FeaturesetVersion entities. */ +export interface FeaturesetVersionResourceArmPaginatedResult { + /** The link to the next page of FeaturesetVersion objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type FeaturesetVersion. */ + value?: FeaturesetVersion[]; +} + +export interface MaterializationSettings { + /** Specifies the notification details */ + notification?: NotificationSetting; + /** Specifies the compute resource settings */ + resource?: MaterializationComputeResource; + /** Specifies the schedule details */ + schedule?: RecurrenceTrigger; + /** Specifies the spark compute settings */ + sparkConfiguration?: { [propertyName: string]: string | null }; + /** Specifies the stores to which materialization should happen */ + storeType?: MaterializationStoreType; +} + +/** Configuration for notification. */ +export interface NotificationSetting { + /** Send email notification to user on specified notification type */ + emailOn?: EmailNotificationEnableType[]; + /** This is the email recipient list which has a limitation of 499 characters in total concat with comma separator */ + emails?: string[]; + /** Send webhook callback to a service. Key is a user-provided name for the webhook. */ + webhooks?: { [propertyName: string]: WebhookUnion | null }; +} + +/** Webhook base */ +export interface Webhook { + /** Polymorphic discriminator, which specifies the different types this object can be */ + webhookType: "AzureDevOps"; + /** Send callback on a specified notification event */ + eventType?: string; } -export interface InferenceContainerProperties { - /** The route to check the liveness of the inference server container. */ - livenessRoute?: Route; - /** The route to check the readiness of the inference server container. */ - readinessRoute?: Route; - /** The port to send the scoring requests to, within the inference server container. */ - scoringRoute?: Route; -} - -export interface Route { - /** [Required] The path for the route. */ - path: string; - /** [Required] The port for the route. */ - port: number; +/** Dto object representing compute resource */ +export interface MaterializationComputeResource { + /** Specifies the instance type */ + instanceType?: string; } -/** A paginated list of JobBase entities. */ -export interface JobBaseResourceArmPaginatedResult { - /** The link to the next page of JobBase objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type JobBase. */ - value?: JobBase[]; +export interface RecurrenceSchedule { + /** [Required] List of hours for the schedule. */ + hours: number[]; + /** [Required] List of minutes for the schedule. */ + minutes: number[]; + /** List of month days for the schedule */ + monthDays?: number[]; + /** List of days for the schedule. */ + weekDays?: WeekDay[]; } -/** Base definition for identity configuration. */ -export interface IdentityConfiguration { +export interface TriggerBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - identityType: "AMLToken" | "Managed" | "UserIdentity"; -} - -/** Job endpoint definition */ -export interface JobService { - /** Url for endpoint. */ - endpoint?: string; + triggerType: "Recurrence" | "Cron"; /** - * Any error in the service. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies end time of schedule in ISO 8601, but without a UTC offset. Refer https://en.wikipedia.org/wiki/ISO_8601. + * Recommented format would be "2022-06-01T00:00:01" + * If not present, the schedule will run indefinitely */ - readonly errorMessage?: string; - /** Endpoint type. */ - jobServiceType?: string; - /** Port for endpoint. */ - port?: number; - /** Additional properties to set on the endpoint. */ - properties?: { [propertyName: string]: string | null }; + endTime?: string; + /** Specifies start time of schedule in ISO 8601 format, but without a UTC offset. */ + startTime?: string; /** - * Status of endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Specifies time zone in which the schedule runs. + * TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11 */ - readonly status?: string; + timeZone?: string; } -/** A paginated list of ModelContainer entities. */ -export interface ModelContainerResourceArmPaginatedResult { - /** The link to the next page of ModelContainer objects. If null, there are no additional pages. */ +/** Dto object representing specification */ +export interface FeaturesetSpecification { + /** Specifies the spec path */ + path?: string; +} + +/** Request payload for creating a backfill request for a given feature set version */ +export interface FeaturesetVersionBackfillRequest { + /** Specified the data availability status that you want to backfill */ + dataAvailabilityStatus?: DataAvailabilityStatus[]; + /** Specifies description */ + description?: string; + /** Specifies description */ + displayName?: string; + /** Specifies the backfill feature window to be materialized */ + featureWindow?: FeatureWindow; + /** Specify the jobId to retry the failed materialization */ + jobId?: string; + /** Specifies the properties */ + properties?: { [propertyName: string]: string | null }; + /** Specifies the compute resource settings */ + resource?: MaterializationComputeResource; + /** Specifies the spark compute settings */ + sparkConfiguration?: { [propertyName: string]: string | null }; + /** Specifies the tags */ + tags?: { [propertyName: string]: string | null }; +} + +/** Specifies the feature window */ +export interface FeatureWindow { + /** Specifies the feature window end time */ + featureWindowEnd?: Date; + /** Specifies the feature window start time */ + featureWindowStart?: Date; +} + +/** Response payload for creating a backfill request for a given feature set version */ +export interface FeaturesetVersionBackfillResponse { + /** List of jobs submitted as part of the backfill request. */ + jobIds?: string[]; +} + +/** A paginated list of FeaturestoreEntityContainer entities. */ +export interface FeaturestoreEntityContainerResourceArmPaginatedResult { + /** The link to the next page of FeaturestoreEntityContainer objects. If null, there are no additional pages. */ nextLink?: string; - /** An array of objects of type ModelContainer. */ - value?: ModelContainer[]; + /** An array of objects of type FeaturestoreEntityContainer. */ + value?: FeaturestoreEntityContainer[]; } -/** A paginated list of ModelVersion entities. */ -export interface ModelVersionResourceArmPaginatedResult { - /** The link to the next page of ModelVersion objects. If null, there are no additional pages. */ +/** A paginated list of FeaturestoreEntityVersion entities. */ +export interface FeaturestoreEntityVersionResourceArmPaginatedResult { + /** The link to the next page of FeaturestoreEntityVersion objects. If null, there are no additional pages. */ nextLink?: string; - /** An array of objects of type ModelVersion. */ - value?: ModelVersion[]; + /** An array of objects of type FeaturestoreEntityVersion. */ + value?: FeaturestoreEntityVersion[]; } -export interface FlavorData { - /** Model flavor-specific data. */ - data?: { [propertyName: string]: string | null }; +/** Dto object representing index column */ +export interface IndexColumn { + /** Specifies the column name */ + columnName?: string; + /** Specifies the data type */ + dataType?: FeatureDataType; } -/** A paginated list of OnlineEndpoint entities. */ -export interface OnlineEndpointTrackedResourceArmPaginatedResult { - /** The link to the next page of OnlineEndpoint objects. If null, there are no additional pages. */ +/** A paginated list of InferencePool entities. */ +export interface InferencePoolTrackedResourceArmPaginatedResult { + /** The link to the next page of InferencePool objects. If null, there are no additional pages. */ nextLink?: string; - /** An array of objects of type OnlineEndpoint. */ - value?: OnlineEndpoint[]; + /** An array of objects of type InferencePool. */ + value?: InferencePool[]; } -/** A paginated list of OnlineDeployment entities. */ -export interface OnlineDeploymentTrackedResourceArmPaginatedResult { - /** The link to the next page of OnlineDeployment objects. If null, there are no additional pages. */ - nextLink?: string; - /** An array of objects of type OnlineDeployment. */ - value?: OnlineDeployment[]; +/** Environment configuration options. */ +export interface PoolEnvironmentConfiguration { + /** ARM resource ID of the environment specification for the inference pool. */ + environmentId?: string; + /** Environment variables configuration for the inference pool. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** Liveness probe monitors the health of the container regularly. */ + livenessProbe?: ProbeSettings; + /** Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe. */ + readinessProbe?: ProbeSettings; + /** This verifies whether the application within a container is started. Startup probes run before any other probe, and, unless it finishes successfully, disables other probes. */ + startupProbe?: ProbeSettings; } /** Deployment container liveness/readiness probe configuration. */ @@ -1351,15 +1559,16 @@ export interface ProbeSettings { timeout?: string; } -/** Online deployment scoring requests configuration. */ -export interface OnlineRequestSettings { +/** Model configuration options. */ +export interface PoolModelConfiguration { + /** The URI path to the model. */ + modelId?: string; +} + +/** Scoring requests configuration. */ +export interface RequestConfiguration { /** The number of maximum concurrent requests per node allowed per deployment. Defaults to 1. */ maxConcurrentRequestsPerInstance?: number; - /** - * The maximum amount of time a request will stay in the queue in ISO 8601 format. - * Defaults to 500ms. - */ - maxQueueWait?: string; /** * The scoring timeout in ISO 8601 format. * Defaults to 5000ms. @@ -1367,10 +1576,12 @@ export interface OnlineRequestSettings { requestTimeout?: string; } -/** Online deployment scaling configuration. */ -export interface OnlineScaleSettings { - /** Polymorphic discriminator, which specifies the different types this object can be */ - scaleType: "Default" | "TargetUtilization"; +/** Base definition for pool resources. */ +export interface PropertiesBase { + /** Description of the endpoint deployment. */ + description?: string; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string | null }; } /** Common SKU definition. */ @@ -1387,18 +1598,6 @@ export interface PartialSku { tier?: SkuTier; } -export interface DeploymentLogsRequest { - /** The type of container to retrieve logs from. */ - containerType?: ContainerType; - /** The maximum number of lines to tail. */ - tail?: number; -} - -export interface DeploymentLogs { - /** The retrieved online deployment logs. */ - content?: string; -} - /** A paginated list of SkuResource entities. */ export interface SkuResourceArmPaginatedResult { /** The link to the next page of SkuResource objects. If null, there are no additional pages. */ @@ -1440,6281 +1639,11976 @@ export interface SkuSetting { tier?: SkuTier; } -export interface RegenerateEndpointKeysRequest { - /** [Required] Specification for which type of key to generate. Primary or Secondary. */ - keyType: KeyType; - /** The value the key is set to. */ - keyValue?: string; -} - -/** Service Token */ -export interface EndpointAuthToken { - /** Access token for endpoint authentication. */ - accessToken?: string; - /** Access token expiry time (UTC). */ - expiryTimeUtc?: number; - /** Refresh access token after time (UTC). */ - refreshAfterTimeUtc?: number; - /** Access token type. */ - tokenType?: string; +export interface PoolStatus { + /** Gets or sets the actual number of instances in the pool. */ + actualCapacity?: number; + /** Gets or sets event log for inference pool. */ + eventLog?: Record[]; + /** Gets or sets the actual number of groups in the pool. */ + groupCount?: number; + /** Gets or sets the requested number of instances for the pool. */ + requestedCapacity?: number; + /** Gets or sets the number of instances in the pool reserved by the system. */ + reservedCapacity?: number; } -/** A paginated list of Schedule entities. */ -export interface ScheduleResourceArmPaginatedResult { - /** The link to the next page of Schedule objects. If null, there are no additional pages. */ +/** A paginated list of InferenceGroup entities. */ +export interface InferenceGroupMinimalTrackedResourceWithSkuArmPaginatedResult { + /** The link to the next page of InferenceGroup objects. If null, there are no additional pages. */ nextLink?: string; - /** An array of objects of type Schedule. */ - value?: Schedule[]; -} - -export interface ScheduleActionBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - actionType: "InvokeBatchEndpoint" | "CreateJob"; + /** An array of objects of type InferenceGroup. */ + value?: InferenceGroupMinimalTrackedResourceWithSku[]; } -export interface TriggerBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - triggerType: "Recurrence" | "Cron"; +export interface InferenceGroupMinimalTrackedResourceWithSku { /** - * Specifies end time of schedule in ISO 8601, but without a UTC offset. Refer https://en.wikipedia.org/wiki/ISO_8601. - * Recommented format would be "2022-06-01T00:00:01" - * If not present, the schedule will run indefinitely + * The resource URL of the entity (not URL encoded). + * NOTE: This property will not be serialized. It can only be populated by the server. */ - endTime?: string; - /** Specifies start time of schedule in ISO 8601 format, but without a UTC offset. */ - startTime?: string; + readonly id?: string; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] */ + location: string; /** - * Specifies time zone in which the schedule runs. - * TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11 + * The name of the resource entity. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - timeZone?: string; -} - -/** The List Aml user feature operation response. */ -export interface ListAmlUserFeatureResult { + readonly name?: string; + /** [Required] Additional attributes of the entity. */ + properties: InferenceGroup; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; /** - * The list of AML user facing features. + * System data associated with resource provider * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: AmlUserFeature[]; + readonly systemData?: SystemData; + /** Resource tags. */ + tags?: { [propertyName: string]: string | null }; /** - * 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. + * The resource provider and type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** 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; -} - -/** 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; + readonly type?: string; } -export interface AKSSchema { - /** AKS properties */ - properties?: AKSSchemaProperties; +/** A paginated list of InferenceEndpoint entities. */ +export interface InferenceEndpointMinimalTrackedResourceArmPaginatedResult { + /** The link to the next page of InferenceEndpoint objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type InferenceEndpoint. */ + value?: InferenceEndpointMinimalTrackedResource[]; } -/** AKS properties */ -export interface AKSSchemaProperties { - /** Cluster full qualified domain name */ - clusterFqdn?: string; +export interface InferenceEndpointMinimalTrackedResource { /** - * System services + * The resource URL of the entity (not URL encoded). * 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; - /** 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; -} - -/** A system service running on a compute. */ -export interface SystemService { + readonly id?: string; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] */ + location: string; /** - * The type of this system service. + * The name of the resource entity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemServiceType?: string; + readonly name?: string; + /** [Required] Additional attributes of the entity. */ + properties: InferenceEndpoint; /** - * Public IP address + * System data associated with resource provider * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicIpAddress?: string; + readonly systemData?: SystemData; + /** Resource tags. */ + tags?: { [propertyName: string]: string | null }; /** - * The version for this type. + * The resource provider and type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: string; + readonly type?: string; } -/** The ssl configuration for scoring */ -export interface SslConfiguration { - /** Enable or disable ssl for scoring */ - status?: SslConfigStatus; - /** 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; +export interface GroupStatus { + /** Gets or sets the actual capacity info for the group. */ + actualCapacityInfo?: ActualCapacityInfo; + /** Gets or sets capacity used from the pool's reserved capacity. */ + bonusExtraCapacity?: number; + /** Gets or sets the actual number of endpoints in the group. */ + endpointCount?: number; + /** Gets or sets event log for inference group. */ + eventLog?: Record[]; + /** Gets or sets the request number of instances for the group. */ + requestedCapacity?: number; } -/** 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 }; +export interface ActualCapacityInfo { + /** Gets or sets the total number of instances for the group. */ + allocated?: number; + /** Gets or sets the number of instances which failed to successfully complete assignment. */ + assignmentFailed?: number; + /** Gets or sets the number of instances which successfully completed assignment. */ + assignmentSuccess?: number; } -/** Instance type schema. */ -export interface InstanceTypeSchema { - /** Node Selector */ - nodeSelector?: { [propertyName: string]: string | null }; - /** Resource requests/limits for this instance type */ - resources?: InstanceTypeSchemaResources; +/** A paginated list of JobBase entities. */ +export interface JobBaseResourceArmPaginatedResult { + /** The link to the next page of JobBase objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type JobBase. */ + value?: JobBase[]; } -/** 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 }; +/** Base definition for identity configuration. */ +export interface IdentityConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "AMLToken" | "Managed" | "UserIdentity"; } -/** 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; - /** - * 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 allocationState?: AllocationState; - /** - * 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; +/** Secret Configuration definition. */ +export interface SecretConfiguration { /** - * 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. + * Secret Uri. + * Sample Uri : https://myvault.vault.azure.net/secrets/mysecretname/secretversion */ - readonly errors?: ErrorResponse[]; + uri?: string; + /** Name of secret in workspace key vault. */ + workspaceSecretName?: string; +} + +/** Job endpoint definition */ +export interface JobService { + /** Url for endpoint. */ + endpoint?: string; /** - * The number of compute nodes currently assigned to the compute. + * Any error in the service. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly currentNodeCount?: number; + readonly errorMessage?: string; + /** Endpoint type. */ + jobServiceType?: string; /** - * 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. + * Nodes that user would like to start the service on. + * If Nodes is not set or set to null, the service will only be started on leader node. */ - readonly targetNodeCount?: number; + nodes?: NodesUnion; + /** Port for endpoint set by user. */ + port?: number; + /** Additional properties to set on the endpoint. */ + properties?: { [propertyName: string]: string | null }; /** - * Counts of various node states on the compute. + * Status of endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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; - /** A property bag containing additional properties. */ - propertyBag?: Record; + readonly status?: string; } -/** Virtual Machine image for Windows AML Compute */ -export interface VirtualMachineImage { - /** Virtual Machine image path */ - id: string; +/** Abstract Nodes definition */ +export interface Nodes { + /** Polymorphic discriminator, which specifies the different types this object can be */ + nodesValueType: "All"; } -/** 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; +/** Azure Resource Manager resource envelope strictly used in update requests. */ +export interface PartialJobBasePartialResource { + /** Additional attributes of the entity. */ + properties?: PartialJobBase; } -/** Counts of various compute node states on the amlCompute. */ -export interface NodeStateCounts { - /** - * 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; - /** - * 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; +/** Mutable base definition for a job. */ +export interface PartialJobBase { + /** Mutable notification setting for the job */ + notificationSetting?: PartialNotificationSetting; +} + +/** Mutable configuration for notification. */ +export interface PartialNotificationSetting { + /** Send webhook callback to a service. Key is a user-provided name for the webhook. */ + webhooks?: { [propertyName: string]: WebhookUnion | null }; +} + +/** A paginated list of LabelingJob entities. */ +export interface LabelingJobResourceArmPaginatedResult { + /** The link to the next page of LabelingJob objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type LabelingJob. */ + value?: LabelingJob[]; +} + +/** Labeling data configuration definition */ +export interface LabelingDataConfiguration { + /** Resource Id of the data asset to perform labeling. */ + dataId?: string; + /** Indicates whether to enable incremental data refresh. */ + incrementalDataRefresh?: IncrementalDataRefresh; +} + +/** Instructions for labeling job */ +export interface LabelingJobInstructions { + /** The link to a page with detailed labeling instructions for labelers. */ + uri?: string; +} + +/** Label category definition */ +export interface LabelCategory { + /** Dictionary of label classes in this category. */ + classes?: { [propertyName: string]: LabelClass | null }; + /** Display name of the label category. */ + displayName?: string; + /** Indicates whether it is allowed to select multiple classes in this category. */ + multiSelect?: MultiSelect; +} + +/** Label class definition */ +export interface LabelClass { + /** Display name of the label class. */ + displayName?: string; + /** Dictionary of subclasses of the label class. */ + subclasses?: { [propertyName: string]: LabelClass | null }; +} + +/** Properties of a labeling job */ +export interface LabelingJobMediaProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mediaType: "Image" | "Text"; +} + +/** Labeling MLAssist configuration definition */ +export interface MLAssistConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mlAssist: "Disabled" | "Enabled"; +} + +/** Progress metrics definition */ +export interface ProgressMetrics { /** - * Number of compute nodes which are being prepared. + * The completed datapoint count. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly preparingNodeCount?: number; + readonly completedDatapointCount?: number; /** - * Number of compute nodes which are in unusable state. + * The time of last successful incremental data refresh in UTC. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unusableNodeCount?: number; + readonly incrementalDataLastRefreshDateTime?: Date; /** - * Number of compute nodes which are leaving the amlCompute. + * The skipped datapoint count. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly leavingNodeCount?: number; + readonly skippedDatapointCount?: number; /** - * Number of compute nodes which are in preempted state. + * The total datapoint count. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly preemptedNodeCount?: number; -} - -/** Properties(top level) of AmlCompute */ -export interface AmlComputeSchema { - /** Properties of AmlCompute */ - properties?: AmlComputeProperties; + readonly totalDatapointCount?: 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; +/** Active message associated with project */ +export interface StatusMessage { /** - * Describes all connectivity endpoints available for this ComputeInstance. + * Service-defined message code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; + readonly code?: string; /** - * Describes available applications and their endpoints on this ComputeInstance. + * Time in UTC at which the message was created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly applications?: ComputeInstanceApplication[]; + readonly createdDateTime?: Date; /** - * Describes information on user who created this ComputeInstance. + * Severity level of message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly createdBy?: ComputeInstanceCreatedBy; + readonly level?: StatusMessageLevel; /** - * Collection of errors encountered on this ComputeInstance. + * A human-readable representation of the message code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly errors?: ErrorResponse[]; + readonly message?: string; +} + +export interface ExportSummary { + /** Polymorphic discriminator, which specifies the different types this object can be */ + format: "Coco" | "CSV" | "Dataset"; /** - * The current state of this ComputeInstance. + * The time when the export was completed. * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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; + readonly endDateTime?: Date; /** - * The last operation on ComputeInstance. + * The total number of labeled datapoints exported. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastOperation?: ComputeInstanceLastOperation; + readonly exportedRowCount?: number; /** - * The list of schedules to be applied on the computes. + * Name and identifier of the job containing exported labels. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly schedules?: ComputeSchedules; - /** 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; + readonly labelingJobId?: string; /** - * Describes informations of containers on this ComputeInstance. + * The time when the export was requested. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly containers?: ComputeInstanceContainer[]; + readonly startDateTime?: Date; +} + +/** A paginated list of OnlineEndpoint entities. */ +export interface OnlineEndpointTrackedResourceArmPaginatedResult { + /** The link to the next page of OnlineEndpoint objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type OnlineEndpoint. */ + value?: OnlineEndpoint[]; +} + +/** A paginated list of OnlineDeployment entities. */ +export interface OnlineDeploymentTrackedResourceArmPaginatedResult { + /** The link to the next page of OnlineDeployment objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type OnlineDeployment. */ + value?: OnlineDeployment[]; +} + +export interface DataCollector { /** - * Describes informations of dataDisks on this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. + * [Required] The collection configuration. Each collection has it own configuration to collect model data and the name of collection can be arbitrary string. + * Model data collector can be used for either payload logging or custom logging or both of them. Collection request and response are reserved for payload logging, others are for custom logging. */ - readonly dataDisks?: ComputeInstanceDataDisk[]; + collections: { [propertyName: string]: Collection | null }; + /** The request logging configuration for mdc, it includes advanced logging settings for all collections. It's optional. */ + requestLogging?: RequestLogging; /** - * Describes informations of dataMounts on this ComputeInstance. - * NOTE: This property will not be serialized. It can only be populated by the server. + * When model data is collected to blob storage, we need to roll the data to different path to avoid logging all of them in a single blob file. + * If the rolling rate is hour, all data will be collected in the blob path /yyyy/MM/dd/HH/. + * If it's day, all data will be collected in blob path /yyyy/MM/dd/. + * The other benefit of rolling path is that model monitoring ui is able to select a time range of data very quickly. */ - readonly dataMounts?: ComputeInstanceDataMount[]; - /** - * ComputeInstance version. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly versions?: ComputeInstanceVersion; + rollingRate?: RollingRateType; } -/** 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; +export interface Collection { + /** The msi client id used to collect logging to blob storage. If it's null,backend will pick a registered endpoint identity to auth. */ + clientId?: string; + /** Enable or disable data collection. */ + dataCollectionMode?: DataCollectionMode; + /** The data asset arm resource id. Client side will ensure data asset is pointing to the blob storage, and backend will collect data to the blob storage. */ + dataId?: string; + /** The sampling rate for collection. Sampling rate 1.0 means we collect 100% of data by default. */ + samplingRate?: number; +} + +export interface RequestLogging { + /** For payload logging, we only collect payload by default. If customers also want to collect the specified headers, they can set them in captureHeaders so that backend will collect those headers along with payload. */ + captureHeaders?: string[]; +} + +/** Online deployment scoring requests configuration. */ +export interface OnlineRequestSettings { + /** The number of maximum concurrent requests per node allowed per deployment. Defaults to 1. */ + maxConcurrentRequestsPerInstance?: number; /** - * Describes the admin user name. - * NOTE: This property will not be serialized. It can only be populated by the server. + * The maximum amount of time a request will stay in the queue in ISO 8601 format. + * Defaults to 500ms. */ - readonly adminUserName?: string; + maxQueueWait?: string; /** - * Describes the port for connecting through SSH. - * NOTE: This property will not be serialized. It can only be populated by the server. + * The scoring timeout in ISO 8601 format. + * Defaults to 5000ms. */ - 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; + requestTimeout?: string; } -/** Defines all connectivity endpoints and properties for an ComputeInstance. */ -export interface ComputeInstanceConnectivityEndpoints { +/** Online deployment scaling configuration. */ +export interface OnlineScaleSettings { + /** Polymorphic discriminator, which specifies the different types this object can be */ + scaleType: "Default" | "TargetUtilization"; +} + +export interface DeploymentLogsRequest { + /** The type of container to retrieve logs from. */ + containerType?: ContainerType; + /** The maximum number of lines to tail. */ + tail?: number; +} + +export interface DeploymentLogs { + /** The retrieved online deployment logs. */ + content?: string; +} + +export interface RegenerateEndpointKeysRequest { + /** [Required] Specification for which type of key to generate. Primary or Secondary. */ + keyType: KeyType; + /** The value the key is set to. */ + keyValue?: string; +} + +/** Service Token */ +export interface EndpointAuthToken { + /** Access token for endpoint authentication. */ + accessToken?: string; + /** Access token expiry time (UTC). */ + expiryTimeUtc?: number; + /** Refresh access token after time (UTC). */ + refreshAfterTimeUtc?: number; + /** Access token type. */ + tokenType?: string; +} + +/** A paginated list of Schedule entities. */ +export interface ScheduleResourceArmPaginatedResult { + /** The link to the next page of Schedule objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type Schedule. */ + value?: Schedule[]; +} + +export interface ScheduleActionBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: + | "CreateMonitor" + | "InvokeBatchEndpoint" + | "ImportData" + | "CreateJob"; +} + +/** A paginated list of ServerlessEndpoint entities. */ +export interface ServerlessEndpointTrackedResourceArmPaginatedResult { + /** The link to the next page of ServerlessEndpoint objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type ServerlessEndpoint. */ + value?: ServerlessEndpoint[]; +} + +export interface ServerlessEndpointProperties { /** - * Public IP Address of this ComputeInstance. + * The inference uri to target when making requests against the serverless endpoint * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicIpAddress?: string; + readonly inferenceUri?: string; + /** [Required] The model profile to configure the serverless endpoint with */ + modelProfile: ModelProfile; /** - * Private IP Address of this ComputeInstance (local to the VNET in which the compute instance is deployed). + * Provisioning state for the endpoint. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateIpAddress?: string; + readonly provisioningState?: EndpointProvisioningState; } -/** 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; +export interface ModelProfile { + /** [Required] The model to create a serverless endpoint of */ + modelUri: string; } -/** Describes information on user who created this ComputeInstance. */ -export interface ComputeInstanceCreatedBy { +/** A paginated list of Registry entities. */ +export interface RegistryTrackedResourceArmPaginatedResult { + /** The link to the next page of Registry objects. If null, there are no additional pages. */ + nextLink?: string; + /** An array of objects of type Registry. */ + value?: Registry[]; +} + +/** ARM ResourceId of a resource */ +export interface ArmResourceId { /** - * Name of the user. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Arm ResourceId is in the format "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Storage/storageAccounts/{StorageAccountName}" + * or "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{AcrName}" */ - readonly userName?: string; + resourceId?: string; +} + +/** Private endpoint connection definition. */ +export interface RegistryPrivateEndpointConnection { /** - * Uniquely identifies user' Azure Active Directory organization. - * NOTE: This property will not be serialized. It can only be populated by the server. + * This is the private endpoint connection name created on SRP + * Full resource id: /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.MachineLearningServices/{resourceType}/{resourceName}/registryPrivateEndpointConnections/{peConnectionName} */ - readonly userOrgId?: string; + id?: string; + /** Same as workspace location. */ + location?: string; + /** The group ids */ + groupIds?: string[]; + /** The PE network resource that is linked to this PE connection. */ + privateEndpoint?: PrivateEndpointResource; + /** The connection state. */ + registryPrivateLinkServiceConnectionState?: RegistryPrivateLinkServiceConnectionState; + /** One of null, "Succeeded", "Provisioning", "Failed". While not approved, it's null. */ + provisioningState?: string; +} + +/** The Private Endpoint resource. */ +export interface PrivateEndpoint { /** - * Uniquely identifies the user within his/her organization. + * The ARM identifier for Private Endpoint * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly userId?: string; + readonly id?: string; } -/** Settings for a personal compute instance. */ -export interface PersonalComputeInstanceSettings { - /** A user explicitly assigned to a personal compute instance. */ - assignedUser?: AssignedUser; +/** The connection state. */ +export interface RegistryPrivateLinkServiceConnectionState { + /** Some RP chose "None". Other RPs use this for region expansion. */ + actionsRequired?: string; + /** User-defined message that, per NRP doc, may be used for approval-related message. */ + description?: string; + /** Connection status of the service consumer with the service provider */ + status?: EndpointServiceConnectionStatus; } -/** 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; +/** Details for each region the registry is in */ +export interface RegistryRegionArmDetails { + /** List of ACR accounts */ + acrDetails?: AcrDetails[]; + /** The location where the registry exists */ + location?: string; + /** List of storage accounts */ + storageAccountDetails?: StorageAccountDetails[]; } -/** Details of customized scripts to execute for setting up the cluster. */ -export interface SetupScripts { - /** Customized setup scripts */ - scripts?: ScriptsToExecute; +/** Details of ACR account to be used for the Registry */ +export interface AcrDetails { + /** Details of system created ACR account to be used for the Registry */ + systemCreatedAcrAccount?: SystemCreatedAcrAccount; + /** Details of user created ACR account to be used for the Registry */ + userCreatedAcrAccount?: UserCreatedAcrAccount; } -/** 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; +export interface SystemCreatedAcrAccount { + /** Name of the ACR account */ + acrAccountName?: string; + /** SKU of the ACR account */ + acrAccountSku?: string; + /** This is populated once the ACR account is created. */ + armResourceId?: ArmResourceId; } -/** Script reference */ -export interface ScriptReference { - /** The storage source of the script: 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; +export interface UserCreatedAcrAccount { + /** ARM ResourceId of a resource */ + armResourceId?: ArmResourceId; } -/** 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; - /** Trigger of operation. */ - operationTrigger?: OperationTrigger; +/** Details of storage account to be used for the Registry */ +export interface StorageAccountDetails { + /** Details of system created storage account to be used for the registry */ + systemCreatedStorageAccount?: SystemCreatedStorageAccount; + /** Details of user created storage account to be used for the registry */ + userCreatedStorageAccount?: UserCreatedStorageAccount; } -/** The list of schedules to be applied on the computes */ -export interface ComputeSchedules { - /** The list of compute start stop schedules to be applied. */ - computeStartStop?: ComputeStartStopSchedule[]; +export interface SystemCreatedStorageAccount { + /** Public blob access allowed */ + allowBlobPublicAccess?: boolean; + /** This is populated once the storage account is created. */ + armResourceId?: ArmResourceId; + /** HNS enabled for storage account */ + storageAccountHnsEnabled?: boolean; + /** Name of the storage account */ + storageAccountName?: string; + /** + * Allowed values: + * "Standard_LRS", + * "Standard_GRS", + * "Standard_RAGRS", + * "Standard_ZRS", + * "Standard_GZRS", + * "Standard_RAGZRS", + * "Premium_LRS", + * "Premium_ZRS" + */ + storageAccountType?: string; } -/** Compute start stop schedule properties */ -export interface ComputeStartStopSchedule { +export interface UserCreatedStorageAccount { + /** ARM ResourceId of a resource */ + armResourceId?: ArmResourceId; +} + +/** Strictly used in update requests. */ +export interface PartialRegistryPartialTrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: RegistryPartialManagedServiceIdentity; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: PartialSku; + /** Resource tags. */ + tags?: { [propertyName: string]: string | null }; +} + +/** The List Aml user feature operation response. */ +export interface ListAmlUserFeatureResult { /** - * A system assigned id for the schedule. + * The list of AML user facing features. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly value?: AmlUserFeature[]; /** - * The current deployment state of schedule. + * 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 provisioningStatus?: ProvisioningStatus; - /** Is the schedule enabled or disabled? */ - status?: ScheduleStatus; - /** [Required] The compute power action. */ - action?: ComputePowerAction; - /** [Required] The schedule trigger type. */ - triggerType?: TriggerType; - /** Required if triggerType is Recurrence. */ - recurrence?: RecurrenceTrigger; - /** Required if triggerType is Cron. */ - cron?: CronTrigger; - /** [Deprecated] Not used any more. */ - schedule?: ScheduleBase; -} - -export interface RecurrenceSchedule { - /** [Required] List of hours for the schedule. */ - hours: number[]; - /** [Required] List of minutes for the schedule. */ - minutes: number[]; - /** List of month days for the schedule */ - monthDays?: number[]; - /** List of days for the schedule. */ - weekDays?: WeekDay[]; + readonly nextLink?: string; } -export interface ScheduleBase { - /** A system assigned id for the schedule. */ +/** Features enabled for a workspace */ +export interface AmlUserFeature { + /** Specifies the feature ID */ id?: string; - /** The current deployment state of schedule. */ - provisioningStatus?: ScheduleProvisioningState; - /** Is the schedule enabled or disabled? */ - status?: ScheduleStatus; + /** Specifies the feature name */ + displayName?: string; + /** Describes the feature for user experience */ + description?: string; } -/** Defines an Aml Instance container. */ -export interface ComputeInstanceContainer { - /** Name of the ComputeInstance container. */ - name?: string; - /** Auto save settings. */ - autosave?: Autosave; - /** Information of GPU. */ - gpu?: string; - /** network of this container. */ - network?: Network; - /** Environment information of this container. */ - environment?: ComputeInstanceEnvironmentInfo; +/** An array of operations supported by the resource provider. */ +export interface AmlOperationListResult { /** - * services of this containers. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Gets or sets list of AML team account operations supported by the + * AML team account resource provider. */ - readonly services?: Record[]; + value?: AmlOperation[]; } -/** Environment information */ -export interface ComputeInstanceEnvironmentInfo { - /** name of environment. */ +/** Azure Machine Learning team account REST API operation */ +export interface AmlOperation { + /** Gets or sets display name of operation */ + display?: OperationDisplay; + /** Indicates whether the operation applies to data-plane */ + isDataAction?: boolean; + /** Gets or sets operation name: {provider}/{resource}/{operation} */ name?: string; - /** version of environment. */ - version?: string; + /** The intended executor of the operation: user/system */ + origin?: string; } -/** Defines an Aml Instance DataDisk. */ -export interface ComputeInstanceDataDisk { - /** Caching type of Data Disk. */ - caching?: Caching; - /** The initial disk size in gigabytes. */ - diskSizeGB?: number; - /** The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. */ - lun?: number; - /** type of this storage account. */ - storageAccountType?: StorageAccountType; -} - -/** Defines an Aml Instance DataMount. */ -export interface ComputeInstanceDataMount { - /** Source of the ComputeInstance data mount. */ - source?: string; - /** Data source type. */ - sourceType?: SourceType; - /** name of the ComputeInstance data mount. */ - mountName?: string; - /** Mount Action. */ - mountAction?: MountAction; - /** who this data mount created by. */ - createdBy?: string; - /** Path of this data mount. */ - mountPath?: string; - /** Mount state. */ - mountState?: MountState; - /** The time when the disk mounted. */ - mountedOn?: Date; - /** Error of this data mount. */ - error?: string; +/** Display name of operation */ +export interface OperationDisplay { + /** Gets or sets the description for the operation. */ + description?: string; + /** Gets or sets the operation that users can perform. */ + operation?: string; + /** + * Gets or sets the resource provider name: + * Microsoft.MachineLearningExperimentation + */ + provider?: string; + /** Gets or sets the resource on which the operation is performed. */ + resource?: string; } -/** Version of computeInstance. */ -export interface ComputeInstanceVersion { - /** Runtime of compute instance. */ - runtime?: string; +/** The result of a request to list machine learning workspaces. */ +export interface WorkspaceListResult { + /** The link to the next page constructed using the continuationToken. If null, there are no additional pages. */ + nextLink?: string; + /** 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[]; } -/** Properties(top level) of ComputeInstance */ -export interface ComputeInstanceSchema { - /** Properties of ComputeInstance */ - properties?: ComputeInstanceProperties; +export interface EncryptionProperty { + /** + * The byok cosmosdb account that customer brings to store customer's data + * with encryption + */ + cosmosDbResourceId?: string; + /** Identity to be used with the keyVault */ + identity?: IdentityForCmk; + /** KeyVault details to do the encryption */ + keyVaultProperties: KeyVaultProperties; + /** + * The byok search account that customer brings to store customer's data + * with encryption + */ + searchAccountResourceId?: string; + /** Indicates whether or not the encryption is enabled for the workspace. */ + status: EncryptionStatus; + /** + * The byok storage account that customer brings to store customer's data + * with encryption + */ + storageAccountResourceId?: string; } -export interface VirtualMachineSchema { - properties?: VirtualMachineSchemaProperties; +/** Identity object used for encryption. */ +export interface IdentityForCmk { + /** UserAssignedIdentity to be used to fetch the encryption key from keyVault */ + userAssignedIdentity?: string; } -export interface VirtualMachineSchemaProperties { - /** Virtual Machine size */ - virtualMachineSize?: string; - /** Port open for ssh connections. */ - sshPort?: number; - /** Notebook server port open for ssh connections. */ - notebookServerPort?: 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; +/** Customer Key vault properties. */ +export interface KeyVaultProperties { + /** + * Currently, we support only SystemAssigned MSI. + * We need this when we support UserAssignedIdentities + */ + identityClientId?: string; + /** KeyVault key identifier to encrypt the data */ + keyIdentifier: string; + /** KeyVault Arm Id that contains the data encryption key */ + keyVaultArmId: 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; +export interface FeatureStoreSettings { + computeRuntime?: ComputeRuntimeDto; + offlineStoreConnectionName?: string; + onlineStoreConnectionName?: string; } -/** 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; +export interface ComputeRuntimeDto { + sparkRuntimeVersion?: string; } -export interface HDInsightSchema { - /** HDInsight compute properties */ - properties?: HDInsightProperties; +/** Managed Network settings for a machine learning workspace. */ +export interface ManagedNetworkSettings { + /** Isolation mode for the managed network of a machine learning workspace. */ + isolationMode?: IsolationMode; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly networkId?: string; + /** Dictionary of */ + outboundRules?: { [propertyName: string]: OutboundRuleUnion }; + /** Status of the Provisioning for the managed network of a machine learning workspace. */ + status?: ManagedNetworkProvisionStatus; } -/** Properties of Databricks */ -export interface DatabricksProperties { - /** Databricks access token */ - databricksAccessToken?: string; - /** Workspace Url */ - workspaceUrl?: string; +/** Outbound Rule for the managed network of a machine learning workspace. */ +export interface OutboundRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "FQDN" | "PrivateEndpoint" | "ServiceTag"; + /** Category of a managed network Outbound Rule of a machine learning workspace. */ + category?: RuleCategory; + /** Type of a managed network Outbound Rule of a machine learning workspace. */ + status?: RuleStatus; } -export interface DatabricksSchema { - /** Properties of Databricks */ - properties?: DatabricksProperties; +/** Status of the Provisioning for the managed network of a machine learning workspace. */ +export interface ManagedNetworkProvisionStatus { + sparkReady?: boolean; + /** Status for the managed network of a machine learning workspace. */ + status?: ManagedNetworkStatus; } -export interface DataLakeAnalyticsSchema { - properties?: DataLakeAnalyticsSchemaProperties; +export interface NotebookResourceInfo { + fqdn?: string; + isPrivateLinkEnabled?: boolean; + /** The error that occurs when preparing notebook. */ + notebookPreparationError?: NotebookPreparationError; + /** the data plane resourceId that used to initialize notebook component */ + resourceId?: string; } -export interface DataLakeAnalyticsSchemaProperties { - /** DataLake Store Account Name */ - dataLakeStoreAccountName?: string; +export interface NotebookPreparationError { + errorMessage?: string; + statusCode?: number; } -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; +/** The Private Endpoint resource. */ +export interface WorkspacePrivateEndpointResource { + /** + * e.g. /subscriptions/{networkSubscriptionId}/resourceGroups/{rgName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The subnetId that the private endpoint is connected to. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subnetArmId?: string; } -/** Auto scale properties */ -export interface AutoScaleProperties { - minNodeCount?: number; - enabled?: boolean; - maxNodeCount?: number; +/** A collection of information about the state of the connection between service consumer and provider. */ +export interface PrivateLinkServiceConnectionState { + /** Some RP chose "None". Other RPs use this for region expansion. */ + actionsRequired?: string; + /** User-defined message that, per NRP doc, may be used for approval-related message. */ + description?: string; + /** Connection status of the service consumer with the service provider */ + status?: EndpointServiceConnectionStatus; } -/** Auto pause properties */ -export interface AutoPauseProperties { - delayInMinutes?: number; - enabled?: boolean; +export interface ServiceManagedResourcesSettings { + cosmosDb?: CosmosDbSettings; } -/** 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; +export interface CosmosDbSettings { + collectionsThroughput?: number; } -export interface VirtualMachineSecretsSchema { - /** Admin credentials for virtual machine. */ - administratorAccount?: VirtualMachineSshCredentials; +export interface SharedPrivateLinkResource { + /** Unique name of the private link */ + name?: string; + /** group id of the private link */ + groupId?: string; + /** the resource id that private link links to */ + privateLinkResourceId?: string; + /** Request message */ + requestMessage?: string; + /** Connection status of the service consumer with the service provider */ + status?: EndpointServiceConnectionStatus; } -/** Properties of Databricks Compute Secrets */ -export interface DatabricksComputeSecretsProperties { - /** access token for databricks account. */ - databricksAccessToken?: string; +/** WorkspaceHub's configuration object. */ +export interface WorkspaceHubConfig { + additionalWorkspaceStorageAccounts?: string[]; + defaultWorkspaceResourceGroup?: string; } -export interface WorkspaceConnectionUsernamePassword { - username?: string; - password?: string; +/** The parameters for updating a machine learning workspace. */ +export interface WorkspaceUpdateParameters { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Optional. This field is required to be implemented by the RP because AML is supporting more than one tier */ + sku?: Sku; + /** The resource tags for the machine learning workspace. */ + tags?: { [propertyName: string]: string }; + /** ARM id of the application insights associated with this workspace. */ + applicationInsights?: string; + /** ARM id of the container registry associated with this workspace. */ + containerRegistry?: string; + /** The description of this workspace. */ + description?: string; + enableDataIsolation?: boolean; + encryption?: EncryptionUpdateProperties; + /** Settings for feature store type workspace. */ + featureStoreSettings?: FeatureStoreSettings; + /** The friendly name for this workspace. This name in mutable */ + friendlyName?: string; + /** The compute name for image build */ + imageBuildCompute?: string; + /** Managed Network settings for a machine learning workspace. */ + managedNetwork?: ManagedNetworkSettings; + /** The user assigned identity resource id that represents the workspace identity. */ + primaryUserAssignedIdentity?: string; + /** Whether requests from Public Network are allowed. */ + publicNetworkAccess?: PublicNetworkAccessType; + /** The service managed resource settings. */ + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; + /** Retention time in days after workspace get soft deleted. */ + softDeleteRetentionInDays?: number; + /** Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. */ + v1LegacyMode?: boolean; } -export interface WorkspaceConnectionPersonalAccessToken { - pat?: string; +export interface EncryptionUpdateProperties { + keyVaultProperties: EncryptionKeyVaultUpdateProperties; } -export interface WorkspaceConnectionSharedAccessSignature { - sas?: string; +export interface EncryptionKeyVaultUpdateProperties { + keyIdentifier: string; } -export interface WorkspaceConnectionManagedIdentity { - resourceId?: string; - clientId?: string; +export interface WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult { + nextLink?: string; + value?: WorkspaceConnectionPropertiesV2BasicResource[]; } -/** Asset input type. */ -export interface AssetJobInput { - /** Input Asset Delivery Mode. */ - mode?: InputDeliveryMode; - /** [Required] Input Asset URI. */ - uri: string; +export interface WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: + | "AccessKey" + | "ApiKey" + | "CustomKeys" + | "ManagedIdentity" + | "None" + | "PAT" + | "SAS" + | "ServicePrincipal" + | "UsernamePassword"; + /** Category of the connection */ + category?: ConnectionCategory; + expiryTime?: Date; + /** Any object */ + metadata?: Record; + target?: string; } -/** Asset output type. */ -export interface AssetJobOutput { - /** Output Asset Delivery Mode. */ - mode?: OutputDeliveryMode; - /** Output Asset URI. */ - uri?: string; +/** The properties that the machine learning workspace connection will be updated with. */ +export interface WorkspaceConnectionUpdateParameter { + /** The properties that the machine learning workspace connection will be updated with. */ + properties?: WorkspaceConnectionPropertiesV2Union; } -/** The desired maximum forecast horizon in units of time-series frequency. */ -export interface ForecastHorizon { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto" | "Custom"; +/** Parameters to diagnose a workspace */ +export interface DiagnoseWorkspaceParameters { + value?: DiagnoseRequestProperties; } -/** Job output definition container information on where to find job output/logs. */ -export interface JobOutput { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobOutputType: - | "custom_model" - | "mlflow_model" - | "mltable" - | "triton_model" - | "uri_file" - | "uri_folder"; - /** Description for the output. */ - description?: string; +export interface DiagnoseRequestProperties { + /** Setting for diagnosing dependent application insights */ + applicationInsights?: { [propertyName: string]: any }; + /** Setting for diagnosing dependent container registry */ + containerRegistry?: { [propertyName: string]: any }; + /** Setting for diagnosing dns resolution */ + dnsResolution?: { [propertyName: string]: any }; + /** Setting for diagnosing dependent key vault */ + keyVault?: { [propertyName: string]: any }; + /** Setting for diagnosing network security group */ + nsg?: { [propertyName: string]: any }; + /** Setting for diagnosing unclassified category of problems */ + others?: { [propertyName: string]: any }; + /** Setting for diagnosing resource lock */ + resourceLock?: { [propertyName: string]: any }; + /** Setting for diagnosing dependent storage account */ + storageAccount?: { [propertyName: string]: any }; + /** Setting for diagnosing user defined routing */ + udr?: { [propertyName: string]: any }; } -/** - * AutoML vertical class. - * Base class for AutoML verticals - TableVertical/ImageVertical/NLPVertical - */ -export interface AutoMLVertical { - /** Polymorphic discriminator, which specifies the different types this object can be */ - taskType: - | "Classification" - | "Forecasting" - | "ImageClassification" - | "ImageClassificationMultilabel" - | "ImageInstanceSegmentation" - | "ImageObjectDetection" - | "Regression" - | "TextClassification" - | "TextClassificationMultilabel" - | "TextNER"; - /** Log verbosity for the job. */ - logVerbosity?: LogVerbosity; - /** - * Target column name: This is prediction values column. - * Also known as label column name in context of classification tasks. - */ - targetColumnName?: string; - /** [Required] Training data input. */ - trainingData: MLTableJobInput; +export interface DiagnoseResponseResult { + value?: DiagnoseResponseResultValue; } -/** Command job definition. */ -export interface JobInput { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobInputType: - | "mltable" - | "custom_model" - | "mlflow_model" - | "literal" - | "triton_model" - | "uri_file" - | "uri_folder"; - /** Description for the input. */ - description?: string; +export interface DiagnoseResponseResultValue { + userDefinedRouteResults?: DiagnoseResult[]; + networkSecurityRuleResults?: DiagnoseResult[]; + resourceLockResults?: DiagnoseResult[]; + dnsResolutionResults?: DiagnoseResult[]; + storageAccountResults?: DiagnoseResult[]; + keyVaultResults?: DiagnoseResult[]; + containerRegistryResults?: DiagnoseResult[]; + applicationInsightsResults?: DiagnoseResult[]; + otherResults?: DiagnoseResult[]; } -/** N-Cross validations value. */ -export interface NCrossValidations { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto" | "Custom"; +/** Result of Diagnose */ +export interface DiagnoseResult { + /** + * Code for workspace setup error + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * Level of workspace setup error + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly level?: DiagnoseResultLevel; + /** + * Message of workspace setup error + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; } -/** Forecasting seasonality. */ -export interface Seasonality { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto" | "Custom"; +export interface ListWorkspaceKeysResult { + /** + * The access key of the workspace app insights + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly appInsightsInstrumentationKey?: string; + containerRegistryCredentials?: RegistryListCredentialsResult; + notebookAccessKeys?: ListNotebookKeysResult; + /** + * The arm Id key of the workspace storage + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userStorageArmId?: string; + /** + * The access key of the workspace storage + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly userStorageKey?: string; } -/** The number of past periods to lag from the target column. */ -export interface TargetLags { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto" | "Custom"; +export interface RegistryListCredentialsResult { + /** + * The location of the workspace ACR + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; + passwords?: Password[]; + /** + * The username of the workspace ACR + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly username?: string; } -/** Forecasting target rolling window size. */ -export interface TargetRollingWindowSize { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto" | "Custom"; +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; } -/** Early termination policies enable canceling poor-performing runs before they complete */ -export interface EarlyTerminationPolicy { - /** Polymorphic discriminator, which specifies the different types this object can be */ - policyType: "Bandit" | "MedianStopping" | "TruncationSelection"; - /** Number of intervals by which to delay the first evaluation. */ - delayEvaluation?: number; - /** Interval (number of runs) between policy evaluations. */ - evaluationInterval?: number; +export interface ListNotebookKeysResult { + /** + * The primary access key of the Notebook + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly primaryAccessKey?: string; + /** + * The secondary access key of the Notebook + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secondaryAccessKey?: string; } -/** - * The Sampling Algorithm used to generate hyperparameter values, along with properties to - * configure the algorithm - */ -export interface SamplingAlgorithm { - /** Polymorphic discriminator, which specifies the different types this object can be */ - samplingAlgorithmType: "Bayesian" | "Grid" | "Random"; +export interface NotebookAccessTokenResult { + /** 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 expiresIn?: number; + /** 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 notebookResourceId?: 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 refreshToken?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly scope?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly tokenType?: string; } -/** Training related configuration. */ -export interface TrainingSettings { - /** Enable recommendation of DNN models. */ - enableDnnTraining?: boolean; - /** Flag to turn on explainability on best model. */ - enableModelExplainability?: boolean; - /** Flag for enabling onnx compatible models. */ - enableOnnxCompatibleModels?: boolean; - /** Enable stack ensemble run. */ - enableStackEnsemble?: boolean; - /** Enable voting ensemble run. */ - enableVoteEnsemble?: boolean; +export interface ListStorageAccountKeysResult { /** - * During VotingEnsemble and StackEnsemble model generation, multiple fitted models from the previous child runs are downloaded. - * Configure this parameter with a higher value than 300 secs, if more time is needed. + * The access key of the storage + * NOTE: This property will not be serialized. It can only be populated by the server. */ - ensembleModelDownloadTimeout?: string; - /** Stack ensemble settings for stack ensemble run. */ - stackEnsembleSettings?: StackEnsembleSettings; + readonly userStorageKey?: string; } -/** Advances setting to customize StackEnsemble run. */ -export interface StackEnsembleSettings { - /** Optional parameters to pass to the initializer of the meta-learner. */ - stackMetaLearnerKWargs?: Record; - /** Specifies the proportion of the training set (when choosing train and validation type of training) to be reserved for training the meta-learner. Default value is 0.2. */ - stackMetaLearnerTrainPercentage?: number; - /** The meta-learner is a model trained on the output of the individual heterogeneous models. */ - stackMetaLearnerType?: StackMetaLearnerType; +export interface ExternalFqdnResponse { + value?: FqdnEndpointsPropertyBag[]; } -/** Abstract class for AutoML tasks that use table dataset as input - such as Classification/Regression/Forecasting. */ -export interface TableVertical { - /** Columns to use for CVSplit data. */ - cvSplitColumnNames?: string[]; - /** Featurization inputs needed for AutoML job. */ - featurizationSettings?: TableVerticalFeaturizationSettings; - /** Execution constraints for AutoMLJob. */ - limitSettings?: TableVerticalLimitSettings; - /** - * Number of cross validation folds to be applied on training dataset - * when validation dataset is not provided. - */ - nCrossValidations?: NCrossValidationsUnion; - /** Test data input. */ - testData?: MLTableJobInput; - /** - * The fraction of test dataset that needs to be set aside for validation purpose. - * Values between (0.0 , 1.0) - * Applied when validation dataset is not provided. - */ - testDataSize?: number; - /** Validation data inputs. */ - validationData?: MLTableJobInput; - /** - * The fraction of training dataset that needs to be set aside for validation purpose. - * Values between (0.0 , 1.0) - * Applied when validation dataset is not provided. - */ - validationDataSize?: number; - /** The name of the sample weight column. Automated ML supports a weighted column as an input, causing rows in the data to be weighted up or down. */ - weightColumnName?: string; +/** Property bag for FQDN endpoints result */ +export interface FqdnEndpointsPropertyBag { + properties?: FqdnEndpoints; } -/** Column transformer parameters. */ -export interface ColumnTransformer { - /** Fields to apply transformer logic on. */ - fields?: string[]; - /** - * Different properties to be passed to transformer. - * Input expected is dictionary of key,value pairs in JSON format. - */ - parameters?: Record; +export interface FqdnEndpoints { + category?: string; + endpoints?: FqdnEndpoint[]; } -/** Featurization Configuration. */ -export interface FeaturizationSettings { - /** Dataset language, useful for the text data. */ - datasetLanguage?: string; +export interface FqdnEndpoint { + domainName?: string; + endpointDetails?: FqdnEndpointDetail[]; } -/** Job execution constraints. */ -export interface TableVerticalLimitSettings { - /** Enable early termination, determines whether or not if AutoMLJob will terminate early if there is no score improvement in last 20 iterations. */ - enableEarlyTermination?: boolean; - /** Exit score for the AutoML job. */ - exitScore?: number; - /** Maximum Concurrent iterations. */ - maxConcurrentTrials?: number; - /** Max cores per iteration. */ - maxCoresPerTrial?: number; - /** Number of iterations. */ - maxTrials?: number; - /** AutoML job timeout. */ - timeout?: string; - /** Iteration timeout. */ - trialTimeout?: string; +export interface FqdnEndpointDetail { + port?: number; } -/** Base definition for job distribution configuration. */ -export interface DistributionConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - distributionType: "Mpi" | "PyTorch" | "TensorFlow"; +/** List of outbound rules for the managed network of a machine learning workspace. */ +export interface OutboundRuleListResult { + /** The link to the next page constructed using the continuationToken. If null, there are no additional pages. */ + nextLink?: string; + /** 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?: OutboundRuleBasicResource[]; } -export interface JobLimits { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobLimitsType: "Command" | "Sweep"; - /** The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds. */ - timeout?: string; +/** List of private endpoint connection associated with the specified workspace */ +export interface PrivateEndpointConnectionListResult { + /** Array of private endpoint connections */ + value?: PrivateEndpointConnection[]; } -/** Resource requirements for each container instance within an online deployment. */ -export interface ContainerResourceRequirements { - /** Container resource limit info: */ - containerResourceLimits?: ContainerResourceSettings; - /** Container resource request info: */ - containerResourceRequests?: ContainerResourceSettings; +/** A list of private link resources */ +export interface PrivateLinkResourceListResult { + value?: PrivateLinkResource[]; } -export interface ContainerResourceSettings { +/** Managed Network Provisioning options for managed network of a machine learning workspace. */ +export interface ManagedNetworkProvisionOptions { + includeSpark?: boolean; +} + +/** 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; +} + +export interface AKSSchema { + /** AKS properties */ + properties?: AKSSchemaProperties; +} + +/** AKS properties */ +export interface AKSSchemaProperties { + /** Cluster full qualified domain name */ + clusterFqdn?: string; /** - * Number of vCPUs request/limit for container. More info: - * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * System services + * NOTE: This property will not be serialized. It can only be populated by the server. */ - cpu?: 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; +} + +/** A system service running on a compute. */ +export interface SystemService { /** - * Number of Nvidia GPU cards request/limit for container. More info: - * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * The type of this system service. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - gpu?: string; + readonly systemServiceType?: string; /** - * Memory size request/limit for container. More info: - * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * Public IP address + * NOTE: This property will not be serialized. It can only be populated by the server. */ - memory?: string; + 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; } -/** Forecasting specific parameters. */ -export interface ForecastingSettings { +/** The ssl configuration for scoring */ +export interface SslConfiguration { + /** Enable or disable ssl for scoring */ + status?: SslConfigStatus; + /** 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 | null }; + /** 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; /** - * Country or region for holidays for forecasting tasks. - * These should be ISO 3166 two-letter country/region codes, for example 'US' or 'GB'. + * 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. */ - countryOrRegionForHolidays?: string; + readonly allocationState?: AllocationState; /** - * Number of periods between the origin time of one CV fold and the next fold. For - * example, if `CVStepSize` = 3 for daily data, the origin time for each fold will be - * three days apart. + * 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. */ - cvStepSize?: number; - /** Flag for generating lags for the numeric features with 'auto' or null. */ - featureLags?: FeatureLags; - /** The desired maximum forecast horizon in units of time-series frequency. */ - forecastHorizon?: ForecastHorizonUnion; - /** When forecasting, this parameter represents the period with which the forecast is desired, for example daily, weekly, yearly, etc. The forecast frequency is dataset frequency by default. */ - frequency?: string; + readonly allocationStateTransitionTime?: Date; /** - * Set time series seasonality as an integer multiple of the series frequency. - * If seasonality is set to 'auto', it will be inferred. + * 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. */ - seasonality?: SeasonalityUnion; - /** The parameter defining how if AutoML should handle short time series. */ - shortSeriesHandlingConfig?: ShortSeriesHandlingConfiguration; + readonly errors?: ErrorResponse[]; /** - * The function to be used to aggregate the time series target column to conform to a user specified frequency. - * If the TargetAggregateFunction is set i.e. not 'None', but the freq parameter is not set, the error is raised. The possible target aggregation functions are: "sum", "max", "min" and "mean". + * 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. */ - targetAggregateFunction?: TargetAggregationFunction; - /** The number of past periods to lag from the target column. */ - targetLags?: TargetLagsUnion; - /** The number of past periods used to create a rolling window average of the target column. */ - targetRollingWindowSize?: TargetRollingWindowSizeUnion; - /** The name of the time column. This parameter is required when forecasting to specify the datetime column in the input data used for building the time series and inferring its frequency. */ - timeColumnName?: string; + readonly currentNodeCount?: number; /** - * The names of columns used to group a timeseries. It can be used to create multiple series. - * If grain is not defined, the data set is assumed to be one time-series. This parameter is used with task type forecasting. + * 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. */ - timeSeriesIdColumnNames?: string[]; - /** Configure STL Decomposition of the time-series target column. */ - useStl?: UseStl; + readonly targetNodeCount?: number; + /** + * 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; + /** 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; + /** A property bag containing additional properties. */ + propertyBag?: Record; } -/** - * Settings used for training the model. - * For more information on the available settings please visit the official documentation: - * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. - */ -export interface ImageModelSettings { - /** Settings for advanced scenarios. */ - advancedSettings?: string; - /** Enable AMSGrad when optimizer is 'adam' or 'adamw'. */ - amsGradient?: boolean; - /** Settings for using Augmentations. */ - augmentations?: string; - /** Value of 'beta1' when optimizer is 'adam' or 'adamw'. Must be a float in the range [0, 1]. */ - beta1?: number; - /** Value of 'beta2' when optimizer is 'adam' or 'adamw'. Must be a float in the range [0, 1]. */ - beta2?: number; - /** Frequency to store model checkpoints. Must be a positive integer. */ - checkpointFrequency?: number; - /** The pretrained checkpoint model for incremental training. */ - checkpointModel?: MLFlowModelJobInput; - /** The id of a previous run that has a pretrained checkpoint for incremental training. */ - checkpointRunId?: string; - /** Whether to use distributed training. */ - distributed?: boolean; - /** Enable early stopping logic during training. */ - earlyStopping?: boolean; +/** Virtual Machine image for Windows AML Compute */ +export interface VirtualMachineImage { + /** Virtual Machine image path */ + id: string; +} + +/** 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; +} + +/** Counts of various compute node states on the amlCompute. */ +export interface NodeStateCounts { /** - * Minimum number of epochs or validation evaluations to wait before primary metric improvement - * is tracked for early stopping. Must be a positive integer. + * Number of compute nodes in idle state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - earlyStoppingDelay?: number; + readonly idleNodeCount?: number; /** - * Minimum number of epochs or validation evaluations with no primary metric improvement before - * the run is stopped. Must be a positive integer. + * Number of compute nodes which are running jobs. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - earlyStoppingPatience?: number; - /** Enable normalization when exporting ONNX model. */ - enableOnnxNormalization?: boolean; - /** Frequency to evaluate validation dataset to get metric scores. Must be a positive integer. */ - evaluationFrequency?: number; + readonly runningNodeCount?: number; /** - * Gradient accumulation means running a configured number of "GradAccumulationStep" steps without - * updating the model weights while accumulating the gradients of those steps, and then using - * the accumulated gradients to compute the weight updates. Must be a positive integer. + * Number of compute nodes which are being prepared. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - gradientAccumulationStep?: number; + readonly preparingNodeCount?: number; /** - * Number of layers to freeze for the model. Must be a positive integer. - * For instance, passing 2 as value for 'seresnext' means - * freezing layer0 and layer1. For a full list of models supported and details on layer freeze, please - * see: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + * Number of compute nodes which are in unusable state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - layersToFreeze?: number; - /** Initial learning rate. Must be a float in the range [0, 1]. */ - learningRate?: number; - /** Type of learning rate scheduler. Must be 'warmup_cosine' or 'step'. */ - learningRateScheduler?: LearningRateScheduler; + readonly unusableNodeCount?: number; /** - * Name of the model to use for training. - * For more information on the available models please visit the official documentation: - * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + * Number of compute nodes which are leaving the amlCompute. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - modelName?: string; - /** Value of momentum when optimizer is 'sgd'. Must be a float in the range [0, 1]. */ - momentum?: number; - /** Enable nesterov when optimizer is 'sgd'. */ - nesterov?: boolean; - /** Number of training epochs. Must be a positive integer. */ - numberOfEpochs?: number; - /** Number of data loader workers. Must be a non-negative integer. */ - numberOfWorkers?: number; - /** Type of optimizer. */ - optimizer?: StochasticOptimizer; - /** Random seed to be used when using deterministic training. */ - randomSeed?: number; - /** Value of gamma when learning rate scheduler is 'step'. Must be a float in the range [0, 1]. */ - stepLRGamma?: number; - /** Value of step size when learning rate scheduler is 'step'. Must be a positive integer. */ - stepLRStepSize?: number; - /** Training batch size. Must be a positive integer. */ - trainingBatchSize?: number; - /** Validation batch size. Must be a positive integer. */ - validationBatchSize?: number; - /** Value of cosine cycle when learning rate scheduler is 'warmup_cosine'. Must be a float in the range [0, 1]. */ - warmupCosineLRCycles?: number; - /** Value of warmup epochs when learning rate scheduler is 'warmup_cosine'. Must be a positive integer. */ - warmupCosineLRWarmupEpochs?: number; - /** Value of weight decay when optimizer is 'sgd', 'adam', or 'adamw'. Must be a float in the range[0, 1]. */ - weightDecay?: number; + readonly leavingNodeCount?: number; + /** + * 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; } -/** - * Distribution expressions to sweep over values of model settings. - * - * Some examples are: - * - * ModelName = "choice('seresnext', 'resnest50')"; - * LearningRate = "uniform(0.001, 0.01)"; - * LayersToFreeze = "choice(0, 2)"; - * - * All distributions can be specified as distribution_name(min, max) or choice(val1, val2, ..., valn) - * where distribution name can be: uniform, quniform, loguniform, etc - * For more details on how to compose distribution expressions please check the documentation: - * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters - * For more information on the available settings please visit the official documentation: - * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. - */ -export interface ImageModelDistributionSettings { - /** Enable AMSGrad when optimizer is 'adam' or 'adamw'. */ - amsGradient?: string; - /** Settings for using Augmentations. */ - augmentations?: string; - /** Value of 'beta1' when optimizer is 'adam' or 'adamw'. Must be a float in the range [0, 1]. */ - beta1?: string; - /** Value of 'beta2' when optimizer is 'adam' or 'adamw'. Must be a float in the range [0, 1]. */ - beta2?: string; - /** Whether to use distributer training. */ - distributed?: string; - /** Enable early stopping logic during training. */ - earlyStopping?: string; +/** Properties(top level) of AmlCompute */ +export interface AmlComputeSchema { + /** Properties of AmlCompute */ + properties?: AmlComputeProperties; +} + +/** 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 settings for autologger. */ + autologgerSettings?: ComputeInstanceAutologgerSettings; + /** Specifies policy and settings for SSH access. */ + sshSettings?: ComputeInstanceSshSettings; + /** List of Custom Services added to the compute. */ + customServices?: CustomService[]; /** - * Minimum number of epochs or validation evaluations to wait before primary metric improvement - * is tracked for early stopping. Must be a positive integer. + * Returns metadata about the operating system image for this compute instance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - earlyStoppingDelay?: string; + readonly osImageMetadata?: ImageMetadata; /** - * Minimum number of epochs or validation evaluations with no primary metric improvement before - * the run is stopped. Must be a positive integer. + * Describes all connectivity endpoints available for this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - earlyStoppingPatience?: string; - /** Enable normalization when exporting ONNX model. */ - enableOnnxNormalization?: string; - /** Frequency to evaluate validation dataset to get metric scores. Must be a positive integer. */ - evaluationFrequency?: string; + readonly connectivityEndpoints?: ComputeInstanceConnectivityEndpoints; /** - * Gradient accumulation means running a configured number of "GradAccumulationStep" steps without - * updating the model weights while accumulating the gradients of those steps, and then using - * the accumulated gradients to compute the weight updates. Must be a positive integer. + * Describes available applications and their endpoints on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - gradientAccumulationStep?: string; + readonly applications?: ComputeInstanceApplication[]; /** - * Number of layers to freeze for the model. Must be a positive integer. - * For instance, passing 2 as value for 'seresnext' means - * freezing layer0 and layer1. For a full list of models supported and details on layer freeze, please - * see: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + * Describes information on user who created this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - layersToFreeze?: string; - /** Initial learning rate. Must be a float in the range [0, 1]. */ - learningRate?: string; - /** Type of learning rate scheduler. Must be 'warmup_cosine' or 'step'. */ - learningRateScheduler?: string; + readonly createdBy?: ComputeInstanceCreatedBy; /** - * Name of the model to use for training. - * For more information on the available models please visit the official documentation: - * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + * Collection of errors encountered on this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - modelName?: string; - /** Value of momentum when optimizer is 'sgd'. Must be a float in the range [0, 1]. */ - momentum?: string; - /** Enable nesterov when optimizer is 'sgd'. */ - nesterov?: string; - /** Number of training epochs. Must be a positive integer. */ - numberOfEpochs?: string; - /** Number of data loader workers. Must be a non-negative integer. */ - numberOfWorkers?: string; - /** Type of optimizer. Must be either 'sgd', 'adam', or 'adamw'. */ - optimizer?: string; - /** Random seed to be used when using deterministic training. */ - randomSeed?: string; - /** Value of gamma when learning rate scheduler is 'step'. Must be a float in the range [0, 1]. */ - stepLRGamma?: string; - /** Value of step size when learning rate scheduler is 'step'. Must be a positive integer. */ - stepLRStepSize?: string; - /** Training batch size. Must be a positive integer. */ - trainingBatchSize?: string; - /** Validation batch size. Must be a positive integer. */ - validationBatchSize?: string; - /** Value of cosine cycle when learning rate scheduler is 'warmup_cosine'. Must be a float in the range [0, 1]. */ - warmupCosineLRCycles?: string; - /** Value of warmup epochs when learning rate scheduler is 'warmup_cosine'. Must be a positive integer. */ - warmupCosineLRWarmupEpochs?: string; - /** Value of weight decay when optimizer is 'sgd', 'adam', or 'adamw'. Must be a float in the range[0, 1]. */ - weightDecay?: string; -} - -/** - * Abstract class for AutoML tasks that train image (computer vision) models - - * such as Image Classification / Image Classification Multilabel / Image Object Detection / Image Instance Segmentation. - */ -export interface ImageVertical { - /** [Required] Limit settings for the AutoML job. */ - limitSettings: ImageLimitSettings; - /** Model sweeping and hyperparameter sweeping related settings. */ - sweepSettings?: ImageSweepSettings; - /** Validation data inputs. */ - validationData?: MLTableJobInput; + readonly errors?: ErrorResponse[]; /** - * The fraction of training dataset that needs to be set aside for validation purpose. - * Values between (0.0 , 1.0) - * Applied when validation dataset is not provided. + * The current state of this ComputeInstance. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - validationDataSize?: number; -} - -/** Limit settings for the AutoML job. */ -export interface ImageLimitSettings { - /** Maximum number of concurrent AutoML iterations. */ - maxConcurrentTrials?: number; - /** Maximum number of AutoML iterations. */ - maxTrials?: number; - /** AutoML job timeout. */ - timeout?: string; -} - -/** Model sweeping and hyperparameter sweeping related settings. */ -export interface ImageSweepSettings { - /** Type of early termination policy. */ - earlyTermination?: EarlyTerminationPolicyUnion; - /** [Required] Type of the hyperparameter sampling algorithms. */ - samplingAlgorithm: SamplingAlgorithmType; -} - -/** - * Abstract class for NLP related AutoML tasks. - * NLP - Natural Language Processing. - */ -export interface NlpVertical { - /** Featurization inputs needed for AutoML job. */ - featurizationSettings?: NlpVerticalFeaturizationSettings; - /** Execution constraints for AutoMLJob. */ - limitSettings?: NlpVerticalLimitSettings; - /** Validation data inputs. */ - validationData?: MLTableJobInput; -} - -/** Job execution constraints. */ -export interface NlpVerticalLimitSettings { - /** Maximum Concurrent AutoML iterations. */ - maxConcurrentTrials?: number; - /** Number of AutoML iterations. */ - maxTrials?: number; - /** AutoML job timeout. */ - timeout?: string; -} - -/** Optimization objective. */ -export interface Objective { - /** [Required] Defines supported metric goals for hyperparameter tuning */ - goal: Goal; - /** [Required] Name of the metric to optimize. */ - primaryMetric: string; -} - -/** Trial component definition. */ -export interface TrialComponent { - /** ARM resource ID of the code asset. */ - codeId?: string; - /** [Required] The command to execute on startup of the job. eg. "python train.py" */ - command: string; - /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ - distribution?: DistributionConfigurationUnion; - /** [Required] The ARM resource ID of the Environment specification for the job. */ - environmentId: string; - /** Environment variables included in the job. */ - environmentVariables?: { [propertyName: string]: string | null }; - /** Compute Resource configuration for the job. */ - resources?: JobResourceConfiguration; -} - -/** The Private Endpoint Connection resource. */ -export interface PrivateEndpointConnection extends Resource { - /** The identity of the resource. */ - identity?: ManagedServiceIdentity; - /** 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; - /** 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; + readonly state?: ComputeInstanceState; + /** The Compute Instance Authorization type. Available values are personal (default). */ + computeInstanceAuthorizationType?: ComputeInstanceAuthorizationType; + /** Enable Auto OS Patching. Possible values are: true, false. */ + enableOSPatching?: boolean; + /** Release quota if compute instance stopped. Possible values are: true - release quota if compute instance stopped. false - don't release quota when compute instance stopped. */ + releaseQuotaOnStop?: boolean; + /** Settings for a personal compute instance. */ + personalComputeInstanceSettings?: PersonalComputeInstanceSettings; + /** Details of customized scripts to execute for setting up the cluster. */ + setupScripts?: SetupScripts; /** - * The provisioning state of the private endpoint connection resource. + * The last operation on ComputeInstance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: PrivateEndpointConnectionProvisioningState; -} - -/** An object that represents a machine learning workspace. */ -export interface Workspace extends Resource { - /** The identity of the resource. */ - identity?: ManagedServiceIdentity; - /** 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; + readonly lastOperation?: ComputeInstanceLastOperation; + /** The list of schedules to be applied on the computes. */ + schedules?: ComputeSchedules; + /** Stops compute instance after user defined period of inactivity. Time is defined in ISO8601 format. Minimum is 15 min, maximum is 3 days. */ + idleTimeBeforeShutdown?: string; + /** 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; /** - * The immutable id associated with this workspace. + * Describes informations of containers on this ComputeInstance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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. */ - applicationInsights?: string; - /** ARM id of the container registry associated with this workspace. */ - 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; + readonly containers?: ComputeInstanceContainer[]; /** - * The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. + * Describes informations of dataDisks on this ComputeInstance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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; + readonly dataDisks?: ComputeInstanceDataDisk[]; /** - * The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace + * Describes informations of dataMounts on this ComputeInstance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly serviceProvisionedResourceGroup?: string; + readonly dataMounts?: ComputeInstanceDataMount[]; /** - * Count of private connections in the workspace + * ComputeInstance version. * NOTE: This property will not be serialized. It can only be populated by the server. */ - 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; + readonly versions?: ComputeInstanceVersion; +} + +/** Specifies settings for autologger. */ +export interface ComputeInstanceAutologgerSettings { + /** Indicates whether mlflow autologger is enabled for notebooks. */ + mlflowAutologger?: MlflowAutologger; +} + +/** 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; /** - * The list of private endpoint connections in the workspace. + * Describes the admin user name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly privateEndpointConnections?: PrivateEndpointConnection[]; - /** The list of shared private link resources in this workspace. */ - sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + readonly adminUserName?: string; /** - * The notebook info of Azure ML workspace. + * Describes the port for connecting through SSH. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly notebookInfo?: NotebookResourceInfo; - /** The service managed resource settings. */ - serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; - /** The user assigned identity resource id that represents the workspace identity. */ - primaryUserAssignedIdentity?: 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; +} + +/** Returns metadata about the operating system image for this compute instance. */ +export interface ImageMetadata { + /** Specifies the current operating system image version this compute instance is running on. */ + currentImageVersion?: string; + /** Specifies the latest available operating system image version. */ + latestImageVersion?: string; + /** Specifies whether this compute instance is running on the latest operating system image. */ + isLatestOsImageVersion?: boolean; /** - * The tenant id associated with this workspace. + * Metadata about the os patching. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tenantId?: string; + readonly osPatchingStatus?: OsPatchingStatus; +} + +/** Returns metadata about the os patching. */ +export interface OsPatchingStatus { + /** The os patching status. */ + patchStatus?: PatchStatus; + /** Time of the latest os patching. */ + latestPatchTime?: string; + /** Specifies whether this compute instance is pending for reboot to finish os patching. */ + rebootPending?: boolean; + /** Time of scheduled reboot. */ + scheduledRebootTime?: string; +} + +/** Defines all connectivity endpoints and properties for an ComputeInstance. */ +export interface ComputeInstanceConnectivityEndpoints { /** - * If the storage associated with the workspace has hierarchical namespace(HNS) enabled. + * Public IP Address of this ComputeInstance. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly storageHnsEnabled?: boolean; + readonly publicIpAddress?: string; /** - * The URI associated with this workspace that machine learning flow must point at to set up tracking. + * 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 mlFlowTrackingUri?: string; - /** Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. */ - v1LegacyMode?: boolean; + readonly privateIpAddress?: string; } -/** Machine Learning compute object wrapped into ARM resource envelope. */ -export interface ComputeResource extends Resource, ComputeResourceSchema { - /** The identity of the resource. */ - identity?: ManagedServiceIdentity; - /** 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; +/** 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; } -/** A private link resource */ -export interface PrivateLinkResource extends Resource { - /** The identity of the resource. */ - identity?: ManagedServiceIdentity; - /** 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; +/** Describes information on user who created this ComputeInstance. */ +export interface ComputeInstanceCreatedBy { /** - * The private link resource group id. + * Name of the user. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly groupId?: string; + readonly userName?: string; /** - * The private link resource required member names. + * Uniquely identifies user' Azure Active Directory organization. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly requiredMembers?: string[]; - /** The private link resource Private link DNS zone name. */ - requiredZoneNames?: string[]; -} - -export interface WorkspaceConnectionPropertiesV2BasicResource extends Resource { - properties: WorkspaceConnectionPropertiesV2Union; + 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 resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The geo-location where the resource lives */ - location: string; +/** Settings for a personal compute instance. */ +export interface PersonalComputeInstanceSettings { + /** A user explicitly assigned to a personal compute instance. */ + assignedUser?: AssignedUser; } -/** Azure Resource Manager resource envelope. */ -export interface CodeContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: CodeContainerProperties; +/** 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; } -/** Azure Resource Manager resource envelope. */ -export interface CodeVersion extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: CodeVersionProperties; +/** Details of customized scripts to execute for setting up the cluster. */ +export interface SetupScripts { + /** Customized setup scripts */ + scripts?: ScriptsToExecute; } -/** Azure Resource Manager resource envelope. */ -export interface ComponentContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ComponentContainerProperties; +/** 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; } -/** Azure Resource Manager resource envelope. */ -export interface ComponentVersion extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ComponentVersionProperties; +/** 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; } -/** Azure Resource Manager resource envelope. */ -export interface DataContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: DataContainerProperties; +/** 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; + /** Trigger of operation. */ + operationTrigger?: OperationTrigger; } -/** Azure Resource Manager resource envelope. */ -export interface DataVersionBase extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: DataVersionBasePropertiesUnion; +/** The list of schedules to be applied on the computes */ +export interface ComputeSchedules { + /** The list of compute start stop schedules to be applied. */ + computeStartStop?: ComputeStartStopSchedule[]; } -/** Azure Resource Manager resource envelope. */ -export interface Datastore extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: DatastorePropertiesUnion; +/** Compute start stop schedule properties */ +export interface ComputeStartStopSchedule { + /** + * A system assigned id for the schedule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The current deployment state of schedule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatus?: ProvisioningStatus; + /** Is the schedule enabled or disabled? */ + status?: ScheduleStatus; + /** [Required] The compute power action. */ + action?: ComputePowerAction; + /** [Required] The schedule trigger type. */ + triggerType?: TriggerType; + /** Required if triggerType is Recurrence. */ + recurrence?: Recurrence; + /** Required if triggerType is Cron. */ + cron?: Cron; + /** [Deprecated] Not used any more. */ + schedule?: ScheduleBase; } -/** Azure Resource Manager resource envelope. */ -export interface EnvironmentContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: EnvironmentContainerProperties; +/** The workflow trigger recurrence for ComputeStartStop schedule type. */ +export interface Recurrence { + /** [Required] The frequency to trigger schedule. */ + frequency?: RecurrenceFrequency; + /** [Required] Specifies schedule interval in conjunction with frequency */ + interval?: number; + /** The start time in yyyy-MM-ddTHH:mm:ss format. */ + startTime?: string; + /** + * Specifies time zone in which the schedule runs. + * TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11 + */ + timeZone?: string; + /** [Required] The recurrence schedule. */ + schedule?: RecurrenceSchedule; } -/** Azure Resource Manager resource envelope. */ -export interface EnvironmentVersion extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: EnvironmentVersionProperties; +/** The workflow trigger cron for ComputeStartStop schedule type. */ +export interface Cron { + /** The start time in yyyy-MM-ddTHH:mm:ss format. */ + startTime?: string; + /** + * Specifies time zone in which the schedule runs. + * TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11 + */ + timeZone?: string; + /** + * [Required] Specifies cron expression of schedule. + * The expression should follow NCronTab format. + */ + expression?: string; } -/** Azure Resource Manager resource envelope. */ -export interface JobBase extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: JobBasePropertiesUnion; +export interface ScheduleBase { + /** A system assigned id for the schedule. */ + id?: string; + /** The current deployment state of schedule. */ + provisioningStatus?: ScheduleProvisioningState; + /** Is the schedule enabled or disabled? */ + status?: ScheduleStatus; } -/** Azure Resource Manager resource envelope. */ -export interface ModelContainer extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ModelContainerProperties; +/** Defines an Aml Instance container. */ +export interface ComputeInstanceContainer { + /** Name of the ComputeInstance container. */ + name?: string; + /** Auto save settings. */ + autosave?: Autosave; + /** Information of GPU. */ + gpu?: string; + /** network of this container. */ + network?: Network; + /** Environment information of this container. */ + environment?: ComputeInstanceEnvironmentInfo; + /** + * services of this containers. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly services?: Record[]; } -/** Azure Resource Manager resource envelope. */ -export interface ModelVersion extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ModelVersionProperties; +/** Environment information */ +export interface ComputeInstanceEnvironmentInfo { + /** name of environment. */ + name?: string; + /** version of environment. */ + version?: string; } -/** Azure Resource Manager resource envelope. */ -export interface Schedule extends Resource { - /** [Required] Additional attributes of the entity. */ - properties: ScheduleProperties; +/** Defines an Aml Instance DataDisk. */ +export interface ComputeInstanceDataDisk { + /** Caching type of Data Disk. */ + caching?: Caching; + /** The initial disk size in gigabytes. */ + diskSizeGB?: number; + /** The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. */ + lun?: number; + /** type of this storage account. */ + storageAccountType?: StorageAccountType; } -/** A Machine Learning compute based on AKS. */ -export interface Aks extends Compute, AKSSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "AKS"; +/** Defines an Aml Instance DataMount. */ +export interface ComputeInstanceDataMount { + /** Source of the ComputeInstance data mount. */ + source?: string; + /** Data source type. */ + sourceType?: SourceType; + /** name of the ComputeInstance data mount. */ + mountName?: string; + /** Mount Action. */ + mountAction?: MountAction; + /** who this data mount created by. */ + createdBy?: string; + /** Path of this data mount. */ + mountPath?: string; + /** Mount state. */ + mountState?: MountState; + /** The time when the disk mounted. */ + mountedOn?: Date; + /** Error of this data mount. */ + error?: string; } -/** A Machine Learning compute based on Kubernetes Compute. */ -export interface Kubernetes extends Compute, KubernetesSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "Kubernetes"; +/** Version of computeInstance. */ +export interface ComputeInstanceVersion { + /** Runtime of compute instance. */ + runtime?: string; } -/** An Azure Machine Learning compute. */ -export interface AmlCompute extends Compute, AmlComputeSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "AmlCompute"; +/** Properties(top level) of ComputeInstance */ +export interface ComputeInstanceSchema { + /** Properties of ComputeInstance */ + properties?: ComputeInstanceProperties; } -/** An Azure Machine Learning compute instance. */ -export interface ComputeInstance extends Compute, ComputeInstanceSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "ComputeInstance"; +export interface VirtualMachineSchema { + properties?: VirtualMachineSchemaProperties; } -/** A Machine Learning compute based on Azure Virtual Machines. */ -export interface VirtualMachine extends Compute, VirtualMachineSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "VirtualMachine"; +export interface VirtualMachineSchemaProperties { + /** Virtual Machine size */ + virtualMachineSize?: string; + /** Port open for ssh connections. */ + sshPort?: number; + /** Notebook server port open for ssh connections. */ + notebookServerPort?: 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; } -/** A HDInsight compute. */ -export interface HDInsight extends Compute, HDInsightSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "HDInsight"; +/** 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; } -/** A DataFactory compute. */ -export interface DataFactory extends Compute { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "DataFactory"; +/** 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; } -/** A DataFactory compute. */ -export interface Databricks extends Compute, DatabricksSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "Databricks"; +export interface HDInsightSchema { + /** HDInsight compute properties */ + properties?: HDInsightProperties; } -/** A DataLakeAnalytics compute. */ -export interface DataLakeAnalytics extends Compute, DataLakeAnalyticsSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "DataLakeAnalytics"; +/** Properties of Databricks */ +export interface DatabricksProperties { + /** Databricks access token */ + databricksAccessToken?: string; + /** Workspace Url */ + workspaceUrl?: string; } -/** A SynapseSpark compute. */ -export interface SynapseSpark extends Compute { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "SynapseSpark"; - properties?: SynapseSparkProperties; +export interface DatabricksSchema { + /** Properties of Databricks */ + properties?: DatabricksProperties; } -/** Secrets related to a Machine Learning compute based on AKS. */ -export interface AksComputeSecrets - extends ComputeSecrets, - AksComputeSecretsProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "AKS"; +export interface DataLakeAnalyticsSchema { + properties?: DataLakeAnalyticsSchemaProperties; } -/** Secrets related to a Machine Learning compute based on AKS. */ -export interface VirtualMachineSecrets - extends ComputeSecrets, - VirtualMachineSecretsSchema { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "VirtualMachine"; +export interface DataLakeAnalyticsSchemaProperties { + /** DataLake Store Account Name */ + dataLakeStoreAccountName?: string; } -/** Secrets related to a Machine Learning compute based on Databricks. */ -export interface DatabricksComputeSecrets - extends ComputeSecrets, - DatabricksComputeSecretsProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - computeType: "Databricks"; +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; } -export interface PATAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "PAT"; - credentials?: WorkspaceConnectionPersonalAccessToken; +/** Auto scale properties */ +export interface AutoScaleProperties { + minNodeCount?: number; + enabled?: boolean; + maxNodeCount?: number; } -export interface SASAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { +/** Auto pause properties */ +export interface AutoPauseProperties { + delayInMinutes?: number; + enabled?: boolean; +} + +/** 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; +} + +export interface VirtualMachineSecretsSchema { + /** Admin credentials for virtual machine. */ + administratorAccount?: VirtualMachineSshCredentials; +} + +/** Properties of Databricks Compute Secrets */ +export interface DatabricksComputeSecretsProperties { + /** access token for databricks account. */ + databricksAccessToken?: string; +} + +export interface MonitoringFeatureFilterBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "SAS"; - credentials?: WorkspaceConnectionSharedAccessSignature; + filterType: "AllFeatures" | "FeatureSubset" | "TopNByAttribution"; } -export interface UsernamePasswordAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { +/** Monitor compute identity base definition. */ +export interface MonitorComputeIdentityBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "UsernamePassword"; - credentials?: WorkspaceConnectionUsernamePassword; + computeIdentityType: "AmlToken" | "ManagedIdentity"; } -export interface NoneAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { +/** Asset input type. */ +export interface AssetJobInput { + /** Input Asset Delivery Mode. */ + mode?: InputDeliveryMode; + /** [Required] Input Asset URI. */ + uri: string; +} + +/** Asset output type. */ +export interface AssetJobOutput { + /** Output Asset Name. */ + assetName?: string; + /** Output Asset Version. */ + assetVersion?: string; + /** Auto delete setting of output data asset. */ + autoDeleteSetting?: AutoDeleteSetting; + /** Output Asset Delivery Mode. */ + mode?: OutputDeliveryMode; + /** Output Asset URI. */ + uri?: string; +} + +/** The desired maximum forecast horizon in units of time-series frequency. */ +export interface ForecastHorizon { /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "None"; + mode: "Auto" | "Custom"; } -export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties - extends WorkspaceConnectionPropertiesV2 { +/** Job output definition container information on where to find job output/logs. */ +export interface JobOutput { /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "ManagedIdentity"; - credentials?: WorkspaceConnectionManagedIdentity; + jobOutputType: + | "custom_model" + | "mlflow_model" + | "mltable" + | "triton_model" + | "uri_file" + | "uri_folder"; + /** Description for the output. */ + description?: string; } -/** Batch endpoint configuration. */ -export interface BatchEndpointProperties extends EndpointPropertiesBase { - /** Default values for Batch Endpoint */ - defaults?: BatchEndpointDefaults; - /** - * Provisioning state for the endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: EndpointProvisioningState; +export interface QueueSettings { + /** Controls the compute job tier */ + jobTier?: JobTier; + /** Controls the priority of the job on a compute. */ + priority?: number; } -/** Online endpoint configuration */ -export interface OnlineEndpointProperties extends EndpointPropertiesBase { - /** - * ARM resource ID of the compute if it exists. - * optional - */ - compute?: string; +/** + * AutoML vertical class. + * Base class for AutoML verticals - TableVertical/ImageVertical/NLPVertical + */ +export interface AutoMLVertical { + /** Polymorphic discriminator, which specifies the different types this object can be */ + taskType: + | "Classification" + | "Forecasting" + | "ImageClassification" + | "ImageClassificationMultilabel" + | "ImageInstanceSegmentation" + | "ImageObjectDetection" + | "Regression" + | "TextClassification" + | "TextClassificationMultilabel" + | "TextNER"; + /** Log verbosity for the job. */ + logVerbosity?: LogVerbosity; /** - * Provisioning state for the endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Target column name: This is prediction values column. + * Also known as label column name in context of classification tasks. */ - readonly provisioningState?: EndpointProvisioningState; - /** Set to "Enabled" for endpoints that should allow public access when Private Link is enabled. */ - publicNetworkAccess?: PublicNetworkAccessType; - /** Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100. */ - traffic?: { [propertyName: string]: number }; + targetColumnName?: string; + /** [Required] Training data input. */ + trainingData: MLTableJobInput; } -/** Strictly used in update requests. */ -export interface PartialMinimalTrackedResourceWithIdentity - extends PartialMinimalTrackedResource { - /** Managed service identity (system assigned and/or user assigned identities) */ - identity?: PartialManagedServiceIdentity; +/** Command job definition. */ +export interface JobInput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobInputType: + | "mltable" + | "custom_model" + | "mlflow_model" + | "literal" + | "triton_model" + | "uri_file" + | "uri_folder"; + /** Description for the input. */ + description?: string; } -/** Strictly used in update requests. */ -export interface PartialMinimalTrackedResourceWithSku - extends PartialMinimalTrackedResource { - /** Sku details required for ARM contract for Autoscaling. */ - sku?: PartialSku; +/** N-Cross validations value. */ +export interface NCrossValidations { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto" | "Custom"; } -/** Reference to an asset via its path in a datastore. */ -export interface DataPathAssetReference extends AssetReferenceBase { +/** Forecasting seasonality. */ +export interface Seasonality { /** Polymorphic discriminator, which specifies the different types this object can be */ - referenceType: "DataPath"; - /** ARM resource ID of the datastore where the asset is located. */ - datastoreId?: string; - /** The path of the file/directory in the datastore. */ - path?: string; + mode: "Auto" | "Custom"; } -/** Reference to an asset via its ARM resource ID. */ -export interface IdAssetReference extends AssetReferenceBase { +/** The number of past periods to lag from the target column. */ +export interface TargetLags { /** Polymorphic discriminator, which specifies the different types this object can be */ - referenceType: "Id"; - /** [Required] ARM resource ID of the asset. */ - assetId: string; + mode: "Auto" | "Custom"; } -/** Reference to an asset via its path in a job output. */ -export interface OutputPathAssetReference extends AssetReferenceBase { +/** Forecasting target rolling window size. */ +export interface TargetRollingWindowSize { /** Polymorphic discriminator, which specifies the different types this object can be */ - referenceType: "OutputPath"; - /** ARM resource ID of the job. */ - jobId?: string; - /** The path of the file/directory in the job output. */ - path?: string; + mode: "Auto" | "Custom"; } -export interface DeploymentResourceConfiguration - extends ResourceConfiguration {} +/** Settings for Autologger. */ +export interface AutologgerSettings { + /** [Required] Indicates whether mlflow autologger is enabled. */ + mlflowAutologger: MLFlowAutologgerState; +} -export interface JobResourceConfiguration extends ResourceConfiguration { - /** Extra arguments to pass to the Docker run command. This would override any parameters that have already been set by the system, or in this section. This parameter is only supported for Azure ML compute types. */ - dockerArgs?: string; - /** Size of the docker container's shared memory block. This should be in the format of (number)(unit) where number as to be greater than 0 and the unit can be one of b(bytes), k(kilobytes), m(megabytes), or g(gigabytes). */ - shmSize?: string; +export interface MonitoringAlertNotificationSettingsBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + alertNotificationType: "AzureMonitor" | "Email"; } -/** Batch inference settings per deployment. */ -export interface BatchDeploymentProperties - extends EndpointDeploymentPropertiesBase { - /** Compute target for batch inference operation. */ - compute?: string; - /** - * Error threshold, if the error count for the entire input goes above this value, - * the batch inference will be aborted. Range is [-1, int.MaxValue]. - * For FileDataset, this value is the count of file failures. - * For TabularDataset, this value is the count of record failures. - * If set to -1 (the lower bound), all failures during batch inference will be ignored. - */ - errorThreshold?: number; - /** Logging level for batch inference operation. */ - loggingLevel?: BatchLoggingLevel; - /** Indicates maximum number of parallelism per instance. */ - maxConcurrencyPerInstance?: number; - /** - * Size of the mini-batch passed to each batch invocation. - * For FileDataset, this is the number of files per mini-batch. - * For TabularDataset, this is the size of the records in bytes, per mini-batch. - */ - miniBatchSize?: number; - /** Reference to the model asset for the endpoint deployment. */ - model?: AssetReferenceBaseUnion; - /** Indicates how the output will be organized. */ - outputAction?: BatchOutputAction; - /** Customized output file name for append_row output action. */ - outputFileName?: string; - /** - * Provisioning state for the endpoint deployment. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: DeploymentProvisioningState; - /** - * Indicates compute configuration for the job. - * If not provided, will default to the defaults defined in ResourceConfiguration. - */ - resources?: DeploymentResourceConfiguration; - /** - * Retry Settings for the batch inference operation. - * If not provided, will default to the defaults defined in BatchRetrySettings. - */ - retrySettings?: BatchRetrySettings; +/** Base definition for Azure datastore contents configuration. */ +export interface AzureDatastore { + /** Azure Resource Group name */ + resourceGroup?: string; + /** Azure Subscription Id */ + subscriptionId?: string; } -export interface OnlineDeploymentProperties - extends EndpointDeploymentPropertiesBase { - /** If true, enables Application Insights logging. */ - appInsightsEnabled?: boolean; - /** If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. */ - egressPublicNetworkAccess?: EgressPublicNetworkAccessType; - /** [Required] The compute type of the endpoint. */ - endpointComputeType: EndpointComputeType; - /** Compute instance type. */ - instanceType?: string; - /** Liveness probe monitors the health of the container regularly. */ - livenessProbe?: ProbeSettings; - /** The URI path to the model. */ - model?: string; - /** The path to mount the model in custom container. */ - modelMountPath?: string; - /** - * Provisioning state for the endpoint deployment. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: DeploymentProvisioningState; - /** Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe. */ - readinessProbe?: ProbeSettings; - /** Request settings for the deployment. */ - requestSettings?: OnlineRequestSettings; - /** - * Scale settings for the deployment. - * If it is null or not provided, - * it defaults to TargetUtilizationScaleSettings for KubernetesOnlineDeployment - * and to DefaultScaleSettings for ManagedOnlineDeployment. - */ - scaleSettings?: OnlineScaleSettingsUnion; +/** Early termination policies enable canceling poor-performing runs before they complete */ +export interface EarlyTerminationPolicy { + /** Polymorphic discriminator, which specifies the different types this object can be */ + policyType: "Bandit" | "MedianStopping" | "TruncationSelection"; + /** Number of intervals by which to delay the first evaluation. */ + delayEvaluation?: number; + /** Interval (number of runs) between policy evaluations. */ + evaluationInterval?: number; } -export interface AssetContainer extends ResourceBase { - /** Is the asset archived? */ - isArchived?: boolean; - /** - * The latest version inside this container. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly latestVersion?: string; - /** - * The next auto incremental version - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextVersion?: string; +/** + * The Sampling Algorithm used to generate hyperparameter values, along with properties to + * configure the algorithm + */ +export interface SamplingAlgorithm { + /** Polymorphic discriminator, which specifies the different types this object can be */ + samplingAlgorithmType: "Bayesian" | "Grid" | "Random"; } -export interface AssetBase extends ResourceBase { - /** If the name version are system generated (anonymous registration). */ - isAnonymous?: boolean; - /** Is the asset archived? */ - isArchived?: boolean; +export interface DataDriftMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Categorical" | "Numerical"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; } -/** Base definition for datastore contents configuration. */ -export interface DatastoreProperties extends ResourceBase { - /** [Required] Account credentials. */ - credentials: DatastoreCredentialsUnion; - /** [Required] Storage type backing the datastore. */ - datastoreType: DatastoreType; +export interface MonitoringThreshold { + /** The threshold value. If null, the set default is dependent on the metric type. */ + value?: number; +} + +export interface DataQualityMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Categorical" | "Numerical"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; +} + +export interface PredictionDriftMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Categorical" | "Numerical"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; +} + +/** Training related configuration. */ +export interface TrainingSettings { + /** Enable recommendation of DNN models. */ + enableDnnTraining?: boolean; + /** Flag to turn on explainability on best model. */ + enableModelExplainability?: boolean; + /** Flag for enabling onnx compatible models. */ + enableOnnxCompatibleModels?: boolean; + /** Enable stack ensemble run. */ + enableStackEnsemble?: boolean; + /** Enable voting ensemble run. */ + enableVoteEnsemble?: boolean; /** - * Readonly property to indicate if datastore is the workspace default datastore - * NOTE: This property will not be serialized. It can only be populated by the server. + * During VotingEnsemble and StackEnsemble model generation, multiple fitted models from the previous child runs are downloaded. + * Configure this parameter with a higher value than 300 secs, if more time is needed. */ - readonly isDefault?: boolean; + ensembleModelDownloadTimeout?: string; + /** Stack ensemble settings for stack ensemble run. */ + stackEnsembleSettings?: StackEnsembleSettings; + /** + * TrainingMode mode - Setting to 'auto' is same as setting it to 'non-distributed' for now, however in the future may result in mixed mode or heuristics based mode selection. Default is 'auto'. + * If 'Distributed' then only distributed featurization is used and distributed algorithms are chosen. + * If 'NonDistributed' then only non distributed algorithms are chosen. + */ + trainingMode?: TrainingMode; } -/** Base definition for a job. */ -export interface JobBaseProperties extends ResourceBase { - /** ARM resource ID of the component resource. */ - componentId?: string; - /** ARM resource ID of the compute resource. */ - computeId?: string; - /** Display name of job. */ - displayName?: string; - /** The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. */ - experimentName?: string; +/** Advances setting to customize StackEnsemble run. */ +export interface StackEnsembleSettings { + /** Optional parameters to pass to the initializer of the meta-learner. */ + stackMetaLearnerKWargs?: Record; + /** Specifies the proportion of the training set (when choosing train and validation type of training) to be reserved for training the meta-learner. Default value is 0.2. */ + stackMetaLearnerTrainPercentage?: number; + /** The meta-learner is a model trained on the output of the individual heterogeneous models. */ + stackMetaLearnerType?: StackMetaLearnerType; +} + +/** Abstract class for AutoML tasks that use table dataset as input - such as Classification/Regression/Forecasting. */ +export interface TableVertical { + /** Columns to use for CVSplit data. */ + cvSplitColumnNames?: string[]; + /** Featurization inputs needed for AutoML job. */ + featurizationSettings?: TableVerticalFeaturizationSettings; + /** Model/training parameters that will remain constant throughout training. */ + fixedParameters?: TableFixedParameters; + /** Execution constraints for AutoMLJob. */ + limitSettings?: TableVerticalLimitSettings; /** - * Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. - * Defaults to AmlToken if null. + * Number of cross validation folds to be applied on training dataset + * when validation dataset is not provided. */ - identity?: IdentityConfigurationUnion; - /** Is the asset archived? */ - isArchived?: boolean; - /** [Required] Specifies the type of job. */ - jobType: JobType; + nCrossValidations?: NCrossValidationsUnion; + /** Search space for sampling different combinations of models and their hyperparameters. */ + searchSpace?: TableParameterSubspace[]; + /** Settings for model sweeping and hyperparameter tuning. */ + sweepSettings?: TableSweepSettings; + /** Test data input. */ + testData?: MLTableJobInput; /** - * List of JobEndpoints. - * For local jobs, a job endpoint will have an endpoint value of FileStreamObject. + * The fraction of test dataset that needs to be set aside for validation purpose. + * Values between (0.0 , 1.0) + * Applied when validation dataset is not provided. */ - services?: { [propertyName: string]: JobService | null }; + testDataSize?: number; + /** Validation data inputs. */ + validationData?: MLTableJobInput; /** - * Status of the job. - * NOTE: This property will not be serialized. It can only be populated by the server. + * The fraction of training dataset that needs to be set aside for validation purpose. + * Values between (0.0 , 1.0) + * Applied when validation dataset is not provided. */ - readonly status?: JobStatus; + validationDataSize?: number; + /** The name of the sample weight column. Automated ML supports a weighted column as an input, causing rows in the data to be weighted up or down. */ + weightColumnName?: string; } -/** Base definition of a schedule */ -export interface ScheduleProperties extends ResourceBase { - /** [Required] Specifies the action of the schedule */ - action: ScheduleActionBaseUnion; - /** Display name of schedule. */ - displayName?: string; - /** Is the schedule enabled? */ - isEnabled?: boolean; +/** Column transformer parameters. */ +export interface ColumnTransformer { + /** Fields to apply transformer logic on. */ + fields?: string[]; /** - * Provisioning state for the schedule. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Different properties to be passed to transformer. + * Input expected is dictionary of key,value pairs in JSON format. */ - readonly provisioningState?: ScheduleProvisioningStatus; - /** [Required] Specifies the trigger details */ - trigger: TriggerBaseUnion; + parameters?: Record; } -/** Account key datastore credentials configuration. */ -export interface AccountKeyDatastoreCredentials extends DatastoreCredentials { - /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialsType: "AccountKey"; - /** [Required] Storage account secrets. */ - secrets: AccountKeyDatastoreSecrets; +/** Featurization Configuration. */ +export interface FeaturizationSettings { + /** Dataset language, useful for the text data. */ + datasetLanguage?: string; } -/** Certificate datastore credentials configuration. */ -export interface CertificateDatastoreCredentials extends DatastoreCredentials { - /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialsType: "Certificate"; - /** Authority URL used for authentication. */ - authorityUrl?: string; - /** [Required] Service principal client ID. */ - clientId: string; - /** Resource the service principal has access to. */ - resourceUrl?: string; - /** [Required] Service principal secrets. */ - secrets: CertificateDatastoreSecrets; - /** [Required] ID of the tenant to which the service principal belongs. */ - tenantId: string; - /** [Required] Thumbprint of the certificate used for authentication. */ - thumbprint: string; +/** Fixed training parameters that won't be swept over during AutoML Table training. */ +export interface TableFixedParameters { + /** Specify the boosting type, e.g gbdt for XGBoost. */ + booster?: string; + /** Specify the boosting type, e.g gbdt for LightGBM. */ + boostingType?: string; + /** Specify the grow policy, which controls the way new nodes are added to the tree. */ + growPolicy?: string; + /** The learning rate for the training procedure. */ + learningRate?: number; + /** Specify the Maximum number of discrete bins to bucket continuous features . */ + maxBin?: number; + /** Specify the max depth to limit the tree depth explicitly. */ + maxDepth?: number; + /** Specify the max leaves to limit the tree leaves explicitly. */ + maxLeaves?: number; + /** The minimum number of data per leaf. */ + minDataInLeaf?: number; + /** Minimum loss reduction required to make a further partition on a leaf node of the tree. */ + minSplitGain?: number; + /** The name of the model to train. */ + modelName?: string; + /** Specify the number of trees (or rounds) in an model. */ + nEstimators?: number; + /** Specify the number of leaves. */ + numLeaves?: number; + /** The name of the preprocessor to use. */ + preprocessorName?: string; + /** L1 regularization term on weights. */ + regAlpha?: number; + /** L2 regularization term on weights. */ + regLambda?: number; + /** Subsample ratio of the training instance. */ + subsample?: number; + /** Frequency of subsample. */ + subsampleFreq?: number; + /** Specify the tree method. */ + treeMethod?: string; + /** If true, center before scaling the data with StandardScalar. */ + withMean?: boolean; + /** If true, scaling the data with Unit Variance with StandardScalar. */ + withStd?: boolean; } -/** Empty/none datastore credentials. */ -export interface NoneDatastoreCredentials extends DatastoreCredentials { +/** Job execution constraints. */ +export interface TableVerticalLimitSettings { + /** Enable early termination, determines whether or not if AutoMLJob will terminate early if there is no score improvement in last 20 iterations. */ + enableEarlyTermination?: boolean; + /** Exit score for the AutoML job. */ + exitScore?: number; + /** Maximum Concurrent iterations. */ + maxConcurrentTrials?: number; + /** Max cores per iteration. */ + maxCoresPerTrial?: number; + /** Maximum nodes to use for the experiment. */ + maxNodes?: number; + /** Number of iterations. */ + maxTrials?: number; + /** Number of concurrent sweeping runs that user wants to trigger. */ + sweepConcurrentTrials?: number; + /** Number of sweeping runs that user wants to trigger. */ + sweepTrials?: number; + /** AutoML job timeout. */ + timeout?: string; + /** Iteration timeout. */ + trialTimeout?: string; +} + +export interface TableParameterSubspace { + /** Specify the boosting type, e.g gbdt for XGBoost. */ + booster?: string; + /** Specify the boosting type, e.g gbdt for LightGBM. */ + boostingType?: string; + /** Specify the grow policy, which controls the way new nodes are added to the tree. */ + growPolicy?: string; + /** The learning rate for the training procedure. */ + learningRate?: string; + /** Specify the Maximum number of discrete bins to bucket continuous features . */ + maxBin?: string; + /** Specify the max depth to limit the tree depth explicitly. */ + maxDepth?: string; + /** Specify the max leaves to limit the tree leaves explicitly. */ + maxLeaves?: string; + /** The minimum number of data per leaf. */ + minDataInLeaf?: string; + /** Minimum loss reduction required to make a further partition on a leaf node of the tree. */ + minSplitGain?: string; + /** The name of the model to train. */ + modelName?: string; + /** Specify the number of trees (or rounds) in an model. */ + nEstimators?: string; + /** Specify the number of leaves. */ + numLeaves?: string; + /** The name of the preprocessor to use. */ + preprocessorName?: string; + /** L1 regularization term on weights. */ + regAlpha?: string; + /** L2 regularization term on weights. */ + regLambda?: string; + /** Subsample ratio of the training instance. */ + subsample?: string; + /** Frequency of subsample */ + subsampleFreq?: string; + /** Specify the tree method. */ + treeMethod?: string; + /** If true, center before scaling the data with StandardScalar. */ + withMean?: string; + /** If true, scaling the data with Unit Variance with StandardScalar. */ + withStd?: string; +} + +export interface TableSweepSettings { + /** Type of early termination policy for the sweeping job. */ + earlyTermination?: EarlyTerminationPolicyUnion; + /** [Required] Type of sampling algorithm. */ + samplingAlgorithm: SamplingAlgorithmType; +} + +export interface ModelPerformanceMetricThresholdBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialsType: "None"; + modelType: "Classification" | "Regression"; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; } -/** SAS datastore credentials configuration. */ -export interface SasDatastoreCredentials extends DatastoreCredentials { +/** Base definition for job distribution configuration. */ +export interface DistributionConfiguration { /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialsType: "Sas"; - /** [Required] Storage container secrets. */ - secrets: SasDatastoreSecrets; + distributionType: "Mpi" | "PyTorch" | "Ray" | "TensorFlow"; } -/** Service Principal datastore credentials configuration. */ -export interface ServicePrincipalDatastoreCredentials - extends DatastoreCredentials { - /** Polymorphic discriminator, which specifies the different types this object can be */ - credentialsType: "ServicePrincipal"; - /** Authority URL used for authentication. */ - authorityUrl?: string; - /** [Required] Service principal client ID. */ - clientId: string; - /** Resource the service principal has access to. */ - resourceUrl?: string; - /** [Required] Service principal secrets. */ - secrets: ServicePrincipalDatastoreSecrets; - /** [Required] ID of the tenant to which the service principal belongs. */ - tenantId: string; -} - -/** Datastore account key secrets. */ -export interface AccountKeyDatastoreSecrets extends DatastoreSecrets { - /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "AccountKey"; - /** Storage account key. */ - key?: string; -} - -/** Datastore certificate secrets. */ -export interface CertificateDatastoreSecrets extends DatastoreSecrets { +export interface JobLimits { /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "Certificate"; - /** Service principal certificate. */ - certificate?: string; + jobLimitsType: "Command" | "Sweep"; + /** The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds. */ + timeout?: string; } -/** Datastore SAS secrets. */ -export interface SasDatastoreSecrets extends DatastoreSecrets { - /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "Sas"; - /** Storage container SAS token. */ - sasToken?: string; +/** Used for sweep over component */ +export interface ComponentConfiguration { + /** Pipeline settings, for things like ContinueRunOnStepFailure etc. */ + pipelineSettings?: Record; } -/** Datastore Service Principal secrets. */ -export interface ServicePrincipalDatastoreSecrets extends DatastoreSecrets { - /** Polymorphic discriminator, which specifies the different types this object can be */ - secretsType: "ServicePrincipal"; - /** Service principal secret. */ - clientSecret?: string; +/** Resource requirements for each container instance within an online deployment. */ +export interface ContainerResourceRequirements { + /** Container resource limit info: */ + containerResourceLimits?: ContainerResourceSettings; + /** Container resource request info: */ + containerResourceRequests?: ContainerResourceSettings; } -/** AML Token identity configuration. */ -export interface AmlToken extends IdentityConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - identityType: "AMLToken"; +export interface ContainerResourceSettings { + /** + * Number of vCPUs request/limit for container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + */ + cpu?: string; + /** + * Number of Nvidia GPU cards request/limit for container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + */ + gpu?: string; + /** + * Memory size request/limit for container. More info: + * https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + */ + memory?: string; } -/** Managed identity configuration. */ -export interface ManagedIdentity extends IdentityConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - identityType: "Managed"; - /** Specifies a user-assigned identity by client ID. For system-assigned, do not set this field. */ - clientId?: string; - /** Specifies a user-assigned identity by object ID. For system-assigned, do not set this field. */ - objectId?: string; - /** Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field. */ - resourceId?: string; +export interface MonitorDefinition { + /** The monitor's notification settings. */ + alertNotificationSetting?: MonitoringAlertNotificationSettingsBaseUnion; + /** [Required] The ARM resource ID of the compute resource to run the monitoring job on. */ + computeConfiguration: MonitorComputeConfigurationBaseUnion; + /** The ARM resource ID of either the model or deployment targeted by this monitor. */ + monitoringTarget?: MonitoringTarget; + /** [Required] The signals to monitor. */ + signals: { [propertyName: string]: MonitoringSignalBaseUnion | null }; } -/** User identity configuration. */ -export interface UserIdentity extends IdentityConfiguration { +/** Monitor compute configuration base definition. */ +export interface MonitorComputeConfigurationBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - identityType: "UserIdentity"; + computeType: "ServerlessSpark"; } -export interface DefaultScaleSettings extends OnlineScaleSettings { - /** Polymorphic discriminator, which specifies the different types this object can be */ - scaleType: "Default"; +/** Monitoring target definition. */ +export interface MonitoringTarget { + /** The ARM resource ID of either the deployment targeted by this monitor. */ + deploymentId?: string; + /** The ARM resource ID of either the model targeted by this monitor. */ + modelId?: string; + /** [Required] The machine learning task type of the model. */ + taskType: ModelTaskType; } -export interface TargetUtilizationScaleSettings extends OnlineScaleSettings { +export interface MonitoringSignalBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - scaleType: "TargetUtilization"; - /** The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances. */ - maxInstances?: number; - /** The minimum number of instances to always be present. */ - minInstances?: number; - /** The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds. */ - pollingInterval?: string; - /** Target CPU usage for the autoscaler. */ - targetUtilizationPercentage?: number; + signalType: + | "Custom" + | "DataDrift" + | "DataQuality" + | "FeatureAttributionDrift" + | "GenerationSafetyQuality" + | "GenerationTokenStatistics" + | "ModelPerformance" + | "PredictionDrift"; + /** The current notification mode for this signal. */ + mode?: MonitoringNotificationMode; + /** Property dictionary. Properties can be added, but not removed or altered. */ + properties?: { [propertyName: string]: string | null }; } -export interface EndpointScheduleAction extends ScheduleActionBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - actionType: "InvokeBatchEndpoint"; - /** - * [Required] Defines Schedule action definition details. - * - */ - endpointInvocationDefinition: Record; +/** Online inference configuration options. */ +export interface OnlineInferenceConfiguration { + /** Additional configurations */ + configurations?: { [propertyName: string]: string | null }; + /** Entry script or command to invoke. */ + entryScript?: string; + /** The route to check the liveness of the inference server container. */ + livenessRoute?: Route; + /** The route to check the readiness of the inference server container. */ + readinessRoute?: Route; + /** The port to send the scoring requests to, within the inference server container. */ + scoringRoute?: Route; } -export interface JobScheduleAction extends ScheduleActionBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - actionType: "CreateJob"; - /** [Required] Defines Schedule action definition details. */ - jobDefinition: JobBasePropertiesUnion; +export interface CustomMetricThreshold { + /** [Required] The user-defined metric to calculate. */ + metric: string; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; } -export interface RecurrenceTrigger extends TriggerBase { +/** Monitoring input data base definition. */ +export interface MonitoringInputDataBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - triggerType: "Recurrence"; - /** [Required] The frequency to trigger schedule. */ - frequency: RecurrenceFrequency; - /** [Required] Specifies schedule interval in conjunction with frequency */ - interval: number; - /** The recurrence schedule. */ - schedule?: RecurrenceSchedule; + inputDataType: "Fixed" | "Static" | "Trailing"; + /** Mapping of column names to special uses. */ + columns?: { [propertyName: string]: string | null }; + /** The context metadata of the data source. */ + dataContext?: string; + /** [Required] Specifies the type of job. */ + jobInputType: JobInputType; + /** [Required] Input Asset URI. */ + uri: string; } -export interface CronTrigger extends TriggerBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - triggerType: "Cron"; +/** Monitoring workspace connection definition. */ +export interface MonitoringWorkspaceConnection { /** - * [Required] Specifies cron expression of schedule. - * The expression should follow NCronTab format. + * The properties of a workspace service connection to store as environment variables in the submitted jobs. + * Key is workspace connection property path, name is environment variable key. */ - expression: string; + environmentVariables?: { [propertyName: string]: string | null }; + /** + * The properties of a workspace service connection to store as secrets in the submitted jobs. + * Key is workspace connection property path, name is secret key. + */ + secrets?: { [propertyName: string]: string | null }; } -export interface MLTableJobInput extends AssetJobInput, JobInput {} - -export interface CustomModelJobInput extends AssetJobInput, JobInput {} - -export interface MLFlowModelJobInput extends AssetJobInput, JobInput {} - -export interface TritonModelJobInput extends AssetJobInput, JobInput {} - -export interface UriFileJobInput extends AssetJobInput, JobInput {} - -export interface UriFolderJobInput extends AssetJobInput, JobInput {} - -export interface CustomModelJobOutput extends AssetJobOutput, JobOutput {} - -export interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput {} - -export interface MLTableJobOutput extends AssetJobOutput, JobOutput {} - -export interface TritonModelJobOutput extends AssetJobOutput, JobOutput {} - -export interface UriFileJobOutput extends AssetJobOutput, JobOutput {} - -export interface UriFolderJobOutput extends AssetJobOutput, JobOutput {} - -/** Forecast horizon determined automatically by system. */ -export interface AutoForecastHorizon extends ForecastHorizon { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto"; +export interface MonitoringDataSegment { + /** The feature to segment the data on. */ + feature?: string; + /** Filters for only the specified values of the given segmented feature. */ + values?: string[]; } -/** The desired maximum forecast horizon in units of time-series frequency. */ -export interface CustomForecastHorizon extends ForecastHorizon { +export interface DataImportSource { /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Custom"; - /** [Required] Forecast horizon value. */ - value: number; + sourceType: "database" | "file_system"; + /** Workspace connection for data import source storage */ + connection?: string; } -/** Classification task in AutoML Table vertical. */ -export interface Classification extends TableVertical, AutoMLVertical { - /** Positive label for binary metrics calculation. */ - positiveLabel?: string; - /** Primary metric for the task. */ - primaryMetric?: ClassificationPrimaryMetrics; - /** Inputs for training phase for an AutoML Job. */ - trainingSettings?: ClassificationTrainingSettings; +export interface FeatureAttributionMetricThreshold { + /** [Required] The feature attribution metric to calculate. */ + metric: FeatureAttributionMetric; + /** The threshold value. If null, a default value will be set depending on the selected metric. */ + threshold?: MonitoringThreshold; } -/** Forecasting task in AutoML Table vertical. */ -export interface Forecasting extends TableVertical, AutoMLVertical { - /** Forecasting task specific inputs. */ - forecastingSettings?: ForecastingSettings; - /** Primary metric for forecasting task. */ - primaryMetric?: ForecastingPrimaryMetrics; - /** Inputs for training phase for an AutoML Job. */ - trainingSettings?: ForecastingTrainingSettings; +/** Forecasting specific parameters. */ +export interface ForecastingSettings { + /** + * Country or region for holidays for forecasting tasks. + * These should be ISO 3166 two-letter country/region codes, for example 'US' or 'GB'. + */ + countryOrRegionForHolidays?: string; + /** + * Number of periods between the origin time of one CV fold and the next fold. For + * example, if `CVStepSize` = 3 for daily data, the origin time for each fold will be + * three days apart. + */ + cvStepSize?: number; + /** Flag for generating lags for the numeric features with 'auto' or null. */ + featureLags?: FeatureLags; + /** + * The feature columns that are available for training but unknown at the time of forecast/inference. + * If features_unknown_at_forecast_time is not set, it is assumed that all the feature columns in the dataset are known at inference time. + */ + featuresUnknownAtForecastTime?: string[]; + /** The desired maximum forecast horizon in units of time-series frequency. */ + forecastHorizon?: ForecastHorizonUnion; + /** When forecasting, this parameter represents the period with which the forecast is desired, for example daily, weekly, yearly, etc. The forecast frequency is dataset frequency by default. */ + frequency?: string; + /** + * Set time series seasonality as an integer multiple of the series frequency. + * If seasonality is set to 'auto', it will be inferred. + */ + seasonality?: SeasonalityUnion; + /** The parameter defining how if AutoML should handle short time series. */ + shortSeriesHandlingConfig?: ShortSeriesHandlingConfiguration; + /** + * The function to be used to aggregate the time series target column to conform to a user specified frequency. + * If the TargetAggregateFunction is set i.e. not 'None', but the freq parameter is not set, the error is raised. The possible target aggregation functions are: "sum", "max", "min" and "mean". + */ + targetAggregateFunction?: TargetAggregationFunction; + /** The number of past periods to lag from the target column. */ + targetLags?: TargetLagsUnion; + /** The number of past periods used to create a rolling window average of the target column. */ + targetRollingWindowSize?: TargetRollingWindowSizeUnion; + /** The name of the time column. This parameter is required when forecasting to specify the datetime column in the input data used for building the time series and inferring its frequency. */ + timeColumnName?: string; + /** + * The names of columns used to group a timeseries. It can be used to create multiple series. + * If grain is not defined, the data set is assumed to be one time-series. This parameter is used with task type forecasting. + */ + timeSeriesIdColumnNames?: string[]; + /** Configure STL Decomposition of the time-series target column. */ + useStl?: UseStl; } -/** - * Image Classification. Multi-class image classification is used when an image is classified with only a single label - * from a set of classes - e.g. each image is classified as either an image of a 'cat' or a 'dog' or a 'duck'. - */ -export interface ImageClassification - extends ImageClassificationBase, - AutoMLVertical { - /** Primary metric to optimize for this task. */ - primaryMetric?: ClassificationPrimaryMetrics; +/** Generation safety quality metric threshold definition. */ +export interface GenerationSafetyQualityMetricThreshold { + /** [Required] Gets or sets the feature attribution metric to calculate. */ + metric: GenerationSafetyQualityMetric; + /** + * Gets or sets the threshold value. + * If null, a default value will be set depending on the selected metric. + */ + threshold?: MonitoringThreshold; } -/** - * Image Classification Multilabel. Multi-label image classification is used when an image could have one or more labels - * from a set of labels - e.g. an image could be labeled with both 'cat' and 'dog'. - */ -export interface ImageClassificationMultilabel - extends ImageClassificationBase, - AutoMLVertical { - /** Primary metric to optimize for this task. */ - primaryMetric?: ClassificationMultilabelPrimaryMetrics; +/** Generation token statistics metric threshold definition. */ +export interface GenerationTokenStatisticsMetricThreshold { + /** [Required] Gets or sets the feature attribution metric to calculate. */ + metric: GenerationTokenStatisticsMetric; + /** + * Gets or sets the threshold value. + * If null, a default value will be set depending on the selected metric. + */ + threshold?: MonitoringThreshold; } /** - * Image Instance Segmentation. Instance segmentation is used to identify objects in an image at the pixel level, - * drawing a polygon around each object in the image. - */ -export interface ImageInstanceSegmentation - extends ImageObjectDetectionBase, - AutoMLVertical { - /** Primary metric to optimize for this task. */ - primaryMetric?: InstanceSegmentationPrimaryMetrics; -} - -/** - * Image Object Detection. Object detection is used to identify objects in an image and locate each object with a - * bounding box e.g. locate all dogs and cats in an image and draw a bounding box around each. - */ -export interface ImageObjectDetection - extends ImageObjectDetectionBase, - AutoMLVertical { - /** Primary metric to optimize for this task. */ - primaryMetric?: ObjectDetectionPrimaryMetrics; -} - -/** Regression task in AutoML Table vertical. */ -export interface Regression extends TableVertical, AutoMLVertical { - /** Primary metric for regression task. */ - primaryMetric?: RegressionPrimaryMetrics; - /** Inputs for training phase for an AutoML Job. */ - trainingSettings?: RegressionTrainingSettings; -} - -/** - * Text Classification task in AutoML NLP vertical. - * NLP - Natural Language Processing. + * Settings used for training the model. + * For more information on the available settings please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. */ -export interface TextClassification extends NlpVertical, AutoMLVertical { - /** Primary metric for Text-Classification task. */ - primaryMetric?: ClassificationPrimaryMetrics; +export interface ImageModelSettings { + /** Settings for advanced scenarios. */ + advancedSettings?: string; + /** Enable AMSGrad when optimizer is 'adam' or 'adamw'. */ + amsGradient?: boolean; + /** Settings for using Augmentations. */ + augmentations?: string; + /** Value of 'beta1' when optimizer is 'adam' or 'adamw'. Must be a float in the range [0, 1]. */ + beta1?: number; + /** Value of 'beta2' when optimizer is 'adam' or 'adamw'. Must be a float in the range [0, 1]. */ + beta2?: number; + /** Frequency to store model checkpoints. Must be a positive integer. */ + checkpointFrequency?: number; + /** The pretrained checkpoint model for incremental training. */ + checkpointModel?: MLFlowModelJobInput; + /** The id of a previous run that has a pretrained checkpoint for incremental training. */ + checkpointRunId?: string; + /** Whether to use distributed training. */ + distributed?: boolean; + /** Enable early stopping logic during training. */ + earlyStopping?: boolean; + /** + * Minimum number of epochs or validation evaluations to wait before primary metric improvement + * is tracked for early stopping. Must be a positive integer. + */ + earlyStoppingDelay?: number; + /** + * Minimum number of epochs or validation evaluations with no primary metric improvement before + * the run is stopped. Must be a positive integer. + */ + earlyStoppingPatience?: number; + /** Enable normalization when exporting ONNX model. */ + enableOnnxNormalization?: boolean; + /** Frequency to evaluate validation dataset to get metric scores. Must be a positive integer. */ + evaluationFrequency?: number; + /** + * Gradient accumulation means running a configured number of "GradAccumulationStep" steps without + * updating the model weights while accumulating the gradients of those steps, and then using + * the accumulated gradients to compute the weight updates. Must be a positive integer. + */ + gradientAccumulationStep?: number; + /** + * Number of layers to freeze for the model. Must be a positive integer. + * For instance, passing 2 as value for 'seresnext' means + * freezing layer0 and layer1. For a full list of models supported and details on layer freeze, please + * see: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ + layersToFreeze?: number; + /** Initial learning rate. Must be a float in the range [0, 1]. */ + learningRate?: number; + /** Type of learning rate scheduler. Must be 'warmup_cosine' or 'step'. */ + learningRateScheduler?: LearningRateScheduler; + /** + * Name of the model to use for training. + * For more information on the available models please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ + modelName?: string; + /** Value of momentum when optimizer is 'sgd'. Must be a float in the range [0, 1]. */ + momentum?: number; + /** Enable nesterov when optimizer is 'sgd'. */ + nesterov?: boolean; + /** Number of training epochs. Must be a positive integer. */ + numberOfEpochs?: number; + /** Number of data loader workers. Must be a non-negative integer. */ + numberOfWorkers?: number; + /** Type of optimizer. */ + optimizer?: StochasticOptimizer; + /** Random seed to be used when using deterministic training. */ + randomSeed?: number; + /** Value of gamma when learning rate scheduler is 'step'. Must be a float in the range [0, 1]. */ + stepLRGamma?: number; + /** Value of step size when learning rate scheduler is 'step'. Must be a positive integer. */ + stepLRStepSize?: number; + /** Training batch size. Must be a positive integer. */ + trainingBatchSize?: number; + /** Validation batch size. Must be a positive integer. */ + validationBatchSize?: number; + /** Value of cosine cycle when learning rate scheduler is 'warmup_cosine'. Must be a float in the range [0, 1]. */ + warmupCosineLRCycles?: number; + /** Value of warmup epochs when learning rate scheduler is 'warmup_cosine'. Must be a positive integer. */ + warmupCosineLRWarmupEpochs?: number; + /** Value of weight decay when optimizer is 'sgd', 'adam', or 'adamw'. Must be a float in the range[0, 1]. */ + weightDecay?: number; } /** - * Text Classification Multilabel task in AutoML NLP vertical. - * NLP - Natural Language Processing. + * Distribution expressions to sweep over values of model settings. + * + * Some examples are: + * ``` + * ModelName = "choice('seresnext', 'resnest50')"; + * LearningRate = "uniform(0.001, 0.01)"; + * LayersToFreeze = "choice(0, 2)"; + * ``` + * All distributions can be specified as distribution_name(min, max) or choice(val1, val2, ..., valn) + * where distribution name can be: uniform, quniform, loguniform, etc + * For more details on how to compose distribution expressions please check the documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters + * For more information on the available settings please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. */ -export interface TextClassificationMultilabel - extends NlpVertical, - AutoMLVertical { +export interface ImageModelDistributionSettings { + /** Enable AMSGrad when optimizer is 'adam' or 'adamw'. */ + amsGradient?: string; + /** Settings for using Augmentations. */ + augmentations?: string; + /** Value of 'beta1' when optimizer is 'adam' or 'adamw'. Must be a float in the range [0, 1]. */ + beta1?: string; + /** Value of 'beta2' when optimizer is 'adam' or 'adamw'. Must be a float in the range [0, 1]. */ + beta2?: string; + /** Whether to use distributer training. */ + distributed?: string; + /** Enable early stopping logic during training. */ + earlyStopping?: string; /** - * Primary metric for Text-Classification-Multilabel task. - * Currently only Accuracy is supported as primary metric, hence user need not set it explicitly. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Minimum number of epochs or validation evaluations to wait before primary metric improvement + * is tracked for early stopping. Must be a positive integer. */ - readonly primaryMetric?: ClassificationMultilabelPrimaryMetrics; + earlyStoppingDelay?: string; + /** + * Minimum number of epochs or validation evaluations with no primary metric improvement before + * the run is stopped. Must be a positive integer. + */ + earlyStoppingPatience?: string; + /** Enable normalization when exporting ONNX model. */ + enableOnnxNormalization?: string; + /** Frequency to evaluate validation dataset to get metric scores. Must be a positive integer. */ + evaluationFrequency?: string; + /** + * Gradient accumulation means running a configured number of "GradAccumulationStep" steps without + * updating the model weights while accumulating the gradients of those steps, and then using + * the accumulated gradients to compute the weight updates. Must be a positive integer. + */ + gradientAccumulationStep?: string; + /** + * Number of layers to freeze for the model. Must be a positive integer. + * For instance, passing 2 as value for 'seresnext' means + * freezing layer0 and layer1. For a full list of models supported and details on layer freeze, please + * see: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ + layersToFreeze?: string; + /** Initial learning rate. Must be a float in the range [0, 1]. */ + learningRate?: string; + /** Type of learning rate scheduler. Must be 'warmup_cosine' or 'step'. */ + learningRateScheduler?: string; + /** + * Name of the model to use for training. + * For more information on the available models please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ + modelName?: string; + /** Value of momentum when optimizer is 'sgd'. Must be a float in the range [0, 1]. */ + momentum?: string; + /** Enable nesterov when optimizer is 'sgd'. */ + nesterov?: string; + /** Number of training epochs. Must be a positive integer. */ + numberOfEpochs?: string; + /** Number of data loader workers. Must be a non-negative integer. */ + numberOfWorkers?: string; + /** Type of optimizer. Must be either 'sgd', 'adam', or 'adamw'. */ + optimizer?: string; + /** Random seed to be used when using deterministic training. */ + randomSeed?: string; + /** Value of gamma when learning rate scheduler is 'step'. Must be a float in the range [0, 1]. */ + stepLRGamma?: string; + /** Value of step size when learning rate scheduler is 'step'. Must be a positive integer. */ + stepLRStepSize?: string; + /** Training batch size. Must be a positive integer. */ + trainingBatchSize?: string; + /** Validation batch size. Must be a positive integer. */ + validationBatchSize?: string; + /** Value of cosine cycle when learning rate scheduler is 'warmup_cosine'. Must be a float in the range [0, 1]. */ + warmupCosineLRCycles?: string; + /** Value of warmup epochs when learning rate scheduler is 'warmup_cosine'. Must be a positive integer. */ + warmupCosineLRWarmupEpochs?: string; + /** Value of weight decay when optimizer is 'sgd', 'adam', or 'adamw'. Must be a float in the range[0, 1]. */ + weightDecay?: string; } /** - * Text-NER task in AutoML NLP vertical. - * NER - Named Entity Recognition. - * NLP - Natural Language Processing. + * Abstract class for AutoML tasks that train image (computer vision) models - + * such as Image Classification / Image Classification Multilabel / Image Object Detection / Image Instance Segmentation. */ -export interface TextNer extends NlpVertical, AutoMLVertical { +export interface ImageVertical { + /** [Required] Limit settings for the AutoML job. */ + limitSettings: ImageLimitSettings; + /** Model sweeping and hyperparameter sweeping related settings. */ + sweepSettings?: ImageSweepSettings; + /** Validation data inputs. */ + validationData?: MLTableJobInput; /** - * Primary metric for Text-NER task. - * Only 'Accuracy' is supported for Text-NER, so user need not set this explicitly. - * NOTE: This property will not be serialized. It can only be populated by the server. + * The fraction of training dataset that needs to be set aside for validation purpose. + * Values between (0.0 , 1.0) + * Applied when validation dataset is not provided. */ - readonly primaryMetric?: ClassificationPrimaryMetrics; + validationDataSize?: number; } -/** Literal input type. */ -export interface LiteralJobInput extends JobInput { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobInputType: "literal"; - /** [Required] Literal value for the input. */ - value: string; +/** Limit settings for the AutoML job. */ +export interface ImageLimitSettings { + /** Maximum number of concurrent AutoML iterations. */ + maxConcurrentTrials?: number; + /** Maximum number of AutoML iterations. */ + maxTrials?: number; + /** AutoML job timeout. */ + timeout?: string; } -/** N-Cross validations determined automatically. */ -export interface AutoNCrossValidations extends NCrossValidations { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto"; +/** Model sweeping and hyperparameter sweeping related settings. */ +export interface ImageSweepSettings { + /** Type of early termination policy. */ + earlyTermination?: EarlyTerminationPolicyUnion; + /** [Required] Type of the hyperparameter sampling algorithms. */ + samplingAlgorithm: SamplingAlgorithmType; } -/** N-Cross validations are specified by user. */ -export interface CustomNCrossValidations extends NCrossValidations { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Custom"; - /** [Required] N-Cross validations value. */ - value: number; +export interface KerberosCredentials { + /** [Required] IP Address or DNS HostName. */ + kerberosKdcAddress: string; + /** [Required] Kerberos Username */ + kerberosPrincipal: string; + /** [Required] Domain over which a Kerberos authentication server has the authority to authenticate a user, host or service. */ + kerberosRealm: string; } -export interface AutoSeasonality extends Seasonality { +/** OneLake artifact (data source) configuration. */ +export interface OneLakeArtifact { /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto"; + artifactType: "LakeHouse"; + /** [Required] OneLake artifact name */ + artifactName: string; } -export interface CustomSeasonality extends Seasonality { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Custom"; - /** [Required] Seasonality value. */ - value: number; +/** Fixed training parameters that won't be swept over during AutoML NLP training. */ +export interface NlpFixedParameters { + /** Number of steps to accumulate gradients over before running a backward pass. */ + gradientAccumulationSteps?: number; + /** The learning rate for the training procedure. */ + learningRate?: number; + /** The type of learning rate schedule to use during the training procedure. */ + learningRateScheduler?: NlpLearningRateScheduler; + /** The name of the model to train. */ + modelName?: string; + /** Number of training epochs. */ + numberOfEpochs?: number; + /** The batch size for the training procedure. */ + trainingBatchSize?: number; + /** The batch size to be used during evaluation. */ + validationBatchSize?: number; + /** The warmup ratio, used alongside LrSchedulerType. */ + warmupRatio?: number; + /** The weight decay for the training procedure. */ + weightDecay?: number; } -export interface AutoTargetLags extends TargetLags { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto"; +/** Stringified search spaces for each parameter. See below examples. */ +export interface NlpParameterSubspace { + /** Number of steps to accumulate gradients over before running a backward pass. */ + gradientAccumulationSteps?: string; + /** The learning rate for the training procedure. */ + learningRate?: string; + /** The type of learning rate schedule to use during the training procedure. */ + learningRateScheduler?: string; + /** The name of the model to train. */ + modelName?: string; + /** Number of training epochs. */ + numberOfEpochs?: string; + /** The batch size for the training procedure. */ + trainingBatchSize?: string; + /** The batch size to be used during evaluation. */ + validationBatchSize?: string; + /** The warmup ratio, used alongside LrSchedulerType. */ + warmupRatio?: string; + /** The weight decay for the training procedure. */ + weightDecay?: string; } -export interface CustomTargetLags extends TargetLags { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Custom"; - /** [Required] Set target lags values. */ - values: number[]; +/** Model sweeping and hyperparameter tuning related settings. */ +export interface NlpSweepSettings { + /** Type of early termination policy for the sweeping job. */ + earlyTermination?: EarlyTerminationPolicyUnion; + /** [Required] Type of sampling algorithm. */ + samplingAlgorithm: SamplingAlgorithmType; } -/** Target lags rolling window determined automatically. */ -export interface AutoTargetRollingWindowSize extends TargetRollingWindowSize { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Auto"; +/** + * Abstract class for NLP related AutoML tasks. + * NLP - Natural Language Processing. + */ +export interface NlpVertical { + /** Featurization inputs needed for AutoML job. */ + featurizationSettings?: NlpVerticalFeaturizationSettings; + /** Model/training parameters that will remain constant throughout training. */ + fixedParameters?: NlpFixedParameters; + /** Execution constraints for AutoMLJob. */ + limitSettings?: NlpVerticalLimitSettings; + /** Search space for sampling different combinations of models and their hyperparameters. */ + searchSpace?: NlpParameterSubspace[]; + /** Settings for model sweeping and hyperparameter tuning. */ + sweepSettings?: NlpSweepSettings; + /** Validation data inputs. */ + validationData?: MLTableJobInput; } -export interface CustomTargetRollingWindowSize extends TargetRollingWindowSize { - /** Polymorphic discriminator, which specifies the different types this object can be */ - mode: "Custom"; - /** [Required] TargetRollingWindowSize value. */ - value: number; +/** Job execution constraints. */ +export interface NlpVerticalLimitSettings { + /** Maximum Concurrent AutoML iterations. */ + maxConcurrentTrials?: number; + /** Maximum nodes to use for the experiment. */ + maxNodes?: number; + /** Number of AutoML iterations. */ + maxTrials?: number; + /** AutoML job timeout. */ + timeout?: string; + /** Timeout for individual HD trials. */ + trialTimeout?: string; } -/** Defines an early termination policy based on slack criteria, and a frequency and delay interval for evaluation */ -export interface BanditPolicy extends EarlyTerminationPolicy { - /** Polymorphic discriminator, which specifies the different types this object can be */ - policyType: "Bandit"; - /** Absolute distance allowed from the best performing run. */ - slackAmount?: number; - /** Ratio of the allowed distance from the best performing run. */ - slackFactor?: number; +/** Optimization objective. */ +export interface Objective { + /** [Required] Defines supported metric goals for hyperparameter tuning */ + goal: Goal; + /** [Required] Name of the metric to optimize. */ + primaryMetric: string; } -/** Defines an early termination policy based on running averages of the primary metric of all runs */ -export interface MedianStoppingPolicy extends EarlyTerminationPolicy { +/** Spark job entry point definition. */ +export interface SparkJobEntry { /** Polymorphic discriminator, which specifies the different types this object can be */ - policyType: "MedianStopping"; + sparkJobEntryType: "SparkJobPythonEntry" | "SparkJobScalaEntry"; } -/** Defines an early termination policy that cancels a given percentage of runs at each evaluation interval. */ -export interface TruncationSelectionPolicy extends EarlyTerminationPolicy { - /** Polymorphic discriminator, which specifies the different types this object can be */ - policyType: "TruncationSelection"; - /** The percentage of runs to cancel at each evaluation interval. */ - truncationPercentage?: number; +export interface SparkResourceConfiguration { + /** Optional type of VM used as supported by the compute target. */ + instanceType?: string; + /** Version of spark runtime used for the job. */ + runtimeVersion?: string; } -/** Defines a Sampling Algorithm that generates values based on previous values */ -export interface BayesianSamplingAlgorithm extends SamplingAlgorithm { - /** Polymorphic discriminator, which specifies the different types this object can be */ - samplingAlgorithmType: "Bayesian"; +/** Trial component definition. */ +export interface TrialComponent { + /** ARM resource ID of the code asset. */ + codeId?: string; + /** [Required] The command to execute on startup of the job. eg. "python train.py" */ + command: string; + /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ + distribution?: DistributionConfigurationUnion; + /** [Required] The ARM resource ID of the Environment specification for the job. */ + environmentId: string; + /** Environment variables included in the job. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** Compute Resource configuration for the job. */ + resources?: JobResourceConfiguration; } -/** Defines a Sampling Algorithm that exhaustively generates every value combination in the space */ -export interface GridSamplingAlgorithm extends SamplingAlgorithm { - /** Polymorphic discriminator, which specifies the different types this object can be */ - samplingAlgorithmType: "Grid"; +export interface WorkspaceConnectionAccessKey { + accessKeyId?: string; + secretAccessKey?: string; } -/** Defines a Sampling Algorithm that generates values randomly */ -export interface RandomSamplingAlgorithm extends SamplingAlgorithm { - /** Polymorphic discriminator, which specifies the different types this object can be */ - samplingAlgorithmType: "Random"; - /** The specific type of random algorithm */ - rule?: RandomSamplingAlgorithmRule; - /** An optional integer to use as the seed for random number generation */ - seed?: number; +/** Api key object for workspace connection credential. */ +export interface WorkspaceConnectionApiKey { + key?: string; } -/** Classification Training related configuration. */ -export interface ClassificationTrainingSettings extends TrainingSettings { - /** Allowed models for classification task. */ - allowedTrainingAlgorithms?: ClassificationModels[]; - /** Blocked models for classification task. */ - blockedTrainingAlgorithms?: ClassificationModels[]; +/** Custom Keys credential object */ +export interface CustomKeys { + /** Dictionary of */ + keys?: { [propertyName: string]: string }; } -/** Forecasting Training related configuration. */ -export interface ForecastingTrainingSettings extends TrainingSettings { - /** Allowed models for forecasting task. */ - allowedTrainingAlgorithms?: ForecastingModels[]; - /** Blocked models for forecasting task. */ - blockedTrainingAlgorithms?: ForecastingModels[]; +export interface WorkspaceConnectionManagedIdentity { + clientId?: string; + resourceId?: string; } -/** Regression Training related configuration. */ -export interface RegressionTrainingSettings extends TrainingSettings { - /** Allowed models for regression task. */ - allowedTrainingAlgorithms?: RegressionModels[]; - /** Blocked models for regression task. */ - blockedTrainingAlgorithms?: RegressionModels[]; +export interface WorkspaceConnectionPersonalAccessToken { + pat?: string; } -/** Featurization Configuration. */ -export interface TableVerticalFeaturizationSettings - extends FeaturizationSettings { - /** These transformers shall not be used in featurization. */ - blockedTransformers?: BlockedTransformers[]; - /** Dictionary of column name and its type (int, float, string, datetime etc). */ - columnNameAndTypes?: { [propertyName: string]: string | null }; - /** Determines whether to use Dnn based featurizers for data featurization. */ - enableDnnFeaturization?: boolean; - /** - * Featurization mode - User can keep the default 'Auto' mode and AutoML will take care of necessary transformation of the data in featurization phase. - * If 'Off' is selected then no featurization is done. - * If 'Custom' is selected then user can specify additional inputs to customize how featurization is done. - */ - mode?: FeaturizationMode; - /** User can specify additional transformers to be used along with the columns to which it would be applied and parameters for the transformer constructor. */ - transformerParams?: { [propertyName: string]: ColumnTransformer[] | null }; +/** Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace. */ +export interface PrivateEndpointDestination { + serviceResourceId?: string; + sparkEnabled?: boolean; + /** Type of a managed network Outbound Rule of a machine learning workspace. */ + sparkStatus?: RuleStatus; + subresourceTarget?: string; } -export interface NlpVerticalFeaturizationSettings - extends FeaturizationSettings {} +export interface WorkspaceConnectionSharedAccessSignature { + sas?: string; +} -/** MPI distribution configuration. */ -export interface Mpi extends DistributionConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - distributionType: "Mpi"; - /** Number of processes per MPI node. */ - processCountPerInstance?: number; +export interface WorkspaceConnectionServicePrincipal { + clientId?: string; + clientSecret?: string; + tenantId?: string; } -/** PyTorch distribution configuration. */ -export interface PyTorch extends DistributionConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - distributionType: "PyTorch"; - /** Number of processes per node. */ - processCountPerInstance?: number; +/** Service Tag destination for a Service Tag Outbound Rule for the managed network of a machine learning workspace. */ +export interface ServiceTagDestination { + /** The action enum for networking rule. */ + action?: RuleAction; + /** + * Optional, if provided, the ServiceTag property will be ignored. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly addressPrefixes?: string[]; + portRanges?: string; + protocol?: string; + serviceTag?: string; } -/** TensorFlow distribution configuration. */ -export interface TensorFlow extends DistributionConfiguration { - /** Polymorphic discriminator, which specifies the different types this object can be */ - distributionType: "TensorFlow"; - /** Number of parameter server tasks. */ - parameterServerCount?: number; - /** Number of workers. If not specified, will default to the instance count. */ - workerCount?: number; +export interface WorkspaceConnectionUsernamePassword { + password?: string; + username?: string; } -/** Command Job limit class. */ -export interface CommandJobLimits extends JobLimits { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobLimitsType: "Command"; +/** Managed service identity (system assigned and/or user assigned identities) */ +export interface RegistryPartialManagedServiceIdentity + extends ManagedServiceIdentity {} + +/** Machine Learning compute object wrapped into ARM resource envelope. */ +export interface ComputeResource extends Resource, ComputeResourceSchema { + /** The identity of the resource. */ + identity?: ManagedServiceIdentity; + /** 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; } -/** Sweep Job limit class. */ -export interface SweepJobLimits extends JobLimits { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobLimitsType: "Sweep"; - /** Sweep Job max concurrent trials. */ - maxConcurrentTrials?: number; - /** Sweep Job max total trials. */ - maxTotalTrials?: number; - /** Sweep Job Trial timeout value. */ - trialTimeout?: string; +/** Azure Resource Manager resource envelope. */ +export interface CodeContainer extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: CodeContainerProperties; } -/** - * Settings used for training the model. - * For more information on the available settings please visit the official documentation: - * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. - */ -export interface ImageModelSettingsClassification extends ImageModelSettings { - /** Image crop size that is input to the neural network for the training dataset. Must be a positive integer. */ - trainingCropSize?: number; - /** Image crop size that is input to the neural network for the validation dataset. Must be a positive integer. */ - validationCropSize?: number; - /** Image size to which to resize before cropping for validation dataset. Must be a positive integer. */ - validationResizeSize?: number; - /** - * Weighted loss. The accepted values are 0 for no weighted loss. - * 1 for weighted loss with sqrt.(class_weights). 2 for weighted loss with class_weights. Must be 0 or 1 or 2. - */ - weightedLoss?: number; +/** Azure Resource Manager resource envelope. */ +export interface CodeVersion extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: CodeVersionProperties; } -/** - * Settings used for training the model. - * For more information on the available settings please visit the official documentation: - * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. - */ -export interface ImageModelSettingsObjectDetection extends ImageModelSettings { +/** Azure Resource Manager resource envelope. */ +export interface ComponentContainer extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: ComponentContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface ComponentVersion extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: ComponentVersionProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface DataContainer extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: DataContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface DataVersionBase extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: DataVersionBasePropertiesUnion; +} + +/** Azure Resource Manager resource envelope. */ +export interface EnvironmentContainer extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: EnvironmentContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface EnvironmentVersion extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: EnvironmentVersionProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface ModelContainer extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: ModelContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface ModelVersion extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: ModelVersionProperties; +} + +/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ +export interface TrackedResource extends Resource { + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** The geo-location where the resource lives */ + location: string; +} + +/** Azure Resource Manager resource envelope. */ +export interface Datastore extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: DatastorePropertiesUnion; +} + +/** Azure Resource Manager resource envelope. */ +export interface FeaturesetContainer extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: FeaturesetContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface Feature extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: FeatureProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface FeaturesetVersion extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: FeaturesetVersionProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface FeaturestoreEntityContainer extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: FeaturestoreEntityContainerProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface FeaturestoreEntityVersion extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: FeaturestoreEntityVersionProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface JobBase extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: JobBasePropertiesUnion; +} + +/** Azure Resource Manager resource envelope. */ +export interface LabelingJob extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: LabelingJobProperties; +} + +/** Azure Resource Manager resource envelope. */ +export interface Schedule extends Resource { + /** [Required] Additional attributes of the entity. */ + properties: ScheduleProperties; +} + +/** The Private Endpoint Connection resource. */ +export interface PrivateEndpointConnection extends Resource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Same as workspace location. */ + location?: string; + /** Optional. This field is required to be implemented by the RP because AML is supporting more than one tier */ + sku?: Sku; + /** Dictionary of */ + tags?: { [propertyName: string]: string }; + /** The Private Endpoint resource. */ + privateEndpoint?: WorkspacePrivateEndpointResource; + /** The connection state. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; /** - * Maximum number of detections per image, for all classes. Must be a positive integer. - * Note: This settings is not supported for the 'yolov5' algorithm. + * The current provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - boxDetectionsPerImage?: number; + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; +} + +/** An object that represents a machine learning workspace. */ +export interface Workspace extends Resource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + kind?: string; + location?: string; + /** Optional. This field is required to be implemented by the RP because AML is supporting more than one tier */ + sku?: Sku; + /** Dictionary of */ + tags?: { [propertyName: string]: string }; + /** The flag to indicate whether to allow public access when behind VNet. */ + allowPublicAccessWhenBehindVnet?: boolean; + /** ARM id of the application insights associated with this workspace. */ + applicationInsights?: string; + associatedWorkspaces?: string[]; + containerRegistries?: string[]; + /** ARM id of the container registry associated with this workspace. */ + containerRegistry?: string; + /** The description of this workspace. */ + description?: string; + /** Url for the discovery service to identify regional endpoints for machine learning experimentation services */ + discoveryUrl?: string; + enableDataIsolation?: boolean; + encryption?: EncryptionProperty; + existingWorkspaces?: string[]; + /** Settings for feature store type workspace. */ + featureStoreSettings?: FeatureStoreSettings; + /** The friendly name for this workspace. This name in mutable */ + friendlyName?: string; + /** The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service */ + hbiWorkspace?: boolean; + hubResourceId?: string; + /** The compute name for image build */ + imageBuildCompute?: string; + /** ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created */ + keyVault?: string; + keyVaults?: string[]; + /** Managed Network settings for a machine learning workspace. */ + managedNetwork?: ManagedNetworkSettings; /** - * During inference, only return proposals with a classification score greater than - * BoxScoreThreshold. Must be a float in the range[0, 1]. + * 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. */ - boxScoreThreshold?: number; + readonly mlFlowTrackingUri?: string; /** - * Image size for train and validation. Must be a positive integer. - * Note: The training run may get into CUDA OOM if the size is too big. - * Note: This settings is only supported for the 'yolov5' algorithm. + * The notebook info of Azure ML workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - imageSize?: number; + readonly notebookInfo?: NotebookResourceInfo; + /** The user assigned identity resource id that represents the workspace identity. */ + primaryUserAssignedIdentity?: string; /** - * Maximum size of the image to be rescaled before feeding it to the backbone. - * Must be a positive integer. Note: training run may get into CUDA OOM if the size is too big. - * Note: This settings is not supported for the 'yolov5' algorithm. + * The list of private endpoint connections in the workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - maxSize?: number; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; /** - * Minimum size of the image to be rescaled before feeding it to the backbone. - * Must be a positive integer. Note: training run may get into CUDA OOM if the size is too big. - * Note: This settings is not supported for the 'yolov5' algorithm. + * Count of private connections in the workspace + * NOTE: This property will not be serialized. It can only be populated by the server. */ - minSize?: number; + readonly privateLinkCount?: number; /** - * Model size. Must be 'small', 'medium', 'large', or 'xlarge'. - * Note: training run may get into CUDA OOM if the model size is too big. - * Note: This settings is only supported for the 'yolov5' algorithm. + * 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. */ - modelSize?: ModelSize; + readonly provisioningState?: ProvisioningState; + /** Whether requests from Public Network are allowed. */ + publicNetworkAccess?: PublicNetworkAccessType; + /** The service managed resource settings. */ + serviceManagedResourcesSettings?: ServiceManagedResourcesSettings; /** - * Enable multi-scale image by varying image size by +/- 50%. - * Note: training run may get into CUDA OOM if no sufficient GPU memory. - * Note: This settings is only supported for the 'yolov5' algorithm. + * 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. */ - multiScale?: boolean; - /** IOU threshold used during inference in NMS post processing. Must be a float in the range [0, 1]. */ - nmsIouThreshold?: number; + readonly serviceProvisionedResourceGroup?: string; + /** The list of shared private link resources in this workspace. */ + sharedPrivateLinkResources?: SharedPrivateLinkResource[]; + /** Retention time in days after workspace get soft deleted. */ + softDeleteRetentionInDays?: number; + /** ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created */ + storageAccount?: string; + storageAccounts?: string[]; /** - * The grid size to use for tiling each image. Note: TileGridSize must not be - * None to enable small object detection logic. A string containing two integers in mxn format. - * Note: This settings is not supported for the 'yolov5' algorithm. + * 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. */ - tileGridSize?: string; + readonly storageHnsEnabled?: boolean; + /** The auth mode used for accessing the system datastores of the workspace. */ + systemDatastoresAuthMode?: string; /** - * Overlap ratio between adjacent tiles in each dimension. Must be float in the range [0, 1). - * Note: This settings is not supported for the 'yolov5' algorithm. + * The tenant id associated with this workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - tileOverlapRatio?: number; + readonly tenantId?: string; + /** Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. */ + v1LegacyMode?: boolean; + /** WorkspaceHub's configuration object. */ + workspaceHubConfig?: WorkspaceHubConfig; /** - * The IOU threshold to use to perform NMS while merging predictions from tiles and image. - * Used in validation/ inference. Must be float in the range [0, 1]. - * Note: This settings is not supported for the 'yolov5' algorithm. + * The immutable id associated with this workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - tilePredictionsNmsThreshold?: number; - /** IOU threshold to use when computing validation metric. Must be float in the range [0, 1]. */ - validationIouThreshold?: number; - /** Metric computation method to use for validation metrics. */ - validationMetricType?: ValidationMetricType; + readonly workspaceId?: string; } -/** - * Distribution expressions to sweep over values of model settings. - * - * Some examples are: - * - * ModelName = "choice('seresnext', 'resnest50')"; - * LearningRate = "uniform(0.001, 0.01)"; - * LayersToFreeze = "choice(0, 2)"; - * - * For more details on how to compose distribution expressions please check the documentation: - * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters - * For more information on the available settings please visit the official documentation: - * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. - */ -export interface ImageModelDistributionSettingsClassification - extends ImageModelDistributionSettings { - /** Image crop size that is input to the neural network for the training dataset. Must be a positive integer. */ - trainingCropSize?: string; - /** Image crop size that is input to the neural network for the validation dataset. Must be a positive integer. */ - validationCropSize?: string; - /** Image size to which to resize before cropping for validation dataset. Must be a positive integer. */ - validationResizeSize?: string; - /** - * Weighted loss. The accepted values are 0 for no weighted loss. - * 1 for weighted loss with sqrt.(class_weights). 2 for weighted loss with class_weights. Must be 0 or 1 or 2. - */ - weightedLoss?: string; +export interface WorkspaceConnectionPropertiesV2BasicResource extends Resource { + properties: WorkspaceConnectionPropertiesV2Union; } -/** - * Distribution expressions to sweep over values of model settings. - * - * Some examples are: - * - * ModelName = "choice('seresnext', 'resnest50')"; - * LearningRate = "uniform(0.001, 0.01)"; - * LayersToFreeze = "choice(0, 2)"; - * - * For more details on how to compose distribution expressions please check the documentation: - * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters - * For more information on the available settings please visit the official documentation: - * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. - */ -export interface ImageModelDistributionSettingsObjectDetection - extends ImageModelDistributionSettings { - /** - * Maximum number of detections per image, for all classes. Must be a positive integer. - * Note: This settings is not supported for the 'yolov5' algorithm. - */ - boxDetectionsPerImage?: string; - /** - * During inference, only return proposals with a classification score greater than - * BoxScoreThreshold. Must be a float in the range[0, 1]. - */ - boxScoreThreshold?: string; - /** - * Image size for train and validation. Must be a positive integer. - * Note: The training run may get into CUDA OOM if the size is too big. - * Note: This settings is only supported for the 'yolov5' algorithm. - */ - imageSize?: string; - /** - * Maximum size of the image to be rescaled before feeding it to the backbone. - * Must be a positive integer. Note: training run may get into CUDA OOM if the size is too big. - * Note: This settings is not supported for the 'yolov5' algorithm. - */ - maxSize?: string; - /** - * Minimum size of the image to be rescaled before feeding it to the backbone. - * Must be a positive integer. Note: training run may get into CUDA OOM if the size is too big. - * Note: This settings is not supported for the 'yolov5' algorithm. - */ - minSize?: string; - /** - * Model size. Must be 'small', 'medium', 'large', or 'xlarge'. - * Note: training run may get into CUDA OOM if the model size is too big. - * Note: This settings is only supported for the 'yolov5' algorithm. - */ - modelSize?: string; - /** - * Enable multi-scale image by varying image size by +/- 50%. - * Note: training run may get into CUDA OOM if no sufficient GPU memory. - * Note: This settings is only supported for the 'yolov5' algorithm. - */ - multiScale?: string; - /** IOU threshold used during inference in NMS post processing. Must be float in the range [0, 1]. */ - nmsIouThreshold?: string; - /** - * The grid size to use for tiling each image. Note: TileGridSize must not be - * None to enable small object detection logic. A string containing two integers in mxn format. - * Note: This settings is not supported for the 'yolov5' algorithm. - */ - tileGridSize?: string; - /** - * Overlap ratio between adjacent tiles in each dimension. Must be float in the range [0, 1). - * Note: This settings is not supported for the 'yolov5' algorithm. - */ - tileOverlapRatio?: string; - /** - * The IOU threshold to use to perform NMS while merging predictions from tiles and image. - * Used in validation/ inference. Must be float in the range [0, 1]. - * Note: This settings is not supported for the 'yolov5' algorithm. - * NMS: Non-maximum suppression - */ - tilePredictionsNmsThreshold?: string; - /** IOU threshold to use when computing validation metric. Must be float in the range [0, 1]. */ - validationIouThreshold?: string; - /** Metric computation method to use for validation metrics. Must be 'none', 'coco', 'voc', or 'coco_voc'. */ - validationMetricType?: string; -} - -export interface ImageClassificationBase extends ImageVertical { - /** Settings used for training the model. */ - modelSettings?: ImageModelSettingsClassification; - /** Search space for sampling different combinations of models and their hyperparameters. */ - searchSpace?: ImageModelDistributionSettingsClassification[]; -} - -export interface ImageObjectDetectionBase extends ImageVertical { - /** Settings used for training the model. */ - modelSettings?: ImageModelSettingsObjectDetection; - /** Search space for sampling different combinations of models and their hyperparameters. */ - searchSpace?: ImageModelDistributionSettingsObjectDetection[]; +/** Outbound Rule Basic Resource for the managed network of a machine learning workspace. */ +export interface OutboundRuleBasicResource extends Resource { + /** Outbound Rule for the managed network of a machine learning workspace. */ + properties: OutboundRuleUnion; } -export interface BatchEndpoint extends TrackedResource { +/** A private link resource */ +export interface PrivateLinkResource extends Resource { /** Managed service identity (system assigned and/or user assigned identities) */ identity?: ManagedServiceIdentity; - /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ - kind?: string; - /** [Required] Additional attributes of the entity. */ - properties: BatchEndpointProperties; - /** Sku details required for ARM contract for Autoscaling. */ + /** Same as workspace location. */ + location?: string; + /** Optional. This field is required to be implemented by the RP because AML is supporting more than one tier */ sku?: Sku; + /** Dictionary of */ + tags?: { [propertyName: string]: string }; + /** The private link resource group id. */ + groupId?: string; + /** The private link resource required member names. */ + requiredMembers?: string[]; + /** The private link resource Private link DNS zone name. */ + requiredZoneNames?: string[]; } -export interface BatchDeployment extends TrackedResource { - /** Managed service identity (system assigned and/or user assigned identities) */ - identity?: ManagedServiceIdentity; - /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ - kind?: string; - /** [Required] Additional attributes of the entity. */ - properties: BatchDeploymentProperties; - /** Sku details required for ARM contract for Autoscaling. */ - sku?: Sku; +/** A Machine Learning compute based on AKS. */ +export interface Aks extends Compute, AKSSchema { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AKS"; } -export interface OnlineEndpoint extends TrackedResource { - /** Managed service identity (system assigned and/or user assigned identities) */ - identity?: ManagedServiceIdentity; - /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ - kind?: string; - /** [Required] Additional attributes of the entity. */ - properties: OnlineEndpointProperties; - /** Sku details required for ARM contract for Autoscaling. */ - sku?: Sku; +/** A Machine Learning compute based on Kubernetes Compute. */ +export interface Kubernetes extends Compute, KubernetesSchema { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Kubernetes"; } -export interface OnlineDeployment extends TrackedResource { - /** Managed service identity (system assigned and/or user assigned identities) */ - identity?: ManagedServiceIdentity; - /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ - kind?: string; - /** [Required] Additional attributes of the entity. */ - properties: OnlineDeploymentPropertiesUnion; - /** Sku details required for ARM contract for Autoscaling. */ - sku?: Sku; +/** An Azure Machine Learning compute. */ +export interface AmlCompute extends Compute, AmlComputeSchema { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AmlCompute"; } -/** Properties specific to a KubernetesOnlineDeployment. */ -export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties { +/** An Azure Machine Learning compute instance. */ +export interface ComputeInstance extends Compute, ComputeInstanceSchema { /** Polymorphic discriminator, which specifies the different types this object can be */ - endpointComputeType: "Kubernetes"; - /** The resource requirements for the container (cpu and memory). */ - containerResourceRequirements?: ContainerResourceRequirements; + computeType: "ComputeInstance"; } -/** Properties specific to a ManagedOnlineDeployment. */ -export interface ManagedOnlineDeployment extends OnlineDeploymentProperties { +/** A Machine Learning compute based on Azure Virtual Machines. */ +export interface VirtualMachine extends Compute, VirtualMachineSchema { /** Polymorphic discriminator, which specifies the different types this object can be */ - endpointComputeType: "Managed"; + computeType: "VirtualMachine"; } -/** Container for code asset versions. */ -export interface CodeContainerProperties extends AssetContainer {} +/** A HDInsight compute. */ +export interface HDInsight extends Compute, HDInsightSchema { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "HDInsight"; +} -/** - * Component container definition. - * - */ -export interface ComponentContainerProperties extends AssetContainer {} +/** A DataFactory compute. */ +export interface DataFactory extends Compute { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "DataFactory"; +} -/** Container for data asset versions. */ -export interface DataContainerProperties extends AssetContainer { - /** [Required] Specifies the type of data. */ - dataType: DataType; +/** A DataFactory compute. */ +export interface Databricks extends Compute, DatabricksSchema { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Databricks"; } -/** Container for environment specification versions. */ -export interface EnvironmentContainerProperties extends AssetContainer {} +/** A DataLakeAnalytics compute. */ +export interface DataLakeAnalytics extends Compute, DataLakeAnalyticsSchema { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "DataLakeAnalytics"; +} -export interface ModelContainerProperties extends AssetContainer {} +/** A SynapseSpark compute. */ +export interface SynapseSpark extends Compute { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "SynapseSpark"; + properties?: SynapseSparkProperties; +} -/** Code asset version details. */ -export interface CodeVersionProperties extends AssetBase { - /** Uri where code is located */ - codeUri?: string; +/** Secrets related to a Machine Learning compute based on AKS. */ +export interface AksComputeSecrets + extends ComputeSecrets, + AksComputeSecretsProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "AKS"; } -/** Definition of a component version: defines resources that span component types. */ -export interface ComponentVersionProperties extends AssetBase { - /** - * Defines Component definition details. - * - */ - componentSpec?: Record; +/** Secrets related to a Machine Learning compute based on AKS. */ +export interface VirtualMachineSecrets + extends ComputeSecrets, + VirtualMachineSecretsSchema { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "VirtualMachine"; } -/** Data version base definition */ -export interface DataVersionBaseProperties extends AssetBase { - /** [Required] Specifies the type of data. */ - dataType: DataType; - /** [Required] Uri of the data. Usage/meaning depends on Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20221001.Assets.DataVersionBase.DataType */ - dataUri: string; +/** Secrets related to a Machine Learning compute based on Databricks. */ +export interface DatabricksComputeSecrets + extends ComputeSecrets, + DatabricksComputeSecretsProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "Databricks"; } -/** Environment version details. */ -export interface EnvironmentVersionProperties extends AssetBase { - /** Defines if image needs to be rebuilt based on base image changes. */ - autoRebuild?: AutoRebuildSetting; - /** Configuration settings for Docker build context. */ - build?: BuildContext; - /** - * Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages. - * - */ - condaFile?: string; +export interface AssetContainer extends ResourceBase { + /** Is the asset archived? */ + isArchived?: boolean; /** - * Environment type is either user managed or curated by the Azure ML service - * + * The latest version inside this container. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly environmentType?: EnvironmentType; + readonly latestVersion?: string; /** - * Name of the image that will be used for the environment. - * + * The next auto incremental version + * NOTE: This property will not be serialized. It can only be populated by the server. */ - image?: string; - /** Defines configuration specific to inference. */ - inferenceConfig?: InferenceContainerProperties; - /** The OS type of the environment. */ - osType?: OperatingSystemType; + readonly nextVersion?: string; } -/** Model asset version details. */ -export interface ModelVersionProperties extends AssetBase { - /** Mapping of model flavors to their properties. */ - flavors?: { [propertyName: string]: FlavorData | null }; - /** Name of the training job which produced this model */ - jobName?: string; - /** The storage format for this entity. Used for NCD. */ - modelType?: string; - /** The URI path to the model contents. */ - modelUri?: string; -} - -/** Azure Blob datastore configuration. */ -export interface AzureBlobDatastore extends DatastoreProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - datastoreType: "AzureBlob"; - /** Storage account name. */ - accountName?: string; - /** Storage account container name. */ - containerName?: string; - /** Azure cloud endpoint for the storage account. */ - endpoint?: string; - /** Protocol used to communicate with the storage account. */ - protocol?: string; - /** Indicates which identity to use to authenticate service data access to customer's storage. */ - serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; -} - -/** Azure Data Lake Gen1 datastore configuration. */ -export interface AzureDataLakeGen1Datastore extends DatastoreProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - datastoreType: "AzureDataLakeGen1"; - /** Indicates which identity to use to authenticate service data access to customer's storage. */ - serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; - /** [Required] Azure Data Lake store name. */ - storeName: string; +export interface AssetBase extends ResourceBase { + /** Specifies the lifecycle setting of managed data asset. */ + autoDeleteSetting?: AutoDeleteSetting; + /** If the name version are system generated (anonymous registration). For types where Stage is defined, when Stage is provided it will be used to populate IsAnonymous */ + isAnonymous?: boolean; + /** Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived */ + isArchived?: boolean; } -/** Azure Data Lake Gen2 datastore configuration. */ -export interface AzureDataLakeGen2Datastore extends DatastoreProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - datastoreType: "AzureDataLakeGen2"; - /** [Required] Storage account name. */ - accountName: string; - /** Azure cloud endpoint for the storage account. */ - endpoint?: string; - /** [Required] The name of the Data Lake Gen2 filesystem. */ - filesystem: string; - /** Protocol used to communicate with the storage account. */ - protocol?: string; - /** Indicates which identity to use to authenticate service data access to customer's storage. */ - serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +/** Base definition for datastore contents configuration. */ +export interface DatastoreProperties extends ResourceBase { + /** [Required] Account credentials. */ + credentials: DatastoreCredentialsUnion; + /** [Required] Storage type backing the datastore. */ + datastoreType: DatastoreType; + /** Intellectual Property details. */ + intellectualProperty?: IntellectualProperty; + /** + * Readonly property to indicate if datastore is the workspace default datastore + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDefault?: boolean; } -/** Azure File datastore configuration. */ -export interface AzureFileDatastore extends DatastoreProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - datastoreType: "AzureFile"; - /** [Required] Storage account name. */ - accountName: string; - /** Azure cloud endpoint for the storage account. */ - endpoint?: string; - /** [Required] The name of the Azure file share that the datastore points to. */ - fileShareName: string; - /** Protocol used to communicate with the storage account. */ - protocol?: string; - /** Indicates which identity to use to authenticate service data access to customer's storage. */ - serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +/** Dto object representing feature */ +export interface FeatureProperties extends ResourceBase { + /** Specifies type */ + dataType?: FeatureDataType; + /** Specifies name */ + featureName?: string; } -/** - * AutoMLJob class. - * Use this class for executing AutoML tasks like Classification/Regression etc. - * See TaskType enum for all the tasks supported. - */ -export interface AutoMLJob extends JobBaseProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobType: "AutoML"; +/** Base definition for a job. */ +export interface JobBaseProperties extends ResourceBase { + /** ARM resource ID of the component resource. */ + componentId?: string; + /** ARM resource ID of the compute resource. */ + computeId?: string; + /** Display name of job. */ + displayName?: string; + /** The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. */ + experimentName?: string; /** - * The ARM resource ID of the Environment specification for the job. - * This is optional value to provide, if not provided, AutoML will default this to Production AutoML curated environment version when running the job. + * Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. + * Defaults to AmlToken if null. */ - environmentId?: string; - /** Environment variables included in the job. */ - environmentVariables?: { [propertyName: string]: string | null }; - /** Mapping of output data bindings used in the job. */ - outputs?: { [propertyName: string]: JobOutputUnion | null }; - /** Compute Resource configuration for the job. */ - resources?: JobResourceConfiguration; - /** [Required] This represents scenario which can be one of Tables/NLP/Image */ - taskDetails: AutoMLVerticalUnion; + identity?: IdentityConfigurationUnion; + /** Is the asset archived? */ + isArchived?: boolean; + /** [Required] Specifies the type of job. */ + jobType: JobType; + /** Notification setting for the job */ + notificationSetting?: NotificationSetting; + /** Configuration for secrets to be made available during runtime. */ + secretsConfiguration?: { [propertyName: string]: SecretConfiguration | null }; + /** + * List of JobEndpoints. + * For local jobs, a job endpoint will have an endpoint value of FileStreamObject. + */ + services?: { [propertyName: string]: JobService | null }; + /** + * Status of the job. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: JobStatus; } -/** Command job definition. */ -export interface CommandJob extends JobBaseProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobType: "Command"; - /** ARM resource ID of the code asset. */ - codeId?: string; - /** [Required] The command to execute on startup of the job. eg. "python train.py" */ - command: string; - /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ - distribution?: DistributionConfigurationUnion; - /** [Required] The ARM resource ID of the Environment specification for the job. */ - environmentId: string; - /** Environment variables included in the job. */ - environmentVariables?: { [propertyName: string]: string | null }; - /** Mapping of input data bindings used in the job. */ - inputs?: { [propertyName: string]: JobInputUnion | null }; - /** Command Job limit. */ - limits?: CommandJobLimits; - /** Mapping of output data bindings used in the job. */ - outputs?: { [propertyName: string]: JobOutputUnion | null }; +/** Base definition of a schedule */ +export interface ScheduleProperties extends ResourceBase { + /** [Required] Specifies the action of the schedule */ + action: ScheduleActionBaseUnion; + /** Display name of schedule. */ + displayName?: string; + /** Is the schedule enabled? */ + isEnabled?: boolean; /** - * Input parameters. + * Provisioning state for the schedule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly parameters?: Record; - /** Compute Resource configuration for the job. */ - resources?: JobResourceConfiguration; + readonly provisioningState?: ScheduleProvisioningStatus; + /** [Required] Specifies the trigger details */ + trigger: TriggerBaseUnion; } -/** Pipeline Job definition: defines generic to MFE attributes. */ -export interface PipelineJob extends JobBaseProperties { +export interface SASCredentialDto extends PendingUploadCredentialDto { /** Polymorphic discriminator, which specifies the different types this object can be */ - jobType: "Pipeline"; - /** Inputs for the pipeline job. */ - inputs?: { [propertyName: string]: JobInputUnion | null }; - /** Jobs construct the Pipeline Job. */ - jobs?: { [propertyName: string]: Record }; - /** Outputs for the pipeline job */ - outputs?: { [propertyName: string]: JobOutputUnion | null }; - /** Pipeline settings, for things like ContinueRunOnStepFailure etc. */ - settings?: Record; - /** ARM resource ID of source job. */ - sourceJobId?: string; + credentialType: "SAS"; + /** Full SAS Uri, including the storage, container/blob path and SAS token */ + sasUri?: string; } -/** Sweep job definition. */ -export interface SweepJob extends JobBaseProperties { +/** Base environment type. */ +export interface BaseEnvironmentId extends BaseEnvironmentSource { /** Polymorphic discriminator, which specifies the different types this object can be */ - jobType: "Sweep"; - /** Early termination policies enable canceling poor-performing runs before they complete */ - earlyTermination?: EarlyTerminationPolicyUnion; - /** Mapping of input data bindings used in the job. */ - inputs?: { [propertyName: string]: JobInputUnion | null }; - /** Sweep Job limit. */ - limits?: SweepJobLimits; - /** [Required] Optimization objective. */ - objective: Objective; - /** Mapping of output data bindings used in the job. */ - outputs?: { [propertyName: string]: JobOutputUnion | null }; - /** [Required] The hyperparameter sampling algorithm */ - samplingAlgorithm: SamplingAlgorithmUnion; - /** [Required] A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter */ - searchSpace: Record; - /** [Required] Trial component definition. */ - trial: TrialComponent; + baseEnvironmentSourceType: "EnvironmentAsset"; + /** [Required] Resource id accepting ArmId or AzureMlId. */ + resourceId: string; } -/** MLTable data definition */ -export interface MLTableData extends DataVersionBaseProperties { +/** Azure ML batch inferencing server configurations. */ +export interface AzureMLBatchInferencingServer extends InferencingServer { /** Polymorphic discriminator, which specifies the different types this object can be */ - dataType: "mltable"; - /** Uris referenced in the MLTable definition (required for lineage) */ - referencedUris?: string[]; + serverType: "AzureMLBatch"; + /** Code configuration for AML batch inferencing server. */ + codeConfiguration?: CodeConfiguration; } -/** uri-file data version entity */ -export interface UriFileDataVersion extends DataVersionBaseProperties { +/** Azure ML online inferencing configurations. */ +export interface AzureMLOnlineInferencingServer extends InferencingServer { /** Polymorphic discriminator, which specifies the different types this object can be */ - dataType: "uri_file"; + serverType: "AzureMLOnline"; + /** Code configuration for AML inferencing server. */ + codeConfiguration?: CodeConfiguration; } -/** uri-folder data version entity */ -export interface UriFolderDataVersion extends DataVersionBaseProperties { +/** Custom inference server configurations. */ +export interface CustomInferencingServer extends InferencingServer { /** Polymorphic discriminator, which specifies the different types this object can be */ - dataType: "uri_folder"; -} - -/** 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; -} - -/** Defines headers for Compute_createOrUpdate operation. */ -export interface ComputeCreateOrUpdateHeaders { - /** URI to poll for asynchronous operation status. */ - azureAsyncOperation?: string; + serverType: "Custom"; + /** Inference configuration for custom inferencing. */ + inferenceConfiguration?: OnlineInferenceConfiguration; } -/** 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; +/** Triton inferencing server configurations. */ +export interface TritonInferencingServer extends InferencingServer { + /** Polymorphic discriminator, which specifies the different types this object can be */ + serverType: "Triton"; + /** Inference configuration for Triton. */ + inferenceConfiguration?: OnlineInferenceConfiguration; } -/** Defines headers for BatchEndpoints_delete operation. */ -export interface BatchEndpointsDeleteHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** Package input path specified with a resource id. */ +export interface PackageInputPathId extends PackageInputPathBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputPathType: "PathId"; + /** Input resource id. */ + resourceId?: string; } -/** Defines headers for BatchEndpoints_update operation. */ -export interface BatchEndpointsUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** Package input path specified as an url. */ +export interface PackageInputPathUrl extends PackageInputPathBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputPathType: "Url"; + /** Input path url. */ + url?: string; } -/** Defines headers for BatchEndpoints_createOrUpdate operation. */ -export interface BatchEndpointsCreateOrUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation status. */ - azureAsyncOperation?: string; +/** Package input path specified with name and version. */ +export interface PackageInputPathVersion extends PackageInputPathBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputPathType: "PathVersion"; + /** Input resource name. */ + resourceName?: string; + /** Input resource version. */ + resourceVersion?: string; } -/** Defines headers for BatchDeployments_delete operation. */ -export interface BatchDeploymentsDeleteHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** Batch endpoint configuration. */ +export interface BatchEndpointProperties extends EndpointPropertiesBase { + /** Default values for Batch Endpoint. */ + defaults?: BatchEndpointDefaults; + /** + * Provisioning state for the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: EndpointProvisioningState; } -/** Defines headers for BatchDeployments_update operation. */ -export interface BatchDeploymentsUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** Online endpoint configuration */ +export interface OnlineEndpointProperties extends EndpointPropertiesBase { + /** + * ARM resource ID of the compute if it exists. + * optional + */ + compute?: string; + /** Percentage of traffic to be mirrored to each deployment without using returned scoring. Traffic values need to sum to utmost 50. */ + mirrorTraffic?: { [propertyName: string]: number }; + /** + * Provisioning state for the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: EndpointProvisioningState; + /** Set to "Enabled" for endpoints that should allow public access when Private Link is enabled. */ + publicNetworkAccess?: PublicNetworkAccessType; + /** Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100. */ + traffic?: { [propertyName: string]: number }; } -/** Defines headers for BatchDeployments_createOrUpdate operation. */ -export interface BatchDeploymentsCreateOrUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation status. */ - azureAsyncOperation?: string; +/** Strictly used in update requests. */ +export interface PartialMinimalTrackedResourceWithIdentity + extends PartialMinimalTrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: PartialManagedServiceIdentity; } -/** Defines headers for Jobs_delete operation. */ -export interface JobsDeleteHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** Strictly used in update requests. */ +export interface PartialMinimalTrackedResourceWithSkuAndIdentity + extends PartialMinimalTrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: PartialManagedServiceIdentity; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: PartialSku; } -/** Defines headers for Jobs_cancel operation. */ -export interface JobsCancelHeaders { - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** Strictly used in update requests. */ +export interface PartialMinimalTrackedResourceWithSku + extends PartialMinimalTrackedResource { + /** Sku details required for ARM contract for Autoscaling. */ + sku?: PartialSku; } -/** Defines headers for OnlineEndpoints_delete operation. */ -export interface OnlineEndpointsDeleteHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** Properties for a Batch Pipeline Component Deployment. */ +export interface BatchPipelineComponentDeploymentConfiguration + extends BatchDeploymentConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + deploymentConfigurationType: "PipelineComponent"; + /** The ARM id of the component to be run. */ + componentId?: IdAssetReference; + /** The description which will be applied to the job. */ + description?: string; + /** Run-time settings for the pipeline job. */ + settings?: { [propertyName: string]: string | null }; + /** The tags which will be applied to the job. */ + tags?: { [propertyName: string]: string | null }; } -/** Defines headers for OnlineEndpoints_update operation. */ -export interface OnlineEndpointsUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** Reference to an asset via its ARM resource ID. */ +export interface IdAssetReference extends AssetReferenceBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + referenceType: "Id"; + /** [Required] ARM resource ID of the asset. */ + assetId: string; } -/** Defines headers for OnlineEndpoints_createOrUpdate operation. */ -export interface OnlineEndpointsCreateOrUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation status. */ - azureAsyncOperation?: string; +/** Reference to an asset via its path in a datastore. */ +export interface DataPathAssetReference extends AssetReferenceBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + referenceType: "DataPath"; + /** ARM resource ID of the datastore where the asset is located. */ + datastoreId?: string; + /** The path of the file/directory in the datastore. */ + path?: string; } -/** Defines headers for OnlineEndpoints_regenerateKeys operation. */ -export interface OnlineEndpointsRegenerateKeysHeaders { - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** Reference to an asset via its path in a job output. */ +export interface OutputPathAssetReference extends AssetReferenceBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + referenceType: "OutputPath"; + /** ARM resource ID of the job. */ + jobId?: string; + /** The path of the file/directory in the job output. */ + path?: string; } -/** Defines headers for OnlineDeployments_delete operation. */ -export interface OnlineDeploymentsDeleteHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +export interface DeploymentResourceConfiguration + extends ResourceConfiguration {} + +export interface JobResourceConfiguration extends ResourceConfiguration { + /** Extra arguments to pass to the Docker run command. This would override any parameters that have already been set by the system, or in this section. This parameter is only supported for Azure ML compute types. */ + dockerArgs?: string; + /** Size of the docker container's shared memory block. This should be in the format of (number)(unit) where number as to be greater than 0 and the unit can be one of b(bytes), k(kilobytes), m(megabytes), or g(gigabytes). */ + shmSize?: string; } -/** Defines headers for OnlineDeployments_update operation. */ -export interface OnlineDeploymentsUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** Batch inference settings per deployment. */ +export interface BatchDeploymentProperties + extends EndpointDeploymentPropertiesBase { + /** Compute target for batch inference operation. */ + compute?: string; + /** Properties relevant to different deployment types. */ + deploymentConfiguration?: BatchDeploymentConfigurationUnion; + /** + * Error threshold, if the error count for the entire input goes above this value, + * the batch inference will be aborted. Range is [-1, int.MaxValue]. + * For FileDataset, this value is the count of file failures. + * For TabularDataset, this value is the count of record failures. + * If set to -1 (the lower bound), all failures during batch inference will be ignored. + */ + errorThreshold?: number; + /** Logging level for batch inference operation. */ + loggingLevel?: BatchLoggingLevel; + /** Indicates maximum number of parallelism per instance. */ + maxConcurrencyPerInstance?: number; + /** + * Size of the mini-batch passed to each batch invocation. + * For FileDataset, this is the number of files per mini-batch. + * For TabularDataset, this is the size of the records in bytes, per mini-batch. + */ + miniBatchSize?: number; + /** Reference to the model asset for the endpoint deployment. */ + model?: AssetReferenceBaseUnion; + /** Indicates how the output will be organized. */ + outputAction?: BatchOutputAction; + /** Customized output file name for append_row output action. */ + outputFileName?: string; + /** + * Provisioning state for the endpoint deployment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: DeploymentProvisioningState; + /** + * Indicates compute configuration for the job. + * If not provided, will default to the defaults defined in ResourceConfiguration. + */ + resources?: DeploymentResourceConfiguration; + /** + * Retry Settings for the batch inference operation. + * If not provided, will default to the defaults defined in BatchRetrySettings. + */ + retrySettings?: BatchRetrySettings; } -/** Defines headers for OnlineDeployments_createOrUpdate operation. */ -export interface OnlineDeploymentsCreateOrUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation status. */ - azureAsyncOperation?: string; +export interface OnlineDeploymentProperties + extends EndpointDeploymentPropertiesBase { + /** If true, enables Application Insights logging. */ + appInsightsEnabled?: boolean; + /** The mdc configuration, we disable mdc when it's null. */ + dataCollector?: DataCollector; + /** If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. */ + egressPublicNetworkAccess?: EgressPublicNetworkAccessType; + /** [Required] The compute type of the endpoint. */ + endpointComputeType: EndpointComputeType; + /** Compute instance type. */ + instanceType?: string; + /** Liveness probe monitors the health of the container regularly. */ + livenessProbe?: ProbeSettings; + /** The URI path to the model. */ + model?: string; + /** The path to mount the model in custom container. */ + modelMountPath?: string; + /** + * Provisioning state for the endpoint deployment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: DeploymentProvisioningState; + /** Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe. */ + readinessProbe?: ProbeSettings; + /** Request settings for the deployment. */ + requestSettings?: OnlineRequestSettings; + /** + * Scale settings for the deployment. + * If it is null or not provided, + * it defaults to TargetUtilizationScaleSettings for KubernetesOnlineDeployment + * and to DefaultScaleSettings for ManagedOnlineDeployment. + */ + scaleSettings?: OnlineScaleSettingsUnion; } -/** Defines headers for Schedules_delete operation. */ -export interface SchedulesDeleteHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation result. */ - location?: string; - /** Duration the client should wait between requests, in seconds. */ - retryAfter?: number; +/** Account key datastore credentials configuration. */ +export interface AccountKeyDatastoreCredentials extends DatastoreCredentials { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "AccountKey"; + /** [Required] Storage account secrets. */ + secrets: AccountKeyDatastoreSecrets; } -/** Defines headers for Schedules_createOrUpdate operation. */ -export interface SchedulesCreateOrUpdateHeaders { - /** Timeout for the client to use when polling the asynchronous operation. */ - xMsAsyncOperationTimeout?: string; - /** URI to poll for asynchronous operation status. */ - azureAsyncOperation?: string; +/** Certificate datastore credentials configuration. */ +export interface CertificateDatastoreCredentials extends DatastoreCredentials { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "Certificate"; + /** Authority URL used for authentication. */ + authorityUrl?: string; + /** [Required] Service principal client ID. */ + clientId: string; + /** Resource the service principal has access to. */ + resourceUrl?: string; + /** [Required] Service principal secrets. */ + secrets: CertificateDatastoreSecrets; + /** [Required] ID of the tenant to which the service principal belongs. */ + tenantId: string; + /** [Required] Thumbprint of the certificate used for authentication. */ + thumbprint: string; } -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Unknown */ - Unknown = "Unknown", - /** Updating */ - Updating = "Updating", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled" +export interface KerberosKeytabCredentials + extends KerberosCredentials, + DatastoreCredentials { + /** [Required] Keytab secrets. */ + secrets: KerberosKeytabSecrets; } -/** - * 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 ProvisioningState = string; - -/** Known values of {@link EncryptionStatus} that the service accepts. */ -export enum KnownEncryptionStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +export interface KerberosPasswordCredentials + extends KerberosCredentials, + DatastoreCredentials { + /** [Required] Kerberos password secrets. */ + secrets: KerberosPasswordSecrets; } -/** - * 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 EncryptionStatus = string; - -/** Known values of {@link PublicNetworkAccess} that the service accepts. */ -export enum KnownPublicNetworkAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Empty/none datastore credentials. */ +export interface NoneDatastoreCredentials extends DatastoreCredentials { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "None"; } -/** - * 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 PublicNetworkAccess = string; - -/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */ -export enum KnownPrivateEndpointServiceConnectionStatus { - /** Pending */ - Pending = "Pending", - /** Approved */ - Approved = "Approved", - /** Rejected */ - Rejected = "Rejected", - /** Disconnected */ - Disconnected = "Disconnected", - /** Timeout */ - Timeout = "Timeout" +/** SAS datastore credentials configuration. */ +export interface SasDatastoreCredentials extends DatastoreCredentials { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "Sas"; + /** [Required] Storage container secrets. */ + secrets: SasDatastoreSecrets; } -/** - * 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 PrivateEndpointServiceConnectionStatus = string; +/** Service Principal datastore credentials configuration. */ +export interface ServicePrincipalDatastoreCredentials + extends DatastoreCredentials { + /** Polymorphic discriminator, which specifies the different types this object can be */ + credentialsType: "ServicePrincipal"; + /** Authority URL used for authentication. */ + authorityUrl?: string; + /** [Required] Service principal client ID. */ + clientId: string; + /** Resource the service principal has access to. */ + resourceUrl?: string; + /** [Required] Service principal secrets. */ + secrets: ServicePrincipalDatastoreSecrets; + /** [Required] ID of the tenant to which the service principal belongs. */ + tenantId: string; +} -/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ -export enum KnownPrivateEndpointConnectionProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Failed */ - Failed = "Failed" +/** Datastore account key secrets. */ +export interface AccountKeyDatastoreSecrets extends DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "AccountKey"; + /** Storage account key. */ + key?: 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 PrivateEndpointConnectionProvisioningState = string; +/** Datastore certificate secrets. */ +export interface CertificateDatastoreSecrets extends DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "Certificate"; + /** Service principal certificate. */ + certificate?: string; +} -/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ -export enum KnownManagedServiceIdentityType { - /** None */ - None = "None", - /** SystemAssigned */ - SystemAssigned = "SystemAssigned", - /** UserAssigned */ - UserAssigned = "UserAssigned", - /** SystemAssignedUserAssigned */ - SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" +export interface KerberosKeytabSecrets extends DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "KerberosKeytab"; + /** Kerberos keytab secret. */ + kerberosKeytab?: string; } -/** - * Defines values for ManagedServiceIdentityType. \ - * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **SystemAssigned** \ - * **UserAssigned** \ - * **SystemAssigned,UserAssigned** - */ -export type ManagedServiceIdentityType = string; +export interface KerberosPasswordSecrets extends DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "KerberosPassword"; + /** Kerberos password secret. */ + kerberosPassword?: string; +} -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key" +/** Datastore SAS secrets. */ +export interface SasDatastoreSecrets extends DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "Sas"; + /** Storage container SAS token. */ + sasToken?: 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 CreatedByType = string; +/** Datastore Service Principal secrets. */ +export interface ServicePrincipalDatastoreSecrets extends DatastoreSecrets { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretsType: "ServicePrincipal"; + /** Service principal secret. */ + clientSecret?: string; +} -/** Known values of {@link DiagnoseResultLevel} that the service accepts. */ -export enum KnownDiagnoseResultLevel { - /** Warning */ - Warning = "Warning", - /** Error */ - Error = "Error", - /** Information */ - Information = "Information" +/** Webhook details specific for Azure DevOps */ +export interface AzureDevOpsWebhook extends Webhook { + /** Polymorphic discriminator, which specifies the different types this object can be */ + webhookType: "AzureDevOps"; } -/** - * 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 DiagnoseResultLevel = string; +export interface RecurrenceTrigger extends TriggerBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + triggerType: "Recurrence"; + /** [Required] The frequency to trigger schedule. */ + frequency: RecurrenceFrequency; + /** [Required] Specifies schedule interval in conjunction with frequency */ + interval: number; + /** The recurrence schedule. */ + schedule?: RecurrenceSchedule; +} -/** Known values of {@link UsageUnit} that the service accepts. */ -export enum KnownUsageUnit { - /** Count */ - Count = "Count" +export interface CronTrigger extends TriggerBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + triggerType: "Cron"; + /** + * [Required] Specifies cron expression of schedule. + * The expression should follow NCronTab format. + */ + expression: 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 UsageUnit = string; +/** Inference pool configuration */ +export interface InferencePoolProperties extends PropertiesBase { + /** Code configuration for the inference pool. */ + codeConfiguration?: CodeConfiguration; + /** EnvironmentConfiguration for the inference pool. */ + environmentConfiguration?: PoolEnvironmentConfiguration; + /** ModelConfiguration for the inference pool. */ + modelConfiguration?: PoolModelConfiguration; + /** [Required] Compute instance type. */ + nodeSkuType: string; + /** + * Provisioning state for the pool. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: PoolProvisioningState; + /** Request configuration for the inference pool. */ + requestConfiguration?: RequestConfiguration; +} -/** Known values of {@link BillingCurrency} that the service accepts. */ -export enum KnownBillingCurrency { - /** USD */ - USD = "USD" +/** Inference group configuration */ +export interface InferenceGroup extends PropertiesBase { + /** + * Capacity to be used from the pool's reserved capacity. + * optional + */ + bonusExtraCapacity?: number; + /** Metadata for the inference group. */ + data?: string; + /** Priority of the group within the N:Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20230801Preview.Pools.InferencePools. */ + priority?: number; + /** + * Provisioning state for the inference group. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: PoolProvisioningState; } -/** - * 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 BillingCurrency = string; +/** InferenceEndpoint configuration */ +export interface InferenceEndpoint extends PropertiesBase { + /** [Required] Authentication mode for the endpoint. */ + authMode: AuthMode; + /** + * Endpoint URI for the inference endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endpointUri?: string; + /** + * Provisioning state for the endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: PoolProvisioningState; +} -/** Known values of {@link UnitOfMeasure} that the service accepts. */ -export enum KnownUnitOfMeasure { - /** OneHour */ - OneHour = "OneHour" +/** AML Token identity configuration. */ +export interface AmlToken extends IdentityConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "AMLToken"; } -/** - * 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 UnitOfMeasure = string; +/** Managed identity configuration. */ +export interface ManagedIdentity extends IdentityConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "Managed"; + /** Specifies a user-assigned identity by client ID. For system-assigned, do not set this field. */ + clientId?: string; + /** Specifies a user-assigned identity by object ID. For system-assigned, do not set this field. */ + objectId?: string; + /** Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field. */ + resourceId?: string; +} -/** Known values of {@link VMPriceOSType} that the service accepts. */ -export enum KnownVMPriceOSType { - /** Linux */ - Linux = "Linux", - /** Windows */ - Windows = "Windows" +/** User identity configuration. */ +export interface UserIdentity extends IdentityConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + identityType: "UserIdentity"; } -/** - * 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 VMPriceOSType = string; +/** All nodes means the service will be running on all of the nodes of the job */ +export interface AllNodes extends Nodes { + /** Polymorphic discriminator, which specifies the different types this object can be */ + nodesValueType: "All"; +} -/** Known values of {@link VMTier} that the service accepts. */ -export enum KnownVMTier { - /** Standard */ - Standard = "Standard", - /** LowPriority */ - LowPriority = "LowPriority", - /** Spot */ - Spot = "Spot" +/** Properties of a labeling job for image data */ +export interface LabelingJobImageProperties extends LabelingJobMediaProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mediaType: "Image"; + /** Annotation type of image labeling job. */ + annotationType?: ImageAnnotationType; } -/** - * 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 VMTier = string; +/** Properties of a labeling job for text data */ +export interface LabelingJobTextProperties extends LabelingJobMediaProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mediaType: "Text"; + /** Annotation type of text labeling job. */ + annotationType?: TextAnnotationType; +} -/** Known values of {@link QuotaUnit} that the service accepts. */ -export enum KnownQuotaUnit { - /** Count */ - Count = "Count" +/** Labeling MLAssist configuration definition when MLAssist is disabled */ +export interface MLAssistConfigurationDisabled extends MLAssistConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mlAssist: "Disabled"; } -/** - * 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 QuotaUnit = string; +/** Labeling MLAssist configuration definition when MLAssist is enabled */ +export interface MLAssistConfigurationEnabled extends MLAssistConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mlAssist: "Enabled"; + /** [Required] AML compute binding used in inferencing. */ + inferencingComputeBinding: string; + /** [Required] AML compute binding used in training. */ + trainingComputeBinding: string; +} -/** Known values of {@link Status} that the service accepts. */ -export enum KnownStatus { - /** Undefined */ - Undefined = "Undefined", - /** Success */ - Success = "Success", - /** Failure */ - Failure = "Failure", - /** InvalidQuotaBelowClusterMinimum */ - InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", - /** InvalidQuotaExceedsSubscriptionLimit */ - InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", - /** InvalidVMFamilyName */ - InvalidVMFamilyName = "InvalidVMFamilyName", - /** OperationNotSupportedForSku */ - OperationNotSupportedForSku = "OperationNotSupportedForSku", - /** OperationNotEnabledForRegion */ - OperationNotEnabledForRegion = "OperationNotEnabledForRegion" +export interface CocoExportSummary extends ExportSummary { + /** Polymorphic discriminator, which specifies the different types this object can be */ + format: "Coco"; + /** + * The container name to which the labels will be exported. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly containerName?: string; + /** + * The output path where the labels will be exported. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly snapshotPath?: string; } -/** - * 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 Status = string; +export interface CsvExportSummary extends ExportSummary { + /** Polymorphic discriminator, which specifies the different types this object can be */ + format: "CSV"; + /** + * The container name to which the labels will be exported. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly containerName?: string; + /** + * The output path where the labels will be exported. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly snapshotPath?: string; +} -/** Known values of {@link ComputeType} that the service accepts. */ -export enum KnownComputeType { - /** AKS */ - AKS = "AKS", - /** Kubernetes */ - Kubernetes = "Kubernetes", - /** AmlCompute */ - AmlCompute = "AmlCompute", - /** ComputeInstance */ - ComputeInstance = "ComputeInstance", - /** DataFactory */ - DataFactory = "DataFactory", - /** VirtualMachine */ - VirtualMachine = "VirtualMachine", - /** HDInsight */ - HDInsight = "HDInsight", - /** Databricks */ - Databricks = "Databricks", - /** DataLakeAnalytics */ - DataLakeAnalytics = "DataLakeAnalytics", - /** SynapseSpark */ - SynapseSpark = "SynapseSpark" +export interface DatasetExportSummary extends ExportSummary { + /** Polymorphic discriminator, which specifies the different types this object can be */ + format: "Dataset"; + /** + * The unique name of the labeled data asset. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly labeledAssetName?: string; } -/** - * 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 ComputeType = string; +export interface DefaultScaleSettings extends OnlineScaleSettings { + /** Polymorphic discriminator, which specifies the different types this object can be */ + scaleType: "Default"; +} -/** Known values of {@link UnderlyingResourceAction} that the service accepts. */ -export enum KnownUnderlyingResourceAction { - /** Delete */ - Delete = "Delete", - /** Detach */ - Detach = "Detach" +export interface TargetUtilizationScaleSettings extends OnlineScaleSettings { + /** Polymorphic discriminator, which specifies the different types this object can be */ + scaleType: "TargetUtilization"; + /** The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances. */ + maxInstances?: number; + /** The minimum number of instances to always be present. */ + minInstances?: number; + /** The polling interval in ISO 8691 format. Only supports duration with precision as low as Seconds. */ + pollingInterval?: string; + /** Target CPU usage for the autoscaler. */ + targetUtilizationPercentage?: number; } -/** - * 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 UnderlyingResourceAction = string; +export interface CreateMonitorAction extends ScheduleActionBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "CreateMonitor"; + /** [Required] Defines the monitor. */ + monitorDefinition: MonitorDefinition; +} -/** Known values of {@link NodeState} that the service accepts. */ -export enum KnownNodeState { - /** Idle */ - Idle = "idle", - /** Running */ - Running = "running", - /** Preparing */ - Preparing = "preparing", - /** Unusable */ - Unusable = "unusable", - /** Leaving */ - Leaving = "leaving", - /** Preempted */ - Preempted = "preempted" +export interface EndpointScheduleAction extends ScheduleActionBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "InvokeBatchEndpoint"; + /** + * [Required] Defines Schedule action definition details. + * + */ + endpointInvocationDefinition: Record; } -/** - * 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 NodeState = string; - -/** Known values of {@link ConnectionAuthType} that the service accepts. */ -export enum KnownConnectionAuthType { - /** PAT */ - PAT = "PAT", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** UsernamePassword */ - UsernamePassword = "UsernamePassword", - /** None */ - None = "None", - /** SAS */ - SAS = "SAS" +export interface ImportDataAction extends ScheduleActionBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "ImportData"; + /** [Required] Defines Schedule action definition details. */ + dataImportDefinition: DataImport; } -/** - * Defines values for ConnectionAuthType. \ - * {@link KnownConnectionAuthType} can be used interchangeably with ConnectionAuthType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **PAT** \ - * **ManagedIdentity** \ - * **UsernamePassword** \ - * **None** \ - * **SAS** - */ -export type ConnectionAuthType = string; +export interface JobScheduleAction extends ScheduleActionBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "CreateJob"; + /** [Required] Defines Schedule action definition details. */ + jobDefinition: JobBasePropertiesUnion; +} -/** Known values of {@link ConnectionCategory} that the service accepts. */ -export enum KnownConnectionCategory { - /** PythonFeed */ - PythonFeed = "PythonFeed", - /** ContainerRegistry */ - ContainerRegistry = "ContainerRegistry", - /** Git */ - Git = "Git" +/** The PE network resource that is linked to this PE connection. */ +export interface PrivateEndpointResource extends PrivateEndpoint { + /** The subnetId that the private endpoint is connected to. */ + subnetArmId?: string; } -/** - * Defines values for ConnectionCategory. \ - * {@link KnownConnectionCategory} can be used interchangeably with ConnectionCategory, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **PythonFeed** \ - * **ContainerRegistry** \ - * **Git** - */ -export type ConnectionCategory = string; +/** FQDN Outbound Rule for the managed network of a machine learning workspace. */ +export interface FqdnOutboundRule extends OutboundRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "FQDN"; + destination?: string; +} -/** Known values of {@link ValueFormat} that the service accepts. */ -export enum KnownValueFormat { - /** Json */ - Json = "JSON" +/** Private Endpoint Outbound Rule for the managed network of a machine learning workspace. */ +export interface PrivateEndpointOutboundRule extends OutboundRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "PrivateEndpoint"; + /** Private Endpoint destination for a Private Endpoint Outbound Rule for the managed network of a machine learning workspace. */ + destination?: PrivateEndpointDestination; } -/** - * 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 ValueFormat = string; +/** Service Tag Outbound Rule for the managed network of a machine learning workspace. */ +export interface ServiceTagOutboundRule extends OutboundRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ServiceTag"; + /** Service Tag destination for a Service Tag Outbound Rule for the managed network of a machine learning workspace. */ + destination?: ServiceTagDestination; +} -/** Known values of {@link EndpointProvisioningState} that the service accepts. */ -export enum KnownEndpointProvisioningState { - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Updating */ - Updating = "Updating", - /** Canceled */ - Canceled = "Canceled" +export interface AccessKeyAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "AccessKey"; + credentials?: WorkspaceConnectionAccessKey; } /** - * Defines values for EndpointProvisioningState. \ - * {@link KnownEndpointProvisioningState} can be used interchangeably with EndpointProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Deleting** \ - * **Succeeded** \ - * **Failed** \ - * **Updating** \ - * **Canceled** + * This connection type covers the generic ApiKey auth connection categories, for examples: + * AzureOpenAI: + * Category:= AzureOpenAI + * AuthType:= ApiKey (as type discriminator) + * Credentials:= {ApiKey} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey + * Target:= {ApiBase} + * + * CognitiveService: + * Category:= CognitiveService + * AuthType:= ApiKey (as type discriminator) + * Credentials:= {SubscriptionKey} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey + * Target:= ServiceRegion={serviceRegion} + * + * CognitiveSearch: + * Category:= CognitiveSearch + * AuthType:= ApiKey (as type discriminator) + * Credentials:= {Key} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey + * Target:= {Endpoint} + * + * Use Metadata property bag for ApiType, ApiVersion, Kind and other metadata fields */ -export type EndpointProvisioningState = string; - -/** Known values of {@link EndpointAuthMode} that the service accepts. */ -export enum KnownEndpointAuthMode { - /** AMLToken */ - AMLToken = "AMLToken", - /** Key */ - Key = "Key", - /** AADToken */ - AADToken = "AADToken" +export interface ApiKeyAuthWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "ApiKey"; + /** Api key object for workspace connection credential. */ + credentials?: WorkspaceConnectionApiKey; } /** - * Defines values for EndpointAuthMode. \ - * {@link KnownEndpointAuthMode} can be used interchangeably with EndpointAuthMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AMLToken** \ - * **Key** \ - * **AADToken** + * Category:= CustomKeys + * AuthType:= CustomKeys (as type discriminator) + * Credentials:= {CustomKeys} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.CustomKeys + * Target:= {any value} + * Use Metadata property bag for ApiVersion and other metadata fields */ -export type EndpointAuthMode = string; - -/** Known values of {@link BatchLoggingLevel} that the service accepts. */ -export enum KnownBatchLoggingLevel { - /** Info */ - Info = "Info", - /** Warning */ - Warning = "Warning", - /** Debug */ - Debug = "Debug" +export interface CustomKeysWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "CustomKeys"; + /** Custom Keys credential object */ + credentials?: CustomKeys; } -/** - * Defines values for BatchLoggingLevel. \ - * {@link KnownBatchLoggingLevel} can be used interchangeably with BatchLoggingLevel, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Info** \ - * **Warning** \ - * **Debug** - */ -export type BatchLoggingLevel = string; +export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "ManagedIdentity"; + credentials?: WorkspaceConnectionManagedIdentity; +} -/** Known values of {@link ReferenceType} that the service accepts. */ -export enum KnownReferenceType { - /** Id */ - Id = "Id", - /** DataPath */ - DataPath = "DataPath", - /** OutputPath */ - OutputPath = "OutputPath" +export interface NoneAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "None"; } -/** - * Defines values for ReferenceType. \ - * {@link KnownReferenceType} can be used interchangeably with ReferenceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Id** \ - * **DataPath** \ - * **OutputPath** - */ -export type ReferenceType = string; +export interface PATAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "PAT"; + credentials?: WorkspaceConnectionPersonalAccessToken; +} -/** Known values of {@link BatchOutputAction} that the service accepts. */ -export enum KnownBatchOutputAction { - /** SummaryOnly */ - SummaryOnly = "SummaryOnly", - /** AppendRow */ - AppendRow = "AppendRow" +export interface SASAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "SAS"; + credentials?: WorkspaceConnectionSharedAccessSignature; } -/** - * Defines values for BatchOutputAction. \ - * {@link KnownBatchOutputAction} can be used interchangeably with BatchOutputAction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **SummaryOnly** \ - * **AppendRow** - */ -export type BatchOutputAction = string; +export interface ServicePrincipalAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "ServicePrincipal"; + credentials?: WorkspaceConnectionServicePrincipal; +} -/** Known values of {@link DeploymentProvisioningState} that the service accepts. */ -export enum KnownDeploymentProvisioningState { - /** Creating */ - Creating = "Creating", - /** Deleting */ - Deleting = "Deleting", - /** Scaling */ - Scaling = "Scaling", - /** Updating */ - Updating = "Updating", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled" +export interface UsernamePasswordAuthTypeWorkspaceConnectionProperties + extends WorkspaceConnectionPropertiesV2 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: "UsernamePassword"; + credentials?: WorkspaceConnectionUsernamePassword; } -/** - * Defines values for DeploymentProvisioningState. \ - * {@link KnownDeploymentProvisioningState} can be used interchangeably with DeploymentProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Deleting** \ - * **Scaling** \ - * **Updating** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** - */ -export type DeploymentProvisioningState = string; +export interface AllFeatures extends MonitoringFeatureFilterBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + filterType: "AllFeatures"; +} -/** Known values of {@link ListViewType} that the service accepts. */ -export enum KnownListViewType { - /** ActiveOnly */ - ActiveOnly = "ActiveOnly", - /** ArchivedOnly */ - ArchivedOnly = "ArchivedOnly", - /** All */ - All = "All" +export interface FeatureSubset extends MonitoringFeatureFilterBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + filterType: "FeatureSubset"; + /** [Required] The list of features to include. */ + features: string[]; } -/** - * Defines values for ListViewType. \ - * {@link KnownListViewType} can be used interchangeably with ListViewType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ActiveOnly** \ - * **ArchivedOnly** \ - * **All** - */ -export type ListViewType = string; +export interface TopNFeaturesByAttribution extends MonitoringFeatureFilterBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + filterType: "TopNByAttribution"; + /** The number of top features to include. */ + top?: number; +} -/** Known values of {@link DataType} that the service accepts. */ -export enum KnownDataType { - /** UriFile */ - UriFile = "uri_file", - /** UriFolder */ - UriFolder = "uri_folder", - /** Mltable */ - Mltable = "mltable" +/** AML token compute identity definition. */ +export interface AmlTokenComputeIdentity extends MonitorComputeIdentityBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeIdentityType: "AmlToken"; } -/** - * Defines values for DataType. \ - * {@link KnownDataType} can be used interchangeably with DataType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **uri_file** \ - * **uri_folder** \ - * **mltable** - */ -export type DataType = string; +/** Managed compute identity definition. */ +export interface ManagedComputeIdentity extends MonitorComputeIdentityBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeIdentityType: "ManagedIdentity"; + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; +} -/** Known values of {@link CredentialsType} that the service accepts. */ -export enum KnownCredentialsType { - /** AccountKey */ - AccountKey = "AccountKey", - /** Certificate */ - Certificate = "Certificate", - /** None */ - None = "None", - /** Sas */ - Sas = "Sas", - /** ServicePrincipal */ - ServicePrincipal = "ServicePrincipal" +export interface MLTableJobInput extends AssetJobInput, JobInput {} + +export interface CustomModelJobInput extends AssetJobInput, JobInput {} + +export interface MLFlowModelJobInput extends AssetJobInput, JobInput {} + +export interface TritonModelJobInput extends AssetJobInput, JobInput {} + +export interface UriFileJobInput extends AssetJobInput, JobInput {} + +export interface UriFolderJobInput extends AssetJobInput, JobInput {} + +export interface CustomModelJobOutput extends AssetJobOutput, JobOutput {} + +export interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput {} + +export interface MLTableJobOutput extends AssetJobOutput, JobOutput {} + +export interface TritonModelJobOutput extends AssetJobOutput, JobOutput {} + +export interface UriFileJobOutput extends AssetJobOutput, JobOutput {} + +export interface UriFolderJobOutput extends AssetJobOutput, JobOutput {} + +/** Forecast horizon determined automatically by system. */ +export interface AutoForecastHorizon extends ForecastHorizon { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; } -/** - * Defines values for CredentialsType. \ - * {@link KnownCredentialsType} can be used interchangeably with CredentialsType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AccountKey** \ - * **Certificate** \ - * **None** \ - * **Sas** \ - * **ServicePrincipal** - */ -export type CredentialsType = string; +/** The desired maximum forecast horizon in units of time-series frequency. */ +export interface CustomForecastHorizon extends ForecastHorizon { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Custom"; + /** [Required] Forecast horizon value. */ + value: number; +} -/** Known values of {@link DatastoreType} that the service accepts. */ -export enum KnownDatastoreType { - /** AzureBlob */ - AzureBlob = "AzureBlob", - /** AzureDataLakeGen1 */ - AzureDataLakeGen1 = "AzureDataLakeGen1", - /** AzureDataLakeGen2 */ - AzureDataLakeGen2 = "AzureDataLakeGen2", - /** AzureFile */ - AzureFile = "AzureFile" +/** Classification task in AutoML Table vertical. */ +export interface Classification extends TableVertical, AutoMLVertical { + /** Positive label for binary metrics calculation. */ + positiveLabel?: string; + /** Primary metric for the task. */ + primaryMetric?: ClassificationPrimaryMetrics; + /** Inputs for training phase for an AutoML Job. */ + trainingSettings?: ClassificationTrainingSettings; +} + +/** Forecasting task in AutoML Table vertical. */ +export interface Forecasting extends TableVertical, AutoMLVertical { + /** Forecasting task specific inputs. */ + forecastingSettings?: ForecastingSettings; + /** Primary metric for forecasting task. */ + primaryMetric?: ForecastingPrimaryMetrics; + /** Inputs for training phase for an AutoML Job. */ + trainingSettings?: ForecastingTrainingSettings; } /** - * Defines values for DatastoreType. \ - * {@link KnownDatastoreType} can be used interchangeably with DatastoreType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AzureBlob** \ - * **AzureDataLakeGen1** \ - * **AzureDataLakeGen2** \ - * **AzureFile** + * Image Classification. Multi-class image classification is used when an image is classified with only a single label + * from a set of classes - e.g. each image is classified as either an image of a 'cat' or a 'dog' or a 'duck'. */ -export type DatastoreType = string; - -/** Known values of {@link SecretsType} that the service accepts. */ -export enum KnownSecretsType { - /** AccountKey */ - AccountKey = "AccountKey", - /** Certificate */ - Certificate = "Certificate", - /** Sas */ - Sas = "Sas", - /** ServicePrincipal */ - ServicePrincipal = "ServicePrincipal" +export interface ImageClassification + extends ImageClassificationBase, + AutoMLVertical { + /** Primary metric to optimize for this task. */ + primaryMetric?: ClassificationPrimaryMetrics; } /** - * Defines values for SecretsType. \ - * {@link KnownSecretsType} can be used interchangeably with SecretsType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AccountKey** \ - * **Certificate** \ - * **Sas** \ - * **ServicePrincipal** + * Image Classification Multilabel. Multi-label image classification is used when an image could have one or more labels + * from a set of labels - e.g. an image could be labeled with both 'cat' and 'dog'. */ -export type SecretsType = string; - -/** Known values of {@link AutoRebuildSetting} that the service accepts. */ -export enum KnownAutoRebuildSetting { - /** Disabled */ - Disabled = "Disabled", - /** OnBaseImageUpdate */ - OnBaseImageUpdate = "OnBaseImageUpdate" +export interface ImageClassificationMultilabel + extends ImageClassificationBase, + AutoMLVertical { + /** Primary metric to optimize for this task. */ + primaryMetric?: ClassificationMultilabelPrimaryMetrics; } /** - * Defines values for AutoRebuildSetting. \ - * {@link KnownAutoRebuildSetting} can be used interchangeably with AutoRebuildSetting, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Disabled** \ - * **OnBaseImageUpdate** + * Image Instance Segmentation. Instance segmentation is used to identify objects in an image at the pixel level, + * drawing a polygon around each object in the image. */ -export type AutoRebuildSetting = string; - -/** Known values of {@link EnvironmentType} that the service accepts. */ -export enum KnownEnvironmentType { - /** Curated */ - Curated = "Curated", - /** UserCreated */ - UserCreated = "UserCreated" +export interface ImageInstanceSegmentation + extends ImageObjectDetectionBase, + AutoMLVertical { + /** Primary metric to optimize for this task. */ + primaryMetric?: InstanceSegmentationPrimaryMetrics; } /** - * Defines values for EnvironmentType. \ - * {@link KnownEnvironmentType} can be used interchangeably with EnvironmentType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Curated** \ - * **UserCreated** + * Image Object Detection. Object detection is used to identify objects in an image and locate each object with a + * bounding box e.g. locate all dogs and cats in an image and draw a bounding box around each. */ -export type EnvironmentType = string; +export interface ImageObjectDetection + extends ImageObjectDetectionBase, + AutoMLVertical { + /** Primary metric to optimize for this task. */ + primaryMetric?: ObjectDetectionPrimaryMetrics; +} -/** Known values of {@link OperatingSystemType} that the service accepts. */ -export enum KnownOperatingSystemType { - /** Linux */ - Linux = "Linux", - /** Windows */ - Windows = "Windows" +/** Regression task in AutoML Table vertical. */ +export interface Regression extends TableVertical, AutoMLVertical { + /** Primary metric for regression task. */ + primaryMetric?: RegressionPrimaryMetrics; + /** Inputs for training phase for an AutoML Job. */ + trainingSettings?: RegressionTrainingSettings; } /** - * Defines values for OperatingSystemType. \ - * {@link KnownOperatingSystemType} can be used interchangeably with OperatingSystemType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Linux** \ - * **Windows** + * Text Classification task in AutoML NLP vertical. + * NLP - Natural Language Processing. */ -export type OperatingSystemType = string; - -/** Known values of {@link IdentityConfigurationType} that the service accepts. */ -export enum KnownIdentityConfigurationType { - /** Managed */ - Managed = "Managed", - /** AMLToken */ - AMLToken = "AMLToken", - /** UserIdentity */ - UserIdentity = "UserIdentity" +export interface TextClassification extends NlpVertical, AutoMLVertical { + /** Primary metric for Text-Classification task. */ + primaryMetric?: ClassificationPrimaryMetrics; } /** - * Defines values for IdentityConfigurationType. \ - * {@link KnownIdentityConfigurationType} can be used interchangeably with IdentityConfigurationType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Managed** \ - * **AMLToken** \ - * **UserIdentity** + * Text Classification Multilabel task in AutoML NLP vertical. + * NLP - Natural Language Processing. */ -export type IdentityConfigurationType = string; - -/** Known values of {@link JobType} that the service accepts. */ -export enum KnownJobType { - /** AutoML */ - AutoML = "AutoML", - /** Command */ - Command = "Command", - /** Sweep */ - Sweep = "Sweep", - /** Pipeline */ - Pipeline = "Pipeline" +export interface TextClassificationMultilabel + extends NlpVertical, + AutoMLVertical { + /** + * Primary metric for Text-Classification-Multilabel task. + * Currently only Accuracy is supported as primary metric, hence user need not set it explicitly. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly primaryMetric?: ClassificationMultilabelPrimaryMetrics; } /** - * Defines values for JobType. \ - * {@link KnownJobType} can be used interchangeably with JobType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AutoML** \ - * **Command** \ - * **Sweep** \ - * **Pipeline** + * Text-NER task in AutoML NLP vertical. + * NER - Named Entity Recognition. + * NLP - Natural Language Processing. */ -export type JobType = string; - -/** Known values of {@link JobStatus} that the service accepts. */ -export enum KnownJobStatus { - /** Run hasn't started yet. */ - NotStarted = "NotStarted", - /** Run has started. The user has a run ID. */ - Starting = "Starting", - /** (Not used currently) It will be used if ES is creating the compute target. */ - Provisioning = "Provisioning", - /** The run environment is being prepared. */ - Preparing = "Preparing", - /** The job is queued in the compute target. For example, in BatchAI the job is in queued state, while waiting for all required nodes to be ready. */ - Queued = "Queued", - /** The job started to run in the compute target. */ - Running = "Running", - /** Job is completed in the target. It is in output collection state now. */ - Finalizing = "Finalizing", - /** Cancellation has been requested for the job. */ - CancelRequested = "CancelRequested", - /** Job completed successfully. This reflects that both the job itself and output collection states completed successfully */ - Completed = "Completed", - /** Job failed. */ - Failed = "Failed", - /** Following cancellation request, the job is now successfully canceled. */ - Canceled = "Canceled", +export interface TextNer extends NlpVertical, AutoMLVertical { /** - * When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. - * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. + * Primary metric for Text-NER task. + * Only 'Accuracy' is supported for Text-NER, so user need not set this explicitly. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - NotResponding = "NotResponding", - /** The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. */ - Paused = "Paused", - /** Default job status if not mapped to all other statuses */ - Unknown = "Unknown" + readonly primaryMetric?: ClassificationPrimaryMetrics; } -/** - * Defines values for JobStatus. \ - * {@link KnownJobStatus} can be used interchangeably with JobStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotStarted**: Run hasn't started yet. \ - * **Starting**: Run has started. The user has a run ID. \ - * **Provisioning**: (Not used currently) It will be used if ES is creating the compute target. \ - * **Preparing**: The run environment is being prepared. \ - * **Queued**: The job is queued in the compute target. For example, in BatchAI the job is in queued state, while waiting for all required nodes to be ready. \ - * **Running**: The job started to run in the compute target. \ - * **Finalizing**: Job is completed in the target. It is in output collection state now. \ - * **CancelRequested**: Cancellation has been requested for the job. \ - * **Completed**: Job completed successfully. This reflects that both the job itself and output collection states completed successfully \ - * **Failed**: Job failed. \ - * **Canceled**: Following cancellation request, the job is now successfully canceled. \ - * **NotResponding**: When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. - * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. \ - * **Paused**: The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. \ - * **Unknown**: Default job status if not mapped to all other statuses - */ -export type JobStatus = string; - -/** Known values of {@link EndpointComputeType} that the service accepts. */ -export enum KnownEndpointComputeType { - /** Managed */ - Managed = "Managed", - /** Kubernetes */ - Kubernetes = "Kubernetes", - /** AzureMLCompute */ - AzureMLCompute = "AzureMLCompute" +/** Literal input type. */ +export interface LiteralJobInput extends JobInput { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobInputType: "literal"; + /** [Required] Literal value for the input. */ + value: string; } -/** - * Defines values for EndpointComputeType. \ - * {@link KnownEndpointComputeType} can be used interchangeably with EndpointComputeType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Managed** \ - * **Kubernetes** \ - * **AzureMLCompute** - */ -export type EndpointComputeType = string; - -/** Known values of {@link OrderString} that the service accepts. */ -export enum KnownOrderString { - /** CreatedAtDesc */ - CreatedAtDesc = "CreatedAtDesc", - /** CreatedAtAsc */ - CreatedAtAsc = "CreatedAtAsc", - /** UpdatedAtDesc */ - UpdatedAtDesc = "UpdatedAtDesc", - /** UpdatedAtAsc */ - UpdatedAtAsc = "UpdatedAtAsc" +/** N-Cross validations determined automatically. */ +export interface AutoNCrossValidations extends NCrossValidations { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; } -/** - * Defines values for OrderString. \ - * {@link KnownOrderString} can be used interchangeably with OrderString, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **CreatedAtDesc** \ - * **CreatedAtAsc** \ - * **UpdatedAtDesc** \ - * **UpdatedAtAsc** - */ -export type OrderString = string; +/** N-Cross validations are specified by user. */ +export interface CustomNCrossValidations extends NCrossValidations { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Custom"; + /** [Required] N-Cross validations value. */ + value: number; +} -/** Known values of {@link PublicNetworkAccessType} that the service accepts. */ -export enum KnownPublicNetworkAccessType { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +export interface AutoSeasonality extends Seasonality { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; } -/** - * Defines values for PublicNetworkAccessType. \ - * {@link KnownPublicNetworkAccessType} can be used interchangeably with PublicNetworkAccessType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type PublicNetworkAccessType = string; +export interface CustomSeasonality extends Seasonality { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Custom"; + /** [Required] Seasonality value. */ + value: number; +} -/** Known values of {@link EgressPublicNetworkAccessType} that the service accepts. */ -export enum KnownEgressPublicNetworkAccessType { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +export interface AutoTargetLags extends TargetLags { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; } -/** - * Defines values for EgressPublicNetworkAccessType. \ - * {@link KnownEgressPublicNetworkAccessType} can be used interchangeably with EgressPublicNetworkAccessType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type EgressPublicNetworkAccessType = string; +export interface CustomTargetLags extends TargetLags { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Custom"; + /** [Required] Set target lags values. */ + values: number[]; +} -/** Known values of {@link ScaleType} that the service accepts. */ -export enum KnownScaleType { - /** Default */ - Default = "Default", - /** TargetUtilization */ - TargetUtilization = "TargetUtilization" +/** Target lags rolling window determined automatically. */ +export interface AutoTargetRollingWindowSize extends TargetRollingWindowSize { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Auto"; } -/** - * Defines values for ScaleType. \ - * {@link KnownScaleType} can be used interchangeably with ScaleType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Default** \ - * **TargetUtilization** - */ -export type ScaleType = string; +export interface CustomTargetRollingWindowSize extends TargetRollingWindowSize { + /** Polymorphic discriminator, which specifies the different types this object can be */ + mode: "Custom"; + /** [Required] TargetRollingWindowSize value. */ + value: number; +} -/** Known values of {@link ContainerType} that the service accepts. */ -export enum KnownContainerType { - /** StorageInitializer */ - StorageInitializer = "StorageInitializer", - /** InferenceServer */ - InferenceServer = "InferenceServer" +export interface AzMonMonitoringAlertNotificationSettings + extends MonitoringAlertNotificationSettingsBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + alertNotificationType: "AzureMonitor"; } -/** - * Defines values for ContainerType. \ - * {@link KnownContainerType} can be used interchangeably with ContainerType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **StorageInitializer** \ - * **InferenceServer** - */ -export type ContainerType = string; +export interface EmailMonitoringAlertNotificationSettings + extends MonitoringAlertNotificationSettingsBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + alertNotificationType: "Email"; + /** Configuration for notification. */ + emailNotificationSetting?: NotificationSetting; +} -/** Known values of {@link SkuScaleType} that the service accepts. */ -export enum KnownSkuScaleType { - /** Automatically scales node count. */ - Automatic = "Automatic", - /** Node count scaled upon user request. */ - Manual = "Manual", - /** Fixed set of nodes. */ - None = "None" +/** Azure Blob datastore configuration. */ +export interface AzureBlobDatastore + extends AzureDatastore, + DatastoreProperties { + /** Storage account name. */ + accountName?: string; + /** Storage account container name. */ + containerName?: string; + /** Azure cloud endpoint for the storage account. */ + endpoint?: string; + /** Protocol used to communicate with the storage account. */ + protocol?: string; + /** Indicates which identity to use to authenticate service data access to customer's storage. */ + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; } -/** - * Defines values for SkuScaleType. \ - * {@link KnownSkuScaleType} can be used interchangeably with SkuScaleType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Automatic**: Automatically scales node count. \ - * **Manual**: Node count scaled upon user request. \ - * **None**: Fixed set of nodes. - */ -export type SkuScaleType = string; +/** Azure Data Lake Gen1 datastore configuration. */ +export interface AzureDataLakeGen1Datastore + extends AzureDatastore, + DatastoreProperties { + /** Indicates which identity to use to authenticate service data access to customer's storage. */ + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; + /** [Required] Azure Data Lake store name. */ + storeName: string; +} -/** Known values of {@link KeyType} that the service accepts. */ -export enum KnownKeyType { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" +/** Azure Data Lake Gen2 datastore configuration. */ +export interface AzureDataLakeGen2Datastore + extends AzureDatastore, + DatastoreProperties { + /** [Required] Storage account name. */ + accountName: string; + /** Azure cloud endpoint for the storage account. */ + endpoint?: string; + /** [Required] The name of the Data Lake Gen2 filesystem. */ + filesystem: string; + /** Protocol used to communicate with the storage account. */ + protocol?: string; + /** Indicates which identity to use to authenticate service data access to customer's storage. */ + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; } -/** - * Defines values for KeyType. \ - * {@link KnownKeyType} can be used interchangeably with KeyType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Primary** \ - * **Secondary** - */ -export type KeyType = string; - -/** Known values of {@link ScheduleListViewType} that the service accepts. */ -export enum KnownScheduleListViewType { - /** EnabledOnly */ - EnabledOnly = "EnabledOnly", - /** DisabledOnly */ - DisabledOnly = "DisabledOnly", - /** All */ - All = "All" +/** Azure File datastore configuration. */ +export interface AzureFileDatastore + extends AzureDatastore, + DatastoreProperties { + /** [Required] Storage account name. */ + accountName: string; + /** Azure cloud endpoint for the storage account. */ + endpoint?: string; + /** [Required] The name of the Azure file share that the datastore points to. */ + fileShareName: string; + /** Protocol used to communicate with the storage account. */ + protocol?: string; + /** Indicates which identity to use to authenticate service data access to customer's storage. */ + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; } -/** - * Defines values for ScheduleListViewType. \ - * {@link KnownScheduleListViewType} can be used interchangeably with ScheduleListViewType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **EnabledOnly** \ - * **DisabledOnly** \ - * **All** - */ -export type ScheduleListViewType = string; +/** Defines an early termination policy based on slack criteria, and a frequency and delay interval for evaluation */ +export interface BanditPolicy extends EarlyTerminationPolicy { + /** Polymorphic discriminator, which specifies the different types this object can be */ + policyType: "Bandit"; + /** Absolute distance allowed from the best performing run. */ + slackAmount?: number; + /** Ratio of the allowed distance from the best performing run. */ + slackFactor?: number; +} -/** Known values of {@link ScheduleActionType} that the service accepts. */ -export enum KnownScheduleActionType { - /** CreateJob */ - CreateJob = "CreateJob", - /** InvokeBatchEndpoint */ - InvokeBatchEndpoint = "InvokeBatchEndpoint" +/** Defines an early termination policy based on running averages of the primary metric of all runs */ +export interface MedianStoppingPolicy extends EarlyTerminationPolicy { + /** Polymorphic discriminator, which specifies the different types this object can be */ + policyType: "MedianStopping"; } -/** - * Defines values for ScheduleActionType. \ - * {@link KnownScheduleActionType} can be used interchangeably with ScheduleActionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **CreateJob** \ - * **InvokeBatchEndpoint** - */ -export type ScheduleActionType = string; +/** Defines an early termination policy that cancels a given percentage of runs at each evaluation interval. */ +export interface TruncationSelectionPolicy extends EarlyTerminationPolicy { + /** Polymorphic discriminator, which specifies the different types this object can be */ + policyType: "TruncationSelection"; + /** The percentage of runs to cancel at each evaluation interval. */ + truncationPercentage?: number; +} -/** Known values of {@link ScheduleProvisioningStatus} that the service accepts. */ -export enum KnownScheduleProvisioningStatus { - /** Creating */ - Creating = "Creating", - /** Updating */ - Updating = "Updating", - /** Deleting */ - Deleting = "Deleting", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled" +/** Defines a Sampling Algorithm that generates values based on previous values */ +export interface BayesianSamplingAlgorithm extends SamplingAlgorithm { + /** Polymorphic discriminator, which specifies the different types this object can be */ + samplingAlgorithmType: "Bayesian"; } -/** - * Defines values for ScheduleProvisioningStatus. \ - * {@link KnownScheduleProvisioningStatus} can be used interchangeably with ScheduleProvisioningStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Updating** \ - * **Deleting** \ - * **Succeeded** \ - * **Failed** \ - * **Canceled** - */ -export type ScheduleProvisioningStatus = string; +/** Defines a Sampling Algorithm that exhaustively generates every value combination in the space */ +export interface GridSamplingAlgorithm extends SamplingAlgorithm { + /** Polymorphic discriminator, which specifies the different types this object can be */ + samplingAlgorithmType: "Grid"; +} -/** Known values of {@link TriggerType} that the service accepts. */ -export enum KnownTriggerType { - /** Recurrence */ - Recurrence = "Recurrence", - /** Cron */ - Cron = "Cron" +/** Defines a Sampling Algorithm that generates values randomly */ +export interface RandomSamplingAlgorithm extends SamplingAlgorithm { + /** Polymorphic discriminator, which specifies the different types this object can be */ + samplingAlgorithmType: "Random"; + /** An optional positive number or e in string format to be used as base for log based random sampling */ + logbase?: string; + /** The specific type of random algorithm */ + rule?: RandomSamplingAlgorithmRule; + /** An optional integer to use as the seed for random number generation */ + seed?: number; } -/** - * Defines values for TriggerType. \ - * {@link KnownTriggerType} can be used interchangeably with TriggerType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Recurrence** \ - * **Cron** - */ -export type TriggerType = string; +export interface CategoricalDataDriftMetricThreshold + extends DataDriftMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Categorical"; + /** [Required] The categorical data drift metric to calculate. */ + metric: CategoricalDataDriftMetric; +} -/** Known values of {@link ClusterPurpose} that the service accepts. */ -export enum KnownClusterPurpose { - /** FastProd */ - FastProd = "FastProd", - /** DenseProd */ - DenseProd = "DenseProd", - /** DevTest */ - DevTest = "DevTest" +export interface NumericalDataDriftMetricThreshold + extends DataDriftMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Numerical"; + /** [Required] The numerical data drift metric to calculate. */ + metric: NumericalDataDriftMetric; } -/** - * 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 ClusterPurpose = string; +export interface CategoricalDataQualityMetricThreshold + extends DataQualityMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Categorical"; + /** [Required] The categorical data quality metric to calculate. */ + metric: CategoricalDataQualityMetric; +} -/** Known values of {@link SslConfigStatus} that the service accepts. */ -export enum KnownSslConfigStatus { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", - /** Auto */ - Auto = "Auto" +export interface NumericalDataQualityMetricThreshold + extends DataQualityMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Numerical"; + /** [Required] The numerical data quality metric to calculate. */ + metric: NumericalDataQualityMetric; } -/** - * Defines values for SslConfigStatus. \ - * {@link KnownSslConfigStatus} can be used interchangeably with SslConfigStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Disabled** \ - * **Enabled** \ - * **Auto** - */ -export type SslConfigStatus = string; +export interface CategoricalPredictionDriftMetricThreshold + extends PredictionDriftMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Categorical"; + /** [Required] The categorical prediction drift metric to calculate. */ + metric: CategoricalPredictionDriftMetric; +} -/** Known values of {@link LoadBalancerType} that the service accepts. */ -export enum KnownLoadBalancerType { - /** PublicIp */ - PublicIp = "PublicIp", - /** InternalLoadBalancer */ - InternalLoadBalancer = "InternalLoadBalancer" +export interface NumericalPredictionDriftMetricThreshold + extends PredictionDriftMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "Numerical"; + /** [Required] The numerical prediction drift metric to calculate. */ + metric: NumericalPredictionDriftMetric; } -/** - * 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 LoadBalancerType = string; +/** Classification Training related configuration. */ +export interface ClassificationTrainingSettings extends TrainingSettings { + /** Allowed models for classification task. */ + allowedTrainingAlgorithms?: ClassificationModels[]; + /** Blocked models for classification task. */ + blockedTrainingAlgorithms?: ClassificationModels[]; +} -/** Known values of {@link OsType} that the service accepts. */ -export enum KnownOsType { - /** Linux */ - Linux = "Linux", - /** Windows */ - Windows = "Windows" +/** Forecasting Training related configuration. */ +export interface ForecastingTrainingSettings extends TrainingSettings { + /** Allowed models for forecasting task. */ + allowedTrainingAlgorithms?: ForecastingModels[]; + /** Blocked models for forecasting task. */ + blockedTrainingAlgorithms?: ForecastingModels[]; } -/** - * 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 OsType = string; +/** Regression Training related configuration. */ +export interface RegressionTrainingSettings extends TrainingSettings { + /** Allowed models for regression task. */ + allowedTrainingAlgorithms?: RegressionModels[]; + /** Blocked models for regression task. */ + blockedTrainingAlgorithms?: RegressionModels[]; +} -/** Known values of {@link VmPriority} that the service accepts. */ -export enum KnownVmPriority { - /** Dedicated */ - Dedicated = "Dedicated", - /** LowPriority */ - LowPriority = "LowPriority" +/** Featurization Configuration. */ +export interface TableVerticalFeaturizationSettings + extends FeaturizationSettings { + /** These transformers shall not be used in featurization. */ + blockedTransformers?: BlockedTransformers[]; + /** Dictionary of column name and its type (int, float, string, datetime etc). */ + columnNameAndTypes?: { [propertyName: string]: string | null }; + /** Determines whether to use Dnn based featurizers for data featurization. */ + enableDnnFeaturization?: boolean; + /** + * Featurization mode - User can keep the default 'Auto' mode and AutoML will take care of necessary transformation of the data in featurization phase. + * If 'Off' is selected then no featurization is done. + * If 'Custom' is selected then user can specify additional inputs to customize how featurization is done. + */ + mode?: FeaturizationMode; + /** User can specify additional transformers to be used along with the columns to which it would be applied and parameters for the transformer constructor. */ + transformerParams?: { [propertyName: string]: ColumnTransformer[] | null }; } -/** - * 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 VmPriority = string; +export interface NlpVerticalFeaturizationSettings + extends FeaturizationSettings {} -/** Known values of {@link RemoteLoginPortPublicAccess} that the service accepts. */ -export enum KnownRemoteLoginPortPublicAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled", - /** NotSpecified */ - NotSpecified = "NotSpecified" +export interface ClassificationModelPerformanceMetricThreshold + extends ModelPerformanceMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + modelType: "Classification"; + /** [Required] The classification model performance to calculate. */ + metric: ClassificationModelPerformanceMetric; } -/** - * 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 RemoteLoginPortPublicAccess = string; +export interface RegressionModelPerformanceMetricThreshold + extends ModelPerformanceMetricThresholdBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + modelType: "Regression"; + /** [Required] The regression model performance metric to calculate. */ + metric: RegressionModelPerformanceMetric; +} -/** Known values of {@link AllocationState} that the service accepts. */ -export enum KnownAllocationState { - /** Steady */ - Steady = "Steady", - /** Resizing */ - Resizing = "Resizing" +/** MPI distribution configuration. */ +export interface Mpi extends DistributionConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + distributionType: "Mpi"; + /** Number of processes per MPI node. */ + processCountPerInstance?: number; } -/** - * 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 AllocationState = string; +/** PyTorch distribution configuration. */ +export interface PyTorch extends DistributionConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + distributionType: "PyTorch"; + /** Number of processes per node. */ + processCountPerInstance?: number; +} -/** Known values of {@link ApplicationSharingPolicy} that the service accepts. */ -export enum KnownApplicationSharingPolicy { - /** Personal */ - Personal = "Personal", - /** Shared */ - Shared = "Shared" +/** Ray distribution configuration. */ +export interface Ray extends DistributionConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + distributionType: "Ray"; + /** The address of Ray head node. */ + address?: string; + /** The port to bind the dashboard server to. */ + dashboardPort?: number; + /** Additional arguments passed to ray start in head node. */ + headNodeAdditionalArgs?: string; + /** Provide this argument to start the Ray dashboard GUI. */ + includeDashboard?: boolean; + /** The port of the head ray process. */ + port?: number; + /** Additional arguments passed to ray start in worker node. */ + workerNodeAdditionalArgs?: string; } -/** - * 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 ApplicationSharingPolicy = string; +/** TensorFlow distribution configuration. */ +export interface TensorFlow extends DistributionConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + distributionType: "TensorFlow"; + /** Number of parameter server tasks. */ + parameterServerCount?: number; + /** Number of workers. If not specified, will default to the instance count. */ + workerCount?: number; +} -/** Known values of {@link SshPublicAccess} that the service accepts. */ -export enum KnownSshPublicAccess { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Command Job limit class. */ +export interface CommandJobLimits extends JobLimits { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobLimitsType: "Command"; } -/** - * 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 SshPublicAccess = string; +/** Sweep Job limit class. */ +export interface SweepJobLimits extends JobLimits { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobLimitsType: "Sweep"; + /** Sweep Job max concurrent trials. */ + maxConcurrentTrials?: number; + /** Sweep Job max total trials. */ + maxTotalTrials?: number; + /** Sweep Job Trial timeout value. */ + trialTimeout?: string; +} -/** Known values of {@link ComputeInstanceState} that the service accepts. */ -export enum KnownComputeInstanceState { - /** Creating */ - Creating = "Creating", - /** CreateFailed */ - CreateFailed = "CreateFailed", - /** Deleting */ - Deleting = "Deleting", - /** Running */ - Running = "Running", - /** Restarting */ - Restarting = "Restarting", - /** JobRunning */ - JobRunning = "JobRunning", - /** SettingUp */ - SettingUp = "SettingUp", - /** SetupFailed */ - SetupFailed = "SetupFailed", - /** Starting */ - Starting = "Starting", - /** Stopped */ - Stopped = "Stopped", - /** Stopping */ - Stopping = "Stopping", - /** UserSettingUp */ - UserSettingUp = "UserSettingUp", - /** UserSetupFailed */ - UserSetupFailed = "UserSetupFailed", - /** Unknown */ - Unknown = "Unknown", - /** Unusable */ - Unusable = "Unusable" +/** Monitor serverless spark compute definition. */ +export interface MonitorServerlessSparkCompute + extends MonitorComputeConfigurationBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + computeType: "ServerlessSpark"; + /** [Required] The identity scheme leveraged to by the spark jobs running on serverless Spark. */ + computeIdentity: MonitorComputeIdentityBaseUnion; + /** [Required] The instance type running the Spark job. */ + instanceType: string; + /** [Required] The Spark runtime version. */ + runtimeVersion: string; } -/** - * 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; +export interface CustomMonitoringSignal extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "Custom"; + /** [Required] ARM resource ID of the component resource used to calculate the custom metrics. */ + componentId: string; + /** Monitoring assets to take as input. Key is the component input port name, value is the data asset. */ + inputAssets?: { [propertyName: string]: MonitoringInputDataBaseUnion | null }; + /** Extra component parameters to take as input. Key is the component literal input port name, value is the parameter value. */ + inputs?: { [propertyName: string]: JobInputUnion | null }; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + metricThresholds: CustomMetricThreshold[]; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + workspaceConnection: MonitoringWorkspaceConnection; +} -/** Known values of {@link ComputeInstanceAuthorizationType} that the service accepts. */ -export enum KnownComputeInstanceAuthorizationType { - /** Personal */ - Personal = "personal" +export interface DataDriftMonitoringSignal extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "DataDrift"; + /** The data segment used for scoping on a subset of the data population. */ + dataSegment?: MonitoringDataSegment; + /** A dictionary that maps feature names to their respective data types. */ + featureDataTypeOverride?: { + [propertyName: string]: MonitoringFeatureDataType; + }; + /** The feature filter which identifies which feature to calculate drift over. */ + features?: MonitoringFeatureFilterBaseUnion; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + metricThresholds: DataDriftMetricThresholdBaseUnion[]; + /** [Required] The data which drift will be calculated for. */ + productionData: MonitoringInputDataBaseUnion; + /** [Required] The data to calculate drift against. */ + referenceData: MonitoringInputDataBaseUnion; +} + +export interface DataQualityMonitoringSignal extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "DataQuality"; + /** A dictionary that maps feature names to their respective data types. */ + featureDataTypeOverride?: { + [propertyName: string]: MonitoringFeatureDataType; + }; + /** The features to calculate drift over. */ + features?: MonitoringFeatureFilterBaseUnion; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + metricThresholds: DataQualityMetricThresholdBaseUnion[]; + /** [Required] The data produced by the production service which drift will be calculated for. */ + productionData: MonitoringInputDataBaseUnion; + /** [Required] The data to calculate drift against. */ + referenceData: MonitoringInputDataBaseUnion; +} + +export interface FeatureAttributionDriftMonitoringSignal + extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "FeatureAttributionDrift"; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + metricThreshold: FeatureAttributionMetricThreshold; + /** [Required] The data which drift will be calculated for. */ + productionData: MonitoringInputDataBaseUnion[]; + /** [Required] The data to calculate drift against. */ + referenceData: MonitoringInputDataBaseUnion; +} + +/** Generation safety quality monitoring signal definition. */ +export interface GenerationSafetyQualityMonitoringSignal + extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "GenerationSafetyQuality"; + /** [Required] Gets or sets the metrics to calculate and the corresponding thresholds. */ + metricThresholds: GenerationSafetyQualityMetricThreshold[]; + /** Gets or sets the target data for computing metrics. */ + productionData?: MonitoringInputDataBaseUnion[]; + /** [Required] The sample rate of the target data, should be greater than 0 and at most 1. */ + samplingRate: number; + /** Gets or sets the workspace connection ID used to connect to the content generation endpoint. */ + workspaceConnectionId?: string; +} + +/** Generation token statistics signal definition. */ +export interface GenerationTokenStatisticsSignal extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "GenerationTokenStatistics"; + /** [Required] Gets or sets the metrics to calculate and the corresponding thresholds. */ + metricThresholds: GenerationTokenStatisticsMetricThreshold[]; + /** Gets or sets the target data for computing metrics. */ + productionData?: MonitoringInputDataBaseUnion; + /** [Required] The sample rate of the target data, should be greater than 0 and at most 1. */ + samplingRate: number; } -/** - * 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; +/** Model performance signal definition. */ +export interface ModelPerformanceSignal extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "ModelPerformance"; + /** The data segment. */ + dataSegment?: MonitoringDataSegment; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + metricThreshold: ModelPerformanceMetricThresholdBaseUnion; + /** [Required] The data produced by the production service which drift will be calculated for. */ + productionData: MonitoringInputDataBaseUnion[]; + /** [Required] The data to calculate drift against. */ + referenceData: MonitoringInputDataBaseUnion; +} + +export interface PredictionDriftMonitoringSignal extends MonitoringSignalBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + signalType: "PredictionDrift"; + /** [Required] A list of metrics to calculate and their associated thresholds. */ + metricThresholds: PredictionDriftMetricThresholdBaseUnion[]; + /** [Required] The type of the model monitored. */ + modelType: MonitoringModelType; + /** [Required] The data which drift will be calculated for. */ + productionData: MonitoringInputDataBaseUnion; + /** [Required] The data to calculate drift against. */ + referenceData: MonitoringInputDataBaseUnion; +} + +/** Fixed input data definition. */ +export interface FixedInputData extends MonitoringInputDataBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputDataType: "Fixed"; +} -/** Known values of {@link OperationName} that the service accepts. */ -export enum KnownOperationName { - /** Create */ - Create = "Create", - /** Start */ - Start = "Start", - /** Stop */ - Stop = "Stop", - /** Restart */ - Restart = "Restart", - /** Reimage */ - Reimage = "Reimage", - /** Delete */ - Delete = "Delete" +/** Static input data definition. */ +export interface StaticInputData extends MonitoringInputDataBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputDataType: "Static"; + /** The ARM resource ID of the component resource used to preprocess the data. */ + preprocessingComponentId?: string; + /** [Required] The end date of the data window. */ + windowEnd: Date; + /** [Required] The start date of the data window. */ + windowStart: Date; } -/** - * 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; +/** Trailing input data definition. */ +export interface TrailingInputData extends MonitoringInputDataBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + inputDataType: "Trailing"; + /** The ARM resource ID of the component resource used to preprocess the data. */ + preprocessingComponentId?: string; + /** [Required] The time offset between the end of the data window and the monitor's current run time. */ + windowOffset: string; + /** [Required] The size of the trailing data window. */ + windowSize: string; +} -/** Known values of {@link OperationStatus} that the service accepts. */ -export enum KnownOperationStatus { - /** InProgress */ - InProgress = "InProgress", - /** Succeeded */ - Succeeded = "Succeeded", - /** CreateFailed */ - CreateFailed = "CreateFailed", - /** StartFailed */ - StartFailed = "StartFailed", - /** StopFailed */ - StopFailed = "StopFailed", - /** RestartFailed */ - RestartFailed = "RestartFailed", - /** ReimageFailed */ - ReimageFailed = "ReimageFailed", - /** DeleteFailed */ - DeleteFailed = "DeleteFailed" +export interface DatabaseSource extends DataImportSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sourceType: "database"; + /** SQL Query statement for data import Database source */ + query?: string; + /** SQL StoredProcedure on data import Database source */ + storedProcedure?: string; + /** SQL StoredProcedure parameters */ + storedProcedureParams?: { [propertyName: string]: string }[]; + /** Name of the table on data import Database source */ + tableName?: string; +} + +export interface FileSystemSource extends DataImportSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sourceType: "file_system"; + /** Path on data import FileSystem source */ + path?: string; } /** - * 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** + * Settings used for training the model. + * For more information on the available settings please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. */ -export type OperationStatus = string; - -/** Known values of {@link OperationTrigger} that the service accepts. */ -export enum KnownOperationTrigger { - /** User */ - User = "User", +export interface ImageModelSettingsClassification extends ImageModelSettings { + /** Image crop size that is input to the neural network for the training dataset. Must be a positive integer. */ + trainingCropSize?: number; + /** Image crop size that is input to the neural network for the validation dataset. Must be a positive integer. */ + validationCropSize?: number; + /** Image size to which to resize before cropping for validation dataset. Must be a positive integer. */ + validationResizeSize?: number; + /** + * Weighted loss. The accepted values are 0 for no weighted loss. + * 1 for weighted loss with sqrt.(class_weights). 2 for weighted loss with class_weights. Must be 0 or 1 or 2. + */ + weightedLoss?: number; +} + +/** + * Settings used for training the model. + * For more information on the available settings please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ +export interface ImageModelSettingsObjectDetection extends ImageModelSettings { + /** + * Maximum number of detections per image, for all classes. Must be a positive integer. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + boxDetectionsPerImage?: number; + /** + * During inference, only return proposals with a classification score greater than + * BoxScoreThreshold. Must be a float in the range[0, 1]. + */ + boxScoreThreshold?: number; + /** + * Image size for train and validation. Must be a positive integer. + * Note: The training run may get into CUDA OOM if the size is too big. + * Note: This settings is only supported for the 'yolov5' algorithm. + */ + imageSize?: number; + /** Enable computing and logging training metrics. */ + logTrainingMetrics?: LogTrainingMetrics; + /** Enable computing and logging validation loss. */ + logValidationLoss?: LogValidationLoss; + /** + * Maximum size of the image to be rescaled before feeding it to the backbone. + * Must be a positive integer. Note: training run may get into CUDA OOM if the size is too big. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + maxSize?: number; + /** + * Minimum size of the image to be rescaled before feeding it to the backbone. + * Must be a positive integer. Note: training run may get into CUDA OOM if the size is too big. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + minSize?: number; + /** + * Model size. Must be 'small', 'medium', 'large', or 'xlarge'. + * Note: training run may get into CUDA OOM if the model size is too big. + * Note: This settings is only supported for the 'yolov5' algorithm. + */ + modelSize?: ModelSize; + /** + * Enable multi-scale image by varying image size by +/- 50%. + * Note: training run may get into CUDA OOM if no sufficient GPU memory. + * Note: This settings is only supported for the 'yolov5' algorithm. + */ + multiScale?: boolean; + /** IOU threshold used during inference in NMS post processing. Must be a float in the range [0, 1]. */ + nmsIouThreshold?: number; + /** + * The grid size to use for tiling each image. Note: TileGridSize must not be + * None to enable small object detection logic. A string containing two integers in mxn format. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + tileGridSize?: string; + /** + * Overlap ratio between adjacent tiles in each dimension. Must be float in the range [0, 1). + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + tileOverlapRatio?: number; + /** + * The IOU threshold to use to perform NMS while merging predictions from tiles and image. + * Used in validation/ inference. Must be float in the range [0, 1]. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + tilePredictionsNmsThreshold?: number; + /** IOU threshold to use when computing validation metric. Must be float in the range [0, 1]. */ + validationIouThreshold?: number; + /** Metric computation method to use for validation metrics. */ + validationMetricType?: ValidationMetricType; +} + +/** + * Distribution expressions to sweep over values of model settings. + * + * Some examples are: + * ``` + * ModelName = "choice('seresnext', 'resnest50')"; + * LearningRate = "uniform(0.001, 0.01)"; + * LayersToFreeze = "choice(0, 2)"; + * ``` + * For more details on how to compose distribution expressions please check the documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters + * For more information on the available settings please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ +export interface ImageModelDistributionSettingsClassification + extends ImageModelDistributionSettings { + /** Image crop size that is input to the neural network for the training dataset. Must be a positive integer. */ + trainingCropSize?: string; + /** Image crop size that is input to the neural network for the validation dataset. Must be a positive integer. */ + validationCropSize?: string; + /** Image size to which to resize before cropping for validation dataset. Must be a positive integer. */ + validationResizeSize?: string; + /** + * Weighted loss. The accepted values are 0 for no weighted loss. + * 1 for weighted loss with sqrt.(class_weights). 2 for weighted loss with class_weights. Must be 0 or 1 or 2. + */ + weightedLoss?: string; +} + +/** + * Distribution expressions to sweep over values of model settings. + * + * Some examples are: + * ``` + * ModelName = "choice('seresnext', 'resnest50')"; + * LearningRate = "uniform(0.001, 0.01)"; + * LayersToFreeze = "choice(0, 2)"; + * ``` + * For more details on how to compose distribution expressions please check the documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters + * For more information on the available settings please visit the official documentation: + * https://docs.microsoft.com/en-us/azure/machine-learning/how-to-auto-train-image-models. + */ +export interface ImageModelDistributionSettingsObjectDetection + extends ImageModelDistributionSettings { + /** + * Maximum number of detections per image, for all classes. Must be a positive integer. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + boxDetectionsPerImage?: string; + /** + * During inference, only return proposals with a classification score greater than + * BoxScoreThreshold. Must be a float in the range[0, 1]. + */ + boxScoreThreshold?: string; + /** + * Image size for train and validation. Must be a positive integer. + * Note: The training run may get into CUDA OOM if the size is too big. + * Note: This settings is only supported for the 'yolov5' algorithm. + */ + imageSize?: string; + /** + * Maximum size of the image to be rescaled before feeding it to the backbone. + * Must be a positive integer. Note: training run may get into CUDA OOM if the size is too big. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + maxSize?: string; + /** + * Minimum size of the image to be rescaled before feeding it to the backbone. + * Must be a positive integer. Note: training run may get into CUDA OOM if the size is too big. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + minSize?: string; + /** + * Model size. Must be 'small', 'medium', 'large', or 'xlarge'. + * Note: training run may get into CUDA OOM if the model size is too big. + * Note: This settings is only supported for the 'yolov5' algorithm. + */ + modelSize?: string; + /** + * Enable multi-scale image by varying image size by +/- 50%. + * Note: training run may get into CUDA OOM if no sufficient GPU memory. + * Note: This settings is only supported for the 'yolov5' algorithm. + */ + multiScale?: string; + /** IOU threshold used during inference in NMS post processing. Must be float in the range [0, 1]. */ + nmsIouThreshold?: string; + /** + * The grid size to use for tiling each image. Note: TileGridSize must not be + * None to enable small object detection logic. A string containing two integers in mxn format. + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + tileGridSize?: string; + /** + * Overlap ratio between adjacent tiles in each dimension. Must be float in the range [0, 1). + * Note: This settings is not supported for the 'yolov5' algorithm. + */ + tileOverlapRatio?: string; + /** + * The IOU threshold to use to perform NMS while merging predictions from tiles and image. + * Used in validation/ inference. Must be float in the range [0, 1]. + * Note: This settings is not supported for the 'yolov5' algorithm. + * NMS: Non-maximum suppression + */ + tilePredictionsNmsThreshold?: string; + /** IOU threshold to use when computing validation metric. Must be float in the range [0, 1]. */ + validationIouThreshold?: string; + /** Metric computation method to use for validation metrics. Must be 'none', 'coco', 'voc', or 'coco_voc'. */ + validationMetricType?: string; +} + +export interface ImageClassificationBase extends ImageVertical { + /** Settings used for training the model. */ + modelSettings?: ImageModelSettingsClassification; + /** Search space for sampling different combinations of models and their hyperparameters. */ + searchSpace?: ImageModelDistributionSettingsClassification[]; +} + +export interface ImageObjectDetectionBase extends ImageVertical { + /** Settings used for training the model. */ + modelSettings?: ImageModelSettingsObjectDetection; + /** Search space for sampling different combinations of models and their hyperparameters. */ + searchSpace?: ImageModelDistributionSettingsObjectDetection[]; +} + +export interface LakeHouseArtifact extends OneLakeArtifact { + /** Polymorphic discriminator, which specifies the different types this object can be */ + artifactType: "LakeHouse"; +} + +export interface SparkJobPythonEntry extends SparkJobEntry { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sparkJobEntryType: "SparkJobPythonEntry"; + /** [Required] Relative python file path for job entry point. */ + file: string; +} + +export interface SparkJobScalaEntry extends SparkJobEntry { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sparkJobEntryType: "SparkJobScalaEntry"; + /** [Required] Scala class name used as entry point. */ + className: string; +} + +export interface BatchEndpoint extends TrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: BatchEndpointProperties; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +} + +export interface BatchDeployment extends TrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: BatchDeploymentProperties; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +} + +export interface InferencePool extends TrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: InferencePoolProperties; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +} + +export interface OnlineEndpoint extends TrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: OnlineEndpointProperties; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +} + +export interface OnlineDeployment extends TrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: OnlineDeploymentPropertiesUnion; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +} + +export interface ServerlessEndpoint extends TrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** [Required] Additional attributes of the entity. */ + properties: ServerlessEndpointProperties; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; +} + +export interface Registry extends TrackedResource { + /** Managed service identity (system assigned and/or user assigned identities) */ + identity?: ManagedServiceIdentity; + /** Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. */ + kind?: string; + /** Sku details required for ARM contract for Autoscaling. */ + sku?: Sku; + /** Discovery URL for the Registry */ + discoveryUrl?: string; + /** IntellectualPropertyPublisher for the registry */ + intellectualPropertyPublisher?: string; + /** ResourceId of the managed RG if the registry has system created resources */ + managedResourceGroup?: ArmResourceId; + /** MLFlow Registry URI for the Registry */ + mlFlowRegistryUri?: string; + /** Private endpoint connections info used for pending connections in private link portal */ + registryPrivateEndpointConnections?: RegistryPrivateEndpointConnection[]; + /** + * Is the Registry accessible from the internet? + * Possible values: "Enabled" or "Disabled" + */ + publicNetworkAccess?: string; + /** Details of each region the registry is in */ + regionDetails?: RegistryRegionArmDetails[]; +} + +/** Container for code asset versions. */ +export interface CodeContainerProperties extends AssetContainer { + /** + * Provisioning state for the code container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; +} + +/** + * Component container definition. + * + */ +export interface ComponentContainerProperties extends AssetContainer { + /** + * Provisioning state for the component container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; +} + +/** Container for data asset versions. */ +export interface DataContainerProperties extends AssetContainer { + /** [Required] Specifies the type of data. */ + dataType: DataType; +} + +/** Container for environment specification versions. */ +export interface EnvironmentContainerProperties extends AssetContainer { + /** + * Provisioning state for the environment container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; +} + +export interface ModelContainerProperties extends AssetContainer { + /** + * Provisioning state for the model container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; +} + +/** Dto object representing feature set */ +export interface FeaturesetContainerProperties extends AssetContainer { + /** + * Provisioning state for the featureset container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; +} + +/** Dto object representing feature entity */ +export interface FeaturestoreEntityContainerProperties extends AssetContainer { + /** + * Provisioning state for the featurestore entity container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; +} + +/** Code asset version details. */ +export interface CodeVersionProperties extends AssetBase { + /** Uri where code is located */ + codeUri?: string; + /** + * Provisioning state for the code version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; +} + +/** Definition of a component version: defines resources that span component types. */ +export interface ComponentVersionProperties extends AssetBase { + /** + * Defines Component definition details. + * + */ + componentSpec?: Record; + /** + * Provisioning state for the component version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; + /** Stage in the component lifecycle */ + stage?: string; +} + +/** Data version base definition */ +export interface DataVersionBaseProperties extends AssetBase { + /** [Required] Specifies the type of data. */ + dataType: DataType; + /** [Required] Uri of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330 */ + dataUri: string; + /** Intellectual Property details. Used if data is an Intellectual Property. */ + intellectualProperty?: IntellectualProperty; + /** Stage in the data lifecycle assigned to this data asset */ + stage?: string; +} + +/** Environment version details. */ +export interface EnvironmentVersionProperties extends AssetBase { + /** Defines if image needs to be rebuilt based on base image changes. */ + autoRebuild?: AutoRebuildSetting; + /** Configuration settings for Docker build context. */ + build?: BuildContext; + /** + * Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages. + * + */ + condaFile?: string; + /** + * Environment type is either user managed or curated by the Azure ML service + * + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly environmentType?: EnvironmentType; + /** + * Name of the image that will be used for the environment. + * + */ + image?: string; + /** Defines configuration specific to inference. */ + inferenceConfig?: InferenceContainerProperties; + /** Intellectual Property details. Used if environment is an Intellectual Property. */ + intellectualProperty?: IntellectualProperty; + /** The OS type of the environment. */ + osType?: OperatingSystemType; + /** + * Provisioning state for the environment version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; + /** Stage in the environment lifecycle assigned to this environment */ + stage?: string; +} + +/** Model asset version details. */ +export interface ModelVersionProperties extends AssetBase { + /** Mapping of model flavors to their properties. */ + flavors?: { [propertyName: string]: FlavorData | null }; + /** Intellectual Property details. Used if model is an Intellectual Property. */ + intellectualProperty?: IntellectualProperty; + /** Name of the training job which produced this model */ + jobName?: string; + /** The storage format for this entity. Used for NCD. */ + modelType?: string; + /** The URI path to the model contents. */ + modelUri?: string; + /** + * Provisioning state for the model version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; + /** Stage in the model lifecycle assigned to this model */ + stage?: string; +} + +/** Dto object representing feature set version */ +export interface FeaturesetVersionProperties extends AssetBase { + /** Specifies list of entities */ + entities?: string[]; + /** Specifies the materialization settings */ + materializationSettings?: MaterializationSettings; + /** + * Provisioning state for the featureset version container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; + /** Specifies the feature spec details */ + specification?: FeaturesetSpecification; + /** Specifies the asset stage */ + stage?: string; +} + +/** Dto object representing feature entity version */ +export interface FeaturestoreEntityVersionProperties extends AssetBase { + /** Specifies index columns */ + indexColumns?: IndexColumn[]; + /** + * Provisioning state for the featurestore entity version. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: AssetProvisioningState; + /** Specifies the asset stage */ + stage?: string; +} + +export interface HdfsDatastore extends DatastoreProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + datastoreType: "Hdfs"; + /** The TLS cert of the HDFS server. Needs to be a base64 encoded string. Required if "Https" protocol is selected. */ + hdfsServerCertificate?: string; + /** [Required] IP Address or DNS HostName. */ + nameNodeAddress: string; + /** Protocol used to communicate with the storage account (Https/Http). */ + protocol?: string; +} + +/** OneLake (Trident) datastore configuration. */ +export interface OneLakeDatastore extends DatastoreProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + datastoreType: "OneLake"; + /** [Required] OneLake artifact backing the datastore. */ + artifact: OneLakeArtifactUnion; + /** OneLake endpoint to use for the datastore. */ + endpoint?: string; + /** [Required] OneLake workspace name. */ + oneLakeWorkspaceName: string; + /** Indicates which identity to use to authenticate service data access to customer's storage. */ + serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; +} + +/** Labeling job definition */ +export interface LabelingJobProperties extends JobBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "Labeling"; + /** + * Created time of the job in UTC timezone. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdDateTime?: Date; + /** Configuration of data used in the job. */ + dataConfiguration?: LabelingDataConfiguration; + /** Labeling instructions of the job. */ + jobInstructions?: LabelingJobInstructions; + /** Label categories of the job. */ + labelCategories?: { [propertyName: string]: LabelCategory | null }; + /** Media type specific properties in the job. */ + labelingJobMediaProperties?: LabelingJobMediaPropertiesUnion; + /** Configuration of MLAssist feature in the job. */ + mlAssistConfiguration?: MLAssistConfigurationUnion; + /** + * Progress metrics of the job. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly progressMetrics?: ProgressMetrics; + /** + * Internal id of the job(Previously called project). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly projectId?: string; + /** + * Specifies the labeling job provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: JobProvisioningState; + /** + * Status messages of the job. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly statusMessages?: StatusMessage[]; +} + +/** + * AutoMLJob class. + * Use this class for executing AutoML tasks like Classification/Regression etc. + * See TaskType enum for all the tasks supported. + */ +export interface AutoMLJob extends JobBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "AutoML"; + /** + * The ARM resource ID of the Environment specification for the job. + * This is optional value to provide, if not provided, AutoML will default this to Production AutoML curated environment version when running the job. + */ + environmentId?: string; + /** Environment variables included in the job. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** Mapping of output data bindings used in the job. */ + outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** Queue settings for the job */ + queueSettings?: QueueSettings; + /** Compute Resource configuration for the job. */ + resources?: JobResourceConfiguration; + /** [Required] This represents scenario which can be one of Tables/NLP/Image */ + taskDetails: AutoMLVerticalUnion; +} + +/** Command job definition. */ +export interface CommandJob extends JobBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "Command"; + /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null. */ + autologgerSettings?: AutologgerSettings; + /** ARM resource ID of the code asset. */ + codeId?: string; + /** [Required] The command to execute on startup of the job. eg. "python train.py" */ + command: string; + /** Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, Ray, or null. */ + distribution?: DistributionConfigurationUnion; + /** [Required] The ARM resource ID of the Environment specification for the job. */ + environmentId: string; + /** Environment variables included in the job. */ + environmentVariables?: { [propertyName: string]: string | null }; + /** Mapping of input data bindings used in the job. */ + inputs?: { [propertyName: string]: JobInputUnion | null }; + /** Command Job limit. */ + limits?: CommandJobLimits; + /** Mapping of output data bindings used in the job. */ + outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** + * Input parameters. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly parameters?: Record; + /** Queue settings for the job */ + queueSettings?: QueueSettings; + /** Compute Resource configuration for the job. */ + resources?: JobResourceConfiguration; +} + +/** Pipeline Job definition: defines generic to MFE attributes. */ +export interface PipelineJob extends JobBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "Pipeline"; + /** Inputs for the pipeline job. */ + inputs?: { [propertyName: string]: JobInputUnion | null }; + /** Jobs construct the Pipeline Job. */ + jobs?: { [propertyName: string]: Record }; + /** Outputs for the pipeline job */ + outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** Pipeline settings, for things like ContinueRunOnStepFailure etc. */ + settings?: Record; + /** ARM resource ID of source job. */ + sourceJobId?: string; +} + +/** Spark job definition. */ +export interface SparkJob extends JobBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "Spark"; + /** Archive files used in the job. */ + archives?: string[]; + /** Arguments for the job. */ + args?: string; + /** [Required] ARM resource ID of the code asset. */ + codeId: string; + /** Spark configured properties. */ + conf?: { [propertyName: string]: string | null }; + /** [Required] The entry to execute on startup of the job. */ + entry: SparkJobEntryUnion; + /** The ARM resource ID of the Environment specification for the job. */ + environmentId?: string; + /** Files used in the job. */ + files?: string[]; + /** Mapping of input data bindings used in the job. */ + inputs?: { [propertyName: string]: JobInputUnion | null }; + /** Jar files used in the job. */ + jars?: string[]; + /** Mapping of output data bindings used in the job. */ + outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** Python files used in the job. */ + pyFiles?: string[]; + /** Queue settings for the job */ + queueSettings?: QueueSettings; + /** Compute Resource configuration for the job. */ + resources?: SparkResourceConfiguration; +} + +/** Sweep job definition. */ +export interface SweepJob extends JobBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + jobType: "Sweep"; + /** Component Configuration for sweep over component */ + componentConfiguration?: ComponentConfiguration; + /** Early termination policies enable canceling poor-performing runs before they complete */ + earlyTermination?: EarlyTerminationPolicyUnion; + /** Mapping of input data bindings used in the job. */ + inputs?: { [propertyName: string]: JobInputUnion | null }; + /** Sweep Job limit. */ + limits?: SweepJobLimits; + /** [Required] Optimization objective. */ + objective: Objective; + /** Mapping of output data bindings used in the job. */ + outputs?: { [propertyName: string]: JobOutputUnion | null }; + /** Queue settings for the job */ + queueSettings?: QueueSettings; + /** Compute Resource configuration for the job. */ + resources?: JobResourceConfiguration; + /** [Required] The hyperparameter sampling algorithm */ + samplingAlgorithm: SamplingAlgorithmUnion; + /** [Required] A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter */ + searchSpace: Record; + /** [Required] Trial component definition. */ + trial: TrialComponent; +} + +/** Properties specific to a KubernetesOnlineDeployment. */ +export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + endpointComputeType: "Kubernetes"; + /** The resource requirements for the container (cpu and memory). */ + containerResourceRequirements?: ContainerResourceRequirements; +} + +/** Properties specific to a ManagedOnlineDeployment. */ +export interface ManagedOnlineDeployment extends OnlineDeploymentProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + endpointComputeType: "Managed"; +} + +export interface DataImport extends DataVersionBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "uri_folder"; + /** Name of the asset for data import job to create */ + assetName?: string; + /** Source data of the asset to import from */ + source?: DataImportSourceUnion; +} + +/** MLTable data definition */ +export interface MLTableData extends DataVersionBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "mltable"; + /** Uris referenced in the MLTable definition (required for lineage) */ + referencedUris?: string[]; +} + +/** uri-file data version entity */ +export interface UriFileDataVersion extends DataVersionBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "uri_file"; +} + +/** uri-folder data version entity */ +export interface UriFolderDataVersion extends DataVersionBaseProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + dataType: "uri_folder"; +} + +/** Defines headers for Compute_createOrUpdate operation. */ +export interface ComputeCreateOrUpdateHeaders { + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: 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 headers for Compute_resize operation. */ +export interface ComputeResizeHeaders { + location?: string; +} + +/** Defines headers for RegistryCodeContainers_delete operation. */ +export interface RegistryCodeContainersDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryCodeContainers_createOrUpdate operation. */ +export interface RegistryCodeContainersCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryCodeVersions_delete operation. */ +export interface RegistryCodeVersionsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryCodeVersions_createOrUpdate operation. */ +export interface RegistryCodeVersionsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryComponentContainers_delete operation. */ +export interface RegistryComponentContainersDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryComponentContainers_createOrUpdate operation. */ +export interface RegistryComponentContainersCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryComponentVersions_delete operation. */ +export interface RegistryComponentVersionsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryComponentVersions_createOrUpdate operation. */ +export interface RegistryComponentVersionsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryDataContainers_delete operation. */ +export interface RegistryDataContainersDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryDataContainers_createOrUpdate operation. */ +export interface RegistryDataContainersCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryDataVersions_delete operation. */ +export interface RegistryDataVersionsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryDataVersions_createOrUpdate operation. */ +export interface RegistryDataVersionsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryEnvironmentContainers_delete operation. */ +export interface RegistryEnvironmentContainersDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryEnvironmentContainers_createOrUpdate operation. */ +export interface RegistryEnvironmentContainersCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryEnvironmentVersions_delete operation. */ +export interface RegistryEnvironmentVersionsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryEnvironmentVersions_createOrUpdate operation. */ +export interface RegistryEnvironmentVersionsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryModelContainers_delete operation. */ +export interface RegistryModelContainersDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryModelContainers_createOrUpdate operation. */ +export interface RegistryModelContainersCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryModelVersions_delete operation. */ +export interface RegistryModelVersionsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for RegistryModelVersions_createOrUpdate operation. */ +export interface RegistryModelVersionsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for RegistryModelVersions_package operation. */ +export interface RegistryModelVersionsPackageHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for BatchEndpoints_delete operation. */ +export interface BatchEndpointsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for BatchEndpoints_update operation. */ +export interface BatchEndpointsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for BatchEndpoints_createOrUpdate operation. */ +export interface BatchEndpointsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for BatchDeployments_delete operation. */ +export interface BatchDeploymentsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for BatchDeployments_update operation. */ +export interface BatchDeploymentsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for BatchDeployments_createOrUpdate operation. */ +export interface BatchDeploymentsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for FeaturesetContainers_delete operation. */ +export interface FeaturesetContainersDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for FeaturesetContainers_createOrUpdate operation. */ +export interface FeaturesetContainersCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for FeaturesetVersions_delete operation. */ +export interface FeaturesetVersionsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for FeaturesetVersions_createOrUpdate operation. */ +export interface FeaturesetVersionsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for FeaturesetVersions_backfill operation. */ +export interface FeaturesetVersionsBackfillHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for FeaturestoreEntityContainers_delete operation. */ +export interface FeaturestoreEntityContainersDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for FeaturestoreEntityContainers_createOrUpdate operation. */ +export interface FeaturestoreEntityContainersCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for FeaturestoreEntityVersions_delete operation. */ +export interface FeaturestoreEntityVersionsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for FeaturestoreEntityVersions_createOrUpdate operation. */ +export interface FeaturestoreEntityVersionsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for InferencePools_delete operation. */ +export interface InferencePoolsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for InferencePools_update operation. */ +export interface InferencePoolsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for InferencePools_createOrUpdate operation. */ +export interface InferencePoolsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for InferenceGroups_delete operation. */ +export interface InferenceGroupsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for InferenceGroups_update operation. */ +export interface InferenceGroupsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for InferenceGroups_createOrUpdate operation. */ +export interface InferenceGroupsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for InferenceEndpoints_delete operation. */ +export interface InferenceEndpointsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for InferenceEndpoints_update operation. */ +export interface InferenceEndpointsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for InferenceEndpoints_createOrUpdate operation. */ +export interface InferenceEndpointsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Jobs_delete operation. */ +export interface JobsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Jobs_cancel operation. */ +export interface JobsCancelHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for LabelingJobs_createOrUpdate operation. */ +export interface LabelingJobsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for LabelingJobs_exportLabels operation. */ +export interface LabelingJobsExportLabelsHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for LabelingJobs_resume operation. */ +export interface LabelingJobsResumeHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for ModelVersions_package operation. */ +export interface ModelVersionsPackageHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineEndpoints_delete operation. */ +export interface OnlineEndpointsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineEndpoints_update operation. */ +export interface OnlineEndpointsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineEndpoints_createOrUpdate operation. */ +export interface OnlineEndpointsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for OnlineEndpoints_regenerateKeys operation. */ +export interface OnlineEndpointsRegenerateKeysHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineDeployments_delete operation. */ +export interface OnlineDeploymentsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineDeployments_update operation. */ +export interface OnlineDeploymentsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for OnlineDeployments_createOrUpdate operation. */ +export interface OnlineDeploymentsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Schedules_delete operation. */ +export interface SchedulesDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Schedules_createOrUpdate operation. */ +export interface SchedulesCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for ServerlessEndpoints_delete operation. */ +export interface ServerlessEndpointsDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for ServerlessEndpoints_update operation. */ +export interface ServerlessEndpointsUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for ServerlessEndpoints_createOrUpdate operation. */ +export interface ServerlessEndpointsCreateOrUpdateHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation status. */ + azureAsyncOperation?: string; +} + +/** Defines headers for ServerlessEndpoints_regenerateKeys operation. */ +export interface ServerlessEndpointsRegenerateKeysHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Registries_delete operation. */ +export interface RegistriesDeleteHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Registries_removeRegions operation. */ +export interface RegistriesRemoveRegionsHeaders { + /** Timeout for the client to use when polling the asynchronous operation. */ + xMsAsyncOperationTimeout?: string; + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Workspaces_createOrUpdate operation. */ +export interface WorkspacesCreateOrUpdateHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** 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; +} + +/** Defines headers for Workspaces_prepareNotebook operation. */ +export interface WorkspacesPrepareNotebookHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for Workspaces_resyncKeys operation. */ +export interface WorkspacesResyncKeysHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for ManagedNetworkSettingsRule_delete operation. */ +export interface ManagedNetworkSettingsRuleDeleteHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; +} + +/** Defines headers for ManagedNetworkSettingsRule_createOrUpdate operation. */ +export interface ManagedNetworkSettingsRuleCreateOrUpdateHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Defines headers for ManagedNetworkProvisions_provisionManagedNetwork operation. */ +export interface ManagedNetworkProvisionsProvisionManagedNetworkHeaders { + /** URI to poll for asynchronous operation result. */ + location?: string; + /** Duration the client should wait between requests, in seconds. */ + retryAfter?: number; +} + +/** Known values of {@link UsageUnit} that the service accepts. */ +export enum KnownUsageUnit { + /** Count */ + Count = "Count" +} + +/** + * 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 UsageUnit = string; + +/** Known values of {@link BillingCurrency} that the service accepts. */ +export enum KnownBillingCurrency { + /** USD */ + USD = "USD" +} + +/** + * 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 BillingCurrency = string; + +/** Known values of {@link UnitOfMeasure} that the service accepts. */ +export enum KnownUnitOfMeasure { + /** OneHour */ + OneHour = "OneHour" +} + +/** + * 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 UnitOfMeasure = string; + +/** Known values of {@link VMPriceOSType} that the service accepts. */ +export enum KnownVMPriceOSType { + /** Linux */ + Linux = "Linux", + /** Windows */ + Windows = "Windows" +} + +/** + * 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 VMPriceOSType = string; + +/** Known values of {@link VMTier} that the service accepts. */ +export enum KnownVMTier { + /** Standard */ + Standard = "Standard", + /** LowPriority */ + LowPriority = "LowPriority", + /** Spot */ + Spot = "Spot" +} + +/** + * 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 VMTier = string; + +/** Known values of {@link QuotaUnit} that the service accepts. */ +export enum KnownQuotaUnit { + /** Count */ + Count = "Count" +} + +/** + * 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 QuotaUnit = string; + +/** Known values of {@link Status} that the service accepts. */ +export enum KnownStatus { + /** Undefined */ + Undefined = "Undefined", + /** Success */ + Success = "Success", + /** Failure */ + Failure = "Failure", + /** InvalidQuotaBelowClusterMinimum */ + InvalidQuotaBelowClusterMinimum = "InvalidQuotaBelowClusterMinimum", + /** InvalidQuotaExceedsSubscriptionLimit */ + InvalidQuotaExceedsSubscriptionLimit = "InvalidQuotaExceedsSubscriptionLimit", + /** InvalidVMFamilyName */ + InvalidVMFamilyName = "InvalidVMFamilyName", + /** OperationNotSupportedForSku */ + OperationNotSupportedForSku = "OperationNotSupportedForSku", + /** OperationNotEnabledForRegion */ + OperationNotEnabledForRegion = "OperationNotEnabledForRegion" +} + +/** + * 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 Status = string; + +/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */ +export enum KnownManagedServiceIdentityType { + /** None */ + None = "None", + /** SystemAssigned */ + SystemAssigned = "SystemAssigned", + /** UserAssigned */ + UserAssigned = "UserAssigned", + /** SystemAssignedUserAssigned */ + SystemAssignedUserAssigned = "SystemAssigned,UserAssigned" +} + +/** + * Defines values for ManagedServiceIdentityType. \ + * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **SystemAssigned** \ + * **UserAssigned** \ + * **SystemAssigned,UserAssigned** + */ +export type ManagedServiceIdentityType = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key" +} + +/** + * 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 CreatedByType = string; + +/** Known values of {@link ComputeType} that the service accepts. */ +export enum KnownComputeType { + /** AKS */ + AKS = "AKS", + /** Kubernetes */ + Kubernetes = "Kubernetes", + /** AmlCompute */ + AmlCompute = "AmlCompute", + /** ComputeInstance */ + ComputeInstance = "ComputeInstance", + /** DataFactory */ + DataFactory = "DataFactory", + /** VirtualMachine */ + VirtualMachine = "VirtualMachine", + /** HDInsight */ + HDInsight = "HDInsight", + /** Databricks */ + Databricks = "Databricks", + /** DataLakeAnalytics */ + DataLakeAnalytics = "DataLakeAnalytics", + /** SynapseSpark */ + SynapseSpark = "SynapseSpark" +} + +/** + * 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 ComputeType = string; + +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Unknown */ + Unknown = "Unknown", + /** Updating */ + Updating = "Updating", + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * 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 ProvisioningState = string; + +/** Known values of {@link UnderlyingResourceAction} that the service accepts. */ +export enum KnownUnderlyingResourceAction { + /** Delete */ + Delete = "Delete", + /** Detach */ + Detach = "Detach" +} + +/** + * 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 UnderlyingResourceAction = string; + +/** Known values of {@link ImageType} that the service accepts. */ +export enum KnownImageType { + /** Docker */ + Docker = "docker", + /** Azureml */ + Azureml = "azureml" +} + +/** + * Defines values for ImageType. \ + * {@link KnownImageType} can be used interchangeably with ImageType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **docker** \ + * **azureml** + */ +export type ImageType = string; + +/** Known values of {@link EnvironmentVariableType} that the service accepts. */ +export enum KnownEnvironmentVariableType { + /** Local */ + Local = "local" +} + +/** + * Defines values for EnvironmentVariableType. \ + * {@link KnownEnvironmentVariableType} can be used interchangeably with EnvironmentVariableType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **local** + */ +export type EnvironmentVariableType = string; + +/** Known values of {@link Protocol} that the service accepts. */ +export enum KnownProtocol { + /** Tcp */ + Tcp = "tcp", + /** Udp */ + Udp = "udp", + /** Http */ + Http = "http" +} + +/** + * Defines values for Protocol. \ + * {@link KnownProtocol} can be used interchangeably with Protocol, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **tcp** \ + * **udp** \ + * **http** + */ +export type Protocol = string; + +/** Known values of {@link VolumeDefinitionType} that the service accepts. */ +export enum KnownVolumeDefinitionType { + /** Bind */ + Bind = "bind", + /** Volume */ + Volume = "volume", + /** Tmpfs */ + Tmpfs = "tmpfs", + /** Npipe */ + Npipe = "npipe" +} + +/** + * Defines values for VolumeDefinitionType. \ + * {@link KnownVolumeDefinitionType} can be used interchangeably with VolumeDefinitionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **bind** \ + * **volume** \ + * **tmpfs** \ + * **npipe** + */ +export type VolumeDefinitionType = string; + +/** Known values of {@link NodeState} that the service accepts. */ +export enum KnownNodeState { + /** Idle */ + Idle = "idle", + /** Running */ + Running = "running", + /** Preparing */ + Preparing = "preparing", + /** Unusable */ + Unusable = "unusable", + /** Leaving */ + Leaving = "leaving", + /** Preempted */ + Preempted = "preempted" +} + +/** + * 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 NodeState = string; + +/** Known values of {@link AssetProvisioningState} that the service accepts. */ +export enum KnownAssetProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** Creating */ + Creating = "Creating", + /** Updating */ + Updating = "Updating", + /** Deleting */ + Deleting = "Deleting" +} + +/** + * Defines values for AssetProvisioningState. \ + * {@link KnownAssetProvisioningState} can be used interchangeably with AssetProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Creating** \ + * **Updating** \ + * **Deleting** + */ +export type AssetProvisioningState = string; + +/** Known values of {@link AutoDeleteCondition} that the service accepts. */ +export enum KnownAutoDeleteCondition { + /** CreatedGreaterThan */ + CreatedGreaterThan = "CreatedGreaterThan", + /** LastAccessedGreaterThan */ + LastAccessedGreaterThan = "LastAccessedGreaterThan" +} + +/** + * Defines values for AutoDeleteCondition. \ + * {@link KnownAutoDeleteCondition} can be used interchangeably with AutoDeleteCondition, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CreatedGreaterThan** \ + * **LastAccessedGreaterThan** + */ +export type AutoDeleteCondition = string; + +/** Known values of {@link PendingUploadType} that the service accepts. */ +export enum KnownPendingUploadType { + /** None */ + None = "None", + /** TemporaryBlobReference */ + TemporaryBlobReference = "TemporaryBlobReference" +} + +/** + * Defines values for PendingUploadType. \ + * {@link KnownPendingUploadType} can be used interchangeably with PendingUploadType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **TemporaryBlobReference** + */ +export type PendingUploadType = string; + +/** Known values of {@link PendingUploadCredentialType} that the service accepts. */ +export enum KnownPendingUploadCredentialType { + /** SAS */ + SAS = "SAS" +} + +/** + * Defines values for PendingUploadCredentialType. \ + * {@link KnownPendingUploadCredentialType} can be used interchangeably with PendingUploadCredentialType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SAS** + */ +export type PendingUploadCredentialType = string; + +/** Known values of {@link ListViewType} that the service accepts. */ +export enum KnownListViewType { + /** ActiveOnly */ + ActiveOnly = "ActiveOnly", + /** ArchivedOnly */ + ArchivedOnly = "ArchivedOnly", + /** All */ + All = "All" +} + +/** + * Defines values for ListViewType. \ + * {@link KnownListViewType} can be used interchangeably with ListViewType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ActiveOnly** \ + * **ArchivedOnly** \ + * **All** + */ +export type ListViewType = string; + +/** Known values of {@link DataType} that the service accepts. */ +export enum KnownDataType { + /** UriFile */ + UriFile = "uri_file", + /** UriFolder */ + UriFolder = "uri_folder", + /** Mltable */ + Mltable = "mltable" +} + +/** + * Defines values for DataType. \ + * {@link KnownDataType} can be used interchangeably with DataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **uri_file** \ + * **uri_folder** \ + * **mltable** + */ +export type DataType = string; + +/** Known values of {@link ProtectionLevel} that the service accepts. */ +export enum KnownProtectionLevel { + /** All means Intellectual Property is fully protected. */ + All = "All", + /** None means it is not an Intellectual Property. */ + None = "None" +} + +/** + * Defines values for ProtectionLevel. \ + * {@link KnownProtectionLevel} can be used interchangeably with ProtectionLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **All**: All means Intellectual Property is fully protected. \ + * **None**: None means it is not an Intellectual Property. + */ +export type ProtectionLevel = string; + +/** Known values of {@link AutoRebuildSetting} that the service accepts. */ +export enum KnownAutoRebuildSetting { + /** Disabled */ + Disabled = "Disabled", + /** OnBaseImageUpdate */ + OnBaseImageUpdate = "OnBaseImageUpdate" +} + +/** + * Defines values for AutoRebuildSetting. \ + * {@link KnownAutoRebuildSetting} can be used interchangeably with AutoRebuildSetting, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **OnBaseImageUpdate** + */ +export type AutoRebuildSetting = string; + +/** Known values of {@link EnvironmentType} that the service accepts. */ +export enum KnownEnvironmentType { + /** Curated */ + Curated = "Curated", + /** UserCreated */ + UserCreated = "UserCreated" +} + +/** + * Defines values for EnvironmentType. \ + * {@link KnownEnvironmentType} can be used interchangeably with EnvironmentType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Curated** \ + * **UserCreated** + */ +export type EnvironmentType = string; + +/** Known values of {@link OperatingSystemType} that the service accepts. */ +export enum KnownOperatingSystemType { + /** Linux */ + Linux = "Linux", + /** Windows */ + Windows = "Windows" +} + +/** + * Defines values for OperatingSystemType. \ + * {@link KnownOperatingSystemType} can be used interchangeably with OperatingSystemType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Linux** \ + * **Windows** + */ +export type OperatingSystemType = string; + +/** Known values of {@link BaseEnvironmentSourceType} that the service accepts. */ +export enum KnownBaseEnvironmentSourceType { + /** EnvironmentAsset */ + EnvironmentAsset = "EnvironmentAsset" +} + +/** + * Defines values for BaseEnvironmentSourceType. \ + * {@link KnownBaseEnvironmentSourceType} can be used interchangeably with BaseEnvironmentSourceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **EnvironmentAsset** + */ +export type BaseEnvironmentSourceType = string; + +/** Known values of {@link InferencingServerType} that the service accepts. */ +export enum KnownInferencingServerType { + /** AzureMLOnline */ + AzureMLOnline = "AzureMLOnline", + /** AzureMLBatch */ + AzureMLBatch = "AzureMLBatch", + /** Triton */ + Triton = "Triton", + /** Custom */ + Custom = "Custom" +} + +/** + * Defines values for InferencingServerType. \ + * {@link KnownInferencingServerType} can be used interchangeably with InferencingServerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureMLOnline** \ + * **AzureMLBatch** \ + * **Triton** \ + * **Custom** + */ +export type InferencingServerType = string; + +/** Known values of {@link PackageInputType} that the service accepts. */ +export enum KnownPackageInputType { + /** UriFile */ + UriFile = "UriFile", + /** UriFolder */ + UriFolder = "UriFolder" +} + +/** + * Defines values for PackageInputType. \ + * {@link KnownPackageInputType} can be used interchangeably with PackageInputType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **UriFile** \ + * **UriFolder** + */ +export type PackageInputType = string; + +/** Known values of {@link PackageInputDeliveryMode} that the service accepts. */ +export enum KnownPackageInputDeliveryMode { + /** Copy */ + Copy = "Copy", + /** Download */ + Download = "Download" +} + +/** + * Defines values for PackageInputDeliveryMode. \ + * {@link KnownPackageInputDeliveryMode} can be used interchangeably with PackageInputDeliveryMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Copy** \ + * **Download** + */ +export type PackageInputDeliveryMode = string; + +/** Known values of {@link InputPathType} that the service accepts. */ +export enum KnownInputPathType { + /** Url */ + Url = "Url", + /** PathId */ + PathId = "PathId", + /** PathVersion */ + PathVersion = "PathVersion" +} + +/** + * Defines values for InputPathType. \ + * {@link KnownInputPathType} can be used interchangeably with InputPathType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Url** \ + * **PathId** \ + * **PathVersion** + */ +export type InputPathType = string; + +/** Known values of {@link PackageBuildState} that the service accepts. */ +export enum KnownPackageBuildState { + /** NotStarted */ + NotStarted = "NotStarted", + /** Running */ + Running = "Running", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed" +} + +/** + * Defines values for PackageBuildState. \ + * {@link KnownPackageBuildState} can be used interchangeably with PackageBuildState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotStarted** \ + * **Running** \ + * **Succeeded** \ + * **Failed** + */ +export type PackageBuildState = string; + +/** Known values of {@link EndpointProvisioningState} that the service accepts. */ +export enum KnownEndpointProvisioningState { + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Updating */ + Updating = "Updating", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * Defines values for EndpointProvisioningState. \ + * {@link KnownEndpointProvisioningState} can be used interchangeably with EndpointProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Updating** \ + * **Canceled** + */ +export type EndpointProvisioningState = string; + +/** Known values of {@link EndpointAuthMode} that the service accepts. */ +export enum KnownEndpointAuthMode { + /** AMLToken */ + AMLToken = "AMLToken", + /** Key */ + Key = "Key", + /** AADToken */ + AADToken = "AADToken" +} + +/** + * Defines values for EndpointAuthMode. \ + * {@link KnownEndpointAuthMode} can be used interchangeably with EndpointAuthMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AMLToken** \ + * **Key** \ + * **AADToken** + */ +export type EndpointAuthMode = string; + +/** Known values of {@link BatchDeploymentConfigurationType} that the service accepts. */ +export enum KnownBatchDeploymentConfigurationType { + /** Model */ + Model = "Model", + /** PipelineComponent */ + PipelineComponent = "PipelineComponent" +} + +/** + * Defines values for BatchDeploymentConfigurationType. \ + * {@link KnownBatchDeploymentConfigurationType} can be used interchangeably with BatchDeploymentConfigurationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Model** \ + * **PipelineComponent** + */ +export type BatchDeploymentConfigurationType = string; + +/** Known values of {@link BatchLoggingLevel} that the service accepts. */ +export enum KnownBatchLoggingLevel { + /** Info */ + Info = "Info", + /** Warning */ + Warning = "Warning", + /** Debug */ + Debug = "Debug" +} + +/** + * Defines values for BatchLoggingLevel. \ + * {@link KnownBatchLoggingLevel} can be used interchangeably with BatchLoggingLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Info** \ + * **Warning** \ + * **Debug** + */ +export type BatchLoggingLevel = string; + +/** Known values of {@link ReferenceType} that the service accepts. */ +export enum KnownReferenceType { + /** Id */ + Id = "Id", + /** DataPath */ + DataPath = "DataPath", + /** OutputPath */ + OutputPath = "OutputPath" +} + +/** + * Defines values for ReferenceType. \ + * {@link KnownReferenceType} can be used interchangeably with ReferenceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Id** \ + * **DataPath** \ + * **OutputPath** + */ +export type ReferenceType = string; + +/** Known values of {@link BatchOutputAction} that the service accepts. */ +export enum KnownBatchOutputAction { + /** SummaryOnly */ + SummaryOnly = "SummaryOnly", + /** AppendRow */ + AppendRow = "AppendRow" +} + +/** + * Defines values for BatchOutputAction. \ + * {@link KnownBatchOutputAction} can be used interchangeably with BatchOutputAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SummaryOnly** \ + * **AppendRow** + */ +export type BatchOutputAction = string; + +/** Known values of {@link DeploymentProvisioningState} that the service accepts. */ +export enum KnownDeploymentProvisioningState { + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Scaling */ + Scaling = "Scaling", + /** Updating */ + Updating = "Updating", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * Defines values for DeploymentProvisioningState. \ + * {@link KnownDeploymentProvisioningState} can be used interchangeably with DeploymentProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Deleting** \ + * **Scaling** \ + * **Updating** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** + */ +export type DeploymentProvisioningState = string; + +/** Known values of {@link CredentialsType} that the service accepts. */ +export enum KnownCredentialsType { + /** AccountKey */ + AccountKey = "AccountKey", + /** Certificate */ + Certificate = "Certificate", + /** None */ + None = "None", + /** Sas */ + Sas = "Sas", + /** ServicePrincipal */ + ServicePrincipal = "ServicePrincipal", + /** KerberosKeytab */ + KerberosKeytab = "KerberosKeytab", + /** KerberosPassword */ + KerberosPassword = "KerberosPassword" +} + +/** + * Defines values for CredentialsType. \ + * {@link KnownCredentialsType} can be used interchangeably with CredentialsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AccountKey** \ + * **Certificate** \ + * **None** \ + * **Sas** \ + * **ServicePrincipal** \ + * **KerberosKeytab** \ + * **KerberosPassword** + */ +export type CredentialsType = string; + +/** Known values of {@link DatastoreType} that the service accepts. */ +export enum KnownDatastoreType { + /** AzureBlob */ + AzureBlob = "AzureBlob", + /** AzureDataLakeGen1 */ + AzureDataLakeGen1 = "AzureDataLakeGen1", + /** AzureDataLakeGen2 */ + AzureDataLakeGen2 = "AzureDataLakeGen2", + /** AzureFile */ + AzureFile = "AzureFile", + /** Hdfs */ + Hdfs = "Hdfs", + /** OneLake */ + OneLake = "OneLake" +} + +/** + * Defines values for DatastoreType. \ + * {@link KnownDatastoreType} can be used interchangeably with DatastoreType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureBlob** \ + * **AzureDataLakeGen1** \ + * **AzureDataLakeGen2** \ + * **AzureFile** \ + * **Hdfs** \ + * **OneLake** + */ +export type DatastoreType = string; + +/** Known values of {@link SecretsType} that the service accepts. */ +export enum KnownSecretsType { + /** AccountKey */ + AccountKey = "AccountKey", + /** Certificate */ + Certificate = "Certificate", + /** Sas */ + Sas = "Sas", + /** ServicePrincipal */ + ServicePrincipal = "ServicePrincipal", + /** KerberosPassword */ + KerberosPassword = "KerberosPassword", + /** KerberosKeytab */ + KerberosKeytab = "KerberosKeytab" +} + +/** + * Defines values for SecretsType. \ + * {@link KnownSecretsType} can be used interchangeably with SecretsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AccountKey** \ + * **Certificate** \ + * **Sas** \ + * **ServicePrincipal** \ + * **KerberosPassword** \ + * **KerberosKeytab** + */ +export type SecretsType = string; + +/** Known values of {@link FeatureDataType} that the service accepts. */ +export enum KnownFeatureDataType { + /** String */ + String = "String", + /** Integer */ + Integer = "Integer", + /** Long */ + Long = "Long", + /** Float */ + Float = "Float", + /** Double */ + Double = "Double", + /** Binary */ + Binary = "Binary", + /** Datetime */ + Datetime = "Datetime", + /** Boolean */ + Boolean = "Boolean" +} + +/** + * Defines values for FeatureDataType. \ + * {@link KnownFeatureDataType} can be used interchangeably with FeatureDataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **String** \ + * **Integer** \ + * **Long** \ + * **Float** \ + * **Double** \ + * **Binary** \ + * **Datetime** \ + * **Boolean** + */ +export type FeatureDataType = string; + +/** Known values of {@link EmailNotificationEnableType} that the service accepts. */ +export enum KnownEmailNotificationEnableType { + /** JobCompleted */ + JobCompleted = "JobCompleted", + /** JobFailed */ + JobFailed = "JobFailed", + /** JobCancelled */ + JobCancelled = "JobCancelled" +} + +/** + * Defines values for EmailNotificationEnableType. \ + * {@link KnownEmailNotificationEnableType} can be used interchangeably with EmailNotificationEnableType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JobCompleted** \ + * **JobFailed** \ + * **JobCancelled** + */ +export type EmailNotificationEnableType = string; + +/** Known values of {@link WebhookType} that the service accepts. */ +export enum KnownWebhookType { + /** AzureDevOps */ + AzureDevOps = "AzureDevOps" +} + +/** + * Defines values for WebhookType. \ + * {@link KnownWebhookType} can be used interchangeably with WebhookType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureDevOps** + */ +export type WebhookType = string; + +/** Known values of {@link RecurrenceFrequency} that the service accepts. */ +export enum KnownRecurrenceFrequency { + /** Minute frequency */ + Minute = "Minute", + /** Hour frequency */ + Hour = "Hour", + /** Day frequency */ + Day = "Day", + /** Week frequency */ + Week = "Week", + /** Month frequency */ + Month = "Month" +} + +/** + * Defines values for RecurrenceFrequency. \ + * {@link KnownRecurrenceFrequency} can be used interchangeably with RecurrenceFrequency, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Minute**: Minute frequency \ + * **Hour**: Hour frequency \ + * **Day**: Day frequency \ + * **Week**: Week frequency \ + * **Month**: Month frequency + */ +export type RecurrenceFrequency = string; + +/** Known values of {@link WeekDay} that the service accepts. */ +export enum KnownWeekDay { + /** Monday weekday */ + Monday = "Monday", + /** Tuesday weekday */ + Tuesday = "Tuesday", + /** Wednesday weekday */ + Wednesday = "Wednesday", + /** Thursday weekday */ + Thursday = "Thursday", + /** Friday weekday */ + Friday = "Friday", + /** Saturday weekday */ + Saturday = "Saturday", + /** Sunday weekday */ + Sunday = "Sunday" +} + +/** + * Defines values for WeekDay. \ + * {@link KnownWeekDay} can be used interchangeably with WeekDay, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Monday**: Monday weekday \ + * **Tuesday**: Tuesday weekday \ + * **Wednesday**: Wednesday weekday \ + * **Thursday**: Thursday weekday \ + * **Friday**: Friday weekday \ + * **Saturday**: Saturday weekday \ + * **Sunday**: Sunday weekday + */ +export type WeekDay = string; + +/** Known values of {@link TriggerType} that the service accepts. */ +export enum KnownTriggerType { + /** Recurrence */ + Recurrence = "Recurrence", + /** Cron */ + Cron = "Cron" +} + +/** + * Defines values for TriggerType. \ + * {@link KnownTriggerType} can be used interchangeably with TriggerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Recurrence** \ + * **Cron** + */ +export type TriggerType = string; + +/** Known values of {@link MaterializationStoreType} that the service accepts. */ +export enum KnownMaterializationStoreType { + /** None */ + None = "None", + /** Online */ + Online = "Online", + /** Offline */ + Offline = "Offline", + /** OnlineAndOffline */ + OnlineAndOffline = "OnlineAndOffline" +} + +/** + * Defines values for MaterializationStoreType. \ + * {@link KnownMaterializationStoreType} can be used interchangeably with MaterializationStoreType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Online** \ + * **Offline** \ + * **OnlineAndOffline** + */ +export type MaterializationStoreType = string; + +/** Known values of {@link DataAvailabilityStatus} that the service accepts. */ +export enum KnownDataAvailabilityStatus { + /** None */ + None = "None", + /** Pending */ + Pending = "Pending", + /** Incomplete */ + Incomplete = "Incomplete", + /** Complete */ + Complete = "Complete" +} + +/** + * Defines values for DataAvailabilityStatus. \ + * {@link KnownDataAvailabilityStatus} can be used interchangeably with DataAvailabilityStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Pending** \ + * **Incomplete** \ + * **Complete** + */ +export type DataAvailabilityStatus = string; + +/** Known values of {@link OrderString} that the service accepts. */ +export enum KnownOrderString { + /** CreatedAtDesc */ + CreatedAtDesc = "CreatedAtDesc", + /** CreatedAtAsc */ + CreatedAtAsc = "CreatedAtAsc", + /** UpdatedAtDesc */ + UpdatedAtDesc = "UpdatedAtDesc", + /** UpdatedAtAsc */ + UpdatedAtAsc = "UpdatedAtAsc" +} + +/** + * Defines values for OrderString. \ + * {@link KnownOrderString} can be used interchangeably with OrderString, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CreatedAtDesc** \ + * **CreatedAtAsc** \ + * **UpdatedAtDesc** \ + * **UpdatedAtAsc** + */ +export type OrderString = string; + +/** Known values of {@link PoolProvisioningState} that the service accepts. */ +export enum KnownPoolProvisioningState { + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Updating */ + Updating = "Updating", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * Defines values for PoolProvisioningState. \ + * {@link KnownPoolProvisioningState} can be used interchangeably with PoolProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Updating** \ + * **Canceled** + */ +export type PoolProvisioningState = string; + +/** Known values of {@link SkuScaleType} that the service accepts. */ +export enum KnownSkuScaleType { + /** Automatically scales node count. */ + Automatic = "Automatic", + /** Node count scaled upon user request. */ + Manual = "Manual", + /** Fixed set of nodes. */ + None = "None" +} + +/** + * Defines values for SkuScaleType. \ + * {@link KnownSkuScaleType} can be used interchangeably with SkuScaleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Automatic**: Automatically scales node count. \ + * **Manual**: Node count scaled upon user request. \ + * **None**: Fixed set of nodes. + */ +export type SkuScaleType = string; + +/** Known values of {@link AuthMode} that the service accepts. */ +export enum KnownAuthMode { + /** AAD */ + AAD = "AAD" +} + +/** + * Defines values for AuthMode. \ + * {@link KnownAuthMode} can be used interchangeably with AuthMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AAD** + */ +export type AuthMode = string; + +/** Known values of {@link IdentityConfigurationType} that the service accepts. */ +export enum KnownIdentityConfigurationType { + /** Managed */ + Managed = "Managed", + /** AMLToken */ + AMLToken = "AMLToken", + /** UserIdentity */ + UserIdentity = "UserIdentity" +} + +/** + * Defines values for IdentityConfigurationType. \ + * {@link KnownIdentityConfigurationType} can be used interchangeably with IdentityConfigurationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Managed** \ + * **AMLToken** \ + * **UserIdentity** + */ +export type IdentityConfigurationType = string; + +/** Known values of {@link JobType} that the service accepts. */ +export enum KnownJobType { + /** AutoML */ + AutoML = "AutoML", + /** Command */ + Command = "Command", + /** Labeling */ + Labeling = "Labeling", + /** Sweep */ + Sweep = "Sweep", + /** Pipeline */ + Pipeline = "Pipeline", + /** Spark */ + Spark = "Spark" +} + +/** + * Defines values for JobType. \ + * {@link KnownJobType} can be used interchangeably with JobType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AutoML** \ + * **Command** \ + * **Labeling** \ + * **Sweep** \ + * **Pipeline** \ + * **Spark** + */ +export type JobType = string; + +/** Known values of {@link NodesValueType} that the service accepts. */ +export enum KnownNodesValueType { + /** All */ + All = "All", + /** Custom */ + Custom = "Custom" +} + +/** + * Defines values for NodesValueType. \ + * {@link KnownNodesValueType} can be used interchangeably with NodesValueType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **All** \ + * **Custom** + */ +export type NodesValueType = string; + +/** Known values of {@link JobStatus} that the service accepts. */ +export enum KnownJobStatus { + /** Run hasn't started yet. */ + NotStarted = "NotStarted", + /** Run has started. The user has a run ID. */ + Starting = "Starting", + /** (Not used currently) It will be used if ES is creating the compute target. */ + Provisioning = "Provisioning", + /** The run environment is being prepared. */ + Preparing = "Preparing", + /** The job is queued in the compute target. For example, in BatchAI the job is in queued state, while waiting for all required nodes to be ready. */ + Queued = "Queued", + /** The job started to run in the compute target. */ + Running = "Running", + /** Job is completed in the target. It is in output collection state now. */ + Finalizing = "Finalizing", + /** Cancellation has been requested for the job. */ + CancelRequested = "CancelRequested", + /** Job completed successfully. This reflects that both the job itself and output collection states completed successfully */ + Completed = "Completed", + /** Job failed. */ + Failed = "Failed", + /** Following cancellation request, the job is now successfully canceled. */ + Canceled = "Canceled", + /** + * When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. + * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. + */ + NotResponding = "NotResponding", + /** The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. */ + Paused = "Paused", + /** Default job status if not mapped to all other statuses */ + Unknown = "Unknown", + /** The job is in a scheduled state. Job is not in any active state. */ + Scheduled = "Scheduled" +} + +/** + * Defines values for JobStatus. \ + * {@link KnownJobStatus} can be used interchangeably with JobStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotStarted**: Run hasn't started yet. \ + * **Starting**: Run has started. The user has a run ID. \ + * **Provisioning**: (Not used currently) It will be used if ES is creating the compute target. \ + * **Preparing**: The run environment is being prepared. \ + * **Queued**: The job is queued in the compute target. For example, in BatchAI the job is in queued state, while waiting for all required nodes to be ready. \ + * **Running**: The job started to run in the compute target. \ + * **Finalizing**: Job is completed in the target. It is in output collection state now. \ + * **CancelRequested**: Cancellation has been requested for the job. \ + * **Completed**: Job completed successfully. This reflects that both the job itself and output collection states completed successfully \ + * **Failed**: Job failed. \ + * **Canceled**: Following cancellation request, the job is now successfully canceled. \ + * **NotResponding**: When heartbeat is enabled, if the run isn't updating any information to RunHistory then the run goes to NotResponding state. + * NotResponding is the only state that is exempt from strict transition orders. A run can go from NotResponding to any of the previous states. \ + * **Paused**: The job is paused by users. Some adjustment to labeling jobs can be made only in paused state. \ + * **Unknown**: Default job status if not mapped to all other statuses \ + * **Scheduled**: The job is in a scheduled state. Job is not in any active state. + */ +export type JobStatus = string; + +/** Known values of {@link IncrementalDataRefresh} that the service accepts. */ +export enum KnownIncrementalDataRefresh { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for IncrementalDataRefresh. \ + * {@link KnownIncrementalDataRefresh} can be used interchangeably with IncrementalDataRefresh, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type IncrementalDataRefresh = string; + +/** Known values of {@link MultiSelect} that the service accepts. */ +export enum KnownMultiSelect { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for MultiSelect. \ + * {@link KnownMultiSelect} can be used interchangeably with MultiSelect, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type MultiSelect = string; + +/** Known values of {@link MediaType} that the service accepts. */ +export enum KnownMediaType { + /** Image */ + Image = "Image", + /** Text */ + Text = "Text" +} + +/** + * Defines values for MediaType. \ + * {@link KnownMediaType} can be used interchangeably with MediaType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Image** \ + * **Text** + */ +export type MediaType = string; + +/** Known values of {@link MLAssistConfigurationType} that the service accepts. */ +export enum KnownMLAssistConfigurationType { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for MLAssistConfigurationType. \ + * {@link KnownMLAssistConfigurationType} can be used interchangeably with MLAssistConfigurationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type MLAssistConfigurationType = string; + +/** Known values of {@link JobProvisioningState} that the service accepts. */ +export enum KnownJobProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** InProgress */ + InProgress = "InProgress" +} + +/** + * Defines values for JobProvisioningState. \ + * {@link KnownJobProvisioningState} can be used interchangeably with JobProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **InProgress** + */ +export type JobProvisioningState = string; + +/** Known values of {@link StatusMessageLevel} that the service accepts. */ +export enum KnownStatusMessageLevel { + /** Error */ + Error = "Error", + /** Information */ + Information = "Information", + /** Warning */ + Warning = "Warning" +} + +/** + * Defines values for StatusMessageLevel. \ + * {@link KnownStatusMessageLevel} can be used interchangeably with StatusMessageLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Error** \ + * **Information** \ + * **Warning** + */ +export type StatusMessageLevel = string; + +/** Known values of {@link ExportFormatType} that the service accepts. */ +export enum KnownExportFormatType { + /** Dataset */ + Dataset = "Dataset", + /** Coco */ + Coco = "Coco", + /** CSV */ + CSV = "CSV" +} + +/** + * Defines values for ExportFormatType. \ + * {@link KnownExportFormatType} can be used interchangeably with ExportFormatType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Dataset** \ + * **Coco** \ + * **CSV** + */ +export type ExportFormatType = string; + +/** Known values of {@link EndpointComputeType} that the service accepts. */ +export enum KnownEndpointComputeType { + /** Managed */ + Managed = "Managed", + /** Kubernetes */ + Kubernetes = "Kubernetes", + /** AzureMLCompute */ + AzureMLCompute = "AzureMLCompute" +} + +/** + * Defines values for EndpointComputeType. \ + * {@link KnownEndpointComputeType} can be used interchangeably with EndpointComputeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Managed** \ + * **Kubernetes** \ + * **AzureMLCompute** + */ +export type EndpointComputeType = string; + +/** Known values of {@link PublicNetworkAccessType} that the service accepts. */ +export enum KnownPublicNetworkAccessType { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for PublicNetworkAccessType. \ + * {@link KnownPublicNetworkAccessType} can be used interchangeably with PublicNetworkAccessType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type PublicNetworkAccessType = string; + +/** Known values of {@link DataCollectionMode} that the service accepts. */ +export enum KnownDataCollectionMode { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for DataCollectionMode. \ + * {@link KnownDataCollectionMode} can be used interchangeably with DataCollectionMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type DataCollectionMode = string; + +/** Known values of {@link RollingRateType} that the service accepts. */ +export enum KnownRollingRateType { + /** Year */ + Year = "Year", + /** Month */ + Month = "Month", + /** Day */ + Day = "Day", + /** Hour */ + Hour = "Hour", + /** Minute */ + Minute = "Minute" +} + +/** + * Defines values for RollingRateType. \ + * {@link KnownRollingRateType} can be used interchangeably with RollingRateType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Year** \ + * **Month** \ + * **Day** \ + * **Hour** \ + * **Minute** + */ +export type RollingRateType = string; + +/** Known values of {@link EgressPublicNetworkAccessType} that the service accepts. */ +export enum KnownEgressPublicNetworkAccessType { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for EgressPublicNetworkAccessType. \ + * {@link KnownEgressPublicNetworkAccessType} can be used interchangeably with EgressPublicNetworkAccessType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type EgressPublicNetworkAccessType = string; + +/** Known values of {@link ScaleType} that the service accepts. */ +export enum KnownScaleType { + /** Default */ + Default = "Default", + /** TargetUtilization */ + TargetUtilization = "TargetUtilization" +} + +/** + * Defines values for ScaleType. \ + * {@link KnownScaleType} can be used interchangeably with ScaleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** \ + * **TargetUtilization** + */ +export type ScaleType = string; + +/** Known values of {@link ContainerType} that the service accepts. */ +export enum KnownContainerType { + /** The container used to download models and score script. */ + StorageInitializer = "StorageInitializer", + /** The container used to serve user's request. */ + InferenceServer = "InferenceServer", + /** The container used to collect payload and custom logging when mdc is enabled. */ + ModelDataCollector = "ModelDataCollector" +} + +/** + * Defines values for ContainerType. \ + * {@link KnownContainerType} can be used interchangeably with ContainerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **StorageInitializer**: The container used to download models and score script. \ + * **InferenceServer**: The container used to serve user's request. \ + * **ModelDataCollector**: The container used to collect payload and custom logging when mdc is enabled. + */ +export type ContainerType = string; + +/** Known values of {@link KeyType} that the service accepts. */ +export enum KnownKeyType { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" +} + +/** + * Defines values for KeyType. \ + * {@link KnownKeyType} can be used interchangeably with KeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Primary** \ + * **Secondary** + */ +export type KeyType = string; + +/** Known values of {@link ScheduleListViewType} that the service accepts. */ +export enum KnownScheduleListViewType { + /** EnabledOnly */ + EnabledOnly = "EnabledOnly", + /** DisabledOnly */ + DisabledOnly = "DisabledOnly", + /** All */ + All = "All" +} + +/** + * Defines values for ScheduleListViewType. \ + * {@link KnownScheduleListViewType} can be used interchangeably with ScheduleListViewType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **EnabledOnly** \ + * **DisabledOnly** \ + * **All** + */ +export type ScheduleListViewType = string; + +/** Known values of {@link ScheduleActionType} that the service accepts. */ +export enum KnownScheduleActionType { + /** CreateJob */ + CreateJob = "CreateJob", + /** InvokeBatchEndpoint */ + InvokeBatchEndpoint = "InvokeBatchEndpoint", + /** ImportData */ + ImportData = "ImportData", + /** CreateMonitor */ + CreateMonitor = "CreateMonitor" +} + +/** + * Defines values for ScheduleActionType. \ + * {@link KnownScheduleActionType} can be used interchangeably with ScheduleActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CreateJob** \ + * **InvokeBatchEndpoint** \ + * **ImportData** \ + * **CreateMonitor** + */ +export type ScheduleActionType = string; + +/** Known values of {@link ScheduleProvisioningStatus} that the service accepts. */ +export enum KnownScheduleProvisioningStatus { + /** Creating */ + Creating = "Creating", + /** Updating */ + Updating = "Updating", + /** Deleting */ + Deleting = "Deleting", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled" +} + +/** + * Defines values for ScheduleProvisioningStatus. \ + * {@link KnownScheduleProvisioningStatus} can be used interchangeably with ScheduleProvisioningStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Updating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** + */ +export type ScheduleProvisioningStatus = string; + +/** Known values of {@link EndpointServiceConnectionStatus} that the service accepts. */ +export enum KnownEndpointServiceConnectionStatus { + /** Approved */ + Approved = "Approved", + /** Pending */ + Pending = "Pending", + /** Rejected */ + Rejected = "Rejected", + /** Disconnected */ + Disconnected = "Disconnected", + /** Timeout */ + Timeout = "Timeout" +} + +/** + * Defines values for EndpointServiceConnectionStatus. \ + * {@link KnownEndpointServiceConnectionStatus} can be used interchangeably with EndpointServiceConnectionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Approved** \ + * **Pending** \ + * **Rejected** \ + * **Disconnected** \ + * **Timeout** + */ +export type EndpointServiceConnectionStatus = string; + +/** Known values of {@link EncryptionStatus} that the service accepts. */ +export enum KnownEncryptionStatus { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * 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 EncryptionStatus = string; + +/** Known values of {@link IsolationMode} that the service accepts. */ +export enum KnownIsolationMode { + /** Disabled */ + Disabled = "Disabled", + /** AllowInternetOutbound */ + AllowInternetOutbound = "AllowInternetOutbound", + /** AllowOnlyApprovedOutbound */ + AllowOnlyApprovedOutbound = "AllowOnlyApprovedOutbound" +} + +/** + * Defines values for IsolationMode. \ + * {@link KnownIsolationMode} can be used interchangeably with IsolationMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **AllowInternetOutbound** \ + * **AllowOnlyApprovedOutbound** + */ +export type IsolationMode = string; + +/** Known values of {@link RuleCategory} that the service accepts. */ +export enum KnownRuleCategory { + /** Required */ + Required = "Required", + /** Recommended */ + Recommended = "Recommended", + /** UserDefined */ + UserDefined = "UserDefined" +} + +/** + * Defines values for RuleCategory. \ + * {@link KnownRuleCategory} can be used interchangeably with RuleCategory, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Required** \ + * **Recommended** \ + * **UserDefined** + */ +export type RuleCategory = string; + +/** Known values of {@link RuleStatus} that the service accepts. */ +export enum KnownRuleStatus { + /** Inactive */ + Inactive = "Inactive", + /** Active */ + Active = "Active" +} + +/** + * Defines values for RuleStatus. \ + * {@link KnownRuleStatus} can be used interchangeably with RuleStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Inactive** \ + * **Active** + */ +export type RuleStatus = string; + +/** Known values of {@link RuleType} that the service accepts. */ +export enum KnownRuleType { + /** Fqdn */ + Fqdn = "FQDN", + /** PrivateEndpoint */ + PrivateEndpoint = "PrivateEndpoint", + /** ServiceTag */ + ServiceTag = "ServiceTag" +} + +/** + * Defines values for RuleType. \ + * {@link KnownRuleType} can be used interchangeably with RuleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **FQDN** \ + * **PrivateEndpoint** \ + * **ServiceTag** + */ +export type RuleType = string; + +/** Known values of {@link ManagedNetworkStatus} that the service accepts. */ +export enum KnownManagedNetworkStatus { + /** Inactive */ + Inactive = "Inactive", + /** Active */ + Active = "Active" +} + +/** + * Defines values for ManagedNetworkStatus. \ + * {@link KnownManagedNetworkStatus} can be used interchangeably with ManagedNetworkStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Inactive** \ + * **Active** + */ +export type ManagedNetworkStatus = string; + +/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */ +export enum KnownPrivateEndpointConnectionProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Creating */ + Creating = "Creating", + /** Deleting */ + Deleting = "Deleting", + /** Failed */ + Failed = "Failed" +} + +/** + * 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 PrivateEndpointConnectionProvisioningState = string; + +/** Known values of {@link ConnectionAuthType} that the service accepts. */ +export enum KnownConnectionAuthType { + /** PAT */ + PAT = "PAT", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** UsernamePassword */ + UsernamePassword = "UsernamePassword", + /** None */ + None = "None", + /** SAS */ + SAS = "SAS", + /** ServicePrincipal */ + ServicePrincipal = "ServicePrincipal", + /** AccessKey */ + AccessKey = "AccessKey", + /** ApiKey */ + ApiKey = "ApiKey", + /** CustomKeys */ + CustomKeys = "CustomKeys" +} + +/** + * Defines values for ConnectionAuthType. \ + * {@link KnownConnectionAuthType} can be used interchangeably with ConnectionAuthType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PAT** \ + * **ManagedIdentity** \ + * **UsernamePassword** \ + * **None** \ + * **SAS** \ + * **ServicePrincipal** \ + * **AccessKey** \ + * **ApiKey** \ + * **CustomKeys** + */ +export type ConnectionAuthType = string; + +/** Known values of {@link ConnectionCategory} that the service accepts. */ +export enum KnownConnectionCategory { + /** PythonFeed */ + PythonFeed = "PythonFeed", + /** ContainerRegistry */ + ContainerRegistry = "ContainerRegistry", + /** Git */ + Git = "Git", + /** S3 */ + S3 = "S3", + /** Snowflake */ + Snowflake = "Snowflake", + /** AzureSqlDb */ + AzureSqlDb = "AzureSqlDb", + /** AzureSynapseAnalytics */ + AzureSynapseAnalytics = "AzureSynapseAnalytics", + /** AzureMySqlDb */ + AzureMySqlDb = "AzureMySqlDb", + /** AzurePostgresDb */ + AzurePostgresDb = "AzurePostgresDb", + /** AdlsGen2 */ + AdlsGen2 = "ADLSGen2", + /** Redis */ + Redis = "Redis", + /** ApiKey */ + ApiKey = "ApiKey", + /** AzureOpenAI */ + AzureOpenAI = "AzureOpenAI", + /** CognitiveSearch */ + CognitiveSearch = "CognitiveSearch", + /** CognitiveService */ + CognitiveService = "CognitiveService", + /** CustomKeys */ + CustomKeys = "CustomKeys" +} + +/** + * Defines values for ConnectionCategory. \ + * {@link KnownConnectionCategory} can be used interchangeably with ConnectionCategory, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PythonFeed** \ + * **ContainerRegistry** \ + * **Git** \ + * **S3** \ + * **Snowflake** \ + * **AzureSqlDb** \ + * **AzureSynapseAnalytics** \ + * **AzureMySqlDb** \ + * **AzurePostgresDb** \ + * **ADLSGen2** \ + * **Redis** \ + * **ApiKey** \ + * **AzureOpenAI** \ + * **CognitiveSearch** \ + * **CognitiveService** \ + * **CustomKeys** + */ +export type ConnectionCategory = string; + +/** Known values of {@link DiagnoseResultLevel} that the service accepts. */ +export enum KnownDiagnoseResultLevel { + /** Warning */ + Warning = "Warning", + /** Error */ + Error = "Error", + /** Information */ + Information = "Information" +} + +/** + * 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 DiagnoseResultLevel = string; + +/** Known values of {@link ClusterPurpose} that the service accepts. */ +export enum KnownClusterPurpose { + /** FastProd */ + FastProd = "FastProd", + /** DenseProd */ + DenseProd = "DenseProd", + /** DevTest */ + DevTest = "DevTest" +} + +/** + * 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 ClusterPurpose = string; + +/** Known values of {@link SslConfigStatus} that the service accepts. */ +export enum KnownSslConfigStatus { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", + /** Auto */ + Auto = "Auto" +} + +/** + * Defines values for SslConfigStatus. \ + * {@link KnownSslConfigStatus} can be used interchangeably with SslConfigStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** \ + * **Auto** + */ +export type SslConfigStatus = string; + +/** Known values of {@link LoadBalancerType} that the service accepts. */ +export enum KnownLoadBalancerType { + /** PublicIp */ + PublicIp = "PublicIp", + /** InternalLoadBalancer */ + InternalLoadBalancer = "InternalLoadBalancer" +} + +/** + * 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 LoadBalancerType = string; + +/** Known values of {@link OsType} that the service accepts. */ +export enum KnownOsType { + /** Linux */ + Linux = "Linux", + /** Windows */ + Windows = "Windows" +} + +/** + * 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 OsType = string; + +/** Known values of {@link VmPriority} that the service accepts. */ +export enum KnownVmPriority { + /** Dedicated */ + Dedicated = "Dedicated", + /** LowPriority */ + LowPriority = "LowPriority" +} + +/** + * 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 VmPriority = string; + +/** Known values of {@link RemoteLoginPortPublicAccess} that the service accepts. */ +export enum KnownRemoteLoginPortPublicAccess { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", + /** NotSpecified */ + NotSpecified = "NotSpecified" +} + +/** + * 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 RemoteLoginPortPublicAccess = string; + +/** Known values of {@link AllocationState} that the service accepts. */ +export enum KnownAllocationState { + /** Steady */ + Steady = "Steady", + /** Resizing */ + Resizing = "Resizing" +} + +/** + * 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 AllocationState = string; + +/** Known values of {@link ApplicationSharingPolicy} that the service accepts. */ +export enum KnownApplicationSharingPolicy { + /** Personal */ + Personal = "Personal", + /** Shared */ + Shared = "Shared" +} + +/** + * 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 ApplicationSharingPolicy = string; + +/** Known values of {@link MlflowAutologger} that the service accepts. */ +export enum KnownMlflowAutologger { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for MlflowAutologger. \ + * {@link KnownMlflowAutologger} can be used interchangeably with MlflowAutologger, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type MlflowAutologger = string; + +/** Known values of {@link SshPublicAccess} that the service accepts. */ +export enum KnownSshPublicAccess { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * 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 SshPublicAccess = string; + +/** Known values of {@link PatchStatus} that the service accepts. */ +export enum KnownPatchStatus { + /** CompletedWithWarnings */ + CompletedWithWarnings = "CompletedWithWarnings", + /** Failed */ + Failed = "Failed", + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** Unknown */ + Unknown = "Unknown" +} + +/** + * Defines values for PatchStatus. \ + * {@link KnownPatchStatus} can be used interchangeably with PatchStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CompletedWithWarnings** \ + * **Failed** \ + * **InProgress** \ + * **Succeeded** \ + * **Unknown** + */ +export type PatchStatus = string; + +/** Known values of {@link ComputeInstanceState} that the service accepts. */ +export enum KnownComputeInstanceState { + /** Creating */ + Creating = "Creating", + /** CreateFailed */ + CreateFailed = "CreateFailed", + /** Deleting */ + Deleting = "Deleting", + /** Running */ + Running = "Running", + /** Restarting */ + Restarting = "Restarting", + /** Resizing */ + Resizing = "Resizing", + /** JobRunning */ + JobRunning = "JobRunning", + /** SettingUp */ + SettingUp = "SettingUp", + /** SetupFailed */ + SetupFailed = "SetupFailed", + /** Starting */ + Starting = "Starting", + /** Stopped */ + Stopped = "Stopped", + /** Stopping */ + Stopping = "Stopping", + /** UserSettingUp */ + UserSettingUp = "UserSettingUp", + /** UserSetupFailed */ + UserSetupFailed = "UserSetupFailed", + /** Unknown */ + Unknown = "Unknown", + /** Unusable */ + 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** \ + * **Resizing** \ + * **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 = "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 = "Create", + /** Start */ + Start = "Start", + /** Stop */ + Stop = "Stop", + /** Restart */ + Restart = "Restart", + /** Resize */ + Resize = "Resize", + /** Reimage */ + Reimage = "Reimage", + /** Delete */ + 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** \ + * **Resize** \ + * **Reimage** \ + * **Delete** + */ +export type OperationName = string; + +/** Known values of {@link OperationStatus} that the service accepts. */ +export enum KnownOperationStatus { + /** InProgress */ + InProgress = "InProgress", + /** Succeeded */ + Succeeded = "Succeeded", + /** CreateFailed */ + CreateFailed = "CreateFailed", + /** StartFailed */ + StartFailed = "StartFailed", + /** StopFailed */ + StopFailed = "StopFailed", + /** RestartFailed */ + RestartFailed = "RestartFailed", + /** ResizeFailed */ + ResizeFailed = "ResizeFailed", + /** ReimageFailed */ + ReimageFailed = "ReimageFailed", + /** DeleteFailed */ + 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** \ + * **ResizeFailed** \ + * **ReimageFailed** \ + * **DeleteFailed** + */ +export type OperationStatus = string; + +/** Known values of {@link OperationTrigger} that the service accepts. */ +export enum KnownOperationTrigger { + /** User */ + User = "User", /** Schedule */ Schedule = "Schedule", /** IdleShutdown */ IdleShutdown = "IdleShutdown" } -/** - * Defines values for OperationTrigger. \ - * {@link KnownOperationTrigger} can be used interchangeably with OperationTrigger, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Schedule** \ - * **IdleShutdown** - */ -export type OperationTrigger = string; +/** + * Defines values for OperationTrigger. \ + * {@link KnownOperationTrigger} can be used interchangeably with OperationTrigger, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Schedule** \ + * **IdleShutdown** + */ +export type OperationTrigger = string; + +/** Known values of {@link ProvisioningStatus} that the service accepts. */ +export enum KnownProvisioningStatus { + /** Completed */ + Completed = "Completed", + /** Provisioning */ + Provisioning = "Provisioning", + /** Failed */ + Failed = "Failed" +} + +/** + * Defines values for ProvisioningStatus. \ + * {@link KnownProvisioningStatus} can be used interchangeably with ProvisioningStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Completed** \ + * **Provisioning** \ + * **Failed** + */ +export type ProvisioningStatus = string; + +/** Known values of {@link ScheduleStatus} that the service accepts. */ +export enum KnownScheduleStatus { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for ScheduleStatus. \ + * {@link KnownScheduleStatus} can be used interchangeably with ScheduleStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type ScheduleStatus = string; + +/** Known values of {@link ComputePowerAction} that the service accepts. */ +export enum KnownComputePowerAction { + /** Start */ + Start = "Start", + /** Stop */ + Stop = "Stop" +} + +/** + * Defines values for ComputePowerAction. \ + * {@link KnownComputePowerAction} can be used interchangeably with ComputePowerAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Start** \ + * **Stop** + */ +export type ComputePowerAction = string; + +/** Known values of {@link ScheduleProvisioningState} that the service accepts. */ +export enum KnownScheduleProvisioningState { + /** Completed */ + Completed = "Completed", + /** Provisioning */ + Provisioning = "Provisioning", + /** Failed */ + Failed = "Failed" +} + +/** + * Defines values for ScheduleProvisioningState. \ + * {@link KnownScheduleProvisioningState} can be used interchangeably with ScheduleProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Completed** \ + * **Provisioning** \ + * **Failed** + */ +export type ScheduleProvisioningState = string; + +/** Known values of {@link Autosave} that the service accepts. */ +export enum KnownAutosave { + /** None */ + None = "None", + /** Local */ + Local = "Local", + /** Remote */ + Remote = "Remote" +} + +/** + * Defines values for Autosave. \ + * {@link KnownAutosave} can be used interchangeably with Autosave, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **Local** \ + * **Remote** + */ +export type Autosave = string; + +/** Known values of {@link Network} that the service accepts. */ +export enum KnownNetwork { + /** Bridge */ + Bridge = "Bridge", + /** Host */ + Host = "Host" +} + +/** + * Defines values for Network. \ + * {@link KnownNetwork} can be used interchangeably with Network, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Bridge** \ + * **Host** + */ +export type Network = string; + +/** Known values of {@link Caching} that the service accepts. */ +export enum KnownCaching { + /** None */ + None = "None", + /** ReadOnly */ + ReadOnly = "ReadOnly", + /** ReadWrite */ + ReadWrite = "ReadWrite" +} + +/** + * Defines values for Caching. \ + * {@link KnownCaching} can be used interchangeably with Caching, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **ReadOnly** \ + * **ReadWrite** + */ +export type Caching = string; + +/** Known values of {@link StorageAccountType} that the service accepts. */ +export enum KnownStorageAccountType { + /** StandardLRS */ + StandardLRS = "Standard_LRS", + /** PremiumLRS */ + PremiumLRS = "Premium_LRS" +} + +/** + * Defines values for StorageAccountType. \ + * {@link KnownStorageAccountType} can be used interchangeably with StorageAccountType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Standard_LRS** \ + * **Premium_LRS** + */ +export type StorageAccountType = string; + +/** Known values of {@link SourceType} that the service accepts. */ +export enum KnownSourceType { + /** Dataset */ + Dataset = "Dataset", + /** Datastore */ + Datastore = "Datastore", + /** URI */ + URI = "URI" +} + +/** + * Defines values for SourceType. \ + * {@link KnownSourceType} can be used interchangeably with SourceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Dataset** \ + * **Datastore** \ + * **URI** + */ +export type SourceType = string; + +/** Known values of {@link MountAction} that the service accepts. */ +export enum KnownMountAction { + /** Mount */ + Mount = "Mount", + /** Unmount */ + Unmount = "Unmount" +} + +/** + * Defines values for MountAction. \ + * {@link KnownMountAction} can be used interchangeably with MountAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Mount** \ + * **Unmount** + */ +export type MountAction = string; + +/** Known values of {@link MountState} that the service accepts. */ +export enum KnownMountState { + /** MountRequested */ + MountRequested = "MountRequested", + /** Mounted */ + Mounted = "Mounted", + /** MountFailed */ + MountFailed = "MountFailed", + /** UnmountRequested */ + UnmountRequested = "UnmountRequested", + /** UnmountFailed */ + UnmountFailed = "UnmountFailed", + /** Unmounted */ + Unmounted = "Unmounted" +} + +/** + * Defines values for MountState. \ + * {@link KnownMountState} can be used interchangeably with MountState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **MountRequested** \ + * **Mounted** \ + * **MountFailed** \ + * **UnmountRequested** \ + * **UnmountFailed** \ + * **Unmounted** + */ +export type MountState = string; + +/** Known values of {@link MonitoringFeatureFilterType} that the service accepts. */ +export enum KnownMonitoringFeatureFilterType { + /** Includes all features. */ + AllFeatures = "AllFeatures", + /** Only includes the top contributing features, measured by feature attribution. */ + TopNByAttribution = "TopNByAttribution", + /** Includes a user-defined subset of features. */ + FeatureSubset = "FeatureSubset" +} + +/** + * Defines values for MonitoringFeatureFilterType. \ + * {@link KnownMonitoringFeatureFilterType} can be used interchangeably with MonitoringFeatureFilterType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AllFeatures**: Includes all features. \ + * **TopNByAttribution**: Only includes the top contributing features, measured by feature attribution. \ + * **FeatureSubset**: Includes a user-defined subset of features. + */ +export type MonitoringFeatureFilterType = string; + +/** Known values of {@link MonitorComputeIdentityType} that the service accepts. */ +export enum KnownMonitorComputeIdentityType { + /** Authenticates through user's AML token. */ + AmlToken = "AmlToken", + /** Authenticates through a user-provided managed identity. */ + ManagedIdentity = "ManagedIdentity" +} + +/** + * Defines values for MonitorComputeIdentityType. \ + * {@link KnownMonitorComputeIdentityType} can be used interchangeably with MonitorComputeIdentityType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AmlToken**: Authenticates through user's AML token. \ + * **ManagedIdentity**: Authenticates through a user-provided managed identity. + */ +export type MonitorComputeIdentityType = string; + +/** Known values of {@link InputDeliveryMode} that the service accepts. */ +export enum KnownInputDeliveryMode { + /** ReadOnlyMount */ + ReadOnlyMount = "ReadOnlyMount", + /** ReadWriteMount */ + ReadWriteMount = "ReadWriteMount", + /** Download */ + Download = "Download", + /** Direct */ + Direct = "Direct", + /** EvalMount */ + EvalMount = "EvalMount", + /** EvalDownload */ + EvalDownload = "EvalDownload" +} + +/** + * Defines values for InputDeliveryMode. \ + * {@link KnownInputDeliveryMode} can be used interchangeably with InputDeliveryMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ReadOnlyMount** \ + * **ReadWriteMount** \ + * **Download** \ + * **Direct** \ + * **EvalMount** \ + * **EvalDownload** + */ +export type InputDeliveryMode = string; + +/** Known values of {@link OutputDeliveryMode} that the service accepts. */ +export enum KnownOutputDeliveryMode { + /** ReadWriteMount */ + ReadWriteMount = "ReadWriteMount", + /** Upload */ + Upload = "Upload", + /** Direct */ + Direct = "Direct" +} + +/** + * Defines values for OutputDeliveryMode. \ + * {@link KnownOutputDeliveryMode} can be used interchangeably with OutputDeliveryMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ReadWriteMount** \ + * **Upload** \ + * **Direct** + */ +export type OutputDeliveryMode = string; + +/** Known values of {@link ForecastHorizonMode} that the service accepts. */ +export enum KnownForecastHorizonMode { + /** Forecast horizon to be determined automatically. */ + Auto = "Auto", + /** Use the custom forecast horizon. */ + Custom = "Custom" +} + +/** + * Defines values for ForecastHorizonMode. \ + * {@link KnownForecastHorizonMode} can be used interchangeably with ForecastHorizonMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Forecast horizon to be determined automatically. \ + * **Custom**: Use the custom forecast horizon. + */ +export type ForecastHorizonMode = string; + +/** Known values of {@link JobOutputType} that the service accepts. */ +export enum KnownJobOutputType { + /** UriFile */ + UriFile = "uri_file", + /** UriFolder */ + UriFolder = "uri_folder", + /** Mltable */ + Mltable = "mltable", + /** CustomModel */ + CustomModel = "custom_model", + /** MlflowModel */ + MlflowModel = "mlflow_model", + /** TritonModel */ + TritonModel = "triton_model" +} + +/** + * Defines values for JobOutputType. \ + * {@link KnownJobOutputType} can be used interchangeably with JobOutputType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **uri_file** \ + * **uri_folder** \ + * **mltable** \ + * **custom_model** \ + * **mlflow_model** \ + * **triton_model** + */ +export type JobOutputType = string; + +/** Known values of {@link JobTier} that the service accepts. */ +export enum KnownJobTier { + /** Null */ + Null = "Null", + /** Spot */ + Spot = "Spot", + /** Basic */ + Basic = "Basic", + /** Standard */ + Standard = "Standard", + /** Premium */ + Premium = "Premium" +} + +/** + * Defines values for JobTier. \ + * {@link KnownJobTier} can be used interchangeably with JobTier, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Null** \ + * **Spot** \ + * **Basic** \ + * **Standard** \ + * **Premium** + */ +export type JobTier = string; + +/** Known values of {@link LogVerbosity} that the service accepts. */ +export enum KnownLogVerbosity { + /** No logs emitted. */ + NotSet = "NotSet", + /** Debug and above log statements logged. */ + Debug = "Debug", + /** Info and above log statements logged. */ + Info = "Info", + /** Warning and above log statements logged. */ + Warning = "Warning", + /** Error and above log statements logged. */ + Error = "Error", + /** Only critical statements logged. */ + Critical = "Critical" +} + +/** + * Defines values for LogVerbosity. \ + * {@link KnownLogVerbosity} can be used interchangeably with LogVerbosity, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSet**: No logs emitted. \ + * **Debug**: Debug and above log statements logged. \ + * **Info**: Info and above log statements logged. \ + * **Warning**: Warning and above log statements logged. \ + * **Error**: Error and above log statements logged. \ + * **Critical**: Only critical statements logged. + */ +export type LogVerbosity = string; + +/** Known values of {@link TaskType} that the service accepts. */ +export enum KnownTaskType { + /** + * Classification in machine learning and statistics is a supervised learning approach in which + * the computer program learns from the data given to it and make new observations or classifications. + */ + Classification = "Classification", + /** Regression means to predict the value using the input data. Regression models are used to predict a continuous value. */ + Regression = "Regression", + /** + * Forecasting is a special kind of regression task that deals with time-series data and creates forecasting model + * that can be used to predict the near future values based on the inputs. + */ + Forecasting = "Forecasting", + /** + * Image Classification. Multi-class image classification is used when an image is classified with only a single label + * from a set of classes - e.g. each image is classified as either an image of a 'cat' or a 'dog' or a 'duck'. + */ + ImageClassification = "ImageClassification", + /** + * Image Classification Multilabel. Multi-label image classification is used when an image could have one or more labels + * from a set of labels - e.g. an image could be labeled with both 'cat' and 'dog'. + */ + ImageClassificationMultilabel = "ImageClassificationMultilabel", + /** + * Image Object Detection. Object detection is used to identify objects in an image and locate each object with a + * bounding box e.g. locate all dogs and cats in an image and draw a bounding box around each. + */ + ImageObjectDetection = "ImageObjectDetection", + /** + * Image Instance Segmentation. Instance segmentation is used to identify objects in an image at the pixel level, + * drawing a polygon around each object in the image. + */ + ImageInstanceSegmentation = "ImageInstanceSegmentation", + /** + * Text classification (also known as text tagging or text categorization) is the process of sorting texts into categories. + * Categories are mutually exclusive. + */ + TextClassification = "TextClassification", + /** Multilabel classification task assigns each sample to a group (zero or more) of target labels. */ + TextClassificationMultilabel = "TextClassificationMultilabel", + /** + * Text Named Entity Recognition a.k.a. TextNER. + * Named Entity Recognition (NER) is the ability to take free-form text and identify the occurrences of entities such as people, locations, organizations, and more. + */ + TextNER = "TextNER" +} + +/** + * Defines values for TaskType. \ + * {@link KnownTaskType} can be used interchangeably with TaskType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Classification**: Classification in machine learning and statistics is a supervised learning approach in which + * the computer program learns from the data given to it and make new observations or classifications. \ + * **Regression**: Regression means to predict the value using the input data. Regression models are used to predict a continuous value. \ + * **Forecasting**: Forecasting is a special kind of regression task that deals with time-series data and creates forecasting model + * that can be used to predict the near future values based on the inputs. \ + * **ImageClassification**: Image Classification. Multi-class image classification is used when an image is classified with only a single label + * from a set of classes - e.g. each image is classified as either an image of a 'cat' or a 'dog' or a 'duck'. \ + * **ImageClassificationMultilabel**: Image Classification Multilabel. Multi-label image classification is used when an image could have one or more labels + * from a set of labels - e.g. an image could be labeled with both 'cat' and 'dog'. \ + * **ImageObjectDetection**: Image Object Detection. Object detection is used to identify objects in an image and locate each object with a + * bounding box e.g. locate all dogs and cats in an image and draw a bounding box around each. \ + * **ImageInstanceSegmentation**: Image Instance Segmentation. Instance segmentation is used to identify objects in an image at the pixel level, + * drawing a polygon around each object in the image. \ + * **TextClassification**: Text classification (also known as text tagging or text categorization) is the process of sorting texts into categories. + * Categories are mutually exclusive. \ + * **TextClassificationMultilabel**: Multilabel classification task assigns each sample to a group (zero or more) of target labels. \ + * **TextNER**: Text Named Entity Recognition a.k.a. TextNER. + * Named Entity Recognition (NER) is the ability to take free-form text and identify the occurrences of entities such as people, locations, organizations, and more. + */ +export type TaskType = string; + +/** Known values of {@link JobInputType} that the service accepts. */ +export enum KnownJobInputType { + /** Literal */ + Literal = "literal", + /** UriFile */ + UriFile = "uri_file", + /** UriFolder */ + UriFolder = "uri_folder", + /** Mltable */ + Mltable = "mltable", + /** CustomModel */ + CustomModel = "custom_model", + /** MlflowModel */ + MlflowModel = "mlflow_model", + /** TritonModel */ + TritonModel = "triton_model" +} + +/** + * Defines values for JobInputType. \ + * {@link KnownJobInputType} can be used interchangeably with JobInputType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **literal** \ + * **uri_file** \ + * **uri_folder** \ + * **mltable** \ + * **custom_model** \ + * **mlflow_model** \ + * **triton_model** + */ +export type JobInputType = string; + +/** Known values of {@link NCrossValidationsMode} that the service accepts. */ +export enum KnownNCrossValidationsMode { + /** Determine N-Cross validations value automatically. Supported only for 'Forecasting' AutoML task. */ + Auto = "Auto", + /** Use custom N-Cross validations value. */ + Custom = "Custom" +} + +/** + * Defines values for NCrossValidationsMode. \ + * {@link KnownNCrossValidationsMode} can be used interchangeably with NCrossValidationsMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Determine N-Cross validations value automatically. Supported only for 'Forecasting' AutoML task. \ + * **Custom**: Use custom N-Cross validations value. + */ +export type NCrossValidationsMode = string; + +/** Known values of {@link SeasonalityMode} that the service accepts. */ +export enum KnownSeasonalityMode { + /** Seasonality to be determined automatically. */ + Auto = "Auto", + /** Use the custom seasonality value. */ + Custom = "Custom" +} + +/** + * Defines values for SeasonalityMode. \ + * {@link KnownSeasonalityMode} can be used interchangeably with SeasonalityMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Seasonality to be determined automatically. \ + * **Custom**: Use the custom seasonality value. + */ +export type SeasonalityMode = string; + +/** Known values of {@link TargetLagsMode} that the service accepts. */ +export enum KnownTargetLagsMode { + /** Target lags to be determined automatically. */ + Auto = "Auto", + /** Use the custom target lags. */ + Custom = "Custom" +} + +/** + * Defines values for TargetLagsMode. \ + * {@link KnownTargetLagsMode} can be used interchangeably with TargetLagsMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Target lags to be determined automatically. \ + * **Custom**: Use the custom target lags. + */ +export type TargetLagsMode = string; + +/** Known values of {@link TargetRollingWindowSizeMode} that the service accepts. */ +export enum KnownTargetRollingWindowSizeMode { + /** Determine rolling windows size automatically. */ + Auto = "Auto", + /** Use the specified rolling window size. */ + Custom = "Custom" +} + +/** + * Defines values for TargetRollingWindowSizeMode. \ + * {@link KnownTargetRollingWindowSizeMode} can be used interchangeably with TargetRollingWindowSizeMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Determine rolling windows size automatically. \ + * **Custom**: Use the specified rolling window size. + */ +export type TargetRollingWindowSizeMode = string; + +/** Known values of {@link MLFlowAutologgerState} that the service accepts. */ +export enum KnownMLFlowAutologgerState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" +} + +/** + * Defines values for MLFlowAutologgerState. \ + * {@link KnownMLFlowAutologgerState} can be used interchangeably with MLFlowAutologgerState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type MLFlowAutologgerState = string; + +/** Known values of {@link MonitoringAlertNotificationType} that the service accepts. */ +export enum KnownMonitoringAlertNotificationType { + /** Settings for Azure Monitor based alerting. */ + AzureMonitor = "AzureMonitor", + /** Settings for AML email notifications. */ + Email = "Email" +} + +/** + * Defines values for MonitoringAlertNotificationType. \ + * {@link KnownMonitoringAlertNotificationType} can be used interchangeably with MonitoringAlertNotificationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureMonitor**: Settings for Azure Monitor based alerting. \ + * **Email**: Settings for AML email notifications. + */ +export type MonitoringAlertNotificationType = string; + +/** Known values of {@link ServiceDataAccessAuthIdentity} that the service accepts. */ +export enum KnownServiceDataAccessAuthIdentity { + /** Do not use any identity for service data access. */ + None = "None", + /** Use the system assigned managed identity of the Workspace to authenticate service data access. */ + WorkspaceSystemAssignedIdentity = "WorkspaceSystemAssignedIdentity", + /** Use the user assigned managed identity of the Workspace to authenticate service data access. */ + WorkspaceUserAssignedIdentity = "WorkspaceUserAssignedIdentity" +} + +/** + * Defines values for ServiceDataAccessAuthIdentity. \ + * {@link KnownServiceDataAccessAuthIdentity} can be used interchangeably with ServiceDataAccessAuthIdentity, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Do not use any identity for service data access. \ + * **WorkspaceSystemAssignedIdentity**: Use the system assigned managed identity of the Workspace to authenticate service data access. \ + * **WorkspaceUserAssignedIdentity**: Use the user assigned managed identity of the Workspace to authenticate service data access. + */ +export type ServiceDataAccessAuthIdentity = string; + +/** Known values of {@link EarlyTerminationPolicyType} that the service accepts. */ +export enum KnownEarlyTerminationPolicyType { + /** Bandit */ + Bandit = "Bandit", + /** MedianStopping */ + MedianStopping = "MedianStopping", + /** TruncationSelection */ + TruncationSelection = "TruncationSelection" +} + +/** + * Defines values for EarlyTerminationPolicyType. \ + * {@link KnownEarlyTerminationPolicyType} can be used interchangeably with EarlyTerminationPolicyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Bandit** \ + * **MedianStopping** \ + * **TruncationSelection** + */ +export type EarlyTerminationPolicyType = string; + +/** Known values of {@link SamplingAlgorithmType} that the service accepts. */ +export enum KnownSamplingAlgorithmType { + /** Grid */ + Grid = "Grid", + /** Random */ + Random = "Random", + /** Bayesian */ + Bayesian = "Bayesian" +} + +/** + * Defines values for SamplingAlgorithmType. \ + * {@link KnownSamplingAlgorithmType} can be used interchangeably with SamplingAlgorithmType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Grid** \ + * **Random** \ + * **Bayesian** + */ +export type SamplingAlgorithmType = string; + +/** Known values of {@link CategoricalDataDriftMetric} that the service accepts. */ +export enum KnownCategoricalDataDriftMetric { + /** The Jensen Shannon Distance (JSD) metric. */ + JensenShannonDistance = "JensenShannonDistance", + /** The Population Stability Index (PSI) metric. */ + PopulationStabilityIndex = "PopulationStabilityIndex", + /** The Pearsons Chi Squared Test metric. */ + PearsonsChiSquaredTest = "PearsonsChiSquaredTest" +} + +/** + * Defines values for CategoricalDataDriftMetric. \ + * {@link KnownCategoricalDataDriftMetric} can be used interchangeably with CategoricalDataDriftMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JensenShannonDistance**: The Jensen Shannon Distance (JSD) metric. \ + * **PopulationStabilityIndex**: The Population Stability Index (PSI) metric. \ + * **PearsonsChiSquaredTest**: The Pearsons Chi Squared Test metric. + */ +export type CategoricalDataDriftMetric = string; + +/** Known values of {@link MonitoringFeatureDataType} that the service accepts. */ +export enum KnownMonitoringFeatureDataType { + /** Used for features of numerical data type. */ + Numerical = "Numerical", + /** Used for features of categorical data type. */ + Categorical = "Categorical" +} + +/** + * Defines values for MonitoringFeatureDataType. \ + * {@link KnownMonitoringFeatureDataType} can be used interchangeably with MonitoringFeatureDataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Numerical**: Used for features of numerical data type. \ + * **Categorical**: Used for features of categorical data type. + */ +export type MonitoringFeatureDataType = string; + +/** Known values of {@link CategoricalDataQualityMetric} that the service accepts. */ +export enum KnownCategoricalDataQualityMetric { + /** Calculates the rate of null values. */ + NullValueRate = "NullValueRate", + /** Calculates the rate of data type errors. */ + DataTypeErrorRate = "DataTypeErrorRate", + /** Calculates the rate values are out of bounds. */ + OutOfBoundsRate = "OutOfBoundsRate" +} + +/** + * Defines values for CategoricalDataQualityMetric. \ + * {@link KnownCategoricalDataQualityMetric} can be used interchangeably with CategoricalDataQualityMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NullValueRate**: Calculates the rate of null values. \ + * **DataTypeErrorRate**: Calculates the rate of data type errors. \ + * **OutOfBoundsRate**: Calculates the rate values are out of bounds. + */ +export type CategoricalDataQualityMetric = string; + +/** Known values of {@link CategoricalPredictionDriftMetric} that the service accepts. */ +export enum KnownCategoricalPredictionDriftMetric { + /** The Jensen Shannon Distance (JSD) metric. */ + JensenShannonDistance = "JensenShannonDistance", + /** The Population Stability Index (PSI) metric. */ + PopulationStabilityIndex = "PopulationStabilityIndex", + /** The Pearsons Chi Squared Test metric. */ + PearsonsChiSquaredTest = "PearsonsChiSquaredTest" +} + +/** + * Defines values for CategoricalPredictionDriftMetric. \ + * {@link KnownCategoricalPredictionDriftMetric} can be used interchangeably with CategoricalPredictionDriftMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JensenShannonDistance**: The Jensen Shannon Distance (JSD) metric. \ + * **PopulationStabilityIndex**: The Population Stability Index (PSI) metric. \ + * **PearsonsChiSquaredTest**: The Pearsons Chi Squared Test metric. + */ +export type CategoricalPredictionDriftMetric = string; + +/** Known values of {@link ClassificationPrimaryMetrics} that the service accepts. */ +export enum KnownClassificationPrimaryMetrics { + /** + * AUC is the Area under the curve. + * This metric represents arithmetic mean of the score for each class, + * weighted by the number of true instances in each class. + */ + AUCWeighted = "AUCWeighted", + /** Accuracy is the ratio of predictions that exactly match the true class labels. */ + Accuracy = "Accuracy", + /** + * Normalized macro recall is recall macro-averaged and normalized, so that random + * performance has a score of 0, and perfect performance has a score of 1. + */ + NormMacroRecall = "NormMacroRecall", + /** + * The arithmetic mean of the average precision score for each class, weighted by + * the number of true instances in each class. + */ + AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", + /** The arithmetic mean of precision for each class, weighted by number of true instances in each class. */ + PrecisionScoreWeighted = "PrecisionScoreWeighted" +} + +/** + * Defines values for ClassificationPrimaryMetrics. \ + * {@link KnownClassificationPrimaryMetrics} can be used interchangeably with ClassificationPrimaryMetrics, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AUCWeighted**: AUC is the Area under the curve. + * This metric represents arithmetic mean of the score for each class, + * weighted by the number of true instances in each class. \ + * **Accuracy**: Accuracy is the ratio of predictions that exactly match the true class labels. \ + * **NormMacroRecall**: Normalized macro recall is recall macro-averaged and normalized, so that random + * performance has a score of 0, and perfect performance has a score of 1. \ + * **AveragePrecisionScoreWeighted**: The arithmetic mean of the average precision score for each class, weighted by + * the number of true instances in each class. \ + * **PrecisionScoreWeighted**: The arithmetic mean of precision for each class, weighted by number of true instances in each class. + */ +export type ClassificationPrimaryMetrics = string; + +/** Known values of {@link ClassificationModels} that the service accepts. */ +export enum KnownClassificationModels { + /** + * Logistic regression is a fundamental classification technique. + * It belongs to the group of linear classifiers and is somewhat similar to polynomial and linear regression. + * Logistic regression is fast and relatively uncomplicated, and it's convenient for you to interpret the results. + * Although it's essentially a method for binary classification, it can also be applied to multiclass problems. + */ + LogisticRegression = "LogisticRegression", + /** + * SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications + * to find the model parameters that correspond to the best fit between predicted and actual outputs. + */ + SGD = "SGD", + /** + * The multinomial Naive Bayes classifier is suitable for classification with discrete features (e.g., word counts for text classification). + * The multinomial distribution normally requires integer feature counts. However, in practice, fractional counts such as tf-idf may also work. + */ + MultinomialNaiveBayes = "MultinomialNaiveBayes", + /** Naive Bayes classifier for multivariate Bernoulli models. */ + BernoulliNaiveBayes = "BernoulliNaiveBayes", + /** + * A support vector machine (SVM) is a supervised machine learning model that uses classification algorithms for two-group classification problems. + * After giving an SVM model sets of labeled training data for each category, they're able to categorize new text. + */ + SVM = "SVM", + /** + * A support vector machine (SVM) is a supervised machine learning model that uses classification algorithms for two-group classification problems. + * After giving an SVM model sets of labeled training data for each category, they're able to categorize new text. + * Linear SVM performs best when input data is linear, i.e., data can be easily classified by drawing the straight line between classified values on a plotted graph. + */ + LinearSVM = "LinearSVM", + /** + * K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints + * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. + */ + KNN = "KNN", + /** + * Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. + * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. + */ + DecisionTree = "DecisionTree", + /** + * Random forest is a supervised learning algorithm. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the bagging method. + * The general idea of the bagging method is that a combination of learning models increases the overall result. + */ + RandomForest = "RandomForest", + /** Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. */ + ExtremeRandomTrees = "ExtremeRandomTrees", + /** LightGBM is a gradient boosting framework that uses tree based learning algorithms. */ + LightGBM = "LightGBM", + /** The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. */ + GradientBoosting = "GradientBoosting", + /** XGBoost: Extreme Gradient Boosting Algorithm. This algorithm is used for structured data where target column values can be divided into distinct class values. */ + XGBoostClassifier = "XGBoostClassifier" +} + +/** + * Defines values for ClassificationModels. \ + * {@link KnownClassificationModels} can be used interchangeably with ClassificationModels, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **LogisticRegression**: Logistic regression is a fundamental classification technique. + * It belongs to the group of linear classifiers and is somewhat similar to polynomial and linear regression. + * Logistic regression is fast and relatively uncomplicated, and it's convenient for you to interpret the results. + * Although it's essentially a method for binary classification, it can also be applied to multiclass problems. \ + * **SGD**: SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications + * to find the model parameters that correspond to the best fit between predicted and actual outputs. \ + * **MultinomialNaiveBayes**: The multinomial Naive Bayes classifier is suitable for classification with discrete features (e.g., word counts for text classification). + * The multinomial distribution normally requires integer feature counts. However, in practice, fractional counts such as tf-idf may also work. \ + * **BernoulliNaiveBayes**: Naive Bayes classifier for multivariate Bernoulli models. \ + * **SVM**: A support vector machine (SVM) is a supervised machine learning model that uses classification algorithms for two-group classification problems. + * After giving an SVM model sets of labeled training data for each category, they're able to categorize new text. \ + * **LinearSVM**: A support vector machine (SVM) is a supervised machine learning model that uses classification algorithms for two-group classification problems. + * After giving an SVM model sets of labeled training data for each category, they're able to categorize new text. + * Linear SVM performs best when input data is linear, i.e., data can be easily classified by drawing the straight line between classified values on a plotted graph. \ + * **KNN**: K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints + * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. \ + * **DecisionTree**: Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. + * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. \ + * **RandomForest**: Random forest is a supervised learning algorithm. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the bagging method. + * The general idea of the bagging method is that a combination of learning models increases the overall result. \ + * **ExtremeRandomTrees**: Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. \ + * **LightGBM**: LightGBM is a gradient boosting framework that uses tree based learning algorithms. \ + * **GradientBoosting**: The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. \ + * **XGBoostClassifier**: XGBoost: Extreme Gradient Boosting Algorithm. This algorithm is used for structured data where target column values can be divided into distinct class values. + */ +export type ClassificationModels = string; + +/** Known values of {@link StackMetaLearnerType} that the service accepts. */ +export enum KnownStackMetaLearnerType { + /** None */ + None = "None", + /** Default meta-learners are LogisticRegression for classification tasks. */ + LogisticRegression = "LogisticRegression", + /** Default meta-learners are LogisticRegression for classification task when CV is on. */ + LogisticRegressionCV = "LogisticRegressionCV", + /** LightGBMClassifier */ + LightGBMClassifier = "LightGBMClassifier", + /** Default meta-learners are LogisticRegression for regression task. */ + ElasticNet = "ElasticNet", + /** Default meta-learners are LogisticRegression for regression task when CV is on. */ + ElasticNetCV = "ElasticNetCV", + /** LightGBMRegressor */ + LightGBMRegressor = "LightGBMRegressor", + /** LinearRegression */ + LinearRegression = "LinearRegression" +} + +/** + * Defines values for StackMetaLearnerType. \ + * {@link KnownStackMetaLearnerType} can be used interchangeably with StackMetaLearnerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **LogisticRegression**: Default meta-learners are LogisticRegression for classification tasks. \ + * **LogisticRegressionCV**: Default meta-learners are LogisticRegression for classification task when CV is on. \ + * **LightGBMClassifier** \ + * **ElasticNet**: Default meta-learners are LogisticRegression for regression task. \ + * **ElasticNetCV**: Default meta-learners are LogisticRegression for regression task when CV is on. \ + * **LightGBMRegressor** \ + * **LinearRegression** + */ +export type StackMetaLearnerType = string; + +/** Known values of {@link TrainingMode} that the service accepts. */ +export enum KnownTrainingMode { + /** Auto mode */ + Auto = "Auto", + /** Distributed training mode */ + Distributed = "Distributed", + /** Non distributed training mode */ + NonDistributed = "NonDistributed" +} + +/** + * Defines values for TrainingMode. \ + * {@link KnownTrainingMode} can be used interchangeably with TrainingMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Auto mode \ + * **Distributed**: Distributed training mode \ + * **NonDistributed**: Non distributed training mode + */ +export type TrainingMode = string; + +/** Known values of {@link BlockedTransformers} that the service accepts. */ +export enum KnownBlockedTransformers { + /** Target encoding for text data. */ + TextTargetEncoder = "TextTargetEncoder", + /** Ohe hot encoding creates a binary feature transformation. */ + OneHotEncoder = "OneHotEncoder", + /** Target encoding for categorical data. */ + CatTargetEncoder = "CatTargetEncoder", + /** Tf-Idf stands for, term-frequency times inverse document-frequency. This is a common term weighting scheme for identifying information from documents. */ + TfIdf = "TfIdf", + /** Weight of Evidence encoding is a technique used to encode categorical variables. It uses the natural log of the P(1)\/P(0) to create weights. */ + WoETargetEncoder = "WoETargetEncoder", + /** Label encoder converts labels\/categorical variables in a numerical form. */ + LabelEncoder = "LabelEncoder", + /** Word embedding helps represents words or phrases as a vector, or a series of numbers. */ + WordEmbedding = "WordEmbedding", + /** Naive Bayes is a classified that is used for classification of discrete features that are categorically distributed. */ + NaiveBayes = "NaiveBayes", + /** Count Vectorizer converts a collection of text documents to a matrix of token counts. */ + CountVectorizer = "CountVectorizer", + /** Hashing One Hot Encoder can turn categorical variables into a limited number of new features. This is often used for high-cardinality categorical features. */ + HashOneHotEncoder = "HashOneHotEncoder" +} + +/** + * Defines values for BlockedTransformers. \ + * {@link KnownBlockedTransformers} can be used interchangeably with BlockedTransformers, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TextTargetEncoder**: Target encoding for text data. \ + * **OneHotEncoder**: Ohe hot encoding creates a binary feature transformation. \ + * **CatTargetEncoder**: Target encoding for categorical data. \ + * **TfIdf**: Tf-Idf stands for, term-frequency times inverse document-frequency. This is a common term weighting scheme for identifying information from documents. \ + * **WoETargetEncoder**: Weight of Evidence encoding is a technique used to encode categorical variables. It uses the natural log of the P(1)\/P(0) to create weights. \ + * **LabelEncoder**: Label encoder converts labels\/categorical variables in a numerical form. \ + * **WordEmbedding**: Word embedding helps represents words or phrases as a vector, or a series of numbers. \ + * **NaiveBayes**: Naive Bayes is a classified that is used for classification of discrete features that are categorically distributed. \ + * **CountVectorizer**: Count Vectorizer converts a collection of text documents to a matrix of token counts. \ + * **HashOneHotEncoder**: Hashing One Hot Encoder can turn categorical variables into a limited number of new features. This is often used for high-cardinality categorical features. + */ +export type BlockedTransformers = string; + +/** Known values of {@link FeaturizationMode} that the service accepts. */ +export enum KnownFeaturizationMode { + /** Auto mode, system performs featurization without any custom featurization inputs. */ + Auto = "Auto", + /** Custom featurization. */ + Custom = "Custom", + /** Featurization off. 'Forecasting' task cannot use this value. */ + Off = "Off" +} + +/** + * Defines values for FeaturizationMode. \ + * {@link KnownFeaturizationMode} can be used interchangeably with FeaturizationMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Auto**: Auto mode, system performs featurization without any custom featurization inputs. \ + * **Custom**: Custom featurization. \ + * **Off**: Featurization off. 'Forecasting' task cannot use this value. + */ +export type FeaturizationMode = string; + +/** Known values of {@link ClassificationModelPerformanceMetric} that the service accepts. */ +export enum KnownClassificationModelPerformanceMetric { + /** Calculates the accuracy of the model predictions. */ + Accuracy = "Accuracy", + /** Calculates the precision of the model predictions. */ + Precision = "Precision", + /** Calculates the recall of the model predictions. */ + Recall = "Recall" +} + +/** + * Defines values for ClassificationModelPerformanceMetric. \ + * {@link KnownClassificationModelPerformanceMetric} can be used interchangeably with ClassificationModelPerformanceMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Accuracy**: Calculates the accuracy of the model predictions. \ + * **Precision**: Calculates the precision of the model predictions. \ + * **Recall**: Calculates the recall of the model predictions. + */ +export type ClassificationModelPerformanceMetric = string; + +/** Known values of {@link MonitoringModelType} that the service accepts. */ +export enum KnownMonitoringModelType { + /** A model trained for classification tasks. */ + Classification = "Classification", + /** A model trained for regressions tasks. */ + Regression = "Regression" +} + +/** + * Defines values for MonitoringModelType. \ + * {@link KnownMonitoringModelType} can be used interchangeably with MonitoringModelType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Classification**: A model trained for classification tasks. \ + * **Regression**: A model trained for regressions tasks. + */ +export type MonitoringModelType = string; + +/** Known values of {@link DistributionType} that the service accepts. */ +export enum KnownDistributionType { + /** PyTorch */ + PyTorch = "PyTorch", + /** TensorFlow */ + TensorFlow = "TensorFlow", + /** Mpi */ + Mpi = "Mpi", + /** Ray */ + Ray = "Ray" +} + +/** + * Defines values for DistributionType. \ + * {@link KnownDistributionType} can be used interchangeably with DistributionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **PyTorch** \ + * **TensorFlow** \ + * **Mpi** \ + * **Ray** + */ +export type DistributionType = string; + +/** Known values of {@link JobLimitsType} that the service accepts. */ +export enum KnownJobLimitsType { + /** Command */ + Command = "Command", + /** Sweep */ + Sweep = "Sweep" +} + +/** + * Defines values for JobLimitsType. \ + * {@link KnownJobLimitsType} can be used interchangeably with JobLimitsType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Command** \ + * **Sweep** + */ +export type JobLimitsType = string; + +/** Known values of {@link MonitorComputeType} that the service accepts. */ +export enum KnownMonitorComputeType { + /** Serverless Spark compute. */ + ServerlessSpark = "ServerlessSpark" +} + +/** + * Defines values for MonitorComputeType. \ + * {@link KnownMonitorComputeType} can be used interchangeably with MonitorComputeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ServerlessSpark**: Serverless Spark compute. + */ +export type MonitorComputeType = string; + +/** Known values of {@link ModelTaskType} that the service accepts. */ +export enum KnownModelTaskType { + /** Classification */ + Classification = "Classification", + /** Regression */ + Regression = "Regression", + /** QuestionAnswering */ + QuestionAnswering = "QuestionAnswering" +} + +/** + * Defines values for ModelTaskType. \ + * {@link KnownModelTaskType} can be used interchangeably with ModelTaskType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Classification** \ + * **Regression** \ + * **QuestionAnswering** + */ +export type ModelTaskType = string; + +/** Known values of {@link MonitoringNotificationMode} that the service accepts. */ +export enum KnownMonitoringNotificationMode { + /** Disabled notifications will not produce emails\/metrics leveraged for alerting. */ + Disabled = "Disabled", + /** Enabled notification will produce emails\/metrics leveraged for alerting. */ + Enabled = "Enabled" +} + +/** + * Defines values for MonitoringNotificationMode. \ + * {@link KnownMonitoringNotificationMode} can be used interchangeably with MonitoringNotificationMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled**: Disabled notifications will not produce emails\/metrics leveraged for alerting. \ + * **Enabled**: Enabled notification will produce emails\/metrics leveraged for alerting. + */ +export type MonitoringNotificationMode = string; + +/** Known values of {@link MonitoringSignalType} that the service accepts. */ +export enum KnownMonitoringSignalType { + /** Tracks model input data distribution change, comparing against training data or past production data. */ + DataDrift = "DataDrift", + /** Tracks prediction result data distribution change, comparing against validation\/test label data or past production data. */ + PredictionDrift = "PredictionDrift", + /** Tracks model input data integrity. */ + DataQuality = "DataQuality", + /** Tracks feature importance change in production, comparing against feature importance at training time. */ + FeatureAttributionDrift = "FeatureAttributionDrift", + /** Tracks a custom signal provided by users. */ + Custom = "Custom", + /** Tracks model performance based on ground truth data. */ + ModelPerformance = "ModelPerformance", + /** Tracks the safety and quality of generated content. */ + GenerationSafetyQuality = "GenerationSafetyQuality", + /** Tracks the token usage of generative endpoints. */ + GenerationTokenStatistics = "GenerationTokenStatistics" +} + +/** + * Defines values for MonitoringSignalType. \ + * {@link KnownMonitoringSignalType} can be used interchangeably with MonitoringSignalType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **DataDrift**: Tracks model input data distribution change, comparing against training data or past production data. \ + * **PredictionDrift**: Tracks prediction result data distribution change, comparing against validation\/test label data or past production data. \ + * **DataQuality**: Tracks model input data integrity. \ + * **FeatureAttributionDrift**: Tracks feature importance change in production, comparing against feature importance at training time. \ + * **Custom**: Tracks a custom signal provided by users. \ + * **ModelPerformance**: Tracks model performance based on ground truth data. \ + * **GenerationSafetyQuality**: Tracks the safety and quality of generated content. \ + * **GenerationTokenStatistics**: Tracks the token usage of generative endpoints. + */ +export type MonitoringSignalType = string; + +/** Known values of {@link MonitoringInputDataType} that the service accepts. */ +export enum KnownMonitoringInputDataType { + /** An input data with a fixed window size. */ + Static = "Static", + /** An input data which trailing relatively to the monitor's current run. */ + Trailing = "Trailing", + /** An input data with tabular format which doesn't require preprocessing. */ + Fixed = "Fixed" +} + +/** + * Defines values for MonitoringInputDataType. \ + * {@link KnownMonitoringInputDataType} can be used interchangeably with MonitoringInputDataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Static**: An input data with a fixed window size. \ + * **Trailing**: An input data which trailing relatively to the monitor's current run. \ + * **Fixed**: An input data with tabular format which doesn't require preprocessing. + */ +export type MonitoringInputDataType = string; + +/** Known values of {@link DataImportSourceType} that the service accepts. */ +export enum KnownDataImportSourceType { + /** Database */ + Database = "database", + /** FileSystem */ + FileSystem = "file_system" +} + +/** + * Defines values for DataImportSourceType. \ + * {@link KnownDataImportSourceType} can be used interchangeably with DataImportSourceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **database** \ + * **file_system** + */ +export type DataImportSourceType = string; + +/** Known values of {@link FeatureAttributionMetric} that the service accepts. */ +export enum KnownFeatureAttributionMetric { + /** The Normalized Discounted Cumulative Gain metric. */ + NormalizedDiscountedCumulativeGain = "NormalizedDiscountedCumulativeGain" +} + +/** + * Defines values for FeatureAttributionMetric. \ + * {@link KnownFeatureAttributionMetric} can be used interchangeably with FeatureAttributionMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NormalizedDiscountedCumulativeGain**: The Normalized Discounted Cumulative Gain metric. + */ +export type FeatureAttributionMetric = string; + +/** Known values of {@link FeatureLags} that the service accepts. */ +export enum KnownFeatureLags { + /** No feature lags generated. */ + None = "None", + /** System auto-generates feature lags. */ + Auto = "Auto" +} + +/** + * Defines values for FeatureLags. \ + * {@link KnownFeatureLags} can be used interchangeably with FeatureLags, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: No feature lags generated. \ + * **Auto**: System auto-generates feature lags. + */ +export type FeatureLags = string; + +/** Known values of {@link ShortSeriesHandlingConfiguration} that the service accepts. */ +export enum KnownShortSeriesHandlingConfiguration { + /** Represents no\/null value. */ + None = "None", + /** Short series will be padded if there are no long series, otherwise short series will be dropped. */ + Auto = "Auto", + /** All the short series will be padded. */ + Pad = "Pad", + /** All the short series will be dropped. */ + Drop = "Drop" +} + +/** + * Defines values for ShortSeriesHandlingConfiguration. \ + * {@link KnownShortSeriesHandlingConfiguration} can be used interchangeably with ShortSeriesHandlingConfiguration, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Represents no\/null value. \ + * **Auto**: Short series will be padded if there are no long series, otherwise short series will be dropped. \ + * **Pad**: All the short series will be padded. \ + * **Drop**: All the short series will be dropped. + */ +export type ShortSeriesHandlingConfiguration = string; + +/** Known values of {@link TargetAggregationFunction} that the service accepts. */ +export enum KnownTargetAggregationFunction { + /** Represent no value set. */ + None = "None", + /** Sum */ + Sum = "Sum", + /** Max */ + Max = "Max", + /** Min */ + Min = "Min", + /** Mean */ + Mean = "Mean" +} + +/** + * Defines values for TargetAggregationFunction. \ + * {@link KnownTargetAggregationFunction} can be used interchangeably with TargetAggregationFunction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: Represent no value set. \ + * **Sum** \ + * **Max** \ + * **Min** \ + * **Mean** + */ +export type TargetAggregationFunction = string; + +/** Known values of {@link UseStl} that the service accepts. */ +export enum KnownUseStl { + /** No stl decomposition. */ + None = "None", + /** Season */ + Season = "Season", + /** SeasonTrend */ + SeasonTrend = "SeasonTrend" +} + +/** + * Defines values for UseStl. \ + * {@link KnownUseStl} can be used interchangeably with UseStl, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: No stl decomposition. \ + * **Season** \ + * **SeasonTrend** + */ +export type UseStl = string; + +/** Known values of {@link ForecastingPrimaryMetrics} that the service accepts. */ +export enum KnownForecastingPrimaryMetrics { + /** The Spearman's rank coefficient of correlation is a non-parametric measure of rank correlation. */ + SpearmanCorrelation = "SpearmanCorrelation", + /** The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. */ + NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", + /** The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. */ + R2Score = "R2Score", + /** The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. */ + NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError" +} + +/** + * Defines values for ForecastingPrimaryMetrics. \ + * {@link KnownForecastingPrimaryMetrics} can be used interchangeably with ForecastingPrimaryMetrics, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SpearmanCorrelation**: The Spearman's rank coefficient of correlation is a non-parametric measure of rank correlation. \ + * **NormalizedRootMeanSquaredError**: The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. \ + * **R2Score**: The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. \ + * **NormalizedMeanAbsoluteError**: The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. + */ +export type ForecastingPrimaryMetrics = string; + +/** Known values of {@link ForecastingModels} that the service accepts. */ +export enum KnownForecastingModels { + /** + * Auto-Autoregressive Integrated Moving Average (ARIMA) model uses time-series data and statistical analysis to interpret the data and make future predictions. + * This model aims to explain data by using time series data on its past values and uses linear regression to make predictions. + */ + AutoArima = "AutoArima", + /** + * Prophet is a procedure for forecasting time series data based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. + * It works best with time series that have strong seasonal effects and several seasons of historical data. Prophet is robust to missing data and shifts in the trend, and typically handles outliers well. + */ + Prophet = "Prophet", + /** The Naive forecasting model makes predictions by carrying forward the latest target value for each time-series in the training data. */ + Naive = "Naive", + /** The Seasonal Naive forecasting model makes predictions by carrying forward the latest season of target values for each time-series in the training data. */ + SeasonalNaive = "SeasonalNaive", + /** The Average forecasting model makes predictions by carrying forward the average of the target values for each time-series in the training data. */ + Average = "Average", + /** The Seasonal Average forecasting model makes predictions by carrying forward the average value of the latest season of data for each time-series in the training data. */ + SeasonalAverage = "SeasonalAverage", + /** Exponential smoothing is a time series forecasting method for univariate data that can be extended to support data with a systematic trend or seasonal component. */ + ExponentialSmoothing = "ExponentialSmoothing", + /** + * An Autoregressive Integrated Moving Average with Explanatory Variable (ARIMAX) model can be viewed as a multiple regression model with one or more autoregressive (AR) terms and\/or one or more moving average (MA) terms. + * This method is suitable for forecasting when data is stationary\/non stationary, and multivariate with any type of data pattern, i.e., level\/trend \/seasonality\/cyclicity. + */ + Arimax = "Arimax", + /** TCNForecaster: Temporal Convolutional Networks Forecaster. \//TODO: Ask forecasting team for brief intro. */ + TCNForecaster = "TCNForecaster", + /** Elastic net is a popular type of regularized linear regression that combines two popular penalties, specifically the L1 and L2 penalty functions. */ + ElasticNet = "ElasticNet", + /** The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. */ + GradientBoosting = "GradientBoosting", + /** + * Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. + * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. + */ + DecisionTree = "DecisionTree", + /** + * K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints + * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. + */ + KNN = "KNN", + /** Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with an L1 prior as regularizer. */ + LassoLars = "LassoLars", + /** + * SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications + * to find the model parameters that correspond to the best fit between predicted and actual outputs. + * It's an inexact but powerful technique. + */ + SGD = "SGD", + /** + * Random forest is a supervised learning algorithm. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the bagging method. + * The general idea of the bagging method is that a combination of learning models increases the overall result. + */ + RandomForest = "RandomForest", + /** Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. */ + ExtremeRandomTrees = "ExtremeRandomTrees", + /** LightGBM is a gradient boosting framework that uses tree based learning algorithms. */ + LightGBM = "LightGBM", + /** XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. */ + XGBoostRegressor = "XGBoostRegressor" +} + +/** + * Defines values for ForecastingModels. \ + * {@link KnownForecastingModels} can be used interchangeably with ForecastingModels, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AutoArima**: Auto-Autoregressive Integrated Moving Average (ARIMA) model uses time-series data and statistical analysis to interpret the data and make future predictions. + * This model aims to explain data by using time series data on its past values and uses linear regression to make predictions. \ + * **Prophet**: Prophet is a procedure for forecasting time series data based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. + * It works best with time series that have strong seasonal effects and several seasons of historical data. Prophet is robust to missing data and shifts in the trend, and typically handles outliers well. \ + * **Naive**: The Naive forecasting model makes predictions by carrying forward the latest target value for each time-series in the training data. \ + * **SeasonalNaive**: The Seasonal Naive forecasting model makes predictions by carrying forward the latest season of target values for each time-series in the training data. \ + * **Average**: The Average forecasting model makes predictions by carrying forward the average of the target values for each time-series in the training data. \ + * **SeasonalAverage**: The Seasonal Average forecasting model makes predictions by carrying forward the average value of the latest season of data for each time-series in the training data. \ + * **ExponentialSmoothing**: Exponential smoothing is a time series forecasting method for univariate data that can be extended to support data with a systematic trend or seasonal component. \ + * **Arimax**: An Autoregressive Integrated Moving Average with Explanatory Variable (ARIMAX) model can be viewed as a multiple regression model with one or more autoregressive (AR) terms and\/or one or more moving average (MA) terms. + * This method is suitable for forecasting when data is stationary\/non stationary, and multivariate with any type of data pattern, i.e., level\/trend \/seasonality\/cyclicity. \ + * **TCNForecaster**: TCNForecaster: Temporal Convolutional Networks Forecaster. \/\/TODO: Ask forecasting team for brief intro. \ + * **ElasticNet**: Elastic net is a popular type of regularized linear regression that combines two popular penalties, specifically the L1 and L2 penalty functions. \ + * **GradientBoosting**: The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. \ + * **DecisionTree**: Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. + * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. \ + * **KNN**: K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints + * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. \ + * **LassoLars**: Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with an L1 prior as regularizer. \ + * **SGD**: SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications + * to find the model parameters that correspond to the best fit between predicted and actual outputs. + * It's an inexact but powerful technique. \ + * **RandomForest**: Random forest is a supervised learning algorithm. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the bagging method. + * The general idea of the bagging method is that a combination of learning models increases the overall result. \ + * **ExtremeRandomTrees**: Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. \ + * **LightGBM**: LightGBM is a gradient boosting framework that uses tree based learning algorithms. \ + * **XGBoostRegressor**: XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. + */ +export type ForecastingModels = string; + +/** Known values of {@link GenerationSafetyQualityMetric} that the service accepts. */ +export enum KnownGenerationSafetyQualityMetric { + /** AcceptableGroundednessScorePerInstance */ + AcceptableGroundednessScorePerInstance = "AcceptableGroundednessScorePerInstance", + /** AggregatedGroundednessPassRate */ + AggregatedGroundednessPassRate = "AggregatedGroundednessPassRate", + /** AcceptableCoherenceScorePerInstance */ + AcceptableCoherenceScorePerInstance = "AcceptableCoherenceScorePerInstance", + /** AggregatedCoherencePassRate */ + AggregatedCoherencePassRate = "AggregatedCoherencePassRate", + /** AcceptableFluencyScorePerInstance */ + AcceptableFluencyScorePerInstance = "AcceptableFluencyScorePerInstance", + /** AggregatedFluencyPassRate */ + AggregatedFluencyPassRate = "AggregatedFluencyPassRate", + /** AcceptableSimilarityScorePerInstance */ + AcceptableSimilarityScorePerInstance = "AcceptableSimilarityScorePerInstance", + /** AggregatedSimilarityPassRate */ + AggregatedSimilarityPassRate = "AggregatedSimilarityPassRate", + /** AcceptableRelevanceScorePerInstance */ + AcceptableRelevanceScorePerInstance = "AcceptableRelevanceScorePerInstance", + /** AggregatedRelevancePassRate */ + AggregatedRelevancePassRate = "AggregatedRelevancePassRate" +} + +/** + * Defines values for GenerationSafetyQualityMetric. \ + * {@link KnownGenerationSafetyQualityMetric} can be used interchangeably with GenerationSafetyQualityMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AcceptableGroundednessScorePerInstance** \ + * **AggregatedGroundednessPassRate** \ + * **AcceptableCoherenceScorePerInstance** \ + * **AggregatedCoherencePassRate** \ + * **AcceptableFluencyScorePerInstance** \ + * **AggregatedFluencyPassRate** \ + * **AcceptableSimilarityScorePerInstance** \ + * **AggregatedSimilarityPassRate** \ + * **AcceptableRelevanceScorePerInstance** \ + * **AggregatedRelevancePassRate** + */ +export type GenerationSafetyQualityMetric = string; + +/** Known values of {@link GenerationTokenStatisticsMetric} that the service accepts. */ +export enum KnownGenerationTokenStatisticsMetric { + /** TotalTokenCount */ + TotalTokenCount = "TotalTokenCount", + /** TotalTokenCountPerGroup */ + TotalTokenCountPerGroup = "TotalTokenCountPerGroup" +} + +/** + * Defines values for GenerationTokenStatisticsMetric. \ + * {@link KnownGenerationTokenStatisticsMetric} can be used interchangeably with GenerationTokenStatisticsMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TotalTokenCount** \ + * **TotalTokenCountPerGroup** + */ +export type GenerationTokenStatisticsMetric = string; + +/** Known values of {@link LearningRateScheduler} that the service accepts. */ +export enum KnownLearningRateScheduler { + /** No learning rate scheduler selected. */ + None = "None", + /** Cosine Annealing With Warmup. */ + WarmupCosine = "WarmupCosine", + /** Step learning rate scheduler. */ + Step = "Step" +} + +/** + * Defines values for LearningRateScheduler. \ + * {@link KnownLearningRateScheduler} can be used interchangeably with LearningRateScheduler, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: No learning rate scheduler selected. \ + * **WarmupCosine**: Cosine Annealing With Warmup. \ + * **Step**: Step learning rate scheduler. + */ +export type LearningRateScheduler = string; + +/** Known values of {@link StochasticOptimizer} that the service accepts. */ +export enum KnownStochasticOptimizer { + /** No optimizer selected. */ + None = "None", + /** Stochastic Gradient Descent optimizer. */ + Sgd = "Sgd", + /** Adam is algorithm the optimizes stochastic objective functions based on adaptive estimates of moments */ + Adam = "Adam", + /** AdamW is a variant of the optimizer Adam that has an improved implementation of weight decay. */ + Adamw = "Adamw" +} + +/** + * Defines values for StochasticOptimizer. \ + * {@link KnownStochasticOptimizer} can be used interchangeably with StochasticOptimizer, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: No optimizer selected. \ + * **Sgd**: Stochastic Gradient Descent optimizer. \ + * **Adam**: Adam is algorithm the optimizes stochastic objective functions based on adaptive estimates of moments \ + * **Adamw**: AdamW is a variant of the optimizer Adam that has an improved implementation of weight decay. + */ +export type StochasticOptimizer = string; + +/** Known values of {@link ClassificationMultilabelPrimaryMetrics} that the service accepts. */ +export enum KnownClassificationMultilabelPrimaryMetrics { + /** + * AUC is the Area under the curve. + * This metric represents arithmetic mean of the score for each class, + * weighted by the number of true instances in each class. + */ + AUCWeighted = "AUCWeighted", + /** Accuracy is the ratio of predictions that exactly match the true class labels. */ + Accuracy = "Accuracy", + /** + * Normalized macro recall is recall macro-averaged and normalized, so that random + * performance has a score of 0, and perfect performance has a score of 1. + */ + NormMacroRecall = "NormMacroRecall", + /** + * The arithmetic mean of the average precision score for each class, weighted by + * the number of true instances in each class. + */ + AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", + /** The arithmetic mean of precision for each class, weighted by number of true instances in each class. */ + PrecisionScoreWeighted = "PrecisionScoreWeighted", + /** Intersection Over Union. Intersection of predictions divided by union of predictions. */ + IOU = "IOU" +} + +/** + * Defines values for ClassificationMultilabelPrimaryMetrics. \ + * {@link KnownClassificationMultilabelPrimaryMetrics} can be used interchangeably with ClassificationMultilabelPrimaryMetrics, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AUCWeighted**: AUC is the Area under the curve. + * This metric represents arithmetic mean of the score for each class, + * weighted by the number of true instances in each class. \ + * **Accuracy**: Accuracy is the ratio of predictions that exactly match the true class labels. \ + * **NormMacroRecall**: Normalized macro recall is recall macro-averaged and normalized, so that random + * performance has a score of 0, and perfect performance has a score of 1. \ + * **AveragePrecisionScoreWeighted**: The arithmetic mean of the average precision score for each class, weighted by + * the number of true instances in each class. \ + * **PrecisionScoreWeighted**: The arithmetic mean of precision for each class, weighted by number of true instances in each class. \ + * **IOU**: Intersection Over Union. Intersection of predictions divided by union of predictions. + */ +export type ClassificationMultilabelPrimaryMetrics = string; + +/** Known values of {@link InstanceSegmentationPrimaryMetrics} that the service accepts. */ +export enum KnownInstanceSegmentationPrimaryMetrics { + /** + * Mean Average Precision (MAP) is the average of AP (Average Precision). + * AP is calculated for each class and averaged to get the MAP. + */ + MeanAveragePrecision = "MeanAveragePrecision" +} + +/** + * Defines values for InstanceSegmentationPrimaryMetrics. \ + * {@link KnownInstanceSegmentationPrimaryMetrics} can be used interchangeably with InstanceSegmentationPrimaryMetrics, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **MeanAveragePrecision**: Mean Average Precision (MAP) is the average of AP (Average Precision). + * AP is calculated for each class and averaged to get the MAP. + */ +export type InstanceSegmentationPrimaryMetrics = string; + +/** Known values of {@link LogTrainingMetrics} that the service accepts. */ +export enum KnownLogTrainingMetrics { + /** Enable compute and log training metrics. */ + Enable = "Enable", + /** Disable compute and log training metrics. */ + Disable = "Disable" +} + +/** + * Defines values for LogTrainingMetrics. \ + * {@link KnownLogTrainingMetrics} can be used interchangeably with LogTrainingMetrics, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enable**: Enable compute and log training metrics. \ + * **Disable**: Disable compute and log training metrics. + */ +export type LogTrainingMetrics = string; + +/** Known values of {@link LogValidationLoss} that the service accepts. */ +export enum KnownLogValidationLoss { + /** Enable compute and log validation metrics. */ + Enable = "Enable", + /** Disable compute and log validation metrics. */ + Disable = "Disable" +} + +/** + * Defines values for LogValidationLoss. \ + * {@link KnownLogValidationLoss} can be used interchangeably with LogValidationLoss, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enable**: Enable compute and log validation metrics. \ + * **Disable**: Disable compute and log validation metrics. + */ +export type LogValidationLoss = string; + +/** Known values of {@link ModelSize} that the service accepts. */ +export enum KnownModelSize { + /** No value selected. */ + None = "None", + /** Small size. */ + Small = "Small", + /** Medium size. */ + Medium = "Medium", + /** Large size. */ + Large = "Large", + /** Extra large size. */ + ExtraLarge = "ExtraLarge" +} + +/** + * Defines values for ModelSize. \ + * {@link KnownModelSize} can be used interchangeably with ModelSize, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: No value selected. \ + * **Small**: Small size. \ + * **Medium**: Medium size. \ + * **Large**: Large size. \ + * **ExtraLarge**: Extra large size. + */ +export type ModelSize = string; + +/** Known values of {@link ValidationMetricType} that the service accepts. */ +export enum KnownValidationMetricType { + /** No metric. */ + None = "None", + /** Coco metric. */ + Coco = "Coco", + /** Voc metric. */ + Voc = "Voc", + /** CocoVoc metric. */ + CocoVoc = "CocoVoc" +} + +/** + * Defines values for ValidationMetricType. \ + * {@link KnownValidationMetricType} can be used interchangeably with ValidationMetricType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: No metric. \ + * **Coco**: Coco metric. \ + * **Voc**: Voc metric. \ + * **CocoVoc**: CocoVoc metric. + */ +export type ValidationMetricType = string; + +/** Known values of {@link ObjectDetectionPrimaryMetrics} that the service accepts. */ +export enum KnownObjectDetectionPrimaryMetrics { + /** + * Mean Average Precision (MAP) is the average of AP (Average Precision). + * AP is calculated for each class and averaged to get the MAP. + */ + MeanAveragePrecision = "MeanAveragePrecision" +} + +/** + * Defines values for ObjectDetectionPrimaryMetrics. \ + * {@link KnownObjectDetectionPrimaryMetrics} can be used interchangeably with ObjectDetectionPrimaryMetrics, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **MeanAveragePrecision**: Mean Average Precision (MAP) is the average of AP (Average Precision). + * AP is calculated for each class and averaged to get the MAP. + */ +export type ObjectDetectionPrimaryMetrics = string; + +/** Known values of {@link ImageAnnotationType} that the service accepts. */ +export enum KnownImageAnnotationType { + /** Classification */ + Classification = "Classification", + /** BoundingBox */ + BoundingBox = "BoundingBox", + /** InstanceSegmentation */ + InstanceSegmentation = "InstanceSegmentation" +} + +/** + * Defines values for ImageAnnotationType. \ + * {@link KnownImageAnnotationType} can be used interchangeably with ImageAnnotationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Classification** \ + * **BoundingBox** \ + * **InstanceSegmentation** + */ +export type ImageAnnotationType = string; + +/** Known values of {@link TextAnnotationType} that the service accepts. */ +export enum KnownTextAnnotationType { + /** Classification */ + Classification = "Classification", + /** NamedEntityRecognition */ + NamedEntityRecognition = "NamedEntityRecognition" +} + +/** + * Defines values for TextAnnotationType. \ + * {@link KnownTextAnnotationType} can be used interchangeably with TextAnnotationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Classification** \ + * **NamedEntityRecognition** + */ +export type TextAnnotationType = string; + +/** Known values of {@link OneLakeArtifactType} that the service accepts. */ +export enum KnownOneLakeArtifactType { + /** LakeHouse */ + LakeHouse = "LakeHouse" +} + +/** + * Defines values for OneLakeArtifactType. \ + * {@link KnownOneLakeArtifactType} can be used interchangeably with OneLakeArtifactType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **LakeHouse** + */ +export type OneLakeArtifactType = string; + +/** Known values of {@link NlpLearningRateScheduler} that the service accepts. */ +export enum KnownNlpLearningRateScheduler { + /** No learning rate schedule. */ + None = "None", + /** Linear warmup and decay. */ + Linear = "Linear", + /** Linear warmup then cosine decay. */ + Cosine = "Cosine", + /** Linear warmup, cosine decay, then restart to initial LR. */ + CosineWithRestarts = "CosineWithRestarts", + /** Increase linearly then polynomially decay. */ + Polynomial = "Polynomial", + /** Constant learning rate. */ + Constant = "Constant", + /** Linear warmup followed by constant value. */ + ConstantWithWarmup = "ConstantWithWarmup" +} + +/** + * Defines values for NlpLearningRateScheduler. \ + * {@link KnownNlpLearningRateScheduler} can be used interchangeably with NlpLearningRateScheduler, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None**: No learning rate schedule. \ + * **Linear**: Linear warmup and decay. \ + * **Cosine**: Linear warmup then cosine decay. \ + * **CosineWithRestarts**: Linear warmup, cosine decay, then restart to initial LR. \ + * **Polynomial**: Increase linearly then polynomially decay. \ + * **Constant**: Constant learning rate. \ + * **ConstantWithWarmup**: Linear warmup followed by constant value. + */ +export type NlpLearningRateScheduler = string; + +/** Known values of {@link NumericalDataDriftMetric} that the service accepts. */ +export enum KnownNumericalDataDriftMetric { + /** The Jensen Shannon Distance (JSD) metric. */ + JensenShannonDistance = "JensenShannonDistance", + /** The Population Stability Index (PSI) metric. */ + PopulationStabilityIndex = "PopulationStabilityIndex", + /** The Normalized Wasserstein Distance metric. */ + NormalizedWassersteinDistance = "NormalizedWassersteinDistance", + /** The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. */ + TwoSampleKolmogorovSmirnovTest = "TwoSampleKolmogorovSmirnovTest" +} + +/** + * Defines values for NumericalDataDriftMetric. \ + * {@link KnownNumericalDataDriftMetric} can be used interchangeably with NumericalDataDriftMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JensenShannonDistance**: The Jensen Shannon Distance (JSD) metric. \ + * **PopulationStabilityIndex**: The Population Stability Index (PSI) metric. \ + * **NormalizedWassersteinDistance**: The Normalized Wasserstein Distance metric. \ + * **TwoSampleKolmogorovSmirnovTest**: The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. + */ +export type NumericalDataDriftMetric = string; + +/** Known values of {@link NumericalDataQualityMetric} that the service accepts. */ +export enum KnownNumericalDataQualityMetric { + /** Calculates the rate of null values. */ + NullValueRate = "NullValueRate", + /** Calculates the rate of data type errors. */ + DataTypeErrorRate = "DataTypeErrorRate", + /** Calculates the rate values are out of bounds. */ + OutOfBoundsRate = "OutOfBoundsRate" +} + +/** + * Defines values for NumericalDataQualityMetric. \ + * {@link KnownNumericalDataQualityMetric} can be used interchangeably with NumericalDataQualityMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NullValueRate**: Calculates the rate of null values. \ + * **DataTypeErrorRate**: Calculates the rate of data type errors. \ + * **OutOfBoundsRate**: Calculates the rate values are out of bounds. + */ +export type NumericalDataQualityMetric = string; + +/** Known values of {@link NumericalPredictionDriftMetric} that the service accepts. */ +export enum KnownNumericalPredictionDriftMetric { + /** The Jensen Shannon Distance (JSD) metric. */ + JensenShannonDistance = "JensenShannonDistance", + /** The Population Stability Index (PSI) metric. */ + PopulationStabilityIndex = "PopulationStabilityIndex", + /** The Normalized Wasserstein Distance metric. */ + NormalizedWassersteinDistance = "NormalizedWassersteinDistance", + /** The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. */ + TwoSampleKolmogorovSmirnovTest = "TwoSampleKolmogorovSmirnovTest" +} + +/** + * Defines values for NumericalPredictionDriftMetric. \ + * {@link KnownNumericalPredictionDriftMetric} can be used interchangeably with NumericalPredictionDriftMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **JensenShannonDistance**: The Jensen Shannon Distance (JSD) metric. \ + * **PopulationStabilityIndex**: The Population Stability Index (PSI) metric. \ + * **NormalizedWassersteinDistance**: The Normalized Wasserstein Distance metric. \ + * **TwoSampleKolmogorovSmirnovTest**: The Two Sample Kolmogorov-Smirnov Test (two-sample K–S) metric. + */ +export type NumericalPredictionDriftMetric = string; + +/** Known values of {@link Goal} that the service accepts. */ +export enum KnownGoal { + /** Minimize */ + Minimize = "Minimize", + /** Maximize */ + Maximize = "Maximize" +} + +/** + * Defines values for Goal. \ + * {@link KnownGoal} can be used interchangeably with Goal, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Minimize** \ + * **Maximize** + */ +export type Goal = string; + +/** Known values of {@link RandomSamplingAlgorithmRule} that the service accepts. */ +export enum KnownRandomSamplingAlgorithmRule { + /** Random */ + Random = "Random", + /** Sobol */ + Sobol = "Sobol" +} + +/** + * Defines values for RandomSamplingAlgorithmRule. \ + * {@link KnownRandomSamplingAlgorithmRule} can be used interchangeably with RandomSamplingAlgorithmRule, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Random** \ + * **Sobol** + */ +export type RandomSamplingAlgorithmRule = string; + +/** Known values of {@link RegressionPrimaryMetrics} that the service accepts. */ +export enum KnownRegressionPrimaryMetrics { + /** The Spearman's rank coefficient of correlation is a nonparametric measure of rank correlation. */ + SpearmanCorrelation = "SpearmanCorrelation", + /** The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. */ + NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", + /** The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. */ + R2Score = "R2Score", + /** The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. */ + NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError" +} + +/** + * Defines values for RegressionPrimaryMetrics. \ + * {@link KnownRegressionPrimaryMetrics} can be used interchangeably with RegressionPrimaryMetrics, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SpearmanCorrelation**: The Spearman's rank coefficient of correlation is a nonparametric measure of rank correlation. \ + * **NormalizedRootMeanSquaredError**: The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. \ + * **R2Score**: The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. \ + * **NormalizedMeanAbsoluteError**: The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. + */ +export type RegressionPrimaryMetrics = string; + +/** Known values of {@link RegressionModels} that the service accepts. */ +export enum KnownRegressionModels { + /** Elastic net is a popular type of regularized linear regression that combines two popular penalties, specifically the L1 and L2 penalty functions. */ + ElasticNet = "ElasticNet", + /** The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. */ + GradientBoosting = "GradientBoosting", + /** + * Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. + * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. + */ + DecisionTree = "DecisionTree", + /** + * K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints + * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. + */ + KNN = "KNN", + /** Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with an L1 prior as regularizer. */ + LassoLars = "LassoLars", + /** + * SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications + * to find the model parameters that correspond to the best fit between predicted and actual outputs. + * It's an inexact but powerful technique. + */ + SGD = "SGD", + /** + * Random forest is a supervised learning algorithm. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the bagging method. + * The general idea of the bagging method is that a combination of learning models increases the overall result. + */ + RandomForest = "RandomForest", + /** Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. */ + ExtremeRandomTrees = "ExtremeRandomTrees", + /** LightGBM is a gradient boosting framework that uses tree based learning algorithms. */ + LightGBM = "LightGBM", + /** XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. */ + XGBoostRegressor = "XGBoostRegressor" +} + +/** + * Defines values for RegressionModels. \ + * {@link KnownRegressionModels} can be used interchangeably with RegressionModels, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ElasticNet**: Elastic net is a popular type of regularized linear regression that combines two popular penalties, specifically the L1 and L2 penalty functions. \ + * **GradientBoosting**: The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. \ + * **DecisionTree**: Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. + * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. \ + * **KNN**: K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints + * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. \ + * **LassoLars**: Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with an L1 prior as regularizer. \ + * **SGD**: SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications + * to find the model parameters that correspond to the best fit between predicted and actual outputs. + * It's an inexact but powerful technique. \ + * **RandomForest**: Random forest is a supervised learning algorithm. + * The "forest" it builds, is an ensemble of decision trees, usually trained with the bagging method. + * The general idea of the bagging method is that a combination of learning models increases the overall result. \ + * **ExtremeRandomTrees**: Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. \ + * **LightGBM**: LightGBM is a gradient boosting framework that uses tree based learning algorithms. \ + * **XGBoostRegressor**: XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. + */ +export type RegressionModels = string; + +/** Known values of {@link RegressionModelPerformanceMetric} that the service accepts. */ +export enum KnownRegressionModelPerformanceMetric { + /** The Mean Absolute Error (MAE) metric. */ + MeanAbsoluteError = "MeanAbsoluteError", + /** The Root Mean Squared Error (RMSE) metric. */ + RootMeanSquaredError = "RootMeanSquaredError", + /** The Mean Squared Error (MSE) metric. */ + MeanSquaredError = "MeanSquaredError" +} + +/** + * Defines values for RegressionModelPerformanceMetric. \ + * {@link KnownRegressionModelPerformanceMetric} can be used interchangeably with RegressionModelPerformanceMetric, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **MeanAbsoluteError**: The Mean Absolute Error (MAE) metric. \ + * **RootMeanSquaredError**: The Root Mean Squared Error (RMSE) metric. \ + * **MeanSquaredError**: The Mean Squared Error (MSE) metric. + */ +export type RegressionModelPerformanceMetric = string; + +/** Known values of {@link SparkJobEntryType} that the service accepts. */ +export enum KnownSparkJobEntryType { + /** SparkJobPythonEntry */ + SparkJobPythonEntry = "SparkJobPythonEntry", + /** SparkJobScalaEntry */ + SparkJobScalaEntry = "SparkJobScalaEntry" +} + +/** + * Defines values for SparkJobEntryType. \ + * {@link KnownSparkJobEntryType} can be used interchangeably with SparkJobEntryType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SparkJobPythonEntry** \ + * **SparkJobScalaEntry** + */ +export type SparkJobEntryType = string; + +/** Known values of {@link RuleAction} that the service accepts. */ +export enum KnownRuleAction { + /** Allow */ + Allow = "Allow", + /** Deny */ + Deny = "Deny" +} + +/** + * Defines values for RuleAction. \ + * {@link KnownRuleAction} can be used interchangeably with RuleAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Allow** \ + * **Deny** + */ +export type RuleAction = string; +/** Defines values for SkuTier. */ +export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; + +/** Optional parameters. */ +export interface UsagesListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type UsagesListResponse = ListUsagesResult; + +/** Optional parameters. */ +export interface UsagesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type UsagesListNextResponse = ListUsagesResult; + +/** Optional parameters. */ +export interface VirtualMachineSizesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; + +/** Optional parameters. */ +export interface QuotasUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; + +/** Optional parameters. */ +export interface QuotasListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type QuotasListResponse = ListWorkspaceQuotas; + +/** Optional parameters. */ +export interface QuotasListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type QuotasListNextResponse = ListWorkspaceQuotas; + +/** 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; -/** Known values of {@link ProvisioningStatus} that the service accepts. */ -export enum KnownProvisioningStatus { - /** Completed */ - Completed = "Completed", - /** Provisioning */ - Provisioning = "Provisioning", - /** Failed */ - Failed = "Failed" +/** 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; } -/** - * Defines values for ProvisioningStatus. \ - * {@link KnownProvisioningStatus} can be used interchangeably with ProvisioningStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Completed** \ - * **Provisioning** \ - * **Failed** - */ -export type ProvisioningStatus = string; +/** Optional parameters. */ +export interface ComputeUpdateCustomServicesOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ScheduleStatus} that the service accepts. */ -export enum KnownScheduleStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** 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; } -/** - * Defines values for ScheduleStatus. \ - * {@link KnownScheduleStatus} can be used interchangeably with ScheduleStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type ScheduleStatus = 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; +} -/** Known values of {@link ComputePowerAction} that the service accepts. */ -export enum KnownComputePowerAction { - /** Start */ - Start = "Start", - /** Stop */ - Stop = "Stop" +/** 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; } -/** - * Defines values for ComputePowerAction. \ - * {@link KnownComputePowerAction} can be used interchangeably with ComputePowerAction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Start** \ - * **Stop** - */ -export type ComputePowerAction = string; +/** Optional parameters. */ +export interface ComputeUpdateIdleShutdownSettingOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link RecurrenceFrequency} that the service accepts. */ -export enum KnownRecurrenceFrequency { - /** Minute frequency */ - Minute = "Minute", - /** Hour frequency */ - Hour = "Hour", - /** Day frequency */ - Day = "Day", - /** Week frequency */ - Week = "Week", - /** Month frequency */ - Month = "Month" +/** Optional parameters. */ +export interface ComputeGetAllowedResizeSizesOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getAllowedResizeSizes operation. */ +export type ComputeGetAllowedResizeSizesResponse = VirtualMachineSizeListResult; + +/** Optional parameters. */ +export interface ComputeResizeOptionalParams + 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; } -/** - * Defines values for RecurrenceFrequency. \ - * {@link KnownRecurrenceFrequency} can be used interchangeably with RecurrenceFrequency, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Minute**: Minute frequency \ - * **Hour**: Hour frequency \ - * **Day**: Day frequency \ - * **Week**: Week frequency \ - * **Month**: Month frequency - */ -export type RecurrenceFrequency = string; +/** Contains response data for the resize operation. */ +export type ComputeResizeResponse = ComputeResizeHeaders; -/** Known values of {@link WeekDay} that the service accepts. */ -export enum KnownWeekDay { - /** Monday weekday */ - Monday = "Monday", - /** Tuesday weekday */ - Tuesday = "Tuesday", - /** Wednesday weekday */ - Wednesday = "Wednesday", - /** Thursday weekday */ - Thursday = "Thursday", - /** Friday weekday */ - Friday = "Friday", - /** Saturday weekday */ - Saturday = "Saturday", - /** Sunday weekday */ - Sunday = "Sunday" +/** Optional parameters. */ +export interface ComputeListNextOptionalParams + extends coreClient.OperationOptions {} + +/** 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 RegistryCodeContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; } -/** - * Defines values for WeekDay. \ - * {@link KnownWeekDay} can be used interchangeably with WeekDay, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Monday**: Monday weekday \ - * **Tuesday**: Tuesday weekday \ - * **Wednesday**: Wednesday weekday \ - * **Thursday**: Thursday weekday \ - * **Friday**: Friday weekday \ - * **Saturday**: Saturday weekday \ - * **Sunday**: Sunday weekday - */ -export type WeekDay = string; +/** Contains response data for the list operation. */ +export type RegistryCodeContainersListResponse = CodeContainerResourceArmPaginatedResult; -/** Known values of {@link ScheduleProvisioningState} that the service accepts. */ -export enum KnownScheduleProvisioningState { - /** Completed */ - Completed = "Completed", - /** Provisioning */ - Provisioning = "Provisioning", - /** Failed */ - Failed = "Failed" +/** Optional parameters. */ +export interface RegistryCodeContainersDeleteOptionalParams + 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; } -/** - * Defines values for ScheduleProvisioningState. \ - * {@link KnownScheduleProvisioningState} can be used interchangeably with ScheduleProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Completed** \ - * **Provisioning** \ - * **Failed** - */ -export type ScheduleProvisioningState = string; +/** Optional parameters. */ +export interface RegistryCodeContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link Autosave} that the service accepts. */ -export enum KnownAutosave { - /** None */ - None = "None", - /** Local */ - Local = "Local", - /** Remote */ - Remote = "Remote" +/** Contains response data for the get operation. */ +export type RegistryCodeContainersGetResponse = CodeContainer; + +/** Optional parameters. */ +export interface RegistryCodeContainersCreateOrUpdateOptionalParams + 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 RegistryCodeContainersCreateOrUpdateResponse = CodeContainer; + +/** Optional parameters. */ +export interface RegistryCodeContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryCodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryCodeVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; +} + +/** Contains response data for the list operation. */ +export type RegistryCodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryCodeVersionsDeleteOptionalParams + 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; } -/** - * Defines values for Autosave. \ - * {@link KnownAutosave} can be used interchangeably with Autosave, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **Local** \ - * **Remote** - */ -export type Autosave = string; +/** Optional parameters. */ +export interface RegistryCodeVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link Network} that the service accepts. */ -export enum KnownNetwork { - /** Bridge */ - Bridge = "Bridge", - /** Host */ - Host = "Host" +/** Contains response data for the get operation. */ +export type RegistryCodeVersionsGetResponse = CodeVersion; + +/** Optional parameters. */ +export interface RegistryCodeVersionsCreateOrUpdateOptionalParams + 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; } -/** - * Defines values for Network. \ - * {@link KnownNetwork} can be used interchangeably with Network, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Bridge** \ - * **Host** - */ -export type Network = string; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryCodeVersionsCreateOrUpdateResponse = CodeVersion; -/** Known values of {@link Caching} that the service accepts. */ -export enum KnownCaching { - /** None */ - None = "None", - /** ReadOnly */ - ReadOnly = "ReadOnly", - /** ReadWrite */ - ReadWrite = "ReadWrite" -} +/** Optional parameters. */ +export interface RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for Caching. \ - * {@link KnownCaching} can be used interchangeably with Caching, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **ReadOnly** \ - * **ReadWrite** - */ -export type Caching = string; +/** Contains response data for the createOrGetStartPendingUpload operation. */ +export type RegistryCodeVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; -/** Known values of {@link StorageAccountType} that the service accepts. */ -export enum KnownStorageAccountType { - /** StandardLRS */ - StandardLRS = "Standard_LRS", - /** PremiumLRS */ - PremiumLRS = "Premium_LRS" -} +/** Optional parameters. */ +export interface RegistryCodeVersionsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for StorageAccountType. \ - * {@link KnownStorageAccountType} can be used interchangeably with StorageAccountType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Standard_LRS** \ - * **Premium_LRS** - */ -export type StorageAccountType = string; +/** Contains response data for the listNext operation. */ +export type RegistryCodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; -/** Known values of {@link SourceType} that the service accepts. */ -export enum KnownSourceType { - /** Dataset */ - Dataset = "Dataset", - /** Datastore */ - Datastore = "Datastore", - /** URI */ - URI = "URI" +/** Optional parameters. */ +export interface RegistryComponentContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; } -/** - * Defines values for SourceType. \ - * {@link KnownSourceType} can be used interchangeably with SourceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Dataset** \ - * **Datastore** \ - * **URI** - */ -export type SourceType = string; +/** Contains response data for the list operation. */ +export type RegistryComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; -/** Known values of {@link MountAction} that the service accepts. */ -export enum KnownMountAction { - /** Mount */ - Mount = "Mount", - /** Unmount */ - Unmount = "Unmount" +/** Optional parameters. */ +export interface RegistryComponentContainersDeleteOptionalParams + 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; } -/** - * Defines values for MountAction. \ - * {@link KnownMountAction} can be used interchangeably with MountAction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Mount** \ - * **Unmount** - */ -export type MountAction = string; +/** Optional parameters. */ +export interface RegistryComponentContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link MountState} that the service accepts. */ -export enum KnownMountState { - /** MountRequested */ - MountRequested = "MountRequested", - /** Mounted */ - Mounted = "Mounted", - /** MountFailed */ - MountFailed = "MountFailed", - /** UnmountRequested */ - UnmountRequested = "UnmountRequested", - /** UnmountFailed */ - UnmountFailed = "UnmountFailed", - /** Unmounted */ - Unmounted = "Unmounted" +/** Contains response data for the get operation. */ +export type RegistryComponentContainersGetResponse = ComponentContainer; + +/** Optional parameters. */ +export interface RegistryComponentContainersCreateOrUpdateOptionalParams + 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; } -/** - * Defines values for MountState. \ - * {@link KnownMountState} can be used interchangeably with MountState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **MountRequested** \ - * **Mounted** \ - * **MountFailed** \ - * **UnmountRequested** \ - * **UnmountFailed** \ - * **Unmounted** - */ -export type MountState = string; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryComponentContainersCreateOrUpdateResponse = ComponentContainer; -/** Known values of {@link InputDeliveryMode} that the service accepts. */ -export enum KnownInputDeliveryMode { - /** ReadOnlyMount */ - ReadOnlyMount = "ReadOnlyMount", - /** ReadWriteMount */ - ReadWriteMount = "ReadWriteMount", - /** Download */ - Download = "Download", - /** Direct */ - Direct = "Direct", - /** EvalMount */ - EvalMount = "EvalMount", - /** EvalDownload */ - EvalDownload = "EvalDownload" -} +/** Optional parameters. */ +export interface RegistryComponentContainersListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for InputDeliveryMode. \ - * {@link KnownInputDeliveryMode} can be used interchangeably with InputDeliveryMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ReadOnlyMount** \ - * **ReadWriteMount** \ - * **Download** \ - * **Direct** \ - * **EvalMount** \ - * **EvalDownload** - */ -export type InputDeliveryMode = string; +/** Contains response data for the listNext operation. */ +export type RegistryComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult; -/** Known values of {@link OutputDeliveryMode} that the service accepts. */ -export enum KnownOutputDeliveryMode { - /** ReadWriteMount */ - ReadWriteMount = "ReadWriteMount", - /** Upload */ - Upload = "Upload" +/** Optional parameters. */ +export interface RegistryComponentVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** Component stage. */ + stage?: string; } -/** - * Defines values for OutputDeliveryMode. \ - * {@link KnownOutputDeliveryMode} can be used interchangeably with OutputDeliveryMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ReadWriteMount** \ - * **Upload** - */ -export type OutputDeliveryMode = string; +/** Contains response data for the list operation. */ +export type RegistryComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; -/** Known values of {@link ForecastHorizonMode} that the service accepts. */ -export enum KnownForecastHorizonMode { - /** Forecast horizon to be determined automatically. */ - Auto = "Auto", - /** Use the custom forecast horizon. */ - Custom = "Custom" +/** Optional parameters. */ +export interface RegistryComponentVersionsDeleteOptionalParams + 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; } -/** - * Defines values for ForecastHorizonMode. \ - * {@link KnownForecastHorizonMode} can be used interchangeably with ForecastHorizonMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Auto**: Forecast horizon to be determined automatically. \ - * **Custom**: Use the custom forecast horizon. - */ -export type ForecastHorizonMode = string; +/** Optional parameters. */ +export interface RegistryComponentVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link JobOutputType} that the service accepts. */ -export enum KnownJobOutputType { - /** UriFile */ - UriFile = "uri_file", - /** UriFolder */ - UriFolder = "uri_folder", - /** Mltable */ - Mltable = "mltable", - /** CustomModel */ - CustomModel = "custom_model", - /** MlflowModel */ - MlflowModel = "mlflow_model", - /** TritonModel */ - TritonModel = "triton_model" +/** Contains response data for the get operation. */ +export type RegistryComponentVersionsGetResponse = ComponentVersion; + +/** Optional parameters. */ +export interface RegistryComponentVersionsCreateOrUpdateOptionalParams + 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; } -/** - * Defines values for JobOutputType. \ - * {@link KnownJobOutputType} can be used interchangeably with JobOutputType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **uri_file** \ - * **uri_folder** \ - * **mltable** \ - * **custom_model** \ - * **mlflow_model** \ - * **triton_model** - */ -export type JobOutputType = string; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryComponentVersionsCreateOrUpdateResponse = ComponentVersion; -/** Known values of {@link LogVerbosity} that the service accepts. */ -export enum KnownLogVerbosity { - /** No logs emitted. */ - NotSet = "NotSet", - /** Debug and above log statements logged. */ - Debug = "Debug", - /** Info and above log statements logged. */ - Info = "Info", - /** Warning and above log statements logged. */ - Warning = "Warning", - /** Error and above log statements logged. */ - Error = "Error", - /** Only critical statements logged. */ - Critical = "Critical" -} +/** Optional parameters. */ +export interface RegistryComponentVersionsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for LogVerbosity. \ - * {@link KnownLogVerbosity} can be used interchangeably with LogVerbosity, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotSet**: No logs emitted. \ - * **Debug**: Debug and above log statements logged. \ - * **Info**: Info and above log statements logged. \ - * **Warning**: Warning and above log statements logged. \ - * **Error**: Error and above log statements logged. \ - * **Critical**: Only critical statements logged. - */ -export type LogVerbosity = string; +/** Contains response data for the listNext operation. */ +export type RegistryComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult; -/** Known values of {@link TaskType} that the service accepts. */ -export enum KnownTaskType { - /** - * Classification in machine learning and statistics is a supervised learning approach in which - * the computer program learns from the data given to it and make new observations or classifications. - */ - Classification = "Classification", - /** Regression means to predict the value using the input data. Regression models are used to predict a continuous value. */ - Regression = "Regression", - /** - * Forecasting is a special kind of regression task that deals with time-series data and creates forecasting model - * that can be used to predict the near future values based on the inputs. - */ - Forecasting = "Forecasting", - /** - * Image Classification. Multi-class image classification is used when an image is classified with only a single label - * from a set of classes - e.g. each image is classified as either an image of a 'cat' or a 'dog' or a 'duck'. - */ - ImageClassification = "ImageClassification", - /** - * Image Classification Multilabel. Multi-label image classification is used when an image could have one or more labels - * from a set of labels - e.g. an image could be labeled with both 'cat' and 'dog'. - */ - ImageClassificationMultilabel = "ImageClassificationMultilabel", - /** - * Image Object Detection. Object detection is used to identify objects in an image and locate each object with a - * bounding box e.g. locate all dogs and cats in an image and draw a bounding box around each. - */ - ImageObjectDetection = "ImageObjectDetection", - /** - * Image Instance Segmentation. Instance segmentation is used to identify objects in an image at the pixel level, - * drawing a polygon around each object in the image. - */ - ImageInstanceSegmentation = "ImageInstanceSegmentation", - /** - * Text classification (also known as text tagging or text categorization) is the process of sorting texts into categories. - * Categories are mutually exclusive. - */ - TextClassification = "TextClassification", - /** Multilabel classification task assigns each sample to a group (zero or more) of target labels. */ - TextClassificationMultilabel = "TextClassificationMultilabel", - /** - * Text Named Entity Recognition a.k.a. TextNER. - * Named Entity Recognition (NER) is the ability to take free-form text and identify the occurrences of entities such as people, locations, organizations, and more. - */ - TextNER = "TextNER" +/** Optional parameters. */ +export interface RegistryDataContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; } -/** - * Defines values for TaskType. \ - * {@link KnownTaskType} can be used interchangeably with TaskType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Classification**: Classification in machine learning and statistics is a supervised learning approach in which - * the computer program learns from the data given to it and make new observations or classifications. \ - * **Regression**: Regression means to predict the value using the input data. Regression models are used to predict a continuous value. \ - * **Forecasting**: Forecasting is a special kind of regression task that deals with time-series data and creates forecasting model - * that can be used to predict the near future values based on the inputs. \ - * **ImageClassification**: Image Classification. Multi-class image classification is used when an image is classified with only a single label - * from a set of classes - e.g. each image is classified as either an image of a 'cat' or a 'dog' or a 'duck'. \ - * **ImageClassificationMultilabel**: Image Classification Multilabel. Multi-label image classification is used when an image could have one or more labels - * from a set of labels - e.g. an image could be labeled with both 'cat' and 'dog'. \ - * **ImageObjectDetection**: Image Object Detection. Object detection is used to identify objects in an image and locate each object with a - * bounding box e.g. locate all dogs and cats in an image and draw a bounding box around each. \ - * **ImageInstanceSegmentation**: Image Instance Segmentation. Instance segmentation is used to identify objects in an image at the pixel level, - * drawing a polygon around each object in the image. \ - * **TextClassification**: Text classification (also known as text tagging or text categorization) is the process of sorting texts into categories. - * Categories are mutually exclusive. \ - * **TextClassificationMultilabel**: Multilabel classification task assigns each sample to a group (zero or more) of target labels. \ - * **TextNER**: Text Named Entity Recognition a.k.a. TextNER. - * Named Entity Recognition (NER) is the ability to take free-form text and identify the occurrences of entities such as people, locations, organizations, and more. - */ -export type TaskType = string; +/** Contains response data for the list operation. */ +export type RegistryDataContainersListResponse = DataContainerResourceArmPaginatedResult; -/** Known values of {@link JobInputType} that the service accepts. */ -export enum KnownJobInputType { - /** Literal */ - Literal = "literal", - /** UriFile */ - UriFile = "uri_file", - /** UriFolder */ - UriFolder = "uri_folder", - /** Mltable */ - Mltable = "mltable", - /** CustomModel */ - CustomModel = "custom_model", - /** MlflowModel */ - MlflowModel = "mlflow_model", - /** TritonModel */ - TritonModel = "triton_model" +/** Optional parameters. */ +export interface RegistryDataContainersDeleteOptionalParams + 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; } -/** - * Defines values for JobInputType. \ - * {@link KnownJobInputType} can be used interchangeably with JobInputType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **literal** \ - * **uri_file** \ - * **uri_folder** \ - * **mltable** \ - * **custom_model** \ - * **mlflow_model** \ - * **triton_model** - */ -export type JobInputType = string; +/** Optional parameters. */ +export interface RegistryDataContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link NCrossValidationsMode} that the service accepts. */ -export enum KnownNCrossValidationsMode { - /** Determine N-Cross validations value automatically. Supported only for 'Forecasting' AutoML task. */ - Auto = "Auto", - /** Use custom N-Cross validations value. */ - Custom = "Custom" +/** Contains response data for the get operation. */ +export type RegistryDataContainersGetResponse = DataContainer; + +/** Optional parameters. */ +export interface RegistryDataContainersCreateOrUpdateOptionalParams + 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; } -/** - * Defines values for NCrossValidationsMode. \ - * {@link KnownNCrossValidationsMode} can be used interchangeably with NCrossValidationsMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Auto**: Determine N-Cross validations value automatically. Supported only for 'Forecasting' AutoML task. \ - * **Custom**: Use custom N-Cross validations value. - */ -export type NCrossValidationsMode = string; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryDataContainersCreateOrUpdateResponse = DataContainer; -/** Known values of {@link SeasonalityMode} that the service accepts. */ -export enum KnownSeasonalityMode { - /** Seasonality to be determined automatically. */ - Auto = "Auto", - /** Use the custom seasonality value. */ - Custom = "Custom" +/** Optional parameters. */ +export interface RegistryDataContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryDataContainersListNextResponse = DataContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryDataVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Please choose OrderBy value from ['createdtime', 'modifiedtime'] */ + orderBy?: string; + /** + * Top count of results, top count cannot be greater than the page size. + * If topCount > page size, results with be default page size count will be returned + */ + top?: number; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; } -/** - * Defines values for SeasonalityMode. \ - * {@link KnownSeasonalityMode} can be used interchangeably with SeasonalityMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Auto**: Seasonality to be determined automatically. \ - * **Custom**: Use the custom seasonality value. - */ -export type SeasonalityMode = string; +/** Contains response data for the list operation. */ +export type RegistryDataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; -/** Known values of {@link TargetLagsMode} that the service accepts. */ -export enum KnownTargetLagsMode { - /** Target lags to be determined automatically. */ - Auto = "Auto", - /** Use the custom target lags. */ - Custom = "Custom" +/** Optional parameters. */ +export interface RegistryDataVersionsDeleteOptionalParams + 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; } -/** - * Defines values for TargetLagsMode. \ - * {@link KnownTargetLagsMode} can be used interchangeably with TargetLagsMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Auto**: Target lags to be determined automatically. \ - * **Custom**: Use the custom target lags. - */ -export type TargetLagsMode = string; +/** Optional parameters. */ +export interface RegistryDataVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link TargetRollingWindowSizeMode} that the service accepts. */ -export enum KnownTargetRollingWindowSizeMode { - /** Determine rolling windows size automatically. */ - Auto = "Auto", - /** Use the specified rolling window size. */ - Custom = "Custom" +/** Contains response data for the get operation. */ +export type RegistryDataVersionsGetResponse = DataVersionBase; + +/** Optional parameters. */ +export interface RegistryDataVersionsCreateOrUpdateOptionalParams + 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; } -/** - * Defines values for TargetRollingWindowSizeMode. \ - * {@link KnownTargetRollingWindowSizeMode} can be used interchangeably with TargetRollingWindowSizeMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Auto**: Determine rolling windows size automatically. \ - * **Custom**: Use the specified rolling window size. - */ -export type TargetRollingWindowSizeMode = string; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryDataVersionsCreateOrUpdateResponse = DataVersionBase; -/** Known values of {@link ServiceDataAccessAuthIdentity} that the service accepts. */ -export enum KnownServiceDataAccessAuthIdentity { - /** Do not use any identity for service data access. */ - None = "None", - /** Use the system assigned managed identity of the Workspace to authenticate service data access. */ - WorkspaceSystemAssignedIdentity = "WorkspaceSystemAssignedIdentity", - /** Use the user assigned managed identity of the Workspace to authenticate service data access. */ - WorkspaceUserAssignedIdentity = "WorkspaceUserAssignedIdentity" -} +/** Optional parameters. */ +export interface RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ServiceDataAccessAuthIdentity. \ - * {@link KnownServiceDataAccessAuthIdentity} can be used interchangeably with ServiceDataAccessAuthIdentity, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: Do not use any identity for service data access. \ - * **WorkspaceSystemAssignedIdentity**: Use the system assigned managed identity of the Workspace to authenticate service data access. \ - * **WorkspaceUserAssignedIdentity**: Use the user assigned managed identity of the Workspace to authenticate service data access. - */ -export type ServiceDataAccessAuthIdentity = string; +/** Contains response data for the createOrGetStartPendingUpload operation. */ +export type RegistryDataVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; -/** Known values of {@link EarlyTerminationPolicyType} that the service accepts. */ -export enum KnownEarlyTerminationPolicyType { - /** Bandit */ - Bandit = "Bandit", - /** MedianStopping */ - MedianStopping = "MedianStopping", - /** TruncationSelection */ - TruncationSelection = "TruncationSelection" -} +/** Optional parameters. */ +export interface RegistryDataVersionsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for EarlyTerminationPolicyType. \ - * {@link KnownEarlyTerminationPolicyType} can be used interchangeably with EarlyTerminationPolicyType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Bandit** \ - * **MedianStopping** \ - * **TruncationSelection** - */ -export type EarlyTerminationPolicyType = string; +/** Contains response data for the listNext operation. */ +export type RegistryDataVersionsListNextResponse = DataVersionBaseResourceArmPaginatedResult; -/** Known values of {@link SamplingAlgorithmType} that the service accepts. */ -export enum KnownSamplingAlgorithmType { - /** Grid */ - Grid = "Grid", - /** Random */ - Random = "Random", - /** Bayesian */ - Bayesian = "Bayesian" +/** Optional parameters. */ +export interface RegistryEnvironmentContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; } -/** - * Defines values for SamplingAlgorithmType. \ - * {@link KnownSamplingAlgorithmType} can be used interchangeably with SamplingAlgorithmType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Grid** \ - * **Random** \ - * **Bayesian** - */ -export type SamplingAlgorithmType = string; +/** Contains response data for the list operation. */ +export type RegistryEnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; -/** Known values of {@link ClassificationPrimaryMetrics} that the service accepts. */ -export enum KnownClassificationPrimaryMetrics { - /** - * AUC is the Area under the curve. - * This metric represents arithmetic mean of the score for each class, - * weighted by the number of true instances in each class. - */ - AUCWeighted = "AUCWeighted", - /** Accuracy is the ratio of predictions that exactly match the true class labels. */ - Accuracy = "Accuracy", - /** - * Normalized macro recall is recall macro-averaged and normalized, so that random - * performance has a score of 0, and perfect performance has a score of 1. - */ - NormMacroRecall = "NormMacroRecall", - /** - * The arithmetic mean of the average precision score for each class, weighted by - * the number of true instances in each class. - */ - AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", - /** The arithmetic mean of precision for each class, weighted by number of true instances in each class. */ - PrecisionScoreWeighted = "PrecisionScoreWeighted" +/** Optional parameters. */ +export interface RegistryEnvironmentContainersDeleteOptionalParams + 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; } -/** - * Defines values for ClassificationPrimaryMetrics. \ - * {@link KnownClassificationPrimaryMetrics} can be used interchangeably with ClassificationPrimaryMetrics, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AUCWeighted**: AUC is the Area under the curve. - * This metric represents arithmetic mean of the score for each class, - * weighted by the number of true instances in each class. \ - * **Accuracy**: Accuracy is the ratio of predictions that exactly match the true class labels. \ - * **NormMacroRecall**: Normalized macro recall is recall macro-averaged and normalized, so that random - * performance has a score of 0, and perfect performance has a score of 1. \ - * **AveragePrecisionScoreWeighted**: The arithmetic mean of the average precision score for each class, weighted by - * the number of true instances in each class. \ - * **PrecisionScoreWeighted**: The arithmetic mean of precision for each class, weighted by number of true instances in each class. - */ -export type ClassificationPrimaryMetrics = string; +/** Optional parameters. */ +export interface RegistryEnvironmentContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ClassificationModels} that the service accepts. */ -export enum KnownClassificationModels { - /** - * Logistic regression is a fundamental classification technique. - * It belongs to the group of linear classifiers and is somewhat similar to polynomial and linear regression. - * Logistic regression is fast and relatively uncomplicated, and it's convenient for you to interpret the results. - * Although it's essentially a method for binary classification, it can also be applied to multiclass problems. - */ - LogisticRegression = "LogisticRegression", - /** - * SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications - * to find the model parameters that correspond to the best fit between predicted and actual outputs. - */ - SGD = "SGD", - /** - * The multinomial Naive Bayes classifier is suitable for classification with discrete features (e.g., word counts for text classification). - * The multinomial distribution normally requires integer feature counts. However, in practice, fractional counts such as tf-idf may also work. - */ - MultinomialNaiveBayes = "MultinomialNaiveBayes", - /** Naive Bayes classifier for multivariate Bernoulli models. */ - BernoulliNaiveBayes = "BernoulliNaiveBayes", - /** - * A support vector machine (SVM) is a supervised machine learning model that uses classification algorithms for two-group classification problems. - * After giving an SVM model sets of labeled training data for each category, they're able to categorize new text. - */ - SVM = "SVM", - /** - * A support vector machine (SVM) is a supervised machine learning model that uses classification algorithms for two-group classification problems. - * After giving an SVM model sets of labeled training data for each category, they're able to categorize new text. - * Linear SVM performs best when input data is linear, i.e., data can be easily classified by drawing the straight line between classified values on a plotted graph. - */ - LinearSVM = "LinearSVM", - /** - * K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints - * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. - */ - KNN = "KNN", - /** - * Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. - * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. - */ - DecisionTree = "DecisionTree", - /** - * Random forest is a supervised learning algorithm. - * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. - * The general idea of the bagging method is that a combination of learning models increases the overall result. - */ - RandomForest = "RandomForest", - /** Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. */ - ExtremeRandomTrees = "ExtremeRandomTrees", - /** LightGBM is a gradient boosting framework that uses tree based learning algorithms. */ - LightGBM = "LightGBM", - /** The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. */ - GradientBoosting = "GradientBoosting", - /** XGBoost: Extreme Gradient Boosting Algorithm. This algorithm is used for structured data where target column values can be divided into distinct class values. */ - XGBoostClassifier = "XGBoostClassifier" +/** Contains response data for the get operation. */ +export type RegistryEnvironmentContainersGetResponse = EnvironmentContainer; + +/** Optional parameters. */ +export interface RegistryEnvironmentContainersCreateOrUpdateOptionalParams + 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; } -/** - * Defines values for ClassificationModels. \ - * {@link KnownClassificationModels} can be used interchangeably with ClassificationModels, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **LogisticRegression**: Logistic regression is a fundamental classification technique. - * It belongs to the group of linear classifiers and is somewhat similar to polynomial and linear regression. - * Logistic regression is fast and relatively uncomplicated, and it's convenient for you to interpret the results. - * Although it's essentially a method for binary classification, it can also be applied to multiclass problems. \ - * **SGD**: SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications - * to find the model parameters that correspond to the best fit between predicted and actual outputs. \ - * **MultinomialNaiveBayes**: The multinomial Naive Bayes classifier is suitable for classification with discrete features (e.g., word counts for text classification). - * The multinomial distribution normally requires integer feature counts. However, in practice, fractional counts such as tf-idf may also work. \ - * **BernoulliNaiveBayes**: Naive Bayes classifier for multivariate Bernoulli models. \ - * **SVM**: A support vector machine (SVM) is a supervised machine learning model that uses classification algorithms for two-group classification problems. - * After giving an SVM model sets of labeled training data for each category, they're able to categorize new text. \ - * **LinearSVM**: A support vector machine (SVM) is a supervised machine learning model that uses classification algorithms for two-group classification problems. - * After giving an SVM model sets of labeled training data for each category, they're able to categorize new text. - * Linear SVM performs best when input data is linear, i.e., data can be easily classified by drawing the straight line between classified values on a plotted graph. \ - * **KNN**: K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints - * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. \ - * **DecisionTree**: Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. - * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. \ - * **RandomForest**: Random forest is a supervised learning algorithm. - * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. - * The general idea of the bagging method is that a combination of learning models increases the overall result. \ - * **ExtremeRandomTrees**: Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. \ - * **LightGBM**: LightGBM is a gradient boosting framework that uses tree based learning algorithms. \ - * **GradientBoosting**: The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. \ - * **XGBoostClassifier**: XGBoost: Extreme Gradient Boosting Algorithm. This algorithm is used for structured data where target column values can be divided into distinct class values. - */ -export type ClassificationModels = string; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryEnvironmentContainersCreateOrUpdateResponse = EnvironmentContainer; -/** Known values of {@link StackMetaLearnerType} that the service accepts. */ -export enum KnownStackMetaLearnerType { - /** None */ - None = "None", - /** Default meta-learners are LogisticRegression for classification tasks. */ - LogisticRegression = "LogisticRegression", - /** Default meta-learners are LogisticRegression for classification task when CV is on. */ - LogisticRegressionCV = "LogisticRegressionCV", - /** LightGBMClassifier */ - LightGBMClassifier = "LightGBMClassifier", - /** Default meta-learners are LogisticRegression for regression task. */ - ElasticNet = "ElasticNet", - /** Default meta-learners are LogisticRegression for regression task when CV is on. */ - ElasticNetCV = "ElasticNetCV", - /** LightGBMRegressor */ - LightGBMRegressor = "LightGBMRegressor", - /** LinearRegression */ - LinearRegression = "LinearRegression" +/** Optional parameters. */ +export interface RegistryEnvironmentContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryEnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryEnvironmentVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** Stage for including/excluding (for example) archived entities. Takes priority over listViewType */ + stage?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; } -/** - * Defines values for StackMetaLearnerType. \ - * {@link KnownStackMetaLearnerType} can be used interchangeably with StackMetaLearnerType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **LogisticRegression**: Default meta-learners are LogisticRegression for classification tasks. \ - * **LogisticRegressionCV**: Default meta-learners are LogisticRegression for classification task when CV is on. \ - * **LightGBMClassifier** \ - * **ElasticNet**: Default meta-learners are LogisticRegression for regression task. \ - * **ElasticNetCV**: Default meta-learners are LogisticRegression for regression task when CV is on. \ - * **LightGBMRegressor** \ - * **LinearRegression** - */ -export type StackMetaLearnerType = string; +/** Contains response data for the list operation. */ +export type RegistryEnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; -/** Known values of {@link BlockedTransformers} that the service accepts. */ -export enum KnownBlockedTransformers { - /** Target encoding for text data. */ - TextTargetEncoder = "TextTargetEncoder", - /** Ohe hot encoding creates a binary feature transformation. */ - OneHotEncoder = "OneHotEncoder", - /** Target encoding for categorical data. */ - CatTargetEncoder = "CatTargetEncoder", - /** Tf-Idf stands for, term-frequency times inverse document-frequency. This is a common term weighting scheme for identifying information from documents. */ - TfIdf = "TfIdf", - /** Weight of Evidence encoding is a technique used to encode categorical variables. It uses the natural log of the P(1)/P(0) to create weights. */ - WoETargetEncoder = "WoETargetEncoder", - /** Label encoder converts labels/categorical variables in a numerical form. */ - LabelEncoder = "LabelEncoder", - /** Word embedding helps represents words or phrases as a vector, or a series of numbers. */ - WordEmbedding = "WordEmbedding", - /** Naive Bayes is a classified that is used for classification of discrete features that are categorically distributed. */ - NaiveBayes = "NaiveBayes", - /** Count Vectorizer converts a collection of text documents to a matrix of token counts. */ - CountVectorizer = "CountVectorizer", - /** Hashing One Hot Encoder can turn categorical variables into a limited number of new features. This is often used for high-cardinality categorical features. */ - HashOneHotEncoder = "HashOneHotEncoder" +/** Optional parameters. */ +export interface RegistryEnvironmentVersionsDeleteOptionalParams + 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; } -/** - * Defines values for BlockedTransformers. \ - * {@link KnownBlockedTransformers} can be used interchangeably with BlockedTransformers, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **TextTargetEncoder**: Target encoding for text data. \ - * **OneHotEncoder**: Ohe hot encoding creates a binary feature transformation. \ - * **CatTargetEncoder**: Target encoding for categorical data. \ - * **TfIdf**: Tf-Idf stands for, term-frequency times inverse document-frequency. This is a common term weighting scheme for identifying information from documents. \ - * **WoETargetEncoder**: Weight of Evidence encoding is a technique used to encode categorical variables. It uses the natural log of the P(1)\/P(0) to create weights. \ - * **LabelEncoder**: Label encoder converts labels\/categorical variables in a numerical form. \ - * **WordEmbedding**: Word embedding helps represents words or phrases as a vector, or a series of numbers. \ - * **NaiveBayes**: Naive Bayes is a classified that is used for classification of discrete features that are categorically distributed. \ - * **CountVectorizer**: Count Vectorizer converts a collection of text documents to a matrix of token counts. \ - * **HashOneHotEncoder**: Hashing One Hot Encoder can turn categorical variables into a limited number of new features. This is often used for high-cardinality categorical features. - */ -export type BlockedTransformers = string; +/** Optional parameters. */ +export interface RegistryEnvironmentVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link FeaturizationMode} that the service accepts. */ -export enum KnownFeaturizationMode { - /** Auto mode, system performs featurization without any custom featurization inputs. */ - Auto = "Auto", - /** Custom featurization. */ - Custom = "Custom", - /** Featurization off. 'Forecasting' task cannot use this value. */ - Off = "Off" +/** Contains response data for the get operation. */ +export type RegistryEnvironmentVersionsGetResponse = EnvironmentVersion; + +/** Optional parameters. */ +export interface RegistryEnvironmentVersionsCreateOrUpdateOptionalParams + 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; } -/** - * Defines values for FeaturizationMode. \ - * {@link KnownFeaturizationMode} can be used interchangeably with FeaturizationMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Auto**: Auto mode, system performs featurization without any custom featurization inputs. \ - * **Custom**: Custom featurization. \ - * **Off**: Featurization off. 'Forecasting' task cannot use this value. - */ -export type FeaturizationMode = string; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryEnvironmentVersionsCreateOrUpdateResponse = EnvironmentVersion; -/** Known values of {@link DistributionType} that the service accepts. */ -export enum KnownDistributionType { - /** PyTorch */ - PyTorch = "PyTorch", - /** TensorFlow */ - TensorFlow = "TensorFlow", - /** Mpi */ - Mpi = "Mpi" -} +/** Optional parameters. */ +export interface RegistryEnvironmentVersionsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for DistributionType. \ - * {@link KnownDistributionType} can be used interchangeably with DistributionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **PyTorch** \ - * **TensorFlow** \ - * **Mpi** - */ -export type DistributionType = string; +/** Contains response data for the listNext operation. */ +export type RegistryEnvironmentVersionsListNextResponse = EnvironmentVersionResourceArmPaginatedResult; -/** Known values of {@link JobLimitsType} that the service accepts. */ -export enum KnownJobLimitsType { - /** Command */ - Command = "Command", - /** Sweep */ - Sweep = "Sweep" +/** Optional parameters. */ +export interface RegistryModelContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; } -/** - * Defines values for JobLimitsType. \ - * {@link KnownJobLimitsType} can be used interchangeably with JobLimitsType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Command** \ - * **Sweep** - */ -export type JobLimitsType = string; +/** Contains response data for the list operation. */ +export type RegistryModelContainersListResponse = ModelContainerResourceArmPaginatedResult; -/** Known values of {@link FeatureLags} that the service accepts. */ -export enum KnownFeatureLags { - /** No feature lags generated. */ - None = "None", - /** System auto-generates feature lags. */ - Auto = "Auto" +/** Optional parameters. */ +export interface RegistryModelContainersDeleteOptionalParams + 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; } -/** - * Defines values for FeatureLags. \ - * {@link KnownFeatureLags} can be used interchangeably with FeatureLags, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: No feature lags generated. \ - * **Auto**: System auto-generates feature lags. - */ -export type FeatureLags = string; +/** Optional parameters. */ +export interface RegistryModelContainersGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ShortSeriesHandlingConfiguration} that the service accepts. */ -export enum KnownShortSeriesHandlingConfiguration { - /** Represents no/null value. */ - None = "None", - /** Short series will be padded if there are no long series, otherwise short series will be dropped. */ - Auto = "Auto", - /** All the short series will be padded. */ - Pad = "Pad", - /** All the short series will be dropped. */ - Drop = "Drop" +/** Contains response data for the get operation. */ +export type RegistryModelContainersGetResponse = ModelContainer; + +/** Optional parameters. */ +export interface RegistryModelContainersCreateOrUpdateOptionalParams + 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; } -/** - * Defines values for ShortSeriesHandlingConfiguration. \ - * {@link KnownShortSeriesHandlingConfiguration} can be used interchangeably with ShortSeriesHandlingConfiguration, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: Represents no\/null value. \ - * **Auto**: Short series will be padded if there are no long series, otherwise short series will be dropped. \ - * **Pad**: All the short series will be padded. \ - * **Drop**: All the short series will be dropped. - */ -export type ShortSeriesHandlingConfiguration = string; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryModelContainersCreateOrUpdateResponse = ModelContainer; -/** Known values of {@link TargetAggregationFunction} that the service accepts. */ -export enum KnownTargetAggregationFunction { - /** Represent no value set. */ - None = "None", - /** Sum */ - Sum = "Sum", - /** Max */ - Max = "Max", - /** Min */ - Min = "Min", - /** Mean */ - Mean = "Mean" +/** Optional parameters. */ +export interface RegistryModelContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface RegistryModelVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** Version identifier. */ + version?: string; + /** Model description. */ + description?: string; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 */ + properties?: string; } -/** - * Defines values for TargetAggregationFunction. \ - * {@link KnownTargetAggregationFunction} can be used interchangeably with TargetAggregationFunction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: Represent no value set. \ - * **Sum** \ - * **Max** \ - * **Min** \ - * **Mean** - */ -export type TargetAggregationFunction = string; +/** Contains response data for the list operation. */ +export type RegistryModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; -/** Known values of {@link UseStl} that the service accepts. */ -export enum KnownUseStl { - /** No stl decomposition. */ - None = "None", - /** Season */ - Season = "Season", - /** SeasonTrend */ - SeasonTrend = "SeasonTrend" +/** Optional parameters. */ +export interface RegistryModelVersionsDeleteOptionalParams + 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; } -/** - * Defines values for UseStl. \ - * {@link KnownUseStl} can be used interchangeably with UseStl, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: No stl decomposition. \ - * **Season** \ - * **SeasonTrend** - */ -export type UseStl = string; +/** Optional parameters. */ +export interface RegistryModelVersionsGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ForecastingPrimaryMetrics} that the service accepts. */ -export enum KnownForecastingPrimaryMetrics { - /** The Spearman's rank coefficient of correlation is a non-parametric measure of rank correlation. */ - SpearmanCorrelation = "SpearmanCorrelation", - /** The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. */ - NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", - /** The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. */ - R2Score = "R2Score", - /** The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. */ - NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError" +/** Contains response data for the get operation. */ +export type RegistryModelVersionsGetResponse = ModelVersion; + +/** Optional parameters. */ +export interface RegistryModelVersionsCreateOrUpdateOptionalParams + 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; } -/** - * Defines values for ForecastingPrimaryMetrics. \ - * {@link KnownForecastingPrimaryMetrics} can be used interchangeably with ForecastingPrimaryMetrics, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **SpearmanCorrelation**: The Spearman's rank coefficient of correlation is a non-parametric measure of rank correlation. \ - * **NormalizedRootMeanSquaredError**: The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. \ - * **R2Score**: The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. \ - * **NormalizedMeanAbsoluteError**: The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. - */ -export type ForecastingPrimaryMetrics = string; +/** Contains response data for the createOrUpdate operation. */ +export type RegistryModelVersionsCreateOrUpdateResponse = ModelVersion; -/** Known values of {@link ForecastingModels} that the service accepts. */ -export enum KnownForecastingModels { - /** - * Auto-Autoregressive Integrated Moving Average (ARIMA) model uses time-series data and statistical analysis to interpret the data and make future predictions. - * This model aims to explain data by using time series data on its past values and uses linear regression to make predictions. - */ - AutoArima = "AutoArima", - /** - * Prophet is a procedure for forecasting time series data based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. - * It works best with time series that have strong seasonal effects and several seasons of historical data. Prophet is robust to missing data and shifts in the trend, and typically handles outliers well. - */ - Prophet = "Prophet", - /** The Naive forecasting model makes predictions by carrying forward the latest target value for each time-series in the training data. */ - Naive = "Naive", - /** The Seasonal Naive forecasting model makes predictions by carrying forward the latest season of target values for each time-series in the training data. */ - SeasonalNaive = "SeasonalNaive", - /** The Average forecasting model makes predictions by carrying forward the average of the target values for each time-series in the training data. */ - Average = "Average", - /** The Seasonal Average forecasting model makes predictions by carrying forward the average value of the latest season of data for each time-series in the training data. */ - SeasonalAverage = "SeasonalAverage", - /** Exponential smoothing is a time series forecasting method for univariate data that can be extended to support data with a systematic trend or seasonal component. */ - ExponentialSmoothing = "ExponentialSmoothing", - /** - * An Autoregressive Integrated Moving Average with Explanatory Variable (ARIMAX) model can be viewed as a multiple regression model with one or more autoregressive (AR) terms and/or one or more moving average (MA) terms. - * This method is suitable for forecasting when data is stationary/non stationary, and multivariate with any type of data pattern, i.e., level/trend /seasonality/cyclicity. - */ - Arimax = "Arimax", - /** TCNForecaster: Temporal Convolutional Networks Forecaster. //TODO: Ask forecasting team for brief intro. */ - TCNForecaster = "TCNForecaster", - /** Elastic net is a popular type of regularized linear regression that combines two popular penalties, specifically the L1 and L2 penalty functions. */ - ElasticNet = "ElasticNet", - /** The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. */ - GradientBoosting = "GradientBoosting", - /** - * Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. - * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. - */ - DecisionTree = "DecisionTree", - /** - * K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints - * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. - */ - KNN = "KNN", - /** Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with an L1 prior as regularizer. */ - LassoLars = "LassoLars", - /** - * SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications - * to find the model parameters that correspond to the best fit between predicted and actual outputs. - * It's an inexact but powerful technique. - */ - SGD = "SGD", - /** - * Random forest is a supervised learning algorithm. - * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. - * The general idea of the bagging method is that a combination of learning models increases the overall result. - */ - RandomForest = "RandomForest", - /** Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. */ - ExtremeRandomTrees = "ExtremeRandomTrees", - /** LightGBM is a gradient boosting framework that uses tree based learning algorithms. */ - LightGBM = "LightGBM", - /** XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. */ - XGBoostRegressor = "XGBoostRegressor" +/** Optional parameters. */ +export interface RegistryModelVersionsPackageOptionalParams + 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; } -/** - * Defines values for ForecastingModels. \ - * {@link KnownForecastingModels} can be used interchangeably with ForecastingModels, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AutoArima**: Auto-Autoregressive Integrated Moving Average (ARIMA) model uses time-series data and statistical analysis to interpret the data and make future predictions. - * This model aims to explain data by using time series data on its past values and uses linear regression to make predictions. \ - * **Prophet**: Prophet is a procedure for forecasting time series data based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. - * It works best with time series that have strong seasonal effects and several seasons of historical data. Prophet is robust to missing data and shifts in the trend, and typically handles outliers well. \ - * **Naive**: The Naive forecasting model makes predictions by carrying forward the latest target value for each time-series in the training data. \ - * **SeasonalNaive**: The Seasonal Naive forecasting model makes predictions by carrying forward the latest season of target values for each time-series in the training data. \ - * **Average**: The Average forecasting model makes predictions by carrying forward the average of the target values for each time-series in the training data. \ - * **SeasonalAverage**: The Seasonal Average forecasting model makes predictions by carrying forward the average value of the latest season of data for each time-series in the training data. \ - * **ExponentialSmoothing**: Exponential smoothing is a time series forecasting method for univariate data that can be extended to support data with a systematic trend or seasonal component. \ - * **Arimax**: An Autoregressive Integrated Moving Average with Explanatory Variable (ARIMAX) model can be viewed as a multiple regression model with one or more autoregressive (AR) terms and\/or one or more moving average (MA) terms. - * This method is suitable for forecasting when data is stationary\/non stationary, and multivariate with any type of data pattern, i.e., level\/trend \/seasonality\/cyclicity. \ - * **TCNForecaster**: TCNForecaster: Temporal Convolutional Networks Forecaster. \/\/TODO: Ask forecasting team for brief intro. \ - * **ElasticNet**: Elastic net is a popular type of regularized linear regression that combines two popular penalties, specifically the L1 and L2 penalty functions. \ - * **GradientBoosting**: The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. \ - * **DecisionTree**: Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. - * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. \ - * **KNN**: K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints - * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. \ - * **LassoLars**: Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with an L1 prior as regularizer. \ - * **SGD**: SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications - * to find the model parameters that correspond to the best fit between predicted and actual outputs. - * It's an inexact but powerful technique. \ - * **RandomForest**: Random forest is a supervised learning algorithm. - * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. - * The general idea of the bagging method is that a combination of learning models increases the overall result. \ - * **ExtremeRandomTrees**: Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. \ - * **LightGBM**: LightGBM is a gradient boosting framework that uses tree based learning algorithms. \ - * **XGBoostRegressor**: XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. - */ -export type ForecastingModels = string; +/** Contains response data for the package operation. */ +export type RegistryModelVersionsPackageResponse = PackageResponse; -/** Known values of {@link LearningRateScheduler} that the service accepts. */ -export enum KnownLearningRateScheduler { - /** No learning rate scheduler selected. */ - None = "None", - /** Cosine Annealing With Warmup. */ - WarmupCosine = "WarmupCosine", - /** Step learning rate scheduler. */ - Step = "Step" +/** Optional parameters. */ +export interface RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrGetStartPendingUpload operation. */ +export type RegistryModelVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; + +/** Optional parameters. */ +export interface RegistryModelVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type RegistryModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface BatchEndpointsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Number of endpoints to be retrieved in a page of results. */ + count?: number; } -/** - * Defines values for LearningRateScheduler. \ - * {@link KnownLearningRateScheduler} can be used interchangeably with LearningRateScheduler, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: No learning rate scheduler selected. \ - * **WarmupCosine**: Cosine Annealing With Warmup. \ - * **Step**: Step learning rate scheduler. - */ -export type LearningRateScheduler = string; +/** Contains response data for the list operation. */ +export type BatchEndpointsListResponse = BatchEndpointTrackedResourceArmPaginatedResult; -/** Known values of {@link StochasticOptimizer} that the service accepts. */ -export enum KnownStochasticOptimizer { - /** No optimizer selected. */ - None = "None", - /** Stochastic Gradient Descent optimizer. */ - Sgd = "Sgd", - /** Adam is algorithm the optimizes stochastic objective functions based on adaptive estimates of moments */ - Adam = "Adam", - /** AdamW is a variant of the optimizer Adam that has an improved implementation of weight decay. */ - Adamw = "Adamw" +/** Optional parameters. */ +export interface BatchEndpointsDeleteOptionalParams + 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; } -/** - * Defines values for StochasticOptimizer. \ - * {@link KnownStochasticOptimizer} can be used interchangeably with StochasticOptimizer, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: No optimizer selected. \ - * **Sgd**: Stochastic Gradient Descent optimizer. \ - * **Adam**: Adam is algorithm the optimizes stochastic objective functions based on adaptive estimates of moments \ - * **Adamw**: AdamW is a variant of the optimizer Adam that has an improved implementation of weight decay. - */ -export type StochasticOptimizer = string; +/** Optional parameters. */ +export interface BatchEndpointsGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link ClassificationMultilabelPrimaryMetrics} that the service accepts. */ -export enum KnownClassificationMultilabelPrimaryMetrics { - /** - * AUC is the Area under the curve. - * This metric represents arithmetic mean of the score for each class, - * weighted by the number of true instances in each class. - */ - AUCWeighted = "AUCWeighted", - /** Accuracy is the ratio of predictions that exactly match the true class labels. */ - Accuracy = "Accuracy", - /** - * Normalized macro recall is recall macro-averaged and normalized, so that random - * performance has a score of 0, and perfect performance has a score of 1. - */ - NormMacroRecall = "NormMacroRecall", - /** - * The arithmetic mean of the average precision score for each class, weighted by - * the number of true instances in each class. - */ - AveragePrecisionScoreWeighted = "AveragePrecisionScoreWeighted", - /** The arithmetic mean of precision for each class, weighted by number of true instances in each class. */ - PrecisionScoreWeighted = "PrecisionScoreWeighted", - /** Intersection Over Union. Intersection of predictions divided by union of predictions. */ - IOU = "IOU" +/** Contains response data for the get operation. */ +export type BatchEndpointsGetResponse = BatchEndpoint; + +/** Optional parameters. */ +export interface BatchEndpointsUpdateOptionalParams + 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; } -/** - * Defines values for ClassificationMultilabelPrimaryMetrics. \ - * {@link KnownClassificationMultilabelPrimaryMetrics} can be used interchangeably with ClassificationMultilabelPrimaryMetrics, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AUCWeighted**: AUC is the Area under the curve. - * This metric represents arithmetic mean of the score for each class, - * weighted by the number of true instances in each class. \ - * **Accuracy**: Accuracy is the ratio of predictions that exactly match the true class labels. \ - * **NormMacroRecall**: Normalized macro recall is recall macro-averaged and normalized, so that random - * performance has a score of 0, and perfect performance has a score of 1. \ - * **AveragePrecisionScoreWeighted**: The arithmetic mean of the average precision score for each class, weighted by - * the number of true instances in each class. \ - * **PrecisionScoreWeighted**: The arithmetic mean of precision for each class, weighted by number of true instances in each class. \ - * **IOU**: Intersection Over Union. Intersection of predictions divided by union of predictions. - */ -export type ClassificationMultilabelPrimaryMetrics = string; +/** Contains response data for the update operation. */ +export type BatchEndpointsUpdateResponse = BatchEndpoint; -/** Known values of {@link InstanceSegmentationPrimaryMetrics} that the service accepts. */ -export enum KnownInstanceSegmentationPrimaryMetrics { - /** - * Mean Average Precision (MAP) is the average of AP (Average Precision). - * AP is calculated for each class and averaged to get the MAP. - */ - MeanAveragePrecision = "MeanAveragePrecision" +/** Optional parameters. */ +export interface BatchEndpointsCreateOrUpdateOptionalParams + 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; } -/** - * Defines values for InstanceSegmentationPrimaryMetrics. \ - * {@link KnownInstanceSegmentationPrimaryMetrics} can be used interchangeably with InstanceSegmentationPrimaryMetrics, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **MeanAveragePrecision**: Mean Average Precision (MAP) is the average of AP (Average Precision). - * AP is calculated for each class and averaged to get the MAP. - */ -export type InstanceSegmentationPrimaryMetrics = string; +/** Contains response data for the createOrUpdate operation. */ +export type BatchEndpointsCreateOrUpdateResponse = BatchEndpoint; -/** Known values of {@link ModelSize} that the service accepts. */ -export enum KnownModelSize { - /** No value selected. */ - None = "None", - /** Small size. */ - Small = "Small", - /** Medium size. */ - Medium = "Medium", - /** Large size. */ - Large = "Large", - /** Extra large size. */ - ExtraLarge = "ExtraLarge" -} +/** Optional parameters. */ +export interface BatchEndpointsListKeysOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ModelSize. \ - * {@link KnownModelSize} can be used interchangeably with ModelSize, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: No value selected. \ - * **Small**: Small size. \ - * **Medium**: Medium size. \ - * **Large**: Large size. \ - * **ExtraLarge**: Extra large size. - */ -export type ModelSize = string; +/** Contains response data for the listKeys operation. */ +export type BatchEndpointsListKeysResponse = EndpointAuthKeys; -/** Known values of {@link ValidationMetricType} that the service accepts. */ -export enum KnownValidationMetricType { - /** No metric. */ - None = "None", - /** Coco metric. */ - Coco = "Coco", - /** Voc metric. */ - Voc = "Voc", - /** CocoVoc metric. */ - CocoVoc = "CocoVoc" -} +/** Optional parameters. */ +export interface BatchEndpointsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ValidationMetricType. \ - * {@link KnownValidationMetricType} can be used interchangeably with ValidationMetricType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: No metric. \ - * **Coco**: Coco metric. \ - * **Voc**: Voc metric. \ - * **CocoVoc**: CocoVoc metric. - */ -export type ValidationMetricType = string; +/** Contains response data for the listNext operation. */ +export type BatchEndpointsListNextResponse = BatchEndpointTrackedResourceArmPaginatedResult; -/** Known values of {@link ObjectDetectionPrimaryMetrics} that the service accepts. */ -export enum KnownObjectDetectionPrimaryMetrics { - /** - * Mean Average Precision (MAP) is the average of AP (Average Precision). - * AP is calculated for each class and averaged to get the MAP. - */ - MeanAveragePrecision = "MeanAveragePrecision" +/** Optional parameters. */ +export interface BatchDeploymentsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Top of list. */ + top?: number; } -/** - * Defines values for ObjectDetectionPrimaryMetrics. \ - * {@link KnownObjectDetectionPrimaryMetrics} can be used interchangeably with ObjectDetectionPrimaryMetrics, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **MeanAveragePrecision**: Mean Average Precision (MAP) is the average of AP (Average Precision). - * AP is calculated for each class and averaged to get the MAP. - */ -export type ObjectDetectionPrimaryMetrics = string; +/** Contains response data for the list operation. */ +export type BatchDeploymentsListResponse = BatchDeploymentTrackedResourceArmPaginatedResult; -/** Known values of {@link Goal} that the service accepts. */ -export enum KnownGoal { - /** Minimize */ - Minimize = "Minimize", - /** Maximize */ - Maximize = "Maximize" +/** Optional parameters. */ +export interface BatchDeploymentsDeleteOptionalParams + 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; } -/** - * Defines values for Goal. \ - * {@link KnownGoal} can be used interchangeably with Goal, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Minimize** \ - * **Maximize** - */ -export type Goal = string; +/** Optional parameters. */ +export interface BatchDeploymentsGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link RandomSamplingAlgorithmRule} that the service accepts. */ -export enum KnownRandomSamplingAlgorithmRule { - /** Random */ - Random = "Random", - /** Sobol */ - Sobol = "Sobol" +/** Contains response data for the get operation. */ +export type BatchDeploymentsGetResponse = BatchDeployment; + +/** Optional parameters. */ +export interface BatchDeploymentsUpdateOptionalParams + 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; } -/** - * Defines values for RandomSamplingAlgorithmRule. \ - * {@link KnownRandomSamplingAlgorithmRule} can be used interchangeably with RandomSamplingAlgorithmRule, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Random** \ - * **Sobol** - */ -export type RandomSamplingAlgorithmRule = string; +/** Contains response data for the update operation. */ +export type BatchDeploymentsUpdateResponse = BatchDeployment; -/** Known values of {@link RegressionPrimaryMetrics} that the service accepts. */ -export enum KnownRegressionPrimaryMetrics { - /** The Spearman's rank coefficient of correlation is a nonparametric measure of rank correlation. */ - SpearmanCorrelation = "SpearmanCorrelation", - /** The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. */ - NormalizedRootMeanSquaredError = "NormalizedRootMeanSquaredError", - /** The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. */ - R2Score = "R2Score", - /** The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. */ - NormalizedMeanAbsoluteError = "NormalizedMeanAbsoluteError" +/** Optional parameters. */ +export interface BatchDeploymentsCreateOrUpdateOptionalParams + 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; } -/** - * Defines values for RegressionPrimaryMetrics. \ - * {@link KnownRegressionPrimaryMetrics} can be used interchangeably with RegressionPrimaryMetrics, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **SpearmanCorrelation**: The Spearman's rank coefficient of correlation is a nonparametric measure of rank correlation. \ - * **NormalizedRootMeanSquaredError**: The Normalized Root Mean Squared Error (NRMSE) the RMSE facilitates the comparison between models with different scales. \ - * **R2Score**: The R2 score is one of the performance evaluation measures for forecasting-based machine learning models. \ - * **NormalizedMeanAbsoluteError**: The Normalized Mean Absolute Error (NMAE) is a validation metric to compare the Mean Absolute Error (MAE) of (time) series with different scales. - */ -export type RegressionPrimaryMetrics = string; +/** Contains response data for the createOrUpdate operation. */ +export type BatchDeploymentsCreateOrUpdateResponse = BatchDeployment; -/** Known values of {@link RegressionModels} that the service accepts. */ -export enum KnownRegressionModels { - /** Elastic net is a popular type of regularized linear regression that combines two popular penalties, specifically the L1 and L2 penalty functions. */ - ElasticNet = "ElasticNet", - /** The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. */ - GradientBoosting = "GradientBoosting", - /** - * Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. - * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. - */ - DecisionTree = "DecisionTree", - /** - * K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints - * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. - */ - KNN = "KNN", - /** Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with an L1 prior as regularizer. */ - LassoLars = "LassoLars", - /** - * SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications - * to find the model parameters that correspond to the best fit between predicted and actual outputs. - * It's an inexact but powerful technique. - */ - SGD = "SGD", - /** - * Random forest is a supervised learning algorithm. - * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. - * The general idea of the bagging method is that a combination of learning models increases the overall result. - */ - RandomForest = "RandomForest", - /** Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. */ - ExtremeRandomTrees = "ExtremeRandomTrees", - /** LightGBM is a gradient boosting framework that uses tree based learning algorithms. */ - LightGBM = "LightGBM", - /** XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. */ - XGBoostRegressor = "XGBoostRegressor" +/** Optional parameters. */ +export interface BatchDeploymentsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type BatchDeploymentsListNextResponse = BatchDeploymentTrackedResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface CodeContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; } -/** - * Defines values for RegressionModels. \ - * {@link KnownRegressionModels} can be used interchangeably with RegressionModels, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ElasticNet**: Elastic net is a popular type of regularized linear regression that combines two popular penalties, specifically the L1 and L2 penalty functions. \ - * **GradientBoosting**: The technique of transiting week learners into a strong learner is called Boosting. The gradient boosting algorithm process works on this theory of execution. \ - * **DecisionTree**: Decision Trees are a non-parametric supervised learning method used for both classification and regression tasks. - * The goal is to create a model that predicts the value of a target variable by learning simple decision rules inferred from the data features. \ - * **KNN**: K-nearest neighbors (KNN) algorithm uses 'feature similarity' to predict the values of new datapoints - * which further means that the new data point will be assigned a value based on how closely it matches the points in the training set. \ - * **LassoLars**: Lasso model fit with Least Angle Regression a.k.a. Lars. It is a Linear Model trained with an L1 prior as regularizer. \ - * **SGD**: SGD: Stochastic gradient descent is an optimization algorithm often used in machine learning applications - * to find the model parameters that correspond to the best fit between predicted and actual outputs. - * It's an inexact but powerful technique. \ - * **RandomForest**: Random forest is a supervised learning algorithm. - * The "forest" it builds, is an ensemble of decision trees, usually trained with the “bagging” method. - * The general idea of the bagging method is that a combination of learning models increases the overall result. \ - * **ExtremeRandomTrees**: Extreme Trees is an ensemble machine learning algorithm that combines the predictions from many decision trees. It is related to the widely used random forest algorithm. \ - * **LightGBM**: LightGBM is a gradient boosting framework that uses tree based learning algorithms. \ - * **XGBoostRegressor**: XGBoostRegressor: Extreme Gradient Boosting Regressor is a supervised machine learning model using ensemble of base learners. - */ -export type RegressionModels = string; -/** Defines values for SkuTier. */ -export type SkuTier = "Free" | "Basic" | "Standard" | "Premium"; +/** Contains response data for the list operation. */ +export type CodeContainersListResponse = CodeContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface OperationsListOptionalParams +export interface CodeContainersDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OperationsListResponse = AmlOperationListResult; - /** Optional parameters. */ -export interface WorkspacesGetOptionalParams +export interface CodeContainersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkspacesGetResponse = Workspace; +export type CodeContainersGetResponse = CodeContainer; /** 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; -} +export interface CodeContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type WorkspacesCreateOrUpdateResponse = Workspace; +export type CodeContainersCreateOrUpdateResponse = CodeContainer; /** Optional parameters. */ -export interface WorkspacesDeleteOptionalParams +export interface CodeContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type CodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface CodeVersionsListOptionalParams 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; + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** If specified, return CodeVersion assets with specified content hash value, regardless of name */ + hash?: string; + /** Hash algorithm version when listing by hash */ + hashVersion?: string; } +/** Contains response data for the list operation. */ +export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; + /** Optional parameters. */ -export interface WorkspacesUpdateOptionalParams +export interface CodeVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CodeVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CodeVersionsGetResponse = CodeVersion; + +/** Optional parameters. */ +export interface CodeVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type CodeVersionsCreateOrUpdateResponse = CodeVersion; + +/** Optional parameters. */ +export interface CodeVersionsCreateOrGetStartPendingUploadOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrGetStartPendingUpload operation. */ +export type CodeVersionsCreateOrGetStartPendingUploadResponse = PendingUploadResponseDto; + +/** Optional parameters. */ +export interface CodeVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ComponentContainersListOptionalParams 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; + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; } -/** Contains response data for the update operation. */ -export type WorkspacesUpdateResponse = Workspace; +/** Contains response data for the list operation. */ +export type ComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesListByResourceGroupOptionalParams +export interface ComponentContainersDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ComponentContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ComponentContainersGetResponse = ComponentContainer; + +/** Optional parameters. */ +export interface ComponentContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ComponentContainersCreateOrUpdateResponse = ComponentContainer; + +/** Optional parameters. */ +export interface ComponentContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ComponentVersionsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** Component stage. */ + stage?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; } -/** Contains response data for the listByResourceGroup operation. */ -export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; +/** Contains response data for the list operation. */ +export type ComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesDiagnoseOptionalParams +export interface ComponentVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ComponentVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ComponentVersionsGetResponse = ComponentVersion; + +/** Optional parameters. */ +export interface ComponentVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ComponentVersionsCreateOrUpdateResponse = ComponentVersion; + +/** Optional parameters. */ +export interface ComponentVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DataContainersListOptionalParams 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; + /** Continuation token for pagination. */ + skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; } -/** Contains response data for the diagnose operation. */ -export type WorkspacesDiagnoseResponse = DiagnoseResponseResult; +/** Contains response data for the list operation. */ +export type DataContainersListResponse = DataContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesListKeysOptionalParams +export interface DataContainersDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listKeys operation. */ -export type WorkspacesListKeysResponse = ListWorkspaceKeysResult; +/** Optional parameters. */ +export interface DataContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DataContainersGetResponse = DataContainer; /** Optional parameters. */ -export interface WorkspacesResyncKeysOptionalParams +export interface DataContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DataContainersCreateOrUpdateResponse = DataContainer; + +/** Optional parameters. */ +export interface DataContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type DataContainersListNextResponse = DataContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DataVersionsListOptionalParams 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; + /** Continuation token for pagination. */ + skip?: string; + /** Please choose OrderBy value from ['createdtime', 'modifiedtime'] */ + orderBy?: string; + /** + * Top count of results, top count cannot be greater than the page size. + * If topCount > page size, results with be default page size count will be returned + */ + top?: number; + /** data stage */ + stage?: string; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; } +/** Contains response data for the list operation. */ +export type DataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; + /** Optional parameters. */ -export interface WorkspacesListBySubscriptionOptionalParams +export interface DataVersionsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DataVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DataVersionsGetResponse = DataVersionBase; + +/** Optional parameters. */ +export interface DataVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DataVersionsCreateOrUpdateResponse = DataVersionBase; + +/** Optional parameters. */ +export interface DataVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type DataVersionsListNextResponse = DataVersionBaseResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DatastoresListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; + /** Maximum number of results to return. */ + count?: number; + /** Filter down to the workspace default datastore. */ + isDefault?: boolean; + /** Names of datastores to return. */ + names?: string[]; + /** Text to search for in the datastore names. */ + searchText?: string; + /** Order by property (createdtime | modifiedtime | name). */ + orderBy?: string; + /** Order by property in ascending order. */ + orderByAsc?: boolean; } -/** Contains response data for the listBySubscription operation. */ -export type WorkspacesListBySubscriptionResponse = WorkspaceListResult; +/** Contains response data for the list operation. */ +export type DatastoresListResponse = DatastoreResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface DatastoresDeleteOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface WorkspacesListNotebookAccessTokenOptionalParams +export interface DatastoresGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNotebookAccessToken operation. */ -export type WorkspacesListNotebookAccessTokenResponse = NotebookAccessTokenResult; +/** Contains response data for the get operation. */ +export type DatastoresGetResponse = Datastore; /** Optional parameters. */ -export interface WorkspacesPrepareNotebookOptionalParams +export interface DatastoresCreateOrUpdateOptionalParams 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; + /** Flag to skip validation. */ + skipValidation?: boolean; } -/** Contains response data for the prepareNotebook operation. */ -export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo; - -/** Optional parameters. */ -export interface WorkspacesListStorageAccountKeysOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listStorageAccountKeys operation. */ -export type WorkspacesListStorageAccountKeysResponse = ListStorageAccountKeysResult; +/** Contains response data for the createOrUpdate operation. */ +export type DatastoresCreateOrUpdateResponse = Datastore; /** Optional parameters. */ -export interface WorkspacesListNotebookKeysOptionalParams +export interface DatastoresListSecretsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNotebookKeys operation. */ -export type WorkspacesListNotebookKeysResponse = ListNotebookKeysResult; +/** Contains response data for the listSecrets operation. */ +export type DatastoresListSecretsResponse = DatastoreSecretsUnion; /** Optional parameters. */ -export interface WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams +export interface DatastoresListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ -export type WorkspacesListOutboundNetworkDependenciesEndpointsResponse = ExternalFqdnResponse; +/** Contains response data for the listNext operation. */ +export type DatastoresListNextResponse = DatastoreResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesListByResourceGroupNextOptionalParams +export interface EnvironmentContainersListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; } -/** Contains response data for the listByResourceGroupNext operation. */ -export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; +/** Contains response data for the list operation. */ +export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspacesListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; -} +export interface EnvironmentContainersDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; +/** Optional parameters. */ +export interface EnvironmentContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type EnvironmentContainersGetResponse = EnvironmentContainer; /** Optional parameters. */ -export interface UsagesListOptionalParams extends coreClient.OperationOptions {} +export interface EnvironmentContainersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type UsagesListResponse = ListUsagesResult; +/** Contains response data for the createOrUpdate operation. */ +export type EnvironmentContainersCreateOrUpdateResponse = EnvironmentContainer; /** Optional parameters. */ -export interface UsagesListNextOptionalParams +export interface EnvironmentContainersListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type UsagesListNextResponse = ListUsagesResult; +export type EnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface VirtualMachineSizesListOptionalParams - extends coreClient.OperationOptions {} +export interface EnvironmentVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Ordering of list. */ + orderBy?: string; + /** Maximum number of records to return. */ + top?: number; + /** Stage for including/excluding (for example) archived entities. Takes priority over listViewType */ + stage?: string; + /** View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; +} /** Contains response data for the list operation. */ -export type VirtualMachineSizesListResponse = VirtualMachineSizeListResult; +export type EnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface QuotasUpdateOptionalParams +export interface EnvironmentVersionsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type QuotasUpdateResponse = UpdateWorkspaceQuotasResult; +/** Optional parameters. */ +export interface EnvironmentVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type EnvironmentVersionsGetResponse = EnvironmentVersion; /** Optional parameters. */ -export interface QuotasListOptionalParams extends coreClient.OperationOptions {} +export interface EnvironmentVersionsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type QuotasListResponse = ListWorkspaceQuotas; +/** Contains response data for the createOrUpdate operation. */ +export type EnvironmentVersionsCreateOrUpdateResponse = EnvironmentVersion; /** Optional parameters. */ -export interface QuotasListNextOptionalParams +export interface EnvironmentVersionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type QuotasListNextResponse = ListWorkspaceQuotas; +export type EnvironmentVersionsListNextResponse = EnvironmentVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComputeListOptionalParams extends coreClient.OperationOptions { +export interface FeaturesetContainersListOptionalParams + extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** description for the feature set */ + description?: string; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** page size */ + pageSize?: number; + /** name for the featureset */ + name?: string; + /** createdBy user name */ + createdBy?: 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; +export type FeaturesetContainersListResponse = FeaturesetContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComputeCreateOrUpdateOptionalParams +export interface FeaturesetContainersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7722,11 +13616,15 @@ export interface ComputeCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type ComputeCreateOrUpdateResponse = ComputeResource; +/** Optional parameters. */ +export interface FeaturesetContainersGetEntityOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEntity operation. */ +export type FeaturesetContainersGetEntityResponse = FeaturesetContainer; /** Optional parameters. */ -export interface ComputeUpdateOptionalParams +export interface FeaturesetContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7734,43 +13632,79 @@ export interface ComputeUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ComputeUpdateResponse = ComputeResource; +/** Contains response data for the createOrUpdate operation. */ +export type FeaturesetContainersCreateOrUpdateResponse = FeaturesetContainer; /** Optional parameters. */ -export interface ComputeDeleteOptionalParams +export interface FeaturesetContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type FeaturesetContainersListNextResponse = FeaturesetContainerResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface FeaturesListOptionalParams 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; + /** Continuation token for pagination. */ + skip?: string; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** Description of the featureset. */ + description?: string; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** feature name. */ + featureName?: string; + /** Page size. */ + pageSize?: number; } +/** Contains response data for the list operation. */ +export type FeaturesListResponse = FeatureResourceArmPaginatedResult; + /** Optional parameters. */ -export interface ComputeListNodesOptionalParams +export interface FeaturesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNodes operation. */ -export type ComputeListNodesResponse = AmlComputeNodesInformation; +/** Contains response data for the get operation. */ +export type FeaturesGetResponse = Feature; /** Optional parameters. */ -export interface ComputeListKeysOptionalParams +export interface FeaturesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listKeys operation. */ -export type ComputeListKeysResponse = ComputeSecretsUnion; +/** Contains response data for the listNext operation. */ +export type FeaturesListNextResponse = FeatureResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComputeStartOptionalParams +export interface FeaturesetVersionsListOptionalParams 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; + /** Continuation token for pagination. */ + skip?: string; + /** Specifies the featurestore stage */ + stage?: string; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** featureset version */ + version?: string; + /** description for the feature set version */ + description?: string; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** page size */ + pageSize?: number; + /** createdBy user name */ + createdBy?: string; + /** name for the featureset version */ + versionName?: string; } +/** Contains response data for the list operation. */ +export type FeaturesetVersionsListResponse = FeaturesetVersionResourceArmPaginatedResult; + /** Optional parameters. */ -export interface ComputeStopOptionalParams extends coreClient.OperationOptions { +export interface FeaturesetVersionsDeleteOptionalParams + 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. */ @@ -7778,7 +13712,14 @@ export interface ComputeStopOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ -export interface ComputeRestartOptionalParams +export interface FeaturesetVersionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type FeaturesetVersionsGetResponse = FeaturesetVersion; + +/** Optional parameters. */ +export interface FeaturesetVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7786,111 +13727,166 @@ export interface ComputeRestartOptionalParams resumeFrom?: string; } +/** Contains response data for the createOrUpdate operation. */ +export type FeaturesetVersionsCreateOrUpdateResponse = FeaturesetVersion; + /** Optional parameters. */ -export interface ComputeListNextOptionalParams +export interface FeaturesetVersionsBackfillOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; + /** 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 listNext operation. */ -export type ComputeListNextResponse = PaginatedComputeResourcesList; +/** Contains response data for the backfill operation. */ +export type FeaturesetVersionsBackfillResponse = FeaturesetVersionBackfillResponse; /** Optional parameters. */ -export interface ComputeListNodesNextOptionalParams +export interface FeaturesetVersionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNodesNext operation. */ -export type ComputeListNodesNextResponse = AmlComputeNodesInformation; +/** Contains response data for the listNext operation. */ +export type FeaturesetVersionsListNextResponse = FeaturesetVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsListOptionalParams - extends coreClient.OperationOptions {} +export interface FeaturestoreEntityContainersListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** description for the featurestore entity */ + description?: string; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** page size */ + pageSize?: number; + /** name for the featurestore entity */ + name?: string; + /** createdBy user name */ + createdBy?: string; +} /** Contains response data for the list operation. */ -export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; +export type FeaturestoreEntityContainersListResponse = FeaturestoreEntityContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface PrivateEndpointConnectionsGetOptionalParams +export interface FeaturestoreEntityContainersDeleteOptionalParams + 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 FeaturestoreEntityContainersGetEntityOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection; +/** Contains response data for the getEntity operation. */ +export type FeaturestoreEntityContainersGetEntityResponse = FeaturestoreEntityContainer; /** Optional parameters. */ -export interface PrivateEndpointConnectionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface FeaturestoreEntityContainersCreateOrUpdateOptionalParams + 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 PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection; +export type FeaturestoreEntityContainersCreateOrUpdateResponse = FeaturestoreEntityContainer; /** Optional parameters. */ -export interface PrivateEndpointConnectionsDeleteOptionalParams +export interface FeaturestoreEntityContainersListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type FeaturestoreEntityContainersListNextResponse = FeaturestoreEntityContainerResourceArmPaginatedResult; + /** Optional parameters. */ -export interface PrivateLinkResourcesListOptionalParams - extends coreClient.OperationOptions {} +export interface FeaturestoreEntityVersionsListOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Specifies the featurestore stage */ + stage?: string; + /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + listViewType?: ListViewType; + /** featurestore entity version */ + version?: string; + /** description for the feature entity version */ + description?: string; + /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ + tags?: string; + /** page size */ + pageSize?: number; + /** createdBy user name */ + createdBy?: string; + /** name for the featurestore entity version */ + versionName?: string; +} /** Contains response data for the list operation. */ -export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; +export type FeaturestoreEntityVersionsListResponse = FeaturestoreEntityVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface WorkspaceConnectionsCreateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the create operation. */ -export type WorkspaceConnectionsCreateResponse = WorkspaceConnectionPropertiesV2BasicResource; +export interface FeaturestoreEntityVersionsDeleteOptionalParams + 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 WorkspaceConnectionsGetOptionalParams +export interface FeaturestoreEntityVersionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkspaceConnectionsGetResponse = WorkspaceConnectionPropertiesV2BasicResource; - -/** Optional parameters. */ -export interface WorkspaceConnectionsDeleteOptionalParams - extends coreClient.OperationOptions {} +export type FeaturestoreEntityVersionsGetResponse = FeaturestoreEntityVersion; /** Optional parameters. */ -export interface WorkspaceConnectionsListOptionalParams +export interface FeaturestoreEntityVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Target of the workspace connection. */ - target?: string; - /** Category of the workspace connection. */ - category?: string; + /** 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 list operation. */ -export type WorkspaceConnectionsListResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; +/** Contains response data for the createOrUpdate operation. */ +export type FeaturestoreEntityVersionsCreateOrUpdateResponse = FeaturestoreEntityVersion; /** Optional parameters. */ -export interface WorkspaceConnectionsListNextOptionalParams - extends coreClient.OperationOptions { - /** Target of the workspace connection. */ - target?: string; - /** Category of the workspace connection. */ - category?: string; -} +export interface FeaturestoreEntityVersionsListNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type WorkspaceConnectionsListNextResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; +export type FeaturestoreEntityVersionsListNextResponse = FeaturestoreEntityVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface BatchEndpointsListOptionalParams +export interface InferencePoolsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Number of endpoints to be retrieved in a page of results. */ + /** A set of tags with which to filter the returned models. It is a comma separated string of tags key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . */ + tags?: string; + /** A set of properties with which to filter the returned models. It is a comma separated string of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . */ + properties?: string; + /** Number of inferencePools to be retrieved in a page of results. */ count?: number; + /** The option to order the response. */ + orderBy?: OrderString; } /** Contains response data for the list operation. */ -export type BatchEndpointsListResponse = BatchEndpointTrackedResourceArmPaginatedResult; +export type InferencePoolsListResponse = InferencePoolTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface BatchEndpointsDeleteOptionalParams +export interface InferencePoolsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7899,14 +13895,14 @@ export interface BatchEndpointsDeleteOptionalParams } /** Optional parameters. */ -export interface BatchEndpointsGetOptionalParams +export interface InferencePoolsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BatchEndpointsGetResponse = BatchEndpoint; +export type InferencePoolsGetResponse = InferencePool; /** Optional parameters. */ -export interface BatchEndpointsUpdateOptionalParams +export interface InferencePoolsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7915,10 +13911,10 @@ export interface BatchEndpointsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type BatchEndpointsUpdateResponse = BatchEndpoint; +export type InferencePoolsUpdateResponse = InferencePool; /** Optional parameters. */ -export interface BatchEndpointsCreateOrUpdateOptionalParams +export interface InferencePoolsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7927,43 +13923,61 @@ export interface BatchEndpointsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type BatchEndpointsCreateOrUpdateResponse = BatchEndpoint; +export type InferencePoolsCreateOrUpdateResponse = InferencePool; /** Optional parameters. */ -export interface BatchEndpointsListKeysOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listKeys operation. */ -export type BatchEndpointsListKeysResponse = EndpointAuthKeys; - -/** Optional parameters. */ -export interface BatchEndpointsListNextOptionalParams +export interface InferencePoolsListSkusOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Number of endpoints to be retrieved in a page of results. */ + /** Number of Skus to be retrieved in a page of results. */ count?: number; } +/** Contains response data for the listSkus operation. */ +export type InferencePoolsListSkusResponse = SkuResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface InferencePoolsGetStatusOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getStatus operation. */ +export type InferencePoolsGetStatusResponse = PoolStatus; + +/** Optional parameters. */ +export interface InferencePoolsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type BatchEndpointsListNextResponse = BatchEndpointTrackedResourceArmPaginatedResult; +export type InferencePoolsListNextResponse = InferencePoolTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface BatchDeploymentsListOptionalParams +export interface InferencePoolsListSkusNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSkusNext operation. */ +export type InferencePoolsListSkusNextResponse = SkuResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface InferenceGroupsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Top of list. */ - top?: number; + /** A set of tags with which to filter the returned models. It is a comma separated string of tags key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . */ + tags?: string; + /** A set of properties with which to filter the returned models. It is a comma separated string of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . */ + properties?: string; + /** Number of InferenceGroup to be retrieved in a page of results. */ + count?: number; + /** The option to order the response. */ + orderBy?: OrderString; } /** Contains response data for the list operation. */ -export type BatchDeploymentsListResponse = BatchDeploymentTrackedResourceArmPaginatedResult; +export type InferenceGroupsListResponse = InferenceGroupMinimalTrackedResourceWithSkuArmPaginatedResult; /** Optional parameters. */ -export interface BatchDeploymentsDeleteOptionalParams +export interface InferenceGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7972,14 +13986,14 @@ export interface BatchDeploymentsDeleteOptionalParams } /** Optional parameters. */ -export interface BatchDeploymentsGetOptionalParams +export interface InferenceGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type BatchDeploymentsGetResponse = BatchDeployment; +export type InferenceGroupsGetResponse = InferenceGroupMinimalTrackedResourceWithSku; /** Optional parameters. */ -export interface BatchDeploymentsUpdateOptionalParams +export interface InferenceGroupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -7988,10 +14002,10 @@ export interface BatchDeploymentsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type BatchDeploymentsUpdateResponse = BatchDeployment; +export type InferenceGroupsUpdateResponse = InferenceGroupMinimalTrackedResourceWithSku; /** Optional parameters. */ -export interface BatchDeploymentsCreateOrUpdateOptionalParams +export interface InferenceGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8000,481 +14014,589 @@ export interface BatchDeploymentsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type BatchDeploymentsCreateOrUpdateResponse = BatchDeployment; - -/** Optional parameters. */ -export interface BatchDeploymentsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Top of list. */ - top?: number; -} - -/** Contains response data for the listNext operation. */ -export type BatchDeploymentsListNextResponse = BatchDeploymentTrackedResourceArmPaginatedResult; +export type InferenceGroupsCreateOrUpdateResponse = InferenceGroupMinimalTrackedResourceWithSku; /** Optional parameters. */ -export interface CodeContainersListOptionalParams +export interface InferenceGroupsListSkusOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; + /** Number of Skus to be retrieved in a page of results. */ + count?: number; } -/** Contains response data for the list operation. */ -export type CodeContainersListResponse = CodeContainerResourceArmPaginatedResult; +/** Contains response data for the listSkus operation. */ +export type InferenceGroupsListSkusResponse = SkuResourceArmPaginatedResult; /** Optional parameters. */ -export interface CodeContainersDeleteOptionalParams +export interface InferenceGroupsGetStatusOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getStatus operation. */ +export type InferenceGroupsGetStatusResponse = GroupStatus; + /** Optional parameters. */ -export interface CodeContainersGetOptionalParams +export interface InferenceGroupsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type CodeContainersGetResponse = CodeContainer; +/** Contains response data for the listNext operation. */ +export type InferenceGroupsListNextResponse = InferenceGroupMinimalTrackedResourceWithSkuArmPaginatedResult; /** Optional parameters. */ -export interface CodeContainersCreateOrUpdateOptionalParams +export interface InferenceGroupsListSkusNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type CodeContainersCreateOrUpdateResponse = CodeContainer; +/** Contains response data for the listSkusNext operation. */ +export type InferenceGroupsListSkusNextResponse = SkuResourceArmPaginatedResult; /** Optional parameters. */ -export interface CodeContainersListNextOptionalParams +export interface InferenceEndpointsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; + /** A set of tags with which to filter the returned models. It is a comma separated string of tags key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . */ + tags?: string; + /** A set of properties with which to filter the returned models. It is a comma separated string of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . */ + properties?: string; + /** Number of InferenceEndpoint to be retrieved in a page of results. */ + count?: number; + /** The option to order the response. */ + orderBy?: OrderString; } -/** Contains response data for the listNext operation. */ -export type CodeContainersListNextResponse = CodeContainerResourceArmPaginatedResult; +/** Contains response data for the list operation. */ +export type InferenceEndpointsListResponse = InferenceEndpointMinimalTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface CodeVersionsListOptionalParams +export interface InferenceEndpointsDeleteOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; + /** 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 list operation. */ -export type CodeVersionsListResponse = CodeVersionResourceArmPaginatedResult; - -/** Optional parameters. */ -export interface CodeVersionsDeleteOptionalParams - extends coreClient.OperationOptions {} - /** Optional parameters. */ -export interface CodeVersionsGetOptionalParams +export interface InferenceEndpointsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CodeVersionsGetResponse = CodeVersion; +export type InferenceEndpointsGetResponse = InferenceEndpointMinimalTrackedResource; /** Optional parameters. */ -export interface CodeVersionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface InferenceEndpointsUpdateOptionalParams + 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 CodeVersionsCreateOrUpdateResponse = CodeVersion; +/** Contains response data for the update operation. */ +export type InferenceEndpointsUpdateResponse = InferenceEndpointMinimalTrackedResource; /** Optional parameters. */ -export interface CodeVersionsListNextOptionalParams +export interface InferenceEndpointsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; + /** 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 InferenceEndpointsCreateOrUpdateResponse = InferenceEndpointMinimalTrackedResource; + +/** Optional parameters. */ +export interface InferenceEndpointsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type CodeVersionsListNextResponse = CodeVersionResourceArmPaginatedResult; +export type InferenceEndpointsListNextResponse = InferenceEndpointMinimalTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComponentContainersListOptionalParams - extends coreClient.OperationOptions { +export interface JobsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; /** View type for including/excluding (for example) archived entities. */ listViewType?: ListViewType; + /** Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 */ + properties?: string; + /** Type of job to be returned. */ + jobType?: string; + /** Jobs returned will have this tag key. */ + tag?: string; + /** Asset name the job's named output is registered with */ + assetName?: string; + /** Indicator whether the job is scheduled job. */ + scheduled?: boolean; + /** The scheduled id for listing the job triggered from */ + scheduleId?: string; } /** Contains response data for the list operation. */ -export type ComponentContainersListResponse = ComponentContainerResourceArmPaginatedResult; +export type JobsListResponse = JobBaseResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComponentContainersDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface JobsDeleteOptionalParams 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 ComponentContainersGetOptionalParams - extends coreClient.OperationOptions {} +export interface JobsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ComponentContainersGetResponse = ComponentContainer; +export type JobsGetResponse = JobBase; /** Optional parameters. */ -export interface ComponentContainersCreateOrUpdateOptionalParams +export interface JobsUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type JobsUpdateResponse = JobBase; + +/** Optional parameters. */ +export interface JobsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ComponentContainersCreateOrUpdateResponse = ComponentContainer; +export type JobsCreateOrUpdateResponse = JobBase; /** Optional parameters. */ -export interface ComponentContainersListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; +export interface JobsCancelOptionalParams 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 JobsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type ComponentContainersListNextResponse = ComponentContainerResourceArmPaginatedResult; +export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComponentVersionsListOptionalParams +export interface LabelingJobsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ + /** Number of labeling jobs to return. */ top?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; } /** Contains response data for the list operation. */ -export type ComponentVersionsListResponse = ComponentVersionResourceArmPaginatedResult; +export type LabelingJobsListResponse = LabelingJobResourceArmPaginatedResult; /** Optional parameters. */ -export interface ComponentVersionsDeleteOptionalParams +export interface LabelingJobsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ComponentVersionsGetOptionalParams +export interface LabelingJobsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ComponentVersionsGetResponse = ComponentVersion; +/** Contains response data for the get operation. */ +export type LabelingJobsGetResponse = LabelingJob; + +/** Optional parameters. */ +export interface LabelingJobsCreateOrUpdateOptionalParams + 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 LabelingJobsCreateOrUpdateResponse = LabelingJob; + +/** Optional parameters. */ +export interface LabelingJobsExportLabelsOptionalParams + 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 exportLabels operation. */ +export type LabelingJobsExportLabelsResponse = ExportSummaryUnion; /** Optional parameters. */ -export interface ComponentVersionsCreateOrUpdateOptionalParams +export interface LabelingJobsPauseOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ComponentVersionsCreateOrUpdateResponse = ComponentVersion; +/** Contains response data for the pause operation. */ +export type LabelingJobsPauseResponse = LabelingJobProperties; /** Optional parameters. */ -export interface ComponentVersionsListNextOptionalParams +export interface LabelingJobsResumeOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; + /** 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 resume operation. */ +export type LabelingJobsResumeResponse = LabelingJobProperties; + +/** Optional parameters. */ +export interface LabelingJobsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type ComponentVersionsListNextResponse = ComponentVersionResourceArmPaginatedResult; +export type LabelingJobsListNextResponse = LabelingJobResourceArmPaginatedResult; /** Optional parameters. */ -export interface DataContainersListOptionalParams +export interface ModelContainersListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; /** View type for including/excluding (for example) archived entities. */ listViewType?: ListViewType; + /** Maximum number of results to return. */ + count?: number; } /** Contains response data for the list operation. */ -export type DataContainersListResponse = DataContainerResourceArmPaginatedResult; +export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface DataContainersDeleteOptionalParams +export interface ModelContainersDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DataContainersGetOptionalParams +export interface ModelContainersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DataContainersGetResponse = DataContainer; +export type ModelContainersGetResponse = ModelContainer; /** Optional parameters. */ -export interface DataContainersCreateOrUpdateOptionalParams +export interface ModelContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DataContainersCreateOrUpdateResponse = DataContainer; +export type ModelContainersCreateOrUpdateResponse = ModelContainer; /** Optional parameters. */ -export interface DataContainersListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; -} +export interface ModelContainersListNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type DataContainersListNextResponse = DataContainerResourceArmPaginatedResult; +export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; /** Optional parameters. */ -export interface DataVersionsListOptionalParams +export interface ModelVersionsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Please choose OrderBy value from ['createdtime', 'modifiedtime'] */ + /** Ordering of list. */ orderBy?: string; - /** - * Top count of results, top count cannot be greater than the page size. - * If topCount > page size, results with be default page size count will be returned - */ + /** Maximum number of records to return. */ top?: number; - /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ + /** Model stage */ + stage?: string; + /** View type for including/excluding (for example) archived entities. */ listViewType?: ListViewType; + /** Model version. */ + version?: string; + /** Model description. */ + description?: string; /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ tags?: string; + /** Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 */ + properties?: string; + /** Number of initial results to skip. */ + offset?: number; + /** Name of the feed. */ + feed?: string; } /** Contains response data for the list operation. */ -export type DataVersionsListResponse = DataVersionBaseResourceArmPaginatedResult; +export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface DataVersionsDeleteOptionalParams +export interface ModelVersionsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DataVersionsGetOptionalParams +export interface ModelVersionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DataVersionsGetResponse = DataVersionBase; +export type ModelVersionsGetResponse = ModelVersion; /** Optional parameters. */ -export interface DataVersionsCreateOrUpdateOptionalParams +export interface ModelVersionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type DataVersionsCreateOrUpdateResponse = DataVersionBase; +export type ModelVersionsCreateOrUpdateResponse = ModelVersion; /** Optional parameters. */ -export interface DataVersionsListNextOptionalParams +export interface ModelVersionsPackageOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Please choose OrderBy value from ['createdtime', 'modifiedtime'] */ - orderBy?: string; - /** - * Top count of results, top count cannot be greater than the page size. - * If topCount > page size, results with be default page size count will be returned - */ - top?: number; - /** [ListViewType.ActiveOnly, ListViewType.ArchivedOnly, ListViewType.All]View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; - /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ - tags?: string; + /** 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 package operation. */ +export type ModelVersionsPackageResponse = PackageResponse; + +/** Optional parameters. */ +export interface ModelVersionsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type DataVersionsListNextResponse = DataVersionBaseResourceArmPaginatedResult; +export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; /** Optional parameters. */ -export interface DatastoresListOptionalParams +export interface OnlineEndpointsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Maximum number of results to return. */ + /** A set of tags with which to filter the returned models. It is a comma separated string of tags key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . */ + tags?: string; + /** A set of properties with which to filter the returned models. It is a comma separated string of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . */ + properties?: string; + /** Number of endpoints to be retrieved in a page of results. */ count?: number; - /** Filter down to the workspace default datastore. */ - isDefault?: boolean; - /** Names of datastores to return. */ - names?: string[]; - /** Text to search for in the datastore names. */ - searchText?: string; - /** Order by property (createdtime | modifiedtime | name). */ - orderBy?: string; - /** Order by property in ascending order. */ - orderByAsc?: boolean; + /** Name of the endpoint. */ + name?: string; + /** The option to order the response. */ + orderBy?: OrderString; + /** EndpointComputeType to be filtered by. */ + computeType?: EndpointComputeType; } /** Contains response data for the list operation. */ -export type DatastoresListResponse = DatastoreResourceArmPaginatedResult; +export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface DatastoresDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface OnlineEndpointsDeleteOptionalParams + 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 DatastoresGetOptionalParams +export interface OnlineEndpointsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DatastoresGetResponse = Datastore; +export type OnlineEndpointsGetResponse = OnlineEndpoint; /** Optional parameters. */ -export interface DatastoresCreateOrUpdateOptionalParams +export interface OnlineEndpointsUpdateOptionalParams extends coreClient.OperationOptions { - /** Flag to skip validation. */ - skipValidation?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type OnlineEndpointsUpdateResponse = OnlineEndpoint; + +/** Optional parameters. */ +export interface OnlineEndpointsCreateOrUpdateOptionalParams + 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 DatastoresCreateOrUpdateResponse = Datastore; +export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpoint; /** Optional parameters. */ -export interface DatastoresListSecretsOptionalParams +export interface OnlineEndpointsListKeysOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSecrets operation. */ -export type DatastoresListSecretsResponse = DatastoreSecretsUnion; +/** Contains response data for the listKeys operation. */ +export type OnlineEndpointsListKeysResponse = EndpointAuthKeys; /** Optional parameters. */ -export interface DatastoresListNextOptionalParams +export interface OnlineEndpointsRegenerateKeysOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Maximum number of results to return. */ - count?: number; - /** Filter down to the workspace default datastore. */ - isDefault?: boolean; - /** Names of datastores to return. */ - names?: string[]; - /** Text to search for in the datastore names. */ - searchText?: string; - /** Order by property (createdtime | modifiedtime | name). */ - orderBy?: string; - /** Order by property in ascending order. */ - orderByAsc?: boolean; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } +/** Optional parameters. */ +export interface OnlineEndpointsGetTokenOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getToken operation. */ +export type OnlineEndpointsGetTokenResponse = EndpointAuthToken; + +/** Optional parameters. */ +export interface OnlineEndpointsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type DatastoresListNextResponse = DatastoreResourceArmPaginatedResult; +export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface EnvironmentContainersListOptionalParams +export interface OnlineDeploymentsListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; + /** Ordering of list. */ + orderBy?: string; + /** Top of list. */ + top?: number; } /** Contains response data for the list operation. */ -export type EnvironmentContainersListResponse = EnvironmentContainerResourceArmPaginatedResult; +export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface EnvironmentContainersDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface OnlineDeploymentsDeleteOptionalParams + 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 EnvironmentContainersGetOptionalParams +export interface OnlineDeploymentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type EnvironmentContainersGetResponse = EnvironmentContainer; +/** Contains response data for the get operation. */ +export type OnlineDeploymentsGetResponse = OnlineDeployment; + +/** Optional parameters. */ +export interface OnlineDeploymentsUpdateOptionalParams + 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 OnlineDeploymentsUpdateResponse = OnlineDeployment; + +/** Optional parameters. */ +export interface OnlineDeploymentsCreateOrUpdateOptionalParams + 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 OnlineDeploymentsCreateOrUpdateResponse = OnlineDeployment; /** Optional parameters. */ -export interface EnvironmentContainersCreateOrUpdateOptionalParams +export interface OnlineDeploymentsGetLogsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type EnvironmentContainersCreateOrUpdateResponse = EnvironmentContainer; +/** Contains response data for the getLogs operation. */ +export type OnlineDeploymentsGetLogsResponse = DeploymentLogs; /** Optional parameters. */ -export interface EnvironmentContainersListNextOptionalParams +export interface OnlineDeploymentsListSkusOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; + /** Number of Skus to be retrieved in a page of results. */ + count?: number; } +/** Contains response data for the listSkus operation. */ +export type OnlineDeploymentsListSkusResponse = SkuResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface OnlineDeploymentsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type EnvironmentContainersListNextResponse = EnvironmentContainerResourceArmPaginatedResult; +export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface EnvironmentVersionsListOptionalParams +export interface OnlineDeploymentsListSkusNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSkusNext operation. */ +export type OnlineDeploymentsListSkusNextResponse = SkuResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface SchedulesListOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; + /** Status filter for schedule. */ + listViewType?: ScheduleListViewType; } /** Contains response data for the list operation. */ -export type EnvironmentVersionsListResponse = EnvironmentVersionResourceArmPaginatedResult; +export type SchedulesListResponse = ScheduleResourceArmPaginatedResult; /** Optional parameters. */ -export interface EnvironmentVersionsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface SchedulesDeleteOptionalParams + 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 EnvironmentVersionsGetOptionalParams +export interface SchedulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type EnvironmentVersionsGetResponse = EnvironmentVersion; +export type SchedulesGetResponse = Schedule; /** Optional parameters. */ -export interface EnvironmentVersionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface SchedulesCreateOrUpdateOptionalParams + 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 EnvironmentVersionsCreateOrUpdateResponse = EnvironmentVersion; +export type SchedulesCreateOrUpdateResponse = Schedule; /** Optional parameters. */ -export interface EnvironmentVersionsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; -} +export interface SchedulesListNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type EnvironmentVersionsListNextResponse = EnvironmentVersionResourceArmPaginatedResult; +export type SchedulesListNextResponse = ScheduleResourceArmPaginatedResult; /** Optional parameters. */ -export interface JobsListOptionalParams extends coreClient.OperationOptions { +export interface ServerlessEndpointsListOptionalParams + extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; - /** Type of job to be returned. */ - jobType?: string; - /** Jobs returned will have this tag key. */ - tag?: string; } /** Contains response data for the list operation. */ -export type JobsListResponse = JobBaseResourceArmPaginatedResult; +export type ServerlessEndpointsListResponse = ServerlessEndpointTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { +export interface ServerlessEndpointsDeleteOptionalParams + 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. */ @@ -8482,187 +14604,187 @@ export interface JobsDeleteOptionalParams extends coreClient.OperationOptions { } /** Optional parameters. */ -export interface JobsGetOptionalParams extends coreClient.OperationOptions {} +export interface ServerlessEndpointsGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type JobsGetResponse = JobBase; +export type ServerlessEndpointsGetResponse = ServerlessEndpoint; /** Optional parameters. */ -export interface JobsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ServerlessEndpointsUpdateOptionalParams + 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 JobsCreateOrUpdateResponse = JobBase; +/** Contains response data for the update operation. */ +export type ServerlessEndpointsUpdateResponse = ServerlessEndpoint; /** Optional parameters. */ -export interface JobsCancelOptionalParams extends coreClient.OperationOptions { +export interface ServerlessEndpointsCreateOrUpdateOptionalParams + 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 ServerlessEndpointsCreateOrUpdateResponse = ServerlessEndpoint; + /** Optional parameters. */ -export interface JobsListNextOptionalParams +export interface ServerlessEndpointsListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type ServerlessEndpointsListKeysResponse = EndpointAuthKeys; + +/** Optional parameters. */ +export interface ServerlessEndpointsRegenerateKeysOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; - /** Type of job to be returned. */ - jobType?: string; - /** Jobs returned will have this tag key. */ - tag?: string; + /** 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 regenerateKeys operation. */ +export type ServerlessEndpointsRegenerateKeysResponse = EndpointAuthKeys; + +/** Optional parameters. */ +export interface ServerlessEndpointsListNextOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the listNext operation. */ -export type JobsListNextResponse = JobBaseResourceArmPaginatedResult; +export type ServerlessEndpointsListNextResponse = ServerlessEndpointTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface ModelContainersListOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Maximum number of results to return. */ - count?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; -} +export interface RegistriesListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ModelContainersListResponse = ModelContainerResourceArmPaginatedResult; +/** Contains response data for the listBySubscription operation. */ +export type RegistriesListBySubscriptionResponse = RegistryTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface ModelContainersDeleteOptionalParams +export interface RegistriesListOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type RegistriesListResponse = RegistryTrackedResourceArmPaginatedResult; + /** Optional parameters. */ -export interface ModelContainersGetOptionalParams +export interface RegistriesDeleteOptionalParams + 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 RegistriesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ModelContainersGetResponse = ModelContainer; +export type RegistriesGetResponse = Registry; /** Optional parameters. */ -export interface ModelContainersCreateOrUpdateOptionalParams +export interface RegistriesUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ModelContainersCreateOrUpdateResponse = ModelContainer; +/** Contains response data for the update operation. */ +export type RegistriesUpdateResponse = Registry; /** Optional parameters. */ -export interface ModelContainersListNextOptionalParams +export interface RegistriesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Maximum number of results to return. */ - count?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; + /** 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 listNext operation. */ -export type ModelContainersListNextResponse = ModelContainerResourceArmPaginatedResult; +/** Contains response data for the createOrUpdate operation. */ +export type RegistriesCreateOrUpdateResponse = Registry; /** Optional parameters. */ -export interface ModelVersionsListOptionalParams +export interface RegistriesRemoveRegionsOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; - /** Model version. */ - version?: string; - /** Model description. */ - description?: string; - /** Number of initial results to skip. */ - offset?: number; - /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ - tags?: string; - /** Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 */ - properties?: string; - /** Name of the feed. */ - feed?: string; + /** 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 list operation. */ -export type ModelVersionsListResponse = ModelVersionResourceArmPaginatedResult; +/** Contains response data for the removeRegions operation. */ +export type RegistriesRemoveRegionsResponse = Registry; /** Optional parameters. */ -export interface ModelVersionsDeleteOptionalParams +export interface RegistriesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listBySubscriptionNext operation. */ +export type RegistriesListBySubscriptionNextResponse = RegistryTrackedResourceArmPaginatedResult; + /** Optional parameters. */ -export interface ModelVersionsGetOptionalParams +export interface RegistriesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ModelVersionsGetResponse = ModelVersion; +/** Contains response data for the listNext operation. */ +export type RegistriesListNextResponse = RegistryTrackedResourceArmPaginatedResult; /** Optional parameters. */ -export interface ModelVersionsCreateOrUpdateOptionalParams +export interface WorkspaceFeaturesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ModelVersionsCreateOrUpdateResponse = ModelVersion; +/** Contains response data for the list operation. */ +export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult; /** Optional parameters. */ -export interface ModelVersionsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Maximum number of records to return. */ - top?: number; - /** View type for including/excluding (for example) archived entities. */ - listViewType?: ListViewType; - /** Model version. */ - version?: string; - /** Model description. */ - description?: string; - /** Number of initial results to skip. */ - offset?: number; - /** Comma-separated list of tag names (and optionally values). Example: tag1,tag2=value2 */ - tags?: string; - /** Comma-separated list of property names (and optionally values). Example: prop1,prop2=value2 */ - properties?: string; - /** Name of the feed. */ - feed?: string; +export interface WorkspaceFeaturesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult; + +/** Optional parameters. */ +export interface OperationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type OperationsListResponse = AmlOperationListResult; + +/** Optional parameters. */ +export interface WorkspacesListBySubscriptionOptionalParams + extends coreClient.OperationOptions { + /** Continuation token for pagination. */ + skip?: string; + /** Kind of workspace. */ + kind?: string; } -/** Contains response data for the listNext operation. */ -export type ModelVersionsListNextResponse = ModelVersionResourceArmPaginatedResult; +/** Contains response data for the listBySubscription operation. */ +export type WorkspacesListBySubscriptionResponse = WorkspaceListResult; /** Optional parameters. */ -export interface OnlineEndpointsListOptionalParams +export interface WorkspacesListByResourceGroupOptionalParams extends coreClient.OperationOptions { /** Continuation token for pagination. */ skip?: string; - /** Number of endpoints to be retrieved in a page of results. */ - count?: number; - /** A set of tags with which to filter the returned models. It is a comma separated string of tags key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . */ - tags?: string; - /** A set of properties with which to filter the returned models. It is a comma separated string of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . */ - properties?: string; - /** Name of the endpoint. */ - name?: string; - /** EndpointComputeType to be filtered by. */ - computeType?: EndpointComputeType; - /** The option to order the response. */ - orderBy?: OrderString; + /** Kind of workspace. */ + kind?: string; } -/** Contains response data for the list operation. */ -export type OnlineEndpointsListResponse = OnlineEndpointTrackedResourceArmPaginatedResult; +/** Contains response data for the listByResourceGroup operation. */ +export type WorkspacesListByResourceGroupResponse = WorkspaceListResult; /** Optional parameters. */ -export interface OnlineEndpointsDeleteOptionalParams +export interface WorkspacesDeleteOptionalParams extends coreClient.OperationOptions { + /** Flag to indicate delete is a purge request. */ + forceToPurge?: boolean; /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -8670,14 +14792,14 @@ export interface OnlineEndpointsDeleteOptionalParams } /** Optional parameters. */ -export interface OnlineEndpointsGetOptionalParams +export interface WorkspacesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type OnlineEndpointsGetResponse = OnlineEndpoint; +export type WorkspacesGetResponse = Workspace; /** Optional parameters. */ -export interface OnlineEndpointsUpdateOptionalParams +export interface WorkspacesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8686,10 +14808,10 @@ export interface OnlineEndpointsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type OnlineEndpointsUpdateResponse = OnlineEndpoint; +export type WorkspacesUpdateResponse = Workspace; /** Optional parameters. */ -export interface OnlineEndpointsCreateOrUpdateOptionalParams +export interface WorkspacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8698,85 +14820,59 @@ export interface OnlineEndpointsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type OnlineEndpointsCreateOrUpdateResponse = OnlineEndpoint; - -/** Optional parameters. */ -export interface OnlineEndpointsListKeysOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listKeys operation. */ -export type OnlineEndpointsListKeysResponse = EndpointAuthKeys; +export type WorkspacesCreateOrUpdateResponse = Workspace; /** Optional parameters. */ -export interface OnlineEndpointsRegenerateKeysOptionalParams +export interface WorkspacesDiagnoseOptionalParams extends coreClient.OperationOptions { + /** The parameter of diagnosing workspace health */ + body?: 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; } +/** Contains response data for the diagnose operation. */ +export type WorkspacesDiagnoseResponse = DiagnoseResponseResult; + /** Optional parameters. */ -export interface OnlineEndpointsGetTokenOptionalParams +export interface WorkspacesListKeysOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getToken operation. */ -export type OnlineEndpointsGetTokenResponse = EndpointAuthToken; +/** Contains response data for the listKeys operation. */ +export type WorkspacesListKeysResponse = ListWorkspaceKeysResult; /** Optional parameters. */ -export interface OnlineEndpointsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Number of endpoints to be retrieved in a page of results. */ - count?: number; - /** A set of tags with which to filter the returned models. It is a comma separated string of tags key or tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 . */ - tags?: string; - /** A set of properties with which to filter the returned models. It is a comma separated string of properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 . */ - properties?: string; - /** Name of the endpoint. */ - name?: string; - /** EndpointComputeType to be filtered by. */ - computeType?: EndpointComputeType; - /** The option to order the response. */ - orderBy?: OrderString; -} +export interface WorkspacesListNotebookAccessTokenOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OnlineEndpointsListNextResponse = OnlineEndpointTrackedResourceArmPaginatedResult; +/** Contains response data for the listNotebookAccessToken operation. */ +export type WorkspacesListNotebookAccessTokenResponse = NotebookAccessTokenResult; /** Optional parameters. */ -export interface OnlineDeploymentsListOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Top of list. */ - top?: number; -} +export interface WorkspacesListNotebookKeysOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type OnlineDeploymentsListResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; +/** Contains response data for the listNotebookKeys operation. */ +export type WorkspacesListNotebookKeysResponse = ListNotebookKeysResult; /** Optional parameters. */ -export interface OnlineDeploymentsDeleteOptionalParams - 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; -} +export interface WorkspacesListStorageAccountKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listStorageAccountKeys operation. */ +export type WorkspacesListStorageAccountKeysResponse = ListStorageAccountKeysResult; /** Optional parameters. */ -export interface OnlineDeploymentsGetOptionalParams +export interface WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type OnlineDeploymentsGetResponse = OnlineDeployment; +/** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ +export type WorkspacesListOutboundNetworkDependenciesEndpointsResponse = ExternalFqdnResponse; /** Optional parameters. */ -export interface OnlineDeploymentsUpdateOptionalParams +export interface WorkspacesPrepareNotebookOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8784,11 +14880,11 @@ export interface OnlineDeploymentsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type OnlineDeploymentsUpdateResponse = OnlineDeployment; +/** Contains response data for the prepareNotebook operation. */ +export type WorkspacesPrepareNotebookResponse = NotebookResourceInfo; /** Optional parameters. */ -export interface OnlineDeploymentsCreateOrUpdateOptionalParams +export interface WorkspacesResyncKeysOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8796,68 +14892,86 @@ export interface OnlineDeploymentsCreateOrUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the createOrUpdate operation. */ -export type OnlineDeploymentsCreateOrUpdateResponse = OnlineDeployment; +/** Optional parameters. */ +export interface WorkspacesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type WorkspacesListBySubscriptionNextResponse = WorkspaceListResult; /** Optional parameters. */ -export interface OnlineDeploymentsGetLogsOptionalParams +export interface WorkspacesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getLogs operation. */ -export type OnlineDeploymentsGetLogsResponse = DeploymentLogs; +/** Contains response data for the listByResourceGroupNext operation. */ +export type WorkspacesListByResourceGroupNextResponse = WorkspaceListResult; /** Optional parameters. */ -export interface OnlineDeploymentsListSkusOptionalParams +export interface WorkspaceConnectionsListOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Number of Skus to be retrieved in a page of results. */ - count?: number; + /** Target of the workspace connection. */ + target?: string; + /** Category of the workspace connection. */ + category?: string; } -/** Contains response data for the listSkus operation. */ -export type OnlineDeploymentsListSkusResponse = SkuResourceArmPaginatedResult; +/** Contains response data for the list operation. */ +export type WorkspaceConnectionsListResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; /** Optional parameters. */ -export interface OnlineDeploymentsListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Ordering of list. */ - orderBy?: string; - /** Top of list. */ - top?: number; -} +export interface WorkspaceConnectionsDeleteOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OnlineDeploymentsListNextResponse = OnlineDeploymentTrackedResourceArmPaginatedResult; +/** Optional parameters. */ +export interface WorkspaceConnectionsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type WorkspaceConnectionsGetResponse = WorkspaceConnectionPropertiesV2BasicResource; /** Optional parameters. */ -export interface OnlineDeploymentsListSkusNextOptionalParams +export interface WorkspaceConnectionsUpdateOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Number of Skus to be retrieved in a page of results. */ - count?: number; + /** Parameters for workspace connection update. */ + body?: WorkspaceConnectionUpdateParameter; } -/** Contains response data for the listSkusNext operation. */ -export type OnlineDeploymentsListSkusNextResponse = SkuResourceArmPaginatedResult; +/** Contains response data for the update operation. */ +export type WorkspaceConnectionsUpdateResponse = WorkspaceConnectionPropertiesV2BasicResource; /** Optional parameters. */ -export interface SchedulesListOptionalParams +export interface WorkspaceConnectionsCreateOptionalParams extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Status filter for schedule. */ - listViewType?: ScheduleListViewType; + /** The object for creating or updating a new workspace connection */ + body?: WorkspaceConnectionPropertiesV2BasicResource; } +/** Contains response data for the create operation. */ +export type WorkspaceConnectionsCreateResponse = WorkspaceConnectionPropertiesV2BasicResource; + +/** Optional parameters. */ +export interface WorkspaceConnectionsListSecretsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSecrets operation. */ +export type WorkspaceConnectionsListSecretsResponse = WorkspaceConnectionPropertiesV2BasicResource; + +/** Optional parameters. */ +export interface WorkspaceConnectionsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type WorkspaceConnectionsListNextResponse = WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult; + +/** Optional parameters. */ +export interface ManagedNetworkSettingsRuleListOptionalParams + extends coreClient.OperationOptions {} + /** Contains response data for the list operation. */ -export type SchedulesListResponse = ScheduleResourceArmPaginatedResult; +export type ManagedNetworkSettingsRuleListResponse = OutboundRuleListResult; /** Optional parameters. */ -export interface SchedulesDeleteOptionalParams +export interface ManagedNetworkSettingsRuleDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8866,14 +14980,14 @@ export interface SchedulesDeleteOptionalParams } /** Optional parameters. */ -export interface SchedulesGetOptionalParams +export interface ManagedNetworkSettingsRuleGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SchedulesGetResponse = Schedule; +export type ManagedNetworkSettingsRuleGetResponse = OutboundRuleBasicResource; /** Optional parameters. */ -export interface SchedulesCreateOrUpdateOptionalParams +export interface ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -8882,36 +14996,63 @@ export interface SchedulesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SchedulesCreateOrUpdateResponse = Schedule; +export type ManagedNetworkSettingsRuleCreateOrUpdateResponse = OutboundRuleBasicResource; /** Optional parameters. */ -export interface SchedulesListNextOptionalParams - extends coreClient.OperationOptions { - /** Continuation token for pagination. */ - skip?: string; - /** Status filter for schedule. */ - listViewType?: ScheduleListViewType; -} +export interface ManagedNetworkSettingsRuleListNextOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SchedulesListNextResponse = ScheduleResourceArmPaginatedResult; +export type ManagedNetworkSettingsRuleListNextResponse = OutboundRuleListResult; /** Optional parameters. */ -export interface WorkspaceFeaturesListOptionalParams +export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type WorkspaceFeaturesListResponse = ListAmlUserFeatureResult; +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult; /** Optional parameters. */ -export interface WorkspaceFeaturesListNextOptionalParams +export interface PrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type WorkspaceFeaturesListNextResponse = ListAmlUserFeatureResult; +/** 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 PrivateLinkResourcesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; + +/** Optional parameters. */ +export interface ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + extends coreClient.OperationOptions { + /** Managed Network Provisioning Options for a machine learning workspace. */ + body?: ManagedNetworkProvisionOptions; + /** 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 provisionManagedNetwork operation. */ +export type ManagedNetworkProvisionsProvisionManagedNetworkResponse = ManagedNetworkProvisionStatus; /** Optional parameters. */ -export interface AzureMachineLearningWorkspacesOptionalParams +export interface AzureMachineLearningServicesOptionalParams extends coreClient.ServiceClientOptions { /** server parameter */ $host?: string; diff --git a/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts b/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts index ef591872516f..1a4a53225cb7 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts @@ -8,80 +8,108 @@ import * as coreClient from "@azure/core-client"; -export const AmlOperationListResult: coreClient.CompositeMapper = { +export const ListUsagesResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlOperationListResult", + className: "ListUsagesResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlOperation" + className: "Usage" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } }; -export const AmlOperation: coreClient.CompositeMapper = { +export const Usage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlOperation", + className: "Usage", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - display: { - serializedName: "display", + amlWorkspaceLocation: { + serializedName: "amlWorkspaceLocation", + readOnly: true, type: { - name: "Composite", - className: "AmlOperationDisplay" + name: "String" } }, - isDataAction: { - serializedName: "isDataAction", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Boolean" + name: "String" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + }, + currentValue: { + serializedName: "currentValue", + readOnly: true, + type: { + name: "Number" + } + }, + limit: { + serializedName: "limit", + readOnly: true, + type: { + name: "Number" + } + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "UsageName" } } } } }; -export const AmlOperationDisplay: coreClient.CompositeMapper = { +export const UsageName: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlOperationDisplay", + className: "UsageName", modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", + value: { + serializedName: "value", + readOnly: true, type: { name: "String" } }, - description: { - serializedName: "description", + localizedValue: { + serializedName: "localizedValue", + readOnly: true, type: { name: "String" } @@ -186,95 +214,175 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { } }; -export const EncryptionProperty: coreClient.CompositeMapper = { +export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionProperty", + className: "VirtualMachineSizeListResult", modelProperties: { - status: { - serializedName: "status", - required: true, - type: { - name: "String" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "IdentityForCmk" - } - }, - keyVaultProperties: { - serializedName: "keyVaultProperties", + value: { + serializedName: "value", type: { - name: "Composite", - className: "EncryptionKeyVaultProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineSize" + } + } } } } } }; -export const IdentityForCmk: coreClient.CompositeMapper = { +export const VirtualMachineSize: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IdentityForCmk", + className: "VirtualMachineSize", modelProperties: { - userAssignedIdentity: { - serializedName: "userAssignedIdentity", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } + }, + family: { + serializedName: "family", + readOnly: true, + type: { + name: "String" + } + }, + vCPUs: { + serializedName: "vCPUs", + readOnly: true, + type: { + name: "Number" + } + }, + gpus: { + serializedName: "gpus", + readOnly: true, + type: { + name: "Number" + } + }, + osVhdSizeMB: { + serializedName: "osVhdSizeMB", + readOnly: true, + type: { + name: "Number" + } + }, + maxResourceVolumeMB: { + serializedName: "maxResourceVolumeMB", + readOnly: true, + type: { + name: "Number" + } + }, + memoryGB: { + serializedName: "memoryGB", + readOnly: true, + type: { + 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 EncryptionKeyVaultProperties: coreClient.CompositeMapper = { +export const EstimatedVMPrices: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EncryptionKeyVaultProperties", + className: "EstimatedVMPrices", modelProperties: { - keyVaultArmId: { - serializedName: "keyVaultArmId", + billingCurrency: { + serializedName: "billingCurrency", required: true, type: { name: "String" } }, - keyIdentifier: { - serializedName: "keyIdentifier", + unitOfMeasure: { + serializedName: "unitOfMeasure", required: true, type: { name: "String" } }, - identityClientId: { - serializedName: "identityClientId", + values: { + serializedName: "values", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EstimatedVMPrice" + } + } } } } } }; -export const PrivateEndpoint: coreClient.CompositeMapper = { +export const EstimatedVMPrice: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpoint", + className: "EstimatedVMPrice", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + retailPrice: { + serializedName: "retailPrice", + required: true, + type: { + name: "Number" + } + }, + osType: { + serializedName: "osType", + required: true, type: { name: "String" } }, - subnetArmId: { - serializedName: "subnetArmId", - readOnly: true, + vmTier: { + serializedName: "vmTier", + required: true, type: { name: "String" } @@ -283,25 +391,259 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { } }; -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { +export const QuotaUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkServiceConnectionState", + className: "QuotaUpdateParameters", modelProperties: { - status: { - serializedName: "status", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaBaseProperties" + } + } + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const QuotaBaseProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QuotaBaseProperties", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } }, - description: { - serializedName: "description", + type: { + serializedName: "type", type: { name: "String" } }, - actionsRequired: { - serializedName: "actionsRequired", + limit: { + serializedName: "limit", + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateWorkspaceQuotasResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateWorkspaceQuotasResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpdateWorkspaceQuotas" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const UpdateWorkspaceQuotas: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateWorkspaceQuotas", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + limit: { + serializedName: "limit", + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const ListWorkspaceQuotas: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListWorkspaceQuotas", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceQuota" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceQuota: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceQuota", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + amlWorkspaceLocation: { + serializedName: "amlWorkspaceLocation", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "Composite", + className: "ResourceName" + } + }, + limit: { + serializedName: "limit", + readOnly: true, + type: { + name: "Number" + } + }, + unit: { + serializedName: "unit", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceName: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceName", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "String" + } + }, + localizedValue: { + serializedName: "localizedValue", + readOnly: true, + 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: "ComputeResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -495,196 +837,250 @@ export const SystemData: coreClient.CompositeMapper = { } }; -export const SharedPrivateLinkResource: coreClient.CompositeMapper = { +export const ComputeResourceSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SharedPrivateLinkResource", + className: "ComputeResourceSchema", modelProperties: { - name: { - serializedName: "name", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "Compute" } - }, - privateLinkResourceId: { - serializedName: "properties.privateLinkResourceId", + } + } + } +}; + +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" } }, - groupId: { - serializedName: "properties.groupId", + computeLocation: { + serializedName: "computeLocation", type: { name: "String" } }, - requestMessage: { - serializedName: "properties.requestMessage", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - status: { - serializedName: "properties.status", + description: { + serializedName: "description", + nullable: true, type: { name: "String" } - } - } - } -}; - -export const NotebookResourceInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NotebookResourceInfo", - modelProperties: { - fqdn: { - serializedName: "fqdn", + }, + createdOn: { + serializedName: "createdOn", + readOnly: true, type: { - name: "String" + name: "DateTime" + } + }, + modifiedOn: { + serializedName: "modifiedOn", + readOnly: true, + type: { + name: "DateTime" } }, resourceId: { serializedName: "resourceId", + nullable: true, type: { name: "String" } }, - notebookPreparationError: { - serializedName: "notebookPreparationError", + provisioningErrors: { + serializedName: "provisioningErrors", + readOnly: true, + nullable: true, type: { - name: "Composite", - className: "NotebookPreparationError" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } } - } - } - } -}; - -export const NotebookPreparationError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NotebookPreparationError", - modelProperties: { - errorMessage: { - serializedName: "errorMessage", + }, + isAttachedCompute: { + serializedName: "isAttachedCompute", + readOnly: true, type: { - name: "String" + name: "Boolean" } }, - statusCode: { - serializedName: "statusCode", + disableLocalAuth: { + serializedName: "disableLocalAuth", type: { - name: "Number" + name: "Boolean" } } } } }; -export const ServiceManagedResourcesSettings: coreClient.CompositeMapper = { +export const ClusterUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceManagedResourcesSettings", + className: "ClusterUpdateParameters", modelProperties: { - cosmosDb: { - serializedName: "cosmosDb", + properties: { + serializedName: "properties.properties", type: { name: "Composite", - className: "CosmosDbSettings" + className: "ScaleSettingsInformation" } } } } }; -export const CosmosDbSettings: coreClient.CompositeMapper = { +export const ScaleSettingsInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CosmosDbSettings", + className: "ScaleSettingsInformation", modelProperties: { - collectionsThroughput: { - serializedName: "collectionsThroughput", + scaleSettings: { + serializedName: "scaleSettings", type: { - name: "Number" + name: "Composite", + className: "ScaleSettings" } } } } }; -export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { +export const ScaleSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceUpdateParameters", + className: "ScaleSettings", modelProperties: { - tags: { - serializedName: "tags", + maxNodeCount: { + serializedName: "maxNodeCount", + required: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Number" } }, - sku: { - serializedName: "sku", + minNodeCount: { + defaultValue: 0, + serializedName: "minNodeCount", type: { - name: "Composite", - className: "Sku" + name: "Number" } }, - identity: { - serializedName: "identity", + nodeIdleTimeBeforeScaleDown: { + serializedName: "nodeIdleTimeBeforeScaleDown", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "TimeSpan" } - }, - description: { - serializedName: "properties.description", + } + } + } +}; + +export const CustomService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomService", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + name: { + serializedName: "name", type: { name: "String" } }, - friendlyName: { - serializedName: "properties.friendlyName", + image: { + serializedName: "image", type: { - name: "String" + name: "Composite", + className: "Image" } }, - imageBuildCompute: { - serializedName: "properties.imageBuildCompute", + environmentVariables: { + serializedName: "environmentVariables", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Composite", className: "EnvironmentVariable" } + } } }, - serviceManagedResourcesSettings: { - serializedName: "properties.serviceManagedResourcesSettings", + docker: { + serializedName: "docker", type: { name: "Composite", - className: "ServiceManagedResourcesSettings" + className: "Docker" } }, - primaryUserAssignedIdentity: { - serializedName: "properties.primaryUserAssignedIdentity", + endpoints: { + serializedName: "endpoints", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Endpoint" + } + } } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + volumes: { + serializedName: "volumes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VolumeDefinition" + } + } } - }, - applicationInsights: { - serializedName: "properties.applicationInsights", + } + } + } +}; + +export const Image: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Image", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + type: { + defaultValue: "docker", + serializedName: "type", type: { name: "String" } }, - containerRegistry: { - serializedName: "properties.containerRegistry", + reference: { + serializedName: "reference", type: { name: "String" } @@ -693,25 +1089,21 @@ export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { } }; -export const WorkspaceListResult: coreClient.CompositeMapper = { +export const EnvironmentVariable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceListResult", + className: "EnvironmentVariable", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - value: { - serializedName: "value", + type: { + defaultValue: "local", + serializedName: "type", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Workspace" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + value: { + serializedName: "value", type: { name: "String" } @@ -720,266 +1112,209 @@ export const WorkspaceListResult: coreClient.CompositeMapper = { } }; -export const DiagnoseWorkspaceParameters: coreClient.CompositeMapper = { +export const Docker: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseWorkspaceParameters", + className: "Docker", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - value: { - serializedName: "value", + privileged: { + serializedName: "privileged", + nullable: true, type: { - name: "Composite", - className: "DiagnoseRequestProperties" + name: "Boolean" } } } } }; -export const DiagnoseRequestProperties: coreClient.CompositeMapper = { +export const Endpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseRequestProperties", + className: "Endpoint", modelProperties: { - udr: { - serializedName: "udr", + protocol: { + defaultValue: "tcp", + serializedName: "protocol", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } }, - nsg: { - serializedName: "nsg", + name: { + serializedName: "name", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } }, - resourceLock: { - serializedName: "resourceLock", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - }, - dnsResolution: { - serializedName: "dnsResolution", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - }, - storageAccount: { - serializedName: "storageAccount", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - }, - keyVault: { - serializedName: "keyVault", - type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } - } - }, - containerRegistry: { - serializedName: "containerRegistry", + target: { + serializedName: "target", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "Number" } }, - applicationInsights: { - serializedName: "applicationInsights", + published: { + serializedName: "published", + nullable: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "Number" } }, - others: { - serializedName: "others", + hostIp: { + serializedName: "hostIp", + nullable: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } } } } }; -export const DiagnoseResponseResult: coreClient.CompositeMapper = { +export const VolumeDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseResponseResult", + className: "VolumeDefinition", modelProperties: { - value: { - serializedName: "value", + type: { + defaultValue: "bind", + serializedName: "type", type: { - name: "Composite", - className: "DiagnoseResponseResultValue" + name: "String" } - } - } - } -}; - -export const DiagnoseResponseResultValue: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiagnoseResponseResultValue", - modelProperties: { - userDefinedRouteResults: { - serializedName: "userDefinedRouteResults", + }, + readOnly: { + serializedName: "readOnly", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Boolean" } }, - networkSecurityRuleResults: { - serializedName: "networkSecurityRuleResults", + source: { + serializedName: "source", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "String" } }, - resourceLockResults: { - serializedName: "resourceLockResults", + target: { + serializedName: "target", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "String" } }, - dnsResolutionResults: { - serializedName: "dnsResolutionResults", + consistency: { + serializedName: "consistency", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "String" } }, - storageAccountResults: { - serializedName: "storageAccountResults", + bind: { + serializedName: "bind", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Composite", + className: "BindOptions" } }, - keyVaultResults: { - serializedName: "keyVaultResults", + volume: { + serializedName: "volume", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Composite", + className: "VolumeOptions" } }, - containerRegistryResults: { - serializedName: "containerRegistryResults", + tmpfs: { + serializedName: "tmpfs", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Composite", + className: "TmpfsOptions" + } + } + } + } +}; + +export const BindOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BindOptions", + modelProperties: { + propagation: { + serializedName: "propagation", + nullable: true, + type: { + name: "String" } }, - applicationInsightsResults: { - serializedName: "applicationInsightsResults", + createHostPath: { + serializedName: "createHostPath", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "Boolean" } }, - otherResults: { - serializedName: "otherResults", + selinux: { + serializedName: "selinux", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnoseResult" - } - } + name: "String" } } } } }; -export const DiagnoseResult: coreClient.CompositeMapper = { +export const VolumeOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiagnoseResult", + className: "VolumeOptions", modelProperties: { - code: { - serializedName: "code", - readOnly: true, + nocopy: { + serializedName: "nocopy", + nullable: true, type: { - name: "String" + name: "Boolean" } - }, - level: { - serializedName: "level", + } + } + } +}; + +export const TmpfsOptions: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TmpfsOptions", + modelProperties: { + size: { + serializedName: "size", + type: { + name: "Number" + } + } + } + } +}; + +export const AmlComputeNodesInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlComputeNodesInformation", + modelProperties: { + nodes: { + serializedName: "nodes", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AmlComputeNodeInformation" + } + } } }, - message: { - serializedName: "message", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String" @@ -989,152 +1324,211 @@ export const DiagnoseResult: coreClient.CompositeMapper = { } }; -export const ListWorkspaceKeysResult: coreClient.CompositeMapper = { +export const AmlComputeNodeInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListWorkspaceKeysResult", + className: "AmlComputeNodeInformation", modelProperties: { - userStorageKey: { - serializedName: "userStorageKey", + nodeId: { + serializedName: "nodeId", readOnly: true, type: { name: "String" } }, - userStorageResourceId: { - serializedName: "userStorageResourceId", + privateIpAddress: { + serializedName: "privateIpAddress", readOnly: true, + nullable: true, type: { name: "String" } }, - appInsightsInstrumentationKey: { - serializedName: "appInsightsInstrumentationKey", + publicIpAddress: { + serializedName: "publicIpAddress", readOnly: true, + nullable: true, type: { name: "String" } }, - containerRegistryCredentials: { - serializedName: "containerRegistryCredentials", + port: { + serializedName: "port", + readOnly: true, type: { - name: "Composite", - className: "RegistryListCredentialsResult" + name: "Number" } }, - notebookAccessKeys: { - serializedName: "notebookAccessKeys", + nodeState: { + serializedName: "nodeState", + readOnly: true, type: { - name: "Composite", - className: "ListNotebookKeysResult" + name: "String" + } + }, + runId: { + serializedName: "runId", + readOnly: true, + nullable: true, + type: { + name: "String" } } } } }; -export const RegistryListCredentialsResult: coreClient.CompositeMapper = { +export const ComputeSecrets: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegistryListCredentialsResult", + className: "ComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, modelProperties: { - location: { - serializedName: "location", - readOnly: true, + computeType: { + serializedName: "computeType", + required: true, type: { name: "String" } - }, - username: { - serializedName: "username", - readOnly: true, + } + } + } +}; + +export const IdleShutdownSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IdleShutdownSetting", + modelProperties: { + idleTimeBeforeShutdown: { + serializedName: "idleTimeBeforeShutdown", type: { name: "String" } - }, - passwords: { - serializedName: "passwords", + } + } + } +}; + +export const ResizeSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResizeSchema", + modelProperties: { + targetVMSize: { + serializedName: "targetVMSize", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Password" - } - } + name: "String" } } } } }; -export const Password: coreClient.CompositeMapper = { +export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Password", + className: "CodeContainerResourceArmPaginatedResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, value: { serializedName: "value", - readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CodeContainer" + } + } } } } } }; -export const ListNotebookKeysResult: coreClient.CompositeMapper = { +export const ResourceBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListNotebookKeysResult", + className: "ResourceBase", modelProperties: { - primaryAccessKey: { - serializedName: "primaryAccessKey", - readOnly: true, + description: { + serializedName: "description", + nullable: true, type: { name: "String" } }, - secondaryAccessKey: { - serializedName: "secondaryAccessKey", - readOnly: true, + properties: { + serializedName: "properties", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const ListUsagesResult: coreClient.CompositeMapper = { +export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListUsagesResult", + className: "CodeVersionResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Usage" + className: "CodeVersion" } } } + } + } + } +}; + +export const AutoDeleteSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutoDeleteSetting", + modelProperties: { + condition: { + serializedName: "condition", + type: { + name: "String" + } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + value: { + serializedName: "value", + nullable: true, type: { name: "String" } @@ -1143,92 +1537,146 @@ export const ListUsagesResult: coreClient.CompositeMapper = { } }; -export const Usage: coreClient.CompositeMapper = { +export const PendingUploadRequestDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Usage", + className: "PendingUploadRequestDto", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + pendingUploadId: { + serializedName: "pendingUploadId", + nullable: true, type: { name: "String" } }, - amlWorkspaceLocation: { - serializedName: "amlWorkspaceLocation", - readOnly: true, + pendingUploadType: { + serializedName: "pendingUploadType", type: { name: "String" } + } + } + } +}; + +export const PendingUploadResponseDto: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PendingUploadResponseDto", + modelProperties: { + blobReferenceForConsumption: { + serializedName: "blobReferenceForConsumption", + type: { + name: "Composite", + className: "BlobReferenceForConsumptionDto" + } }, - type: { - serializedName: "type", - readOnly: true, + pendingUploadId: { + serializedName: "pendingUploadId", + nullable: true, type: { name: "String" } }, - unit: { - serializedName: "unit", - readOnly: true, + pendingUploadType: { + serializedName: "pendingUploadType", type: { name: "String" } - }, - currentValue: { - serializedName: "currentValue", - readOnly: true, + } + } + } +}; + +export const BlobReferenceForConsumptionDto: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BlobReferenceForConsumptionDto", + modelProperties: { + blobUri: { + serializedName: "blobUri", + nullable: true, type: { - name: "Number" + name: "String" } }, - limit: { - serializedName: "limit", - readOnly: true, + credential: { + serializedName: "credential", type: { - name: "Number" + name: "Composite", + className: "PendingUploadCredentialDto" } }, - name: { - serializedName: "name", + storageAccountArmId: { + serializedName: "storageAccountArmId", + nullable: true, type: { - name: "Composite", - className: "UsageName" + name: "String" } } } } }; -export const UsageName: coreClient.CompositeMapper = { +export const PendingUploadCredentialDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UsageName", + className: "PendingUploadCredentialDto", + uberParent: "PendingUploadCredentialDto", + polymorphicDiscriminator: { + serializedName: "credentialType", + clientName: "credentialType" + }, modelProperties: { - value: { - serializedName: "value", - readOnly: true, + credentialType: { + serializedName: "credentialType", + required: true, type: { name: "String" } - }, - localizedValue: { - serializedName: "localizedValue", - readOnly: true, + } + } + } +}; + +export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentContainerResourceArmPaginatedResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { name: "String" } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComponentContainer" + } + } + } } } } }; -export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { +export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSizeListResult", + className: "ComponentVersionResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", type: { @@ -1236,7 +1684,7 @@ export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineSize" + className: "ComponentVersion" } } } @@ -1245,88 +1693,25 @@ export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { } }; -export const VirtualMachineSize: coreClient.CompositeMapper = { +export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSize", + className: "DataContainerResourceArmPaginatedResult", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - family: { - serializedName: "family", - readOnly: true, - type: { - name: "String" - } - }, - vCPUs: { - serializedName: "vCPUs", - readOnly: true, - type: { - name: "Number" - } - }, - gpus: { - serializedName: "gpus", - readOnly: true, - type: { - name: "Number" - } - }, - osVhdSizeMB: { - serializedName: "osVhdSizeMB", - readOnly: true, - type: { - name: "Number" - } - }, - maxResourceVolumeMB: { - serializedName: "maxResourceVolumeMB", - readOnly: true, - type: { - name: "Number" - } - }, - memoryGB: { - serializedName: "memoryGB", - readOnly: true, - type: { - 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", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "DataContainer" } } } @@ -1335,34 +1720,25 @@ export const VirtualMachineSize: coreClient.CompositeMapper = { } }; -export const EstimatedVMPrices: coreClient.CompositeMapper = { +export const DataVersionBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EstimatedVMPrices", + className: "DataVersionBaseResourceArmPaginatedResult", modelProperties: { - billingCurrency: { - serializedName: "billingCurrency", - required: true, - type: { - name: "String" - } - }, - unitOfMeasure: { - serializedName: "unitOfMeasure", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - values: { - serializedName: "values", - required: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EstimatedVMPrice" + className: "DataVersionBase" } } } @@ -1371,27 +1747,23 @@ export const EstimatedVMPrices: coreClient.CompositeMapper = { } }; -export const EstimatedVMPrice: coreClient.CompositeMapper = { +export const IntellectualProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EstimatedVMPrice", + className: "IntellectualProperty", modelProperties: { - retailPrice: { - serializedName: "retailPrice", - required: true, - type: { - name: "Number" - } - }, - osType: { - serializedName: "osType", - required: true, + protectionLevel: { + serializedName: "protectionLevel", type: { name: "String" } }, - vmTier: { - serializedName: "vmTier", + publisher: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "publisher", required: true, type: { name: "String" @@ -1401,11 +1773,17 @@ export const EstimatedVMPrice: coreClient.CompositeMapper = { } }; -export const QuotaUpdateParameters: coreClient.CompositeMapper = { +export const EnvironmentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuotaUpdateParameters", + className: "EnvironmentContainerResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", type: { @@ -1413,75 +1791,61 @@ export const QuotaUpdateParameters: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QuotaBaseProperties" + className: "EnvironmentContainer" } } } - }, - location: { - serializedName: "location", - type: { - name: "String" - } } } } }; -export const QuotaBaseProperties: coreClient.CompositeMapper = { +export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuotaBaseProperties", + className: "EnvironmentVersionResourceArmPaginatedResult", modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - type: { - serializedName: "type", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - limit: { - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { - serializedName: "unit", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentVersion" + } + } } } } } }; -export const UpdateWorkspaceQuotasResult: coreClient.CompositeMapper = { +export const BuildContext: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateWorkspaceQuotasResult", + className: "BuildContext", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + contextUri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "contextUri", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UpdateWorkspaceQuotas" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + dockerfilePath: { + defaultValue: "Dockerfile", + serializedName: "dockerfilePath", type: { name: "String" } @@ -1490,120 +1854,204 @@ export const UpdateWorkspaceQuotasResult: coreClient.CompositeMapper = { } }; -export const UpdateWorkspaceQuotas: coreClient.CompositeMapper = { +export const InferenceContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateWorkspaceQuotas", + className: "InferenceContainerProperties", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + livenessRoute: { + serializedName: "livenessRoute", type: { - name: "String" + name: "Composite", + className: "Route" } }, - type: { - serializedName: "type", - readOnly: true, + readinessRoute: { + serializedName: "readinessRoute", type: { - name: "String" + name: "Composite", + className: "Route" } }, - limit: { - serializedName: "limit", + scoringRoute: { + serializedName: "scoringRoute", type: { - name: "Number" + name: "Composite", + className: "Route" } - }, - unit: { - serializedName: "unit", - readOnly: true, + } + } + } +}; + +export const Route: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Route", + modelProperties: { + path: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "path", + required: true, type: { name: "String" } }, - status: { - serializedName: "status", + port: { + serializedName: "port", + required: true, type: { - name: "String" + name: "Number" } } } } }; -export const ListWorkspaceQuotas: coreClient.CompositeMapper = { +export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListWorkspaceQuotas", + className: "ModelContainerResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ResourceQuota" + className: "ModelContainer" } } } - }, + } + } + } +}; + +export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelVersionResourceArmPaginatedResult", + modelProperties: { nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String" } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelVersion" + } + } + } } } } }; -export const ResourceQuota: coreClient.CompositeMapper = { +export const FlavorData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceQuota", + className: "FlavorData", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + data: { + serializedName: "data", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const PackageRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PackageRequest", + modelProperties: { + baseEnvironmentSource: { + serializedName: "baseEnvironmentSource", + type: { + name: "Composite", + className: "BaseEnvironmentSource" } }, - amlWorkspaceLocation: { - serializedName: "amlWorkspaceLocation", - readOnly: true, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - type: { - serializedName: "type", - readOnly: true, + inferencingServer: { + serializedName: "inferencingServer", type: { - name: "String" + name: "Composite", + className: "InferencingServer" } }, - name: { - serializedName: "name", + inputs: { + serializedName: "inputs", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ModelPackageInput" + } + } + } + }, + modelConfiguration: { + serializedName: "modelConfiguration", type: { name: "Composite", - className: "ResourceName" + className: "ModelConfiguration" } }, - limit: { - serializedName: "limit", - readOnly: true, + properties: { + serializedName: "properties", + nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } }, - unit: { - serializedName: "unit", - readOnly: true, + tags: { + serializedName: "tags", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + targetEnvironmentId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "targetEnvironmentId", + required: true, type: { name: "String" } @@ -1612,21 +2060,40 @@ export const ResourceQuota: coreClient.CompositeMapper = { } }; -export const ResourceName: coreClient.CompositeMapper = { +export const BaseEnvironmentSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceName", + className: "BaseEnvironmentSource", + uberParent: "BaseEnvironmentSource", + polymorphicDiscriminator: { + serializedName: "baseEnvironmentSourceType", + clientName: "baseEnvironmentSourceType" + }, modelProperties: { - value: { - serializedName: "value", - readOnly: true, + baseEnvironmentSourceType: { + serializedName: "baseEnvironmentSourceType", + required: true, type: { name: "String" } - }, - localizedValue: { - serializedName: "localizedValue", - readOnly: true, + } + } + } +}; + +export const InferencingServer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferencingServer", + uberParent: "InferencingServer", + polymorphicDiscriminator: { + serializedName: "serverType", + clientName: "serverType" + }, + modelProperties: { + serverType: { + serializedName: "serverType", + required: true, type: { name: "String" } @@ -1635,109 +2102,130 @@ export const ResourceName: coreClient.CompositeMapper = { } }; -export const PaginatedComputeResourcesList: coreClient.CompositeMapper = { +export const ModelPackageInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PaginatedComputeResourcesList", + className: "ModelPackageInput", modelProperties: { - value: { - serializedName: "value", + inputType: { + serializedName: "inputType", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeResource" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + mountPath: { + serializedName: "mountPath", + nullable: true, type: { name: "String" } + }, + path: { + serializedName: "path", + type: { + name: "Composite", + className: "PackageInputPathBase" + } } } } }; -export const ComputeResourceSchema: coreClient.CompositeMapper = { +export const PackageInputPathBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeResourceSchema", + className: "PackageInputPathBase", + uberParent: "PackageInputPathBase", + polymorphicDiscriminator: { + serializedName: "inputPathType", + clientName: "inputPathType" + }, modelProperties: { - properties: { - serializedName: "properties", + inputPathType: { + serializedName: "inputPathType", + required: true, type: { - name: "Composite", - className: "Compute" + name: "String" } } } } }; -export const Compute: coreClient.CompositeMapper = { +export const ModelConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Compute", - uberParent: "Compute", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, + className: "ModelConfiguration", modelProperties: { - computeType: { - serializedName: "computeType", - required: true, + mode: { + serializedName: "mode", type: { name: "String" } }, - computeLocation: { - serializedName: "computeLocation", + mountPath: { + serializedName: "mountPath", + nullable: true, type: { name: "String" } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + } + } + } +}; + +export const PackageResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PackageResponse", + modelProperties: { + baseEnvironmentSource: { + serializedName: "baseEnvironmentSource", type: { - name: "String" + name: "Composite", + className: "BaseEnvironmentSource" } }, - description: { - serializedName: "description", + buildId: { + serializedName: "buildId", + readOnly: true, nullable: true, type: { name: "String" } }, - createdOn: { - serializedName: "createdOn", + buildState: { + serializedName: "buildState", readOnly: true, type: { - name: "DateTime" + name: "String" } }, - modifiedOn: { - serializedName: "modifiedOn", + environmentVariables: { + serializedName: "environmentVariables", readOnly: true, + nullable: true, type: { - name: "DateTime" + name: "Dictionary", + value: { type: { name: "String" } } } }, - resourceId: { - serializedName: "resourceId", - nullable: true, + inferencingServer: { + serializedName: "inferencingServer", type: { - name: "String" + name: "Composite", + className: "InferencingServer" } }, - provisioningErrors: { - serializedName: "provisioningErrors", + inputs: { + serializedName: "inputs", readOnly: true, nullable: true, type: { @@ -1745,110 +2233,91 @@ export const Compute: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorResponse" + className: "ModelPackageInput" } } } }, - isAttachedCompute: { - serializedName: "isAttachedCompute", + logUrl: { + serializedName: "logUrl", readOnly: true, + nullable: true, type: { - name: "Boolean" + name: "String" } }, - disableLocalAuth: { - serializedName: "disableLocalAuth", + modelConfiguration: { + serializedName: "modelConfiguration", type: { - name: "Boolean" + name: "Composite", + className: "ModelConfiguration" + } + }, + properties: { + serializedName: "properties", + readOnly: true, + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + readOnly: true, + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + targetEnvironmentId: { + serializedName: "targetEnvironmentId", + readOnly: true, + nullable: true, + type: { + name: "String" } } } } }; -export const ClusterUpdateParameters: coreClient.CompositeMapper = { +export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClusterUpdateParameters", - modelProperties: { - properties: { - serializedName: "properties.properties", - type: { - name: "Composite", - className: "ScaleSettingsInformation" - } - } - } - } -}; - -export const ScaleSettingsInformation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScaleSettingsInformation", - modelProperties: { - scaleSettings: { - serializedName: "scaleSettings", - type: { - name: "Composite", - className: "ScaleSettings" - } - } - } - } -}; - -export const ScaleSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScaleSettings", + className: "BatchEndpointTrackedResourceArmPaginatedResult", modelProperties: { - maxNodeCount: { - serializedName: "maxNodeCount", - required: true, - type: { - name: "Number" - } - }, - minNodeCount: { - defaultValue: 0, - serializedName: "minNodeCount", + nextLink: { + serializedName: "nextLink", type: { - name: "Number" + name: "String" } }, - nodeIdleTimeBeforeScaleDown: { - serializedName: "nodeIdleTimeBeforeScaleDown", + value: { + serializedName: "value", type: { - name: "TimeSpan" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BatchEndpoint" + } + } } } } } }; -export const AmlComputeNodesInformation: coreClient.CompositeMapper = { +export const BatchEndpointDefaults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeNodesInformation", + className: "BatchEndpointDefaults", modelProperties: { - nodes: { - serializedName: "nodes", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AmlComputeNodeInformation" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + deploymentName: { + serializedName: "deploymentName", + nullable: true, type: { name: "String" } @@ -1857,50 +2326,50 @@ export const AmlComputeNodesInformation: coreClient.CompositeMapper = { } }; -export const AmlComputeNodeInformation: coreClient.CompositeMapper = { +export const EndpointPropertiesBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeNodeInformation", + className: "EndpointPropertiesBase", modelProperties: { - nodeId: { - serializedName: "nodeId", - readOnly: true, + authMode: { + serializedName: "authMode", + required: true, type: { name: "String" } }, - privateIpAddress: { - serializedName: "privateIpAddress", - readOnly: true, + description: { + serializedName: "description", nullable: true, type: { name: "String" } }, - publicIpAddress: { - serializedName: "publicIpAddress", - readOnly: true, - nullable: true, + keys: { + serializedName: "keys", type: { - name: "String" + name: "Composite", + className: "EndpointAuthKeys" } }, - port: { - serializedName: "port", - readOnly: true, + properties: { + serializedName: "properties", + nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } }, - nodeState: { - serializedName: "nodeState", + scoringUri: { + serializedName: "scoringUri", readOnly: true, + nullable: true, type: { name: "String" } }, - runId: { - serializedName: "runId", + swaggerUri: { + serializedName: "swaggerUri", readOnly: true, nullable: true, type: { @@ -1911,63 +2380,21 @@ export const AmlComputeNodeInformation: coreClient.CompositeMapper = { } }; -export const NotebookAccessTokenResult: coreClient.CompositeMapper = { +export const EndpointAuthKeys: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotebookAccessTokenResult", + className: "EndpointAuthKeys", modelProperties: { - notebookResourceId: { - serializedName: "notebookResourceId", - readOnly: true, - type: { - name: "String" - } - }, - hostName: { - serializedName: "hostName", - readOnly: true, - type: { - name: "String" - } - }, - publicDns: { - serializedName: "publicDns", - readOnly: true, - type: { - name: "String" - } - }, - accessToken: { - serializedName: "accessToken", - readOnly: true, - type: { - name: "String" - } - }, - tokenType: { - serializedName: "tokenType", - readOnly: true, - type: { - name: "String" - } - }, - expiresIn: { - serializedName: "expiresIn", - readOnly: true, - type: { - name: "Number" - } - }, - refreshToken: { - serializedName: "refreshToken", - readOnly: true, + primaryKey: { + serializedName: "primaryKey", + nullable: true, type: { name: "String" } }, - scope: { - serializedName: "scope", - readOnly: true, + secondaryKey: { + serializedName: "secondaryKey", + nullable: true, type: { name: "String" } @@ -1976,53 +2403,57 @@ export const NotebookAccessTokenResult: coreClient.CompositeMapper = { } }; -export const ComputeSecrets: coreClient.CompositeMapper = { +export const PartialManagedServiceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: { - serializedName: "computeType", - clientName: "computeType" - }, + className: "PartialManagedServiceIdentity", modelProperties: { - computeType: { - serializedName: "computeType", - required: true, + type: { + serializedName: "type", type: { name: "String" } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } + } } } } }; -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { +export const PartialMinimalTrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "PartialMinimalTrackedResource", modelProperties: { - value: { - serializedName: "value", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { +export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "BatchDeploymentTrackedResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", type: { @@ -2030,7 +2461,7 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "BatchDeployment" } } } @@ -2039,14 +2470,19 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { } }; -export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { +export const BatchDeploymentConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListStorageAccountKeysResult", + className: "BatchDeploymentConfiguration", + uberParent: "BatchDeploymentConfiguration", + polymorphicDiscriminator: { + serializedName: "deploymentConfigurationType", + clientName: "deploymentConfigurationType" + }, modelProperties: { - userStorageKey: { - serializedName: "userStorageKey", - readOnly: true, + deploymentConfigurationType: { + serializedName: "deploymentConfigurationType", + required: true, type: { name: "String" } @@ -2055,162 +2491,234 @@ export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { } }; -export const WorkspaceConnectionPropertiesV2: coreClient.CompositeMapper = { +export const AssetReferenceBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionPropertiesV2", - uberParent: "WorkspaceConnectionPropertiesV2", + className: "AssetReferenceBase", + uberParent: "AssetReferenceBase", polymorphicDiscriminator: { - serializedName: "authType", - clientName: "authType" + serializedName: "referenceType", + clientName: "referenceType" }, modelProperties: { - authType: { - serializedName: "authType", + referenceType: { + serializedName: "referenceType", required: true, type: { name: "String" } + } + } + } +}; + +export const ResourceConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceConfiguration", + modelProperties: { + instanceCount: { + defaultValue: 1, + serializedName: "instanceCount", + type: { + name: "Number" + } }, - category: { - serializedName: "category", + instanceType: { + serializedName: "instanceType", + nullable: true, type: { name: "String" } }, - target: { - serializedName: "target", + locations: { + serializedName: "locations", + nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - value: { - serializedName: "value", + maxInstanceCount: { + serializedName: "maxInstanceCount", + nullable: true, type: { - name: "String" + name: "Number" } }, - valueFormat: { - serializedName: "valueFormat", + properties: { + serializedName: "properties", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } } }; -export const WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const BatchRetrySettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult", + className: "BatchRetrySettings", modelProperties: { - value: { - serializedName: "value", + maxRetries: { + defaultValue: 3, + serializedName: "maxRetries", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkspaceConnectionPropertiesV2BasicResource" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + timeout: { + defaultValue: "PT30S", + serializedName: "timeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const EndpointDeploymentPropertiesBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointDeploymentPropertiesBase", + modelProperties: { + codeConfiguration: { + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + }, + description: { + serializedName: "description", + nullable: true, + type: { + name: "String" + } + }, + environmentId: { + serializedName: "environmentId", + nullable: true, type: { name: "String" } + }, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } }; -export const ExternalFqdnResponse: coreClient.CompositeMapper = { +export const CodeConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalFqdnResponse", + className: "CodeConfiguration", modelProperties: { - value: { - serializedName: "value", + codeId: { + serializedName: "codeId", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FqdnEndpoints" - } - } + name: "String" + } + }, + scoringScript: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "scoringScript", + required: true, + type: { + name: "String" } } } } }; -export const FqdnEndpoints: coreClient.CompositeMapper = { +export const PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpoints", + className: + "PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties", modelProperties: { properties: { serializedName: "properties", type: { name: "Composite", - className: "FqdnEndpointsProperties" + className: "PartialBatchDeployment" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const FqdnEndpointsProperties: coreClient.CompositeMapper = { +export const PartialBatchDeployment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpointsProperties", + className: "PartialBatchDeployment", modelProperties: { - category: { - serializedName: "category", + description: { + serializedName: "description", + nullable: true, type: { name: "String" } - }, - endpoints: { - serializedName: "endpoints", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FqdnEndpoint" - } - } - } } } } }; -export const FqdnEndpoint: coreClient.CompositeMapper = { +export const DatastoreResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpoint", + className: "DatastoreResourceArmPaginatedResult", modelProperties: { - domainName: { - serializedName: "domainName", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - endpointDetails: { - serializedName: "endpointDetails", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "FqdnEndpointDetail" + className: "Datastore" } } } @@ -2219,25 +2727,52 @@ export const FqdnEndpoint: coreClient.CompositeMapper = { } }; -export const FqdnEndpointDetail: coreClient.CompositeMapper = { +export const DatastoreCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FqdnEndpointDetail", + className: "DatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: { + serializedName: "credentialsType", + clientName: "credentialsType" + }, modelProperties: { - port: { - serializedName: "port", + credentialsType: { + serializedName: "credentialsType", + required: true, type: { - name: "Number" + name: "String" } } } } }; -export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const DatastoreSecrets: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointTrackedResourceArmPaginatedResult", + className: "DatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: { + serializedName: "secretsType", + clientName: "secretsType" + }, + modelProperties: { + secretsType: { + serializedName: "secretsType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const FeaturesetContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturesetContainerResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2252,7 +2787,7 @@ export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.Composit element: { type: { name: "Composite", - className: "BatchEndpoint" + className: "FeaturesetContainer" } } } @@ -2261,68 +2796,96 @@ export const BatchEndpointTrackedResourceArmPaginatedResult: coreClient.Composit } }; -export const BatchEndpointDefaults: coreClient.CompositeMapper = { +export const FeatureResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointDefaults", + className: "FeatureResourceArmPaginatedResult", modelProperties: { - deploymentName: { - serializedName: "deploymentName", - nullable: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Feature" + } + } + } } } } }; -export const EndpointPropertiesBase: coreClient.CompositeMapper = { +export const FeaturesetVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointPropertiesBase", + className: "FeaturesetVersionResourceArmPaginatedResult", modelProperties: { - authMode: { - serializedName: "authMode", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - description: { - serializedName: "description", - nullable: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FeaturesetVersion" + } + } + } + } + } + } +}; + +export const MaterializationSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MaterializationSettings", + modelProperties: { + notification: { + serializedName: "notification", + type: { + name: "Composite", + className: "NotificationSetting" } }, - keys: { - serializedName: "keys", + resource: { + serializedName: "resource", type: { name: "Composite", - className: "EndpointAuthKeys" + className: "MaterializationComputeResource" } }, - properties: { - serializedName: "properties", - nullable: true, + schedule: { + serializedName: "schedule", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "RecurrenceTrigger" } }, - scoringUri: { - serializedName: "scoringUri", - readOnly: true, + sparkConfiguration: { + serializedName: "sparkConfiguration", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - swaggerUri: { - serializedName: "swaggerUri", - readOnly: true, - nullable: true, + storeType: { + serializedName: "storeType", type: { name: "String" } @@ -2331,88 +2894,140 @@ export const EndpointPropertiesBase: coreClient.CompositeMapper = { } }; -export const EndpointAuthKeys: coreClient.CompositeMapper = { +export const NotificationSetting: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointAuthKeys", + className: "NotificationSetting", modelProperties: { - primaryKey: { - serializedName: "primaryKey", + emailOn: { + serializedName: "emailOn", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - secondaryKey: { - serializedName: "secondaryKey", + emails: { + serializedName: "emails", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + webhooks: { + serializedName: "webhooks", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "Webhook" } } } } } } }; -export const PartialManagedServiceIdentity: coreClient.CompositeMapper = { +export const Webhook: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialManagedServiceIdentity", + className: "Webhook", + uberParent: "Webhook", + polymorphicDiscriminator: { + serializedName: "webhookType", + clientName: "webhookType" + }, modelProperties: { - type: { - serializedName: "type", + eventType: { + serializedName: "eventType", + nullable: true, type: { name: "String" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + webhookType: { + serializedName: "webhookType", + required: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } } } } }; -export const PartialMinimalTrackedResource: coreClient.CompositeMapper = { +export const MaterializationComputeResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialMinimalTrackedResource", + className: "MaterializationComputeResource", modelProperties: { - tags: { - serializedName: "tags", + instanceType: { + serializedName: "instanceType", + nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const RecurrenceSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentTrackedResourceArmPaginatedResult", + className: "RecurrenceSchedule", modelProperties: { - nextLink: { - serializedName: "nextLink", + hours: { + serializedName: "hours", + required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Number" + } + } } }, - value: { - serializedName: "value", + minutes: { + serializedName: "minutes", + required: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "BatchDeployment" + name: "Number" + } + } + } + }, + monthDays: { + serializedName: "monthDays", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + }, + weekDays: { + serializedName: "weekDays", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" } } } @@ -2421,167 +3036,124 @@ export const BatchDeploymentTrackedResourceArmPaginatedResult: coreClient.Compos } }; -export const AssetReferenceBase: coreClient.CompositeMapper = { +export const TriggerBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetReferenceBase", - uberParent: "AssetReferenceBase", + className: "TriggerBase", + uberParent: "TriggerBase", polymorphicDiscriminator: { - serializedName: "referenceType", - clientName: "referenceType" + serializedName: "triggerType", + clientName: "triggerType" }, modelProperties: { - referenceType: { - serializedName: "referenceType", - required: true, + endTime: { + serializedName: "endTime", + nullable: true, type: { name: "String" } - } - } - } -}; - -export const ResourceConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceConfiguration", - modelProperties: { - instanceCount: { - defaultValue: 1, - serializedName: "instanceCount", + }, + startTime: { + serializedName: "startTime", + nullable: true, type: { - name: "Number" + name: "String" } }, - instanceType: { - serializedName: "instanceType", - nullable: true, + timeZone: { + defaultValue: "UTC", + serializedName: "timeZone", type: { name: "String" } }, - properties: { - serializedName: "properties", - nullable: true, + triggerType: { + serializedName: "triggerType", + required: true, type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } } } } }; -export const BatchRetrySettings: coreClient.CompositeMapper = { +export const FeaturesetSpecification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchRetrySettings", + className: "FeaturesetSpecification", modelProperties: { - maxRetries: { - defaultValue: 3, - serializedName: "maxRetries", - type: { - name: "Number" - } - }, - timeout: { - defaultValue: "PT30S", - serializedName: "timeout", + path: { + serializedName: "path", + nullable: true, type: { - name: "TimeSpan" + name: "String" } } } } }; -export const EndpointDeploymentPropertiesBase: coreClient.CompositeMapper = { +export const FeaturesetVersionBackfillRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointDeploymentPropertiesBase", + className: "FeaturesetVersionBackfillRequest", modelProperties: { - codeConfiguration: { - serializedName: "codeConfiguration", + dataAvailabilityStatus: { + serializedName: "dataAvailabilityStatus", type: { - name: "Composite", - className: "CodeConfiguration" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, description: { serializedName: "description", - nullable: true, type: { name: "String" } }, - environmentId: { - serializedName: "environmentId", - nullable: true, + displayName: { + serializedName: "displayName", type: { name: "String" } }, - environmentVariables: { - serializedName: "environmentVariables", - nullable: true, + featureWindow: { + serializedName: "featureWindow", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "FeatureWindow" + } + }, + jobId: { + serializedName: "jobId", + type: { + name: "String" } }, properties: { serializedName: "properties", - nullable: true, type: { name: "Dictionary", value: { type: { name: "String" } } } - } - } - } -}; - -export const CodeConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CodeConfiguration", - modelProperties: { - codeId: { - serializedName: "codeId", - nullable: true, - type: { - name: "String" - } }, - scoringScript: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1 - }, - serializedName: "scoringScript", - required: true, + resource: { + serializedName: "resource", type: { - name: "String" + name: "Composite", + className: "MaterializationComputeResource" } - } - } - } -}; - -export const PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: - "PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties", - modelProperties: { - properties: { - serializedName: "properties", + }, + sparkConfiguration: { + serializedName: "sparkConfiguration", type: { - name: "Composite", - className: "PartialBatchDeployment" + name: "Dictionary", + value: { type: { name: "String" } } } }, tags: { @@ -2595,41 +3167,42 @@ export const PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties: } }; -export const PartialBatchDeployment: coreClient.CompositeMapper = { +export const FeatureWindow: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialBatchDeployment", + className: "FeatureWindow", modelProperties: { - description: { - serializedName: "description", + featureWindowEnd: { + serializedName: "featureWindowEnd", nullable: true, type: { - name: "String" + name: "DateTime" + } + }, + featureWindowStart: { + serializedName: "featureWindowStart", + nullable: true, + type: { + name: "DateTime" } } } } }; -export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const FeaturesetVersionBackfillResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeContainerResourceArmPaginatedResult", + className: "FeaturesetVersionBackfillResponse", modelProperties: { - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - }, - value: { - serializedName: "value", + jobIds: { + serializedName: "jobIds", + nullable: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "CodeContainer" + name: "String" } } } @@ -2638,42 +3211,10 @@ export const CodeContainerResourceArmPaginatedResult: coreClient.CompositeMapper } }; -export const ResourceBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceBase", - modelProperties: { - description: { - serializedName: "description", - nullable: true, - type: { - name: "String" - } - }, - properties: { - serializedName: "properties", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - tags: { - serializedName: "tags", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const FeaturestoreEntityContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeVersionResourceArmPaginatedResult", + className: "FeaturestoreEntityContainerResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2688,7 +3229,7 @@ export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = element: { type: { name: "Composite", - className: "CodeVersion" + className: "FeaturestoreEntityContainer" } } } @@ -2697,10 +3238,10 @@ export const CodeVersionResourceArmPaginatedResult: coreClient.CompositeMapper = } }; -export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const FeaturestoreEntityVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentContainerResourceArmPaginatedResult", + className: "FeaturestoreEntityVersionResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2715,7 +3256,7 @@ export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "ComponentContainer" + className: "FeaturestoreEntityVersion" } } } @@ -2724,37 +3265,32 @@ export const ComponentContainerResourceArmPaginatedResult: coreClient.CompositeM } }; -export const ComponentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const IndexColumn: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentVersionResourceArmPaginatedResult", + className: "IndexColumn", modelProperties: { - nextLink: { - serializedName: "nextLink", + columnName: { + serializedName: "columnName", + nullable: true, type: { name: "String" } }, - value: { - serializedName: "value", + dataType: { + serializedName: "dataType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComponentVersion" - } - } + name: "String" } } } } }; -export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const InferencePoolTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataContainerResourceArmPaginatedResult", + className: "InferencePoolTrackedResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -2769,7 +3305,7 @@ export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper element: { type: { name: "Composite", - className: "DataContainer" + className: "InferencePool" } } } @@ -2778,73 +3314,103 @@ export const DataContainerResourceArmPaginatedResult: coreClient.CompositeMapper } }; -export const DataVersionBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const PoolEnvironmentConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataVersionBaseResourceArmPaginatedResult", + className: "PoolEnvironmentConfiguration", modelProperties: { - nextLink: { - serializedName: "nextLink", + environmentId: { + serializedName: "environmentId", + nullable: true, type: { name: "String" } }, - value: { - serializedName: "value", + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataVersionBase" - } - } + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + livenessProbe: { + serializedName: "livenessProbe", + type: { + name: "Composite", + className: "ProbeSettings" + } + }, + readinessProbe: { + serializedName: "readinessProbe", + type: { + name: "Composite", + className: "ProbeSettings" + } + }, + startupProbe: { + serializedName: "startupProbe", + type: { + name: "Composite", + className: "ProbeSettings" } } } } }; -export const DatastoreResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const ProbeSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreResourceArmPaginatedResult", + className: "ProbeSettings", modelProperties: { - nextLink: { - serializedName: "nextLink", + failureThreshold: { + defaultValue: 30, + serializedName: "failureThreshold", type: { - name: "String" + name: "Number" } }, - value: { - serializedName: "value", + initialDelay: { + serializedName: "initialDelay", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Datastore" - } - } + name: "TimeSpan" + } + }, + period: { + defaultValue: "PT10S", + serializedName: "period", + type: { + name: "TimeSpan" + } + }, + successThreshold: { + defaultValue: 1, + serializedName: "successThreshold", + type: { + name: "Number" + } + }, + timeout: { + defaultValue: "PT2S", + serializedName: "timeout", + type: { + name: "TimeSpan" } } } } }; -export const DatastoreCredentials: coreClient.CompositeMapper = { +export const PoolModelConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: { - serializedName: "credentialsType", - clientName: "credentialsType" - }, + className: "PoolModelConfiguration", modelProperties: { - credentialsType: { - serializedName: "credentialsType", - required: true, + modelId: { + serializedName: "modelId", + nullable: true, type: { name: "String" } @@ -2853,60 +3419,99 @@ export const DatastoreCredentials: coreClient.CompositeMapper = { } }; -export const DatastoreSecrets: coreClient.CompositeMapper = { +export const RequestConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: { - serializedName: "secretsType", - clientName: "secretsType" - }, + className: "RequestConfiguration", modelProperties: { - secretsType: { - serializedName: "secretsType", - required: true, + maxConcurrentRequestsPerInstance: { + defaultValue: 1, + serializedName: "maxConcurrentRequestsPerInstance", type: { - name: "String" + name: "Number" + } + }, + requestTimeout: { + defaultValue: "PT5S", + serializedName: "requestTimeout", + type: { + name: "TimeSpan" } } } } }; -export const EnvironmentContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const PropertiesBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentContainerResourceArmPaginatedResult", + className: "PropertiesBase", modelProperties: { - nextLink: { - serializedName: "nextLink", + description: { + serializedName: "description", + nullable: true, type: { name: "String" } }, - value: { - serializedName: "value", + properties: { + serializedName: "properties", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EnvironmentContainer" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const PartialSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentVersionResourceArmPaginatedResult", + className: "PartialSku", modelProperties: { - nextLink: { + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + }, + family: { + serializedName: "family", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + size: { + serializedName: "size", + type: { + name: "String" + } + }, + tier: { + serializedName: "tier", + type: { + name: "Enum", + allowedValues: ["Free", "Basic", "Standard", "Premium"] + } + } + } + } +}; + +export const SkuResourceArmPaginatedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuResourceArmPaginatedResult", + modelProperties: { + nextLink: { serializedName: "nextLink", type: { name: "String" @@ -2919,7 +3524,7 @@ export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeM element: { type: { name: "Composite", - className: "EnvironmentVersion" + className: "SkuResource" } } } @@ -2928,182 +3533,244 @@ export const EnvironmentVersionResourceArmPaginatedResult: coreClient.CompositeM } }; -export const BuildContext: coreClient.CompositeMapper = { +export const SkuResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BuildContext", + className: "SkuResource", modelProperties: { - contextUri: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "contextUri", - required: true, + capacity: { + serializedName: "capacity", type: { - name: "String" + name: "Composite", + className: "SkuCapacity" } }, - dockerfilePath: { - defaultValue: "Dockerfile", - serializedName: "dockerfilePath", + resourceType: { + serializedName: "resourceType", + readOnly: true, + nullable: true, type: { name: "String" } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "SkuSetting" + } } } } }; -export const InferenceContainerProperties: coreClient.CompositeMapper = { +export const SkuCapacity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InferenceContainerProperties", + className: "SkuCapacity", modelProperties: { - livenessRoute: { - serializedName: "livenessRoute", + default: { + defaultValue: 0, + serializedName: "default", type: { - name: "Composite", - className: "Route" + name: "Number" } }, - readinessRoute: { - serializedName: "readinessRoute", + maximum: { + defaultValue: 0, + serializedName: "maximum", type: { - name: "Composite", - className: "Route" + name: "Number" } }, - scoringRoute: { - serializedName: "scoringRoute", + minimum: { + defaultValue: 0, + serializedName: "minimum", type: { - name: "Composite", - className: "Route" + name: "Number" + } + }, + scaleType: { + serializedName: "scaleType", + type: { + name: "String" } } } } }; -export const Route: coreClient.CompositeMapper = { +export const SkuSetting: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Route", + className: "SkuSetting", modelProperties: { - path: { + name: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 }, - serializedName: "path", + serializedName: "name", required: true, type: { name: "String" } }, - port: { - serializedName: "port", - required: true, + tier: { + serializedName: "tier", type: { - name: "Number" + name: "Enum", + allowedValues: ["Free", "Basic", "Standard", "Premium"] } } } } }; -export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const PoolStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobBaseResourceArmPaginatedResult", + className: "PoolStatus", modelProperties: { - nextLink: { - serializedName: "nextLink", + actualCapacity: { + defaultValue: 0, + serializedName: "actualCapacity", type: { - name: "String" + name: "Number" } }, - value: { - serializedName: "value", + eventLog: { + serializedName: "eventLog", + nullable: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "JobBase" + name: "Dictionary", + value: { type: { name: "any" } } } } } + }, + groupCount: { + defaultValue: 0, + serializedName: "groupCount", + type: { + name: "Number" + } + }, + requestedCapacity: { + defaultValue: 0, + serializedName: "requestedCapacity", + type: { + name: "Number" + } + }, + reservedCapacity: { + defaultValue: 0, + serializedName: "reservedCapacity", + type: { + name: "Number" + } } } } }; -export const IdentityConfiguration: coreClient.CompositeMapper = { +export const InferenceGroupMinimalTrackedResourceWithSkuArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IdentityConfiguration", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: { - serializedName: "identityType", - clientName: "identityType" - }, + className: "InferenceGroupMinimalTrackedResourceWithSkuArmPaginatedResult", modelProperties: { - identityType: { - serializedName: "identityType", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InferenceGroupMinimalTrackedResourceWithSku" + } + } + } } } } }; -export const JobService: coreClient.CompositeMapper = { +export const InferenceGroupMinimalTrackedResourceWithSku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobService", + className: "InferenceGroupMinimalTrackedResourceWithSku", modelProperties: { - endpoint: { - serializedName: "endpoint", - nullable: true, + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, - nullable: true, + kind: { + serializedName: "kind", type: { name: "String" } }, - jobServiceType: { - serializedName: "jobServiceType", - nullable: true, + location: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "location", + required: true, type: { name: "String" } }, - port: { - serializedName: "port", - nullable: true, + name: { + serializedName: "name", + readOnly: true, type: { - name: "Number" + name: "String" } }, properties: { serializedName: "properties", - nullable: true, + type: { + name: "Composite", + className: "InferenceGroup" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + tags: { + serializedName: "tags", type: { name: "Dictionary", value: { type: { name: "String" } } } }, - status: { - serializedName: "status", + type: { + serializedName: "type", readOnly: true, - nullable: true, type: { name: "String" } @@ -3112,10 +3779,10 @@ export const JobService: coreClient.CompositeMapper = { } }; -export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const InferenceEndpointMinimalTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelContainerResourceArmPaginatedResult", + className: "InferenceEndpointMinimalTrackedResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -3130,7 +3797,7 @@ export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMappe element: { type: { name: "Composite", - className: "ModelContainer" + className: "InferenceEndpointMinimalTrackedResource" } } } @@ -3139,190 +3806,193 @@ export const ModelContainerResourceArmPaginatedResult: coreClient.CompositeMappe } }; -export const ModelVersionResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const InferenceEndpointMinimalTrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelVersionResourceArmPaginatedResult", + className: "InferenceEndpointMinimalTrackedResource", modelProperties: { - nextLink: { - serializedName: "nextLink", + id: { + serializedName: "id", + readOnly: true, type: { name: "String" } }, - value: { - serializedName: "value", + kind: { + serializedName: "kind", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ModelVersion" - } - } + name: "String" } - } - } - } -}; - -export const FlavorData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "FlavorData", - modelProperties: { - data: { - serializedName: "data", - nullable: true, + }, + location: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "location", + required: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "InferenceEndpoint" + } + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + tags: { + serializedName: "tags", type: { name: "Dictionary", value: { type: { name: "String" } } } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } } } } }; -export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const GroupStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointTrackedResourceArmPaginatedResult", + className: "GroupStatus", modelProperties: { - nextLink: { - serializedName: "nextLink", + actualCapacityInfo: { + serializedName: "actualCapacityInfo", type: { - name: "String" + name: "Composite", + className: "ActualCapacityInfo" } }, - value: { - serializedName: "value", + bonusExtraCapacity: { + defaultValue: 0, + serializedName: "bonusExtraCapacity", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OnlineEndpoint" - } - } + name: "Number" } - } - } - } -}; - -export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OnlineDeploymentTrackedResourceArmPaginatedResult", - modelProperties: { - nextLink: { - serializedName: "nextLink", + }, + endpointCount: { + defaultValue: 0, + serializedName: "endpointCount", type: { - name: "String" + name: "Number" } }, - value: { - serializedName: "value", + eventLog: { + serializedName: "eventLog", + nullable: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "OnlineDeployment" + name: "Dictionary", + value: { type: { name: "any" } } } } } + }, + requestedCapacity: { + defaultValue: 0, + serializedName: "requestedCapacity", + type: { + name: "Number" + } } } } }; -export const ProbeSettings: coreClient.CompositeMapper = { +export const ActualCapacityInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProbeSettings", + className: "ActualCapacityInfo", modelProperties: { - failureThreshold: { - defaultValue: 30, - serializedName: "failureThreshold", + allocated: { + defaultValue: 0, + serializedName: "allocated", type: { name: "Number" } }, - initialDelay: { - serializedName: "initialDelay", - nullable: true, - type: { - name: "TimeSpan" - } - }, - period: { - defaultValue: "PT10S", - serializedName: "period", - type: { - name: "TimeSpan" - } - }, - successThreshold: { - defaultValue: 1, - serializedName: "successThreshold", + assignmentFailed: { + defaultValue: 0, + serializedName: "assignmentFailed", type: { name: "Number" } }, - timeout: { - defaultValue: "PT2S", - serializedName: "timeout", + assignmentSuccess: { + defaultValue: 0, + serializedName: "assignmentSuccess", type: { - name: "TimeSpan" + name: "Number" } } } } }; -export const OnlineRequestSettings: coreClient.CompositeMapper = { +export const JobBaseResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineRequestSettings", + className: "JobBaseResourceArmPaginatedResult", modelProperties: { - maxConcurrentRequestsPerInstance: { - defaultValue: 1, - serializedName: "maxConcurrentRequestsPerInstance", - type: { - name: "Number" - } - }, - maxQueueWait: { - defaultValue: "PT0.5S", - serializedName: "maxQueueWait", + nextLink: { + serializedName: "nextLink", type: { - name: "TimeSpan" + name: "String" } }, - requestTimeout: { - defaultValue: "PT5S", - serializedName: "requestTimeout", + value: { + serializedName: "value", type: { - name: "TimeSpan" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JobBase" + } + } } } } } }; -export const OnlineScaleSettings: coreClient.CompositeMapper = { +export const IdentityConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineScaleSettings", - uberParent: "OnlineScaleSettings", + className: "IdentityConfiguration", + uberParent: "IdentityConfiguration", polymorphicDiscriminator: { - serializedName: "scaleType", - clientName: "scaleType" + serializedName: "identityType", + clientName: "identityType" }, modelProperties: { - scaleType: { - serializedName: "scaleType", + identityType: { + serializedName: "identityType", required: true, type: { name: "String" @@ -3332,88 +4002,164 @@ export const OnlineScaleSettings: coreClient.CompositeMapper = { } }; -export const PartialSku: coreClient.CompositeMapper = { +export const SecretConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialSku", + className: "SecretConfiguration", modelProperties: { - capacity: { - serializedName: "capacity", + uri: { + serializedName: "uri", + nullable: true, type: { - name: "Number" + name: "String" } }, - family: { - serializedName: "family", + workspaceSecretName: { + serializedName: "workspaceSecretName", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const JobService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobService", + modelProperties: { + endpoint: { + serializedName: "endpoint", + nullable: true, type: { name: "String" } }, - name: { - serializedName: "name", + errorMessage: { + serializedName: "errorMessage", + readOnly: true, + nullable: true, type: { name: "String" } }, - size: { - serializedName: "size", + jobServiceType: { + serializedName: "jobServiceType", + nullable: true, type: { name: "String" } }, - tier: { - serializedName: "tier", + nodes: { + serializedName: "nodes", type: { - name: "Enum", - allowedValues: ["Free", "Basic", "Standard", "Premium"] + name: "Composite", + className: "Nodes" + } + }, + port: { + serializedName: "port", + nullable: true, + type: { + name: "Number" + } + }, + properties: { + serializedName: "properties", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + status: { + serializedName: "status", + readOnly: true, + nullable: true, + type: { + name: "String" } } } } }; -export const DeploymentLogsRequest: coreClient.CompositeMapper = { +export const Nodes: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentLogsRequest", + className: "Nodes", + uberParent: "Nodes", + polymorphicDiscriminator: { + serializedName: "nodesValueType", + clientName: "nodesValueType" + }, modelProperties: { - containerType: { - serializedName: "containerType", + nodesValueType: { + serializedName: "nodesValueType", + required: true, type: { name: "String" } - }, - tail: { - serializedName: "tail", - nullable: true, - type: { - name: "Number" - } } } } }; -export const DeploymentLogs: coreClient.CompositeMapper = { +export const PartialJobBasePartialResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentLogs", + className: "PartialJobBasePartialResource", modelProperties: { - content: { - serializedName: "content", + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PartialJobBase" + } + } + } + } +}; + +export const PartialJobBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialJobBase", + modelProperties: { + notificationSetting: { + serializedName: "notificationSetting", + type: { + name: "Composite", + className: "PartialNotificationSetting" + } + } + } + } +}; + +export const PartialNotificationSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialNotificationSetting", + modelProperties: { + webhooks: { + serializedName: "webhooks", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "Composite", className: "Webhook" } } } } } } }; -export const SkuResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const LabelingJobResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuResourceArmPaginatedResult", + className: "LabelingJobResourceArmPaginatedResult", modelProperties: { nextLink: { serializedName: "nextLink", @@ -3428,7 +4174,7 @@ export const SkuResourceArmPaginatedResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SkuResource" + className: "LabelingJob" } } } @@ -3437,65 +4183,66 @@ export const SkuResourceArmPaginatedResult: coreClient.CompositeMapper = { } }; -export const SkuResource: coreClient.CompositeMapper = { +export const LabelingDataConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuResource", + className: "LabelingDataConfiguration", modelProperties: { - capacity: { - serializedName: "capacity", - type: { - name: "Composite", - className: "SkuCapacity" - } - }, - resourceType: { - serializedName: "resourceType", - readOnly: true, + dataId: { + serializedName: "dataId", nullable: true, type: { name: "String" } }, - sku: { - serializedName: "sku", + incrementalDataRefresh: { + serializedName: "incrementalDataRefresh", type: { - name: "Composite", - className: "SkuSetting" + name: "String" } } } } }; -export const SkuCapacity: coreClient.CompositeMapper = { +export const LabelingJobInstructions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuCapacity", + className: "LabelingJobInstructions", modelProperties: { - default: { - defaultValue: 0, - serializedName: "default", + uri: { + serializedName: "uri", + nullable: true, type: { - name: "Number" + name: "String" } - }, - maximum: { - defaultValue: 0, - serializedName: "maximum", + } + } + } +}; + +export const LabelCategory: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelCategory", + modelProperties: { + classes: { + serializedName: "classes", + nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "Composite", className: "LabelClass" } } } }, - minimum: { - defaultValue: 0, - serializedName: "minimum", + displayName: { + serializedName: "displayName", + nullable: true, type: { - name: "Number" + name: "String" } }, - scaleType: { - serializedName: "scaleType", + multiSelect: { + serializedName: "multiSelect", type: { name: "String" } @@ -3504,47 +4251,64 @@ export const SkuCapacity: coreClient.CompositeMapper = { } }; -export const SkuSetting: coreClient.CompositeMapper = { +export const LabelClass: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuSetting", + className: "LabelClass", modelProperties: { - name: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "name", - required: true, + displayName: { + serializedName: "displayName", + nullable: true, type: { name: "String" } }, - tier: { - serializedName: "tier", + subclasses: { + serializedName: "subclasses", + nullable: true, type: { - name: "Enum", - allowedValues: ["Free", "Basic", "Standard", "Premium"] + name: "Dictionary", + value: { type: { name: "Composite", className: "LabelClass" } } } } } } }; -export const RegenerateEndpointKeysRequest: coreClient.CompositeMapper = { +export const LabelingJobMediaProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegenerateEndpointKeysRequest", + className: "LabelingJobMediaProperties", + uberParent: "LabelingJobMediaProperties", + polymorphicDiscriminator: { + serializedName: "mediaType", + clientName: "mediaType" + }, modelProperties: { - keyType: { - serializedName: "keyType", + mediaType: { + serializedName: "mediaType", required: true, type: { name: "String" } - }, - keyValue: { - serializedName: "keyValue", - nullable: true, + } + } + } +}; + +export const MLAssistConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MLAssistConfiguration", + uberParent: "MLAssistConfiguration", + polymorphicDiscriminator: { + serializedName: "mlAssist", + clientName: "mlAssist" + }, + modelProperties: { + mlAssist: { + serializedName: "mlAssist", + required: true, type: { name: "String" } @@ -3553,83 +4317,79 @@ export const RegenerateEndpointKeysRequest: coreClient.CompositeMapper = { } }; -export const EndpointAuthToken: coreClient.CompositeMapper = { +export const ProgressMetrics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointAuthToken", + className: "ProgressMetrics", modelProperties: { - accessToken: { - serializedName: "accessToken", + completedDatapointCount: { + serializedName: "completedDatapointCount", + readOnly: true, nullable: true, type: { - name: "String" + name: "Number" } }, - expiryTimeUtc: { - defaultValue: 0, - serializedName: "expiryTimeUtc", + incrementalDataLastRefreshDateTime: { + serializedName: "incrementalDataLastRefreshDateTime", + readOnly: true, + nullable: true, type: { - name: "Number" + name: "DateTime" } }, - refreshAfterTimeUtc: { - defaultValue: 0, - serializedName: "refreshAfterTimeUtc", + skippedDatapointCount: { + serializedName: "skippedDatapointCount", + readOnly: true, + nullable: true, type: { name: "Number" } }, - tokenType: { - serializedName: "tokenType", + totalDatapointCount: { + serializedName: "totalDatapointCount", + readOnly: true, nullable: true, type: { - name: "String" + name: "Number" } } } } }; -export const ScheduleResourceArmPaginatedResult: coreClient.CompositeMapper = { +export const StatusMessage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleResourceArmPaginatedResult", + className: "StatusMessage", modelProperties: { - nextLink: { - serializedName: "nextLink", + code: { + serializedName: "code", + readOnly: true, + nullable: true, type: { name: "String" } }, - value: { - serializedName: "value", + createdDateTime: { + serializedName: "createdDateTime", + readOnly: true, + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Schedule" - } - } + name: "DateTime" } - } - } - } -}; - -export const ScheduleActionBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScheduleActionBase", - uberParent: "ScheduleActionBase", - polymorphicDiscriminator: { - serializedName: "actionType", - clientName: "actionType" - }, - modelProperties: { - actionType: { - serializedName: "actionType", - required: true, + }, + level: { + serializedName: "level", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + nullable: true, type: { name: "String" } @@ -3638,112 +4398,135 @@ export const ScheduleActionBase: coreClient.CompositeMapper = { } }; -export const TriggerBase: coreClient.CompositeMapper = { +export const ExportSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TriggerBase", - uberParent: "TriggerBase", + className: "ExportSummary", + uberParent: "ExportSummary", polymorphicDiscriminator: { - serializedName: "triggerType", - clientName: "triggerType" + serializedName: "format", + clientName: "format" }, modelProperties: { - endTime: { - serializedName: "endTime", + endDateTime: { + serializedName: "endDateTime", + readOnly: true, nullable: true, type: { - name: "String" + name: "DateTime" } }, - startTime: { - serializedName: "startTime", + exportedRowCount: { + serializedName: "exportedRowCount", + readOnly: true, nullable: true, type: { - name: "String" + name: "Number" } }, - timeZone: { - defaultValue: "UTC", - serializedName: "timeZone", + format: { + serializedName: "format", + required: true, type: { name: "String" } }, - triggerType: { - serializedName: "triggerType", - required: true, + labelingJobId: { + serializedName: "labelingJobId", + readOnly: true, + nullable: true, type: { name: "String" } + }, + startDateTime: { + serializedName: "startDateTime", + readOnly: true, + nullable: true, + type: { + name: "DateTime" + } } } } }; -export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { +export const OnlineEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ListAmlUserFeatureResult", + className: "OnlineEndpointTrackedResourceArmPaginatedResult", modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AmlUserFeature" + className: "OnlineEndpoint" } } } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } } } } }; -export const AmlUserFeature: coreClient.CompositeMapper = { +export const OnlineDeploymentTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlUserFeature", + className: "OnlineDeploymentTrackedResourceArmPaginatedResult", modelProperties: { - id: { - serializedName: "id", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - description: { - serializedName: "description", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OnlineDeployment" + } + } } } } } }; -export const ResourceId: coreClient.CompositeMapper = { +export const DataCollector: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceId", + className: "DataCollector", modelProperties: { - id: { - serializedName: "id", + collections: { + serializedName: "collections", required: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "Collection" } } + } + }, + requestLogging: { + serializedName: "requestLogging", + type: { + name: "Composite", + className: "RequestLogging" + } + }, + rollingRate: { + serializedName: "rollingRate", type: { name: "String" } @@ -3752,126 +4535,167 @@ export const ResourceId: coreClient.CompositeMapper = { } }; -export const AKSSchema: coreClient.CompositeMapper = { +export const Collection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AKSSchema", + className: "Collection", modelProperties: { - properties: { - serializedName: "properties", + clientId: { + serializedName: "clientId", + nullable: true, type: { - name: "Composite", - className: "AKSSchemaProperties" + name: "String" + } + }, + dataCollectionMode: { + serializedName: "dataCollectionMode", + type: { + name: "String" + } + }, + dataId: { + serializedName: "dataId", + nullable: true, + type: { + name: "String" + } + }, + samplingRate: { + defaultValue: 1, + serializedName: "samplingRate", + type: { + name: "Number" } } } } }; -export const AKSSchemaProperties: coreClient.CompositeMapper = { +export const RequestLogging: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AKSSchemaProperties", + className: "RequestLogging", modelProperties: { - clusterFqdn: { - serializedName: "clusterFqdn", - nullable: true, - type: { - name: "String" - } - }, - systemServices: { - serializedName: "systemServices", - readOnly: true, + captureHeaders: { + serializedName: "captureHeaders", nullable: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SystemService" + name: "String" } } } - }, - agentCount: { - constraints: { - InclusiveMinimum: 0 - }, - serializedName: "agentCount", - nullable: true, + } + } + } +}; + +export const OnlineRequestSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineRequestSettings", + modelProperties: { + maxConcurrentRequestsPerInstance: { + defaultValue: 1, + serializedName: "maxConcurrentRequestsPerInstance", type: { name: "Number" } }, - agentVmSize: { - serializedName: "agentVmSize", - nullable: true, - type: { - name: "String" - } - }, - clusterPurpose: { - defaultValue: "FastProd", - serializedName: "clusterPurpose", + maxQueueWait: { + defaultValue: "PT0.5S", + serializedName: "maxQueueWait", type: { - name: "String" + name: "TimeSpan" } }, - sslConfiguration: { - serializedName: "sslConfiguration", + requestTimeout: { + defaultValue: "PT5S", + serializedName: "requestTimeout", type: { - name: "Composite", - className: "SslConfiguration" + name: "TimeSpan" } - }, - aksNetworkingConfiguration: { - serializedName: "aksNetworkingConfiguration", + } + } + } +}; + +export const OnlineScaleSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: { + serializedName: "scaleType", + clientName: "scaleType" + }, + modelProperties: { + scaleType: { + serializedName: "scaleType", + required: true, type: { - name: "Composite", - className: "AksNetworkingConfiguration" + name: "String" } - }, - loadBalancerType: { - defaultValue: "PublicIp", - serializedName: "loadBalancerType", + } + } + } +}; + +export const DeploymentLogsRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentLogsRequest", + modelProperties: { + containerType: { + serializedName: "containerType", type: { name: "String" } }, - loadBalancerSubnet: { - serializedName: "loadBalancerSubnet", + tail: { + serializedName: "tail", nullable: true, type: { - name: "String" + name: "Number" } } } } }; -export const SystemService: coreClient.CompositeMapper = { +export const DeploymentLogs: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemService", + className: "DeploymentLogs", modelProperties: { - systemServiceType: { - serializedName: "systemServiceType", - readOnly: true, + content: { + serializedName: "content", + nullable: true, type: { name: "String" } - }, - publicIpAddress: { - serializedName: "publicIpAddress", - readOnly: true, + } + } + } +}; + +export const RegenerateEndpointKeysRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegenerateEndpointKeysRequest", + modelProperties: { + keyType: { + serializedName: "keyType", + required: true, type: { name: "String" } }, - version: { - serializedName: "version", - readOnly: true, + keyValue: { + serializedName: "keyValue", + nullable: true, type: { name: "String" } @@ -3880,704 +4704,746 @@ export const SystemService: coreClient.CompositeMapper = { } }; -export const SslConfiguration: coreClient.CompositeMapper = { +export const EndpointAuthToken: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SslConfiguration", + className: "EndpointAuthToken", modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - cert: { - serializedName: "cert", + accessToken: { + serializedName: "accessToken", nullable: true, type: { name: "String" } }, - key: { - serializedName: "key", - nullable: true, + expiryTimeUtc: { + defaultValue: 0, + serializedName: "expiryTimeUtc", type: { - name: "String" + name: "Number" } }, - cname: { - serializedName: "cname", - nullable: true, + refreshAfterTimeUtc: { + defaultValue: 0, + serializedName: "refreshAfterTimeUtc", type: { - name: "String" + name: "Number" } }, - leafDomainLabel: { - serializedName: "leafDomainLabel", + tokenType: { + serializedName: "tokenType", nullable: true, type: { name: "String" } - }, - overwriteExistingDomain: { - serializedName: "overwriteExistingDomain", - type: { - name: "Boolean" - } } } } }; -export const AksNetworkingConfiguration: coreClient.CompositeMapper = { +export const ScheduleResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AksNetworkingConfiguration", + className: "ScheduleResourceArmPaginatedResult", modelProperties: { - subnetId: { - serializedName: "subnetId", + nextLink: { + serializedName: "nextLink", type: { 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", + value: { + serializedName: "value", 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" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Schedule" + } + } } } } } }; -export const KubernetesSchema: coreClient.CompositeMapper = { +export const ScheduleActionBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KubernetesSchema", + className: "ScheduleActionBase", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: { + serializedName: "actionType", + clientName: "actionType" + }, modelProperties: { - properties: { - serializedName: "properties", + actionType: { + serializedName: "actionType", + required: true, type: { - name: "Composite", - className: "KubernetesProperties" + name: "String" } } } } }; -export const KubernetesProperties: coreClient.CompositeMapper = { +export const ServerlessEndpointTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KubernetesProperties", + className: "ServerlessEndpointTrackedResourceArmPaginatedResult", modelProperties: { - relayConnectionString: { - serializedName: "relayConnectionString", - nullable: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - serviceBusConnectionString: { - serializedName: "serviceBusConnectionString", - nullable: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerlessEndpoint" + } + } } - }, - extensionPrincipalId: { - serializedName: "extensionPrincipalId", + } + } + } +}; + +export const ServerlessEndpointProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerlessEndpointProperties", + modelProperties: { + inferenceUri: { + serializedName: "inferenceUri", + readOnly: true, nullable: true, type: { name: "String" } }, - extensionInstanceReleaseTrain: { - serializedName: "extensionInstanceReleaseTrain", - type: { - name: "String" - } - }, - vcName: { - serializedName: "vcName", + modelProfile: { + serializedName: "modelProfile", type: { - name: "String" + name: "Composite", + className: "ModelProfile" } }, - namespace: { - defaultValue: "default", - serializedName: "namespace", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } - }, - defaultInstanceType: { - serializedName: "defaultInstanceType", + } + } + } +}; + +export const ModelProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelProfile", + modelProperties: { + modelUri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "modelUri", + required: true, type: { name: "String" } - }, - instanceTypes: { - serializedName: "instanceTypes", - type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "InstanceTypeSchema" } - } - } } } } }; -export const InstanceTypeSchema: coreClient.CompositeMapper = { +export const RegistryTrackedResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceTypeSchema", + className: "RegistryTrackedResourceArmPaginatedResult", modelProperties: { - nodeSelector: { - serializedName: "nodeSelector", - nullable: true, + nextLink: { + serializedName: "nextLink", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - resources: { - serializedName: "resources", + value: { + serializedName: "value", type: { - name: "Composite", - className: "InstanceTypeSchemaResources" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Registry" + } + } } } } } }; -export const InstanceTypeSchemaResources: coreClient.CompositeMapper = { +export const ArmResourceId: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstanceTypeSchemaResources", + className: "ArmResourceId", modelProperties: { - requests: { - serializedName: "requests", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - limits: { - serializedName: "limits", + resourceId: { + serializedName: "resourceId", + nullable: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const AmlComputeProperties: coreClient.CompositeMapper = { +export const RegistryPrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeProperties", + className: "RegistryPrivateEndpointConnection", modelProperties: { - osType: { - defaultValue: "Linux", - serializedName: "osType", + id: { + serializedName: "id", + nullable: true, type: { name: "String" } }, - vmSize: { - serializedName: "vmSize", + location: { + serializedName: "location", + nullable: true, type: { name: "String" } }, - vmPriority: { - serializedName: "vmPriority", + groupIds: { + serializedName: "properties.groupIds", + nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - virtualMachineImage: { - serializedName: "virtualMachineImage", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "VirtualMachineImage" - } - }, - isolatedNetwork: { - serializedName: "isolatedNetwork", - type: { - name: "Boolean" + className: "PrivateEndpointResource" } }, - scaleSettings: { - serializedName: "scaleSettings", + registryPrivateLinkServiceConnectionState: { + serializedName: "properties.registryPrivateLinkServiceConnectionState", type: { name: "Composite", - className: "ScaleSettings" + className: "RegistryPrivateLinkServiceConnectionState" } }, - userAccountCredentials: { - serializedName: "userAccountCredentials", + provisioningState: { + serializedName: "properties.provisioningState", + nullable: true, type: { - name: "Composite", - className: "UserAccountCredentials" + name: "String" } - }, - subnet: { - serializedName: "subnet", + } + } + } +}; + +export const PrivateEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { - name: "Composite", - className: "ResourceId" + name: "String" } - }, - remoteLoginPortPublicAccess: { - defaultValue: "NotSpecified", - serializedName: "remoteLoginPortPublicAccess", + } + } + } +}; + +export const RegistryPrivateLinkServiceConnectionState: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryPrivateLinkServiceConnectionState", + modelProperties: { + actionsRequired: { + serializedName: "actionsRequired", + nullable: true, type: { name: "String" } }, - allocationState: { - serializedName: "allocationState", - readOnly: true, + description: { + serializedName: "description", + nullable: true, type: { name: "String" } }, - allocationStateTransitionTime: { - serializedName: "allocationStateTransitionTime", - readOnly: true, + status: { + serializedName: "status", type: { - name: "DateTime" + name: "String" } - }, - errors: { - serializedName: "errors", - readOnly: true, + } + } + } +}; + +export const RegistryRegionArmDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryRegionArmDetails", + modelProperties: { + acrDetails: { + serializedName: "acrDetails", nullable: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorResponse" + className: "AcrDetails" } } } }, - currentNodeCount: { - serializedName: "currentNodeCount", - readOnly: true, + location: { + serializedName: "location", nullable: true, type: { - name: "Number" + name: "String" } }, - targetNodeCount: { - serializedName: "targetNodeCount", - readOnly: true, + storageAccountDetails: { + serializedName: "storageAccountDetails", nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageAccountDetails" + } + } } - }, - nodeStateCounts: { - serializedName: "nodeStateCounts", + } + } + } +}; + +export const AcrDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AcrDetails", + modelProperties: { + systemCreatedAcrAccount: { + serializedName: "systemCreatedAcrAccount", type: { name: "Composite", - className: "NodeStateCounts" + className: "SystemCreatedAcrAccount" } }, - enableNodePublicIp: { - defaultValue: true, - serializedName: "enableNodePublicIp", + userCreatedAcrAccount: { + serializedName: "userCreatedAcrAccount", + type: { + name: "Composite", + className: "UserCreatedAcrAccount" + } + } + } + } +}; + +export const SystemCreatedAcrAccount: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemCreatedAcrAccount", + modelProperties: { + acrAccountName: { + serializedName: "acrAccountName", nullable: true, type: { - name: "Boolean" + name: "String" } }, - propertyBag: { - serializedName: "propertyBag", + acrAccountSku: { + serializedName: "acrAccountSku", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" + } + }, + armResourceId: { + serializedName: "armResourceId", + type: { + name: "Composite", + className: "ArmResourceId" } } } } }; -export const VirtualMachineImage: coreClient.CompositeMapper = { +export const UserCreatedAcrAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineImage", + className: "UserCreatedAcrAccount", modelProperties: { - id: { - serializedName: "id", - required: true, + armResourceId: { + serializedName: "armResourceId", type: { - name: "String" + name: "Composite", + className: "ArmResourceId" } } } } }; -export const UserAccountCredentials: coreClient.CompositeMapper = { +export const StorageAccountDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserAccountCredentials", + className: "StorageAccountDetails", modelProperties: { - adminUserName: { - serializedName: "adminUserName", - required: true, - type: { - name: "String" - } - }, - adminUserSshPublicKey: { - serializedName: "adminUserSshPublicKey", + systemCreatedStorageAccount: { + serializedName: "systemCreatedStorageAccount", type: { - name: "String" + name: "Composite", + className: "SystemCreatedStorageAccount" } }, - adminUserPassword: { - serializedName: "adminUserPassword", + userCreatedStorageAccount: { + serializedName: "userCreatedStorageAccount", type: { - name: "String" + name: "Composite", + className: "UserCreatedStorageAccount" } } } } }; -export const NodeStateCounts: coreClient.CompositeMapper = { +export const SystemCreatedStorageAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NodeStateCounts", + className: "SystemCreatedStorageAccount", modelProperties: { - idleNodeCount: { - serializedName: "idleNodeCount", - readOnly: true, - type: { - name: "Number" - } - }, - runningNodeCount: { - serializedName: "runningNodeCount", - readOnly: true, + allowBlobPublicAccess: { + serializedName: "allowBlobPublicAccess", type: { - name: "Number" + name: "Boolean" } }, - preparingNodeCount: { - serializedName: "preparingNodeCount", - readOnly: true, + armResourceId: { + serializedName: "armResourceId", type: { - name: "Number" + name: "Composite", + className: "ArmResourceId" } }, - unusableNodeCount: { - serializedName: "unusableNodeCount", - readOnly: true, + storageAccountHnsEnabled: { + serializedName: "storageAccountHnsEnabled", type: { - name: "Number" + name: "Boolean" } }, - leavingNodeCount: { - serializedName: "leavingNodeCount", - readOnly: true, + storageAccountName: { + serializedName: "storageAccountName", + nullable: true, type: { - name: "Number" + name: "String" } }, - preemptedNodeCount: { - serializedName: "preemptedNodeCount", - readOnly: true, + storageAccountType: { + serializedName: "storageAccountType", + nullable: true, type: { - name: "Number" + name: "String" } } } } }; -export const AmlComputeSchema: coreClient.CompositeMapper = { +export const UserCreatedStorageAccount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlComputeSchema", + className: "UserCreatedStorageAccount", modelProperties: { - properties: { - serializedName: "properties", + armResourceId: { + serializedName: "armResourceId", type: { name: "Composite", - className: "AmlComputeProperties" + className: "ArmResourceId" } } } } }; -export const ComputeInstanceProperties: coreClient.CompositeMapper = { +export const PartialRegistryPartialTrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceProperties", + className: "PartialRegistryPartialTrackedResource", modelProperties: { - vmSize: { - serializedName: "vmSize", - type: { - name: "String" - } - }, - subnet: { - serializedName: "subnet", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "ResourceId" - } - }, - applicationSharingPolicy: { - defaultValue: "Shared", - serializedName: "applicationSharingPolicy", - type: { - name: "String" + className: "RegistryPartialManagedServiceIdentity" } }, - sshSettings: { - serializedName: "sshSettings", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "ComputeInstanceSshSettings" + className: "PartialSku" } }, - connectivityEndpoints: { - serializedName: "connectivityEndpoints", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "ComputeInstanceConnectivityEndpoints" + name: "Dictionary", + value: { type: { name: "String" } } } - }, - applications: { - serializedName: "applications", + } + } + } +}; + +export const ListAmlUserFeatureResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListAmlUserFeatureResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ComputeInstanceApplication" + className: "AmlUserFeature" } } } }, - createdBy: { - serializedName: "createdBy", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Composite", - className: "ComputeInstanceCreatedBy" + name: "String" + } + } + } + } +}; + +export const AmlUserFeature: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlUserFeature", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" } }, - errors: { - serializedName: "errors", - readOnly: true, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const AmlOperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlOperationListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorResponse" + className: "AmlOperation" } } } + } + } + } +}; + +export const AmlOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlOperation", + modelProperties: { + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } }, - state: { - serializedName: "state", - readOnly: true, + isDataAction: { + serializedName: "isDataAction", type: { - name: "String" + name: "Boolean" } }, - computeInstanceAuthorizationType: { - defaultValue: "personal", - serializedName: "computeInstanceAuthorizationType", - nullable: true, + name: { + serializedName: "name", type: { name: "String" } }, - personalComputeInstanceSettings: { - serializedName: "personalComputeInstanceSettings", + origin: { + serializedName: "origin", type: { - name: "Composite", - className: "PersonalComputeInstanceSettings" + name: "String" } - }, - setupScripts: { - serializedName: "setupScripts", - type: { - name: "Composite", - className: "SetupScripts" - } - }, - lastOperation: { - serializedName: "lastOperation", + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + description: { + serializedName: "description", type: { - name: "Composite", - className: "ComputeInstanceLastOperation" + name: "String" } }, - schedules: { - serializedName: "schedules", + operation: { + serializedName: "operation", type: { - name: "Composite", - className: "ComputeSchedules" + name: "String" } }, - enableNodePublicIp: { - serializedName: "enableNodePublicIp", + provider: { + serializedName: "provider", type: { - name: "Boolean" + name: "String" } }, - containers: { - serializedName: "containers", - readOnly: true, - nullable: true, + resource: { + serializedName: "resource", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeInstanceContainer" - } - } + name: "String" } - }, - dataDisks: { - serializedName: "dataDisks", - readOnly: true, - nullable: true, + } + } + } +}; + +export const WorkspaceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceListResult", + modelProperties: { + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeInstanceDataDisk" - } - } + name: "String" } }, - dataMounts: { - serializedName: "dataMounts", - readOnly: true, - nullable: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ComputeInstanceDataMount" + className: "Workspace" } } } - }, - versions: { - serializedName: "versions", - type: { - name: "Composite", - className: "ComputeInstanceVersion" - } } } } }; -export const ComputeInstanceSshSettings: coreClient.CompositeMapper = { +export const EncryptionProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceSshSettings", + className: "EncryptionProperty", modelProperties: { - sshPublicAccess: { - defaultValue: "Disabled", - serializedName: "sshPublicAccess", + cosmosDbResourceId: { + serializedName: "cosmosDbResourceId", type: { name: "String" } }, - adminUserName: { - serializedName: "adminUserName", - readOnly: true, + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "IdentityForCmk" } }, - sshPort: { - serializedName: "sshPort", - readOnly: true, + keyVaultProperties: { + serializedName: "keyVaultProperties", type: { - name: "Number" + name: "Composite", + className: "KeyVaultProperties" } }, - adminPublicKey: { - serializedName: "adminPublicKey", + searchAccountResourceId: { + serializedName: "searchAccountResourceId", type: { name: "String" } - } - } - } -}; - -export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeInstanceConnectivityEndpoints", - modelProperties: { - publicIpAddress: { - serializedName: "publicIpAddress", - readOnly: true, - nullable: true, + }, + status: { + serializedName: "status", + required: true, type: { name: "String" } }, - privateIpAddress: { - serializedName: "privateIpAddress", - readOnly: true, - nullable: true, + storageAccountResourceId: { + serializedName: "storageAccountResourceId", type: { name: "String" } @@ -4586,19 +5452,13 @@ export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = } }; -export const ComputeInstanceApplication: coreClient.CompositeMapper = { +export const IdentityForCmk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceApplication", + className: "IdentityForCmk", modelProperties: { - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - endpointUri: { - serializedName: "endpointUri", + userAssignedIdentity: { + serializedName: "userAssignedIdentity", type: { name: "String" } @@ -4607,30 +5467,35 @@ export const ComputeInstanceApplication: coreClient.CompositeMapper = { } }; -export const ComputeInstanceCreatedBy: coreClient.CompositeMapper = { +export const KeyVaultProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceCreatedBy", + className: "KeyVaultProperties", modelProperties: { - userName: { - serializedName: "userName", - readOnly: true, - nullable: true, + identityClientId: { + serializedName: "identityClientId", type: { name: "String" } }, - userOrgId: { - serializedName: "userOrgId", - readOnly: true, + keyIdentifier: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "keyIdentifier", + required: true, type: { name: "String" } }, - userId: { - serializedName: "userId", - readOnly: true, - nullable: true, + keyVaultArmId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "keyVaultArmId", + required: true, type: { name: "String" } @@ -4639,37 +5504,26 @@ export const ComputeInstanceCreatedBy: coreClient.CompositeMapper = { } }; -export const PersonalComputeInstanceSettings: coreClient.CompositeMapper = { +export const FeatureStoreSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PersonalComputeInstanceSettings", + className: "FeatureStoreSettings", modelProperties: { - assignedUser: { - serializedName: "assignedUser", + computeRuntime: { + serializedName: "computeRuntime", type: { name: "Composite", - className: "AssignedUser" + className: "ComputeRuntimeDto" } - } - } - } -}; - -export const AssignedUser: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AssignedUser", - modelProperties: { - objectId: { - serializedName: "objectId", - required: true, + }, + offlineStoreConnectionName: { + serializedName: "offlineStoreConnectionName", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", - required: true, + onlineStoreConnectionName: { + serializedName: "onlineStoreConnectionName", type: { name: "String" } @@ -4678,70 +5532,83 @@ export const AssignedUser: coreClient.CompositeMapper = { } }; -export const SetupScripts: coreClient.CompositeMapper = { +export const ComputeRuntimeDto: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SetupScripts", + className: "ComputeRuntimeDto", modelProperties: { - scripts: { - serializedName: "scripts", + sparkRuntimeVersion: { + serializedName: "sparkRuntimeVersion", type: { - name: "Composite", - className: "ScriptsToExecute" + name: "String" } } } } }; -export const ScriptsToExecute: coreClient.CompositeMapper = { +export const ManagedNetworkSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScriptsToExecute", + className: "ManagedNetworkSettings", modelProperties: { - startupScript: { - serializedName: "startupScript", + isolationMode: { + serializedName: "isolationMode", type: { - name: "Composite", - className: "ScriptReference" + name: "String" } }, - creationScript: { - serializedName: "creationScript", + networkId: { + serializedName: "networkId", + readOnly: true, + type: { + name: "String" + } + }, + outboundRules: { + serializedName: "outboundRules", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "OutboundRule" } } + } + }, + status: { + serializedName: "status", type: { name: "Composite", - className: "ScriptReference" + className: "ManagedNetworkProvisionStatus" } } } } }; -export const ScriptReference: coreClient.CompositeMapper = { +export const OutboundRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScriptReference", + className: "OutboundRule", + uberParent: "OutboundRule", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - scriptSource: { - serializedName: "scriptSource", - type: { - name: "String" - } - }, - scriptData: { - serializedName: "scriptData", + category: { + serializedName: "category", type: { name: "String" } }, - scriptArguments: { - serializedName: "scriptArguments", + status: { + serializedName: "status", type: { name: "String" } }, - timeout: { - serializedName: "timeout", + type: { + serializedName: "type", + required: true, type: { name: "String" } @@ -4750,31 +5617,53 @@ export const ScriptReference: coreClient.CompositeMapper = { } }; -export const ComputeInstanceLastOperation: coreClient.CompositeMapper = { +export const ManagedNetworkProvisionStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceLastOperation", + className: "ManagedNetworkProvisionStatus", modelProperties: { - operationName: { - serializedName: "operationName", + sparkReady: { + serializedName: "sparkReady", + type: { + name: "Boolean" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const NotebookResourceInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotebookResourceInfo", + modelProperties: { + fqdn: { + serializedName: "fqdn", type: { name: "String" } }, - operationTime: { - serializedName: "operationTime", + isPrivateLinkEnabled: { + serializedName: "isPrivateLinkEnabled", type: { - name: "DateTime" + name: "Boolean" } }, - operationStatus: { - serializedName: "operationStatus", + notebookPreparationError: { + serializedName: "notebookPreparationError", type: { - name: "String" + name: "Composite", + className: "NotebookPreparationError" } }, - operationTrigger: { - serializedName: "operationTrigger", + resourceId: { + serializedName: "resourceId", type: { name: "String" } @@ -4783,179 +5672,112 @@ export const ComputeInstanceLastOperation: coreClient.CompositeMapper = { } }; -export const ComputeSchedules: coreClient.CompositeMapper = { +export const NotebookPreparationError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeSchedules", + className: "NotebookPreparationError", modelProperties: { - computeStartStop: { - serializedName: "computeStartStop", + errorMessage: { + serializedName: "errorMessage", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeStartStopSchedule" - } - } + name: "String" + } + }, + statusCode: { + serializedName: "statusCode", + type: { + name: "Number" } } } } }; -export const ComputeStartStopSchedule: coreClient.CompositeMapper = { +export const WorkspacePrivateEndpointResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeStartStopSchedule", + className: "WorkspacePrivateEndpointResource", modelProperties: { id: { serializedName: "id", readOnly: true, - nullable: true, type: { name: "String" } }, - provisioningStatus: { - serializedName: "provisioningStatus", + subnetArmId: { + serializedName: "subnetArmId", readOnly: true, type: { name: "String" } - }, - status: { - serializedName: "status", + } + } + } +}; + +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + actionsRequired: { + serializedName: "actionsRequired", type: { name: "String" } }, - action: { - serializedName: "action", + description: { + serializedName: "description", type: { name: "String" } }, - triggerType: { - serializedName: "triggerType", + status: { + serializedName: "status", type: { name: "String" } - }, - recurrence: { - serializedName: "recurrence", - type: { - name: "Composite", - className: "RecurrenceTrigger" - } - }, - cron: { - serializedName: "cron", - type: { - name: "Composite", - className: "CronTrigger" - } - }, - schedule: { - serializedName: "schedule", - type: { - name: "Composite", - className: "ScheduleBase" - } } } } }; -export const RecurrenceSchedule: coreClient.CompositeMapper = { +export const ServiceManagedResourcesSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecurrenceSchedule", + className: "ServiceManagedResourcesSettings", modelProperties: { - hours: { - serializedName: "hours", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } - } - }, - minutes: { - serializedName: "minutes", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } - } - }, - monthDays: { - serializedName: "monthDays", - nullable: true, - type: { - name: "Sequence", - element: { - type: { - name: "Number" - } - } - } - }, - weekDays: { - serializedName: "weekDays", - nullable: true, + cosmosDb: { + serializedName: "cosmosDb", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "CosmosDbSettings" } } } } }; -export const ScheduleBase: coreClient.CompositeMapper = { +export const CosmosDbSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduleBase", + className: "CosmosDbSettings", modelProperties: { - id: { - serializedName: "id", - nullable: true, - type: { - name: "String" - } - }, - provisioningStatus: { - serializedName: "provisioningStatus", - type: { - name: "String" - } - }, - status: { - serializedName: "status", + collectionsThroughput: { + serializedName: "collectionsThroughput", type: { - name: "String" + name: "Number" } } } } }; -export const ComputeInstanceContainer: coreClient.CompositeMapper = { +export const SharedPrivateLinkResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceContainer", + className: "SharedPrivateLinkResource", modelProperties: { name: { serializedName: "name", @@ -4963,61 +5785,52 @@ export const ComputeInstanceContainer: coreClient.CompositeMapper = { name: "String" } }, - autosave: { - serializedName: "autosave", + groupId: { + serializedName: "properties.groupId", type: { name: "String" } }, - gpu: { - serializedName: "gpu", + privateLinkResourceId: { + serializedName: "properties.privateLinkResourceId", type: { name: "String" } }, - network: { - serializedName: "network", + requestMessage: { + serializedName: "properties.requestMessage", type: { name: "String" } }, - environment: { - serializedName: "environment", - type: { - name: "Composite", - className: "ComputeInstanceEnvironmentInfo" - } - }, - services: { - serializedName: "services", - readOnly: true, + status: { + serializedName: "properties.status", type: { - name: "Sequence", - element: { - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - } + name: "String" } } } } }; -export const ComputeInstanceEnvironmentInfo: coreClient.CompositeMapper = { +export const WorkspaceHubConfig: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceEnvironmentInfo", + className: "WorkspaceHubConfig", modelProperties: { - name: { - serializedName: "name", + additionalWorkspaceStorageAccounts: { + serializedName: "additionalWorkspaceStorageAccounts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - version: { - serializedName: "version", + defaultWorkspaceResourceGroup: { + serializedName: "defaultWorkspaceResourceGroup", type: { name: "String" } @@ -5026,481 +5839,571 @@ export const ComputeInstanceEnvironmentInfo: coreClient.CompositeMapper = { } }; -export const ComputeInstanceDataDisk: coreClient.CompositeMapper = { +export const WorkspaceUpdateParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceDataDisk", + className: "WorkspaceUpdateParameters", modelProperties: { - caching: { - serializedName: "caching", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "ManagedServiceIdentity" } }, - diskSizeGB: { - serializedName: "diskSizeGB", + sku: { + serializedName: "sku", type: { - name: "Number" + name: "Composite", + className: "Sku" } }, - lun: { - serializedName: "lun", + tags: { + serializedName: "tags", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } }, - storageAccountType: { - defaultValue: "Standard_LRS", - serializedName: "storageAccountType", + applicationInsights: { + serializedName: "properties.applicationInsights", type: { name: "String" } - } - } - } -}; - -export const ComputeInstanceDataMount: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeInstanceDataMount", - modelProperties: { - source: { - serializedName: "source", + }, + containerRegistry: { + serializedName: "properties.containerRegistry", type: { name: "String" } }, - sourceType: { - serializedName: "sourceType", + description: { + serializedName: "properties.description", type: { name: "String" } }, - mountName: { - serializedName: "mountName", + enableDataIsolation: { + serializedName: "properties.enableDataIsolation", type: { - name: "String" + name: "Boolean" } }, - mountAction: { - serializedName: "mountAction", + encryption: { + serializedName: "properties.encryption", type: { - name: "String" + name: "Composite", + className: "EncryptionUpdateProperties" } }, - createdBy: { - serializedName: "createdBy", + featureStoreSettings: { + serializedName: "properties.featureStoreSettings", type: { - name: "String" + name: "Composite", + className: "FeatureStoreSettings" } }, - mountPath: { - serializedName: "mountPath", + friendlyName: { + serializedName: "properties.friendlyName", type: { name: "String" } }, - mountState: { - serializedName: "mountState", + imageBuildCompute: { + serializedName: "properties.imageBuildCompute", type: { name: "String" } }, - mountedOn: { - serializedName: "mountedOn", + managedNetwork: { + serializedName: "properties.managedNetwork", type: { - name: "DateTime" + name: "Composite", + className: "ManagedNetworkSettings" } }, - error: { - serializedName: "error", + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", type: { name: "String" } - } - } - } -}; - -export const ComputeInstanceVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeInstanceVersion", - modelProperties: { - runtime: { - serializedName: "runtime", - nullable: true, + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } + }, + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings" + } + }, + softDeleteRetentionInDays: { + serializedName: "properties.softDeleteRetentionInDays", + type: { + name: "Number" + } + }, + v1LegacyMode: { + serializedName: "properties.v1LegacyMode", + type: { + name: "Boolean" + } } } } }; -export const ComputeInstanceSchema: coreClient.CompositeMapper = { +export const EncryptionUpdateProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstanceSchema", + className: "EncryptionUpdateProperties", modelProperties: { - properties: { - serializedName: "properties", + keyVaultProperties: { + serializedName: "keyVaultProperties", type: { name: "Composite", - className: "ComputeInstanceProperties" + className: "EncryptionKeyVaultUpdateProperties" } } } } }; -export const VirtualMachineSchema: coreClient.CompositeMapper = { +export const EncryptionKeyVaultUpdateProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSchema", + className: "EncryptionKeyVaultUpdateProperties", modelProperties: { - properties: { - serializedName: "properties", + keyIdentifier: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "keyIdentifier", + required: true, type: { - name: "Composite", - className: "VirtualMachineSchemaProperties" + name: "String" } } } } }; -export const VirtualMachineSchemaProperties: coreClient.CompositeMapper = { +export const WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSchemaProperties", + className: "WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult", modelProperties: { - virtualMachineSize: { - serializedName: "virtualMachineSize", - type: { - name: "String" - } - }, - sshPort: { - serializedName: "sshPort", - type: { - name: "Number" - } - }, - notebookServerPort: { - serializedName: "notebookServerPort", - type: { - name: "Number" - } - }, - address: { - serializedName: "address", + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - administratorAccount: { - serializedName: "administratorAccount", - type: { - name: "Composite", - className: "VirtualMachineSshCredentials" - } - }, - isNotebookInstanceCompute: { - serializedName: "isNotebookInstanceCompute", + value: { + serializedName: "value", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2BasicResource" + } + } } } } } }; -export const VirtualMachineSshCredentials: coreClient.CompositeMapper = { +export const WorkspaceConnectionPropertiesV2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSshCredentials", + className: "WorkspaceConnectionPropertiesV2", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: { + serializedName: "authType", + clientName: "authType" + }, modelProperties: { - username: { - serializedName: "username", + authType: { + serializedName: "authType", + required: true, type: { name: "String" } }, - password: { - serializedName: "password", + category: { + serializedName: "category", type: { name: "String" } }, - publicKeyData: { - serializedName: "publicKeyData", + expiryTime: { + serializedName: "expiryTime", type: { - name: "String" + name: "DateTime" } }, - privateKeyData: { - serializedName: "privateKeyData", - type: { - name: "String" - } - } - } - } -}; - -export const HDInsightProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HDInsightProperties", - modelProperties: { - sshPort: { - serializedName: "sshPort", + metadata: { + serializedName: "metadata", type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "any" } } } }, - address: { - serializedName: "address", + target: { + serializedName: "target", type: { name: "String" } - }, - administratorAccount: { - serializedName: "administratorAccount", - type: { - name: "Composite", - className: "VirtualMachineSshCredentials" - } } } } }; -export const HDInsightSchema: coreClient.CompositeMapper = { +export const WorkspaceConnectionUpdateParameter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HDInsightSchema", + className: "WorkspaceConnectionUpdateParameter", modelProperties: { properties: { serializedName: "properties", type: { name: "Composite", - className: "HDInsightProperties" - } - } - } - } -}; - -export const DatabricksProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DatabricksProperties", - modelProperties: { - databricksAccessToken: { - serializedName: "databricksAccessToken", - type: { - name: "String" - } - }, - workspaceUrl: { - serializedName: "workspaceUrl", - type: { - name: "String" + className: "WorkspaceConnectionPropertiesV2" } } } } }; -export const DatabricksSchema: coreClient.CompositeMapper = { +export const DiagnoseWorkspaceParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabricksSchema", + className: "DiagnoseWorkspaceParameters", modelProperties: { - properties: { - serializedName: "properties", + value: { + serializedName: "value", type: { name: "Composite", - className: "DatabricksProperties" + className: "DiagnoseRequestProperties" } } } } }; -export const DataLakeAnalyticsSchema: coreClient.CompositeMapper = { +export const DiagnoseRequestProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataLakeAnalyticsSchema", + className: "DiagnoseRequestProperties", modelProperties: { - properties: { - serializedName: "properties", + applicationInsights: { + serializedName: "applicationInsights", type: { - name: "Composite", - className: "DataLakeAnalyticsSchemaProperties" + name: "Dictionary", + value: { type: { name: "any" } } } - } + }, + containerRegistry: { + serializedName: "containerRegistry", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + dnsResolution: { + serializedName: "dnsResolution", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + keyVault: { + serializedName: "keyVault", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + nsg: { + serializedName: "nsg", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + others: { + serializedName: "others", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + resourceLock: { + serializedName: "resourceLock", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + storageAccount: { + serializedName: "storageAccount", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + udr: { + serializedName: "udr", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } } } }; -export const DataLakeAnalyticsSchemaProperties: coreClient.CompositeMapper = { +export const DiagnoseResponseResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataLakeAnalyticsSchemaProperties", + className: "DiagnoseResponseResult", modelProperties: { - dataLakeStoreAccountName: { - serializedName: "dataLakeStoreAccountName", + value: { + serializedName: "value", type: { - name: "String" + name: "Composite", + className: "DiagnoseResponseResultValue" } } } } }; -export const SynapseSparkProperties: coreClient.CompositeMapper = { +export const DiagnoseResponseResultValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SynapseSparkProperties", + className: "DiagnoseResponseResultValue", modelProperties: { - autoScaleProperties: { - serializedName: "autoScaleProperties", - type: { - name: "Composite", - className: "AutoScaleProperties" - } - }, - autoPauseProperties: { - serializedName: "autoPauseProperties", + userDefinedRouteResults: { + serializedName: "userDefinedRouteResults", type: { - name: "Composite", - className: "AutoPauseProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - sparkVersion: { - serializedName: "sparkVersion", + networkSecurityRuleResults: { + serializedName: "networkSecurityRuleResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - nodeCount: { - serializedName: "nodeCount", + resourceLockResults: { + serializedName: "resourceLockResults", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - nodeSize: { - serializedName: "nodeSize", + dnsResolutionResults: { + serializedName: "dnsResolutionResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - nodeSizeFamily: { - serializedName: "nodeSizeFamily", + storageAccountResults: { + serializedName: "storageAccountResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - subscriptionId: { - serializedName: "subscriptionId", + keyVaultResults: { + serializedName: "keyVaultResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - resourceGroup: { - serializedName: "resourceGroup", + containerRegistryResults: { + serializedName: "containerRegistryResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - workspaceName: { - serializedName: "workspaceName", + applicationInsightsResults: { + serializedName: "applicationInsightsResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } }, - poolName: { - serializedName: "poolName", + otherResults: { + serializedName: "otherResults", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnoseResult" + } + } } } } } }; -export const AutoScaleProperties: coreClient.CompositeMapper = { +export const DiagnoseResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoScaleProperties", + className: "DiagnoseResult", modelProperties: { - minNodeCount: { - serializedName: "minNodeCount", + code: { + serializedName: "code", + readOnly: true, type: { - name: "Number" + name: "String" } }, - enabled: { - serializedName: "enabled", + level: { + serializedName: "level", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - maxNodeCount: { - serializedName: "maxNodeCount", + message: { + serializedName: "message", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const AutoPauseProperties: coreClient.CompositeMapper = { +export const ListWorkspaceKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoPauseProperties", + className: "ListWorkspaceKeysResult", modelProperties: { - delayInMinutes: { - serializedName: "delayInMinutes", + appInsightsInstrumentationKey: { + serializedName: "appInsightsInstrumentationKey", + readOnly: true, type: { - name: "Number" + name: "String" } }, - enabled: { - serializedName: "enabled", + containerRegistryCredentials: { + serializedName: "containerRegistryCredentials", type: { - name: "Boolean" + name: "Composite", + className: "RegistryListCredentialsResult" + } + }, + notebookAccessKeys: { + serializedName: "notebookAccessKeys", + type: { + name: "Composite", + className: "ListNotebookKeysResult" + } + }, + userStorageArmId: { + serializedName: "userStorageArmId", + readOnly: true, + type: { + name: "String" + } + }, + userStorageKey: { + serializedName: "userStorageKey", + readOnly: true, + type: { + name: "String" } } } } }; -export const AksComputeSecretsProperties: coreClient.CompositeMapper = { +export const RegistryListCredentialsResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AksComputeSecretsProperties", + className: "RegistryListCredentialsResult", modelProperties: { - userKubeConfig: { - serializedName: "userKubeConfig", + location: { + serializedName: "location", + readOnly: true, type: { name: "String" } }, - adminKubeConfig: { - serializedName: "adminKubeConfig", + passwords: { + serializedName: "passwords", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Password" + } + } } }, - imagePullSecretName: { - serializedName: "imagePullSecretName", - nullable: true, + username: { + serializedName: "username", + readOnly: true, type: { name: "String" } @@ -5509,29 +6412,44 @@ export const AksComputeSecretsProperties: coreClient.CompositeMapper = { } }; -export const VirtualMachineSecretsSchema: coreClient.CompositeMapper = { +export const Password: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineSecretsSchema", + className: "Password", modelProperties: { - administratorAccount: { - serializedName: "administratorAccount", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: "VirtualMachineSshCredentials" + name: "String" + } + }, + value: { + serializedName: "value", + readOnly: true, + type: { + name: "String" } } } } }; -export const DatabricksComputeSecretsProperties: coreClient.CompositeMapper = { +export const ListNotebookKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatabricksComputeSecretsProperties", + className: "ListNotebookKeysResult", modelProperties: { - databricksAccessToken: { - serializedName: "databricksAccessToken", + primaryAccessKey: { + serializedName: "primaryAccessKey", + readOnly: true, + type: { + name: "String" + } + }, + secondaryAccessKey: { + serializedName: "secondaryAccessKey", + readOnly: true, type: { name: "String" } @@ -5540,19 +6458,63 @@ export const DatabricksComputeSecretsProperties: coreClient.CompositeMapper = { } }; -export const WorkspaceConnectionUsernamePassword: coreClient.CompositeMapper = { +export const NotebookAccessTokenResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionUsernamePassword", + className: "NotebookAccessTokenResult", modelProperties: { - username: { - serializedName: "username", + accessToken: { + serializedName: "accessToken", + readOnly: true, type: { name: "String" } }, - password: { - serializedName: "password", + expiresIn: { + serializedName: "expiresIn", + readOnly: true, + type: { + name: "Number" + } + }, + hostName: { + serializedName: "hostName", + readOnly: true, + type: { + name: "String" + } + }, + notebookResourceId: { + serializedName: "notebookResourceId", + readOnly: true, + type: { + name: "String" + } + }, + publicDns: { + serializedName: "publicDns", + readOnly: true, + type: { + name: "String" + } + }, + refreshToken: { + serializedName: "refreshToken", + readOnly: true, + type: { + name: "String" + } + }, + scope: { + serializedName: "scope", + readOnly: true, + type: { + name: "String" + } + }, + tokenType: { + serializedName: "tokenType", + readOnly: true, type: { name: "String" } @@ -5561,13 +6523,14 @@ export const WorkspaceConnectionUsernamePassword: coreClient.CompositeMapper = { } }; -export const WorkspaceConnectionPersonalAccessToken: coreClient.CompositeMapper = { +export const ListStorageAccountKeysResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionPersonalAccessToken", + className: "ListStorageAccountKeysResult", modelProperties: { - pat: { - serializedName: "pat", + userStorageKey: { + serializedName: "userStorageKey", + readOnly: true, type: { name: "String" } @@ -5576,240 +6539,203 @@ export const WorkspaceConnectionPersonalAccessToken: coreClient.CompositeMapper } }; -export const WorkspaceConnectionSharedAccessSignature: coreClient.CompositeMapper = { +export const ExternalFqdnResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionSharedAccessSignature", + className: "ExternalFqdnResponse", modelProperties: { - sas: { - serializedName: "sas", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpointsPropertyBag" + } + } } } } } }; -export const WorkspaceConnectionManagedIdentity: coreClient.CompositeMapper = { +export const FqdnEndpointsPropertyBag: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionManagedIdentity", + className: "FqdnEndpointsPropertyBag", modelProperties: { - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "FqdnEndpoints" } } } } }; -export const AssetJobInput: coreClient.CompositeMapper = { +export const FqdnEndpoints: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetJobInput", + className: "FqdnEndpoints", modelProperties: { - mode: { - serializedName: "mode", + category: { + serializedName: "category", type: { name: "String" } }, - uri: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "uri", - required: true, + endpoints: { + serializedName: "endpoints", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpoint" + } + } } } } } }; -export const AssetJobOutput: coreClient.CompositeMapper = { +export const FqdnEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetJobOutput", + className: "FqdnEndpoint", modelProperties: { - mode: { - serializedName: "mode", + domainName: { + serializedName: "domainName", type: { name: "String" } }, - uri: { - serializedName: "uri", - nullable: true, + endpointDetails: { + serializedName: "endpointDetails", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FqdnEndpointDetail" + } + } } } } } }; -export const ForecastHorizon: coreClient.CompositeMapper = { +export const FqdnEndpointDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ForecastHorizon", - uberParent: "ForecastHorizon", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "FqdnEndpointDetail", modelProperties: { - mode: { - serializedName: "mode", - required: true, + port: { + serializedName: "port", type: { - name: "String" + name: "Number" } } } } }; -export const JobOutput: coreClient.CompositeMapper = { +export const OutboundRuleListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobOutput", - uberParent: "JobOutput", - polymorphicDiscriminator: { - serializedName: "jobOutputType", - clientName: "jobOutputType" - }, + className: "OutboundRuleListResult", modelProperties: { - description: { - serializedName: "description", - nullable: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } }, - jobOutputType: { - serializedName: "jobOutputType", - required: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundRuleBasicResource" + } + } } } } } }; -export const AutoMLVertical: coreClient.CompositeMapper = { +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoMLVertical", - uberParent: "AutoMLVertical", - polymorphicDiscriminator: { - serializedName: "taskType", - clientName: "taskType" - }, + className: "PrivateEndpointConnectionListResult", modelProperties: { - logVerbosity: { - serializedName: "logVerbosity", + value: { + serializedName: "value", type: { - name: "String" - } - }, - targetColumnName: { - serializedName: "targetColumnName", - nullable: true, - type: { - name: "String" - } - }, - taskType: { - serializedName: "taskType", - required: true, - type: { - name: "String" - } - }, - trainingData: { - serializedName: "trainingData", - type: { - name: "Composite", - className: "MLTableJobInput" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } } } } }; -export const JobInput: coreClient.CompositeMapper = { +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobInput", - uberParent: "JobInput", - polymorphicDiscriminator: { - serializedName: "jobInputType", - clientName: "jobInputType" - }, + className: "PrivateLinkResourceListResult", modelProperties: { - description: { - serializedName: "description", - nullable: true, - type: { - name: "String" - } - }, - jobInputType: { - serializedName: "jobInputType", - required: true, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } } } } } }; -export const NCrossValidations: coreClient.CompositeMapper = { +export const ManagedNetworkProvisionOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NCrossValidations", - uberParent: "NCrossValidations", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "ManagedNetworkProvisionOptions", modelProperties: { - mode: { - serializedName: "mode", - required: true, + includeSpark: { + serializedName: "includeSpark", type: { - name: "String" + name: "Boolean" } } } } }; -export const Seasonality: coreClient.CompositeMapper = { +export const ResourceId: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Seasonality", - uberParent: "Seasonality", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "ResourceId", modelProperties: { - mode: { - serializedName: "mode", + id: { + serializedName: "id", required: true, type: { name: "String" @@ -5819,75 +6745,96 @@ export const Seasonality: coreClient.CompositeMapper = { } }; -export const TargetLags: coreClient.CompositeMapper = { +export const AKSSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TargetLags", - uberParent: "TargetLags", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "AKSSchema", modelProperties: { - mode: { - serializedName: "mode", - required: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "AKSSchemaProperties" } } } } }; -export const TargetRollingWindowSize: coreClient.CompositeMapper = { +export const AKSSchemaProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TargetRollingWindowSize", - uberParent: "TargetRollingWindowSize", - polymorphicDiscriminator: { - serializedName: "mode", - clientName: "mode" - }, + className: "AKSSchemaProperties", modelProperties: { - mode: { - serializedName: "mode", - required: true, + clusterFqdn: { + serializedName: "clusterFqdn", + nullable: true, type: { name: "String" } - } - } - } -}; - -export const EarlyTerminationPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EarlyTerminationPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: { - serializedName: "policyType", - clientName: "policyType" - }, - modelProperties: { - delayEvaluation: { - defaultValue: 0, - serializedName: "delayEvaluation", + }, + systemServices: { + serializedName: "systemServices", + readOnly: true, + nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SystemService" + } + } } }, - evaluationInterval: { - defaultValue: 0, - serializedName: "evaluationInterval", + agentCount: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "agentCount", + nullable: true, type: { name: "Number" } }, - policyType: { - serializedName: "policyType", - required: true, + agentVmSize: { + serializedName: "agentVmSize", + nullable: true, + type: { + name: "String" + } + }, + clusterPurpose: { + defaultValue: "FastProd", + serializedName: "clusterPurpose", + type: { + name: "String" + } + }, + sslConfiguration: { + serializedName: "sslConfiguration", + type: { + name: "Composite", + className: "SslConfiguration" + } + }, + aksNetworkingConfiguration: { + serializedName: "aksNetworkingConfiguration", + type: { + name: "Composite", + className: "AksNetworkingConfiguration" + } + }, + loadBalancerType: { + defaultValue: "PublicIp", + serializedName: "loadBalancerType", + type: { + name: "String" + } + }, + loadBalancerSubnet: { + serializedName: "loadBalancerSubnet", + nullable: true, type: { name: "String" } @@ -5896,19 +6843,28 @@ export const EarlyTerminationPolicy: coreClient.CompositeMapper = { } }; -export const SamplingAlgorithm: coreClient.CompositeMapper = { +export const SystemService: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: { - serializedName: "samplingAlgorithmType", - clientName: "samplingAlgorithmType" - }, + className: "SystemService", modelProperties: { - samplingAlgorithmType: { - serializedName: "samplingAlgorithmType", - required: true, + systemServiceType: { + serializedName: "systemServiceType", + readOnly: true, + type: { + name: "String" + } + }, + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, + type: { + name: "String" + } + }, + version: { + serializedName: "version", + readOnly: true, type: { name: "String" } @@ -5917,86 +6873,95 @@ export const SamplingAlgorithm: coreClient.CompositeMapper = { } }; -export const TrainingSettings: coreClient.CompositeMapper = { +export const SslConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrainingSettings", + className: "SslConfiguration", modelProperties: { - enableDnnTraining: { - defaultValue: false, - serializedName: "enableDnnTraining", + status: { + serializedName: "status", type: { - name: "Boolean" + name: "String" } }, - enableModelExplainability: { - defaultValue: true, - serializedName: "enableModelExplainability", + cert: { + serializedName: "cert", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - enableOnnxCompatibleModels: { - defaultValue: false, - serializedName: "enableOnnxCompatibleModels", + key: { + serializedName: "key", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - enableStackEnsemble: { - defaultValue: true, - serializedName: "enableStackEnsemble", + cname: { + serializedName: "cname", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - enableVoteEnsemble: { - defaultValue: true, - serializedName: "enableVoteEnsemble", - type: { - name: "Boolean" - } - }, - ensembleModelDownloadTimeout: { - defaultValue: "PT5M", - serializedName: "ensembleModelDownloadTimeout", + leafDomainLabel: { + serializedName: "leafDomainLabel", + nullable: true, type: { - name: "TimeSpan" + name: "String" } }, - stackEnsembleSettings: { - serializedName: "stackEnsembleSettings", + overwriteExistingDomain: { + serializedName: "overwriteExistingDomain", type: { - name: "Composite", - className: "StackEnsembleSettings" + name: "Boolean" } } } } }; -export const StackEnsembleSettings: coreClient.CompositeMapper = { +export const AksNetworkingConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StackEnsembleSettings", + className: "AksNetworkingConfiguration", modelProperties: { - stackMetaLearnerKWargs: { - serializedName: "stackMetaLearnerKWargs", - nullable: true, + subnetId: { + serializedName: "subnetId", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - stackMetaLearnerTrainPercentage: { - defaultValue: 0.2, - serializedName: "stackMetaLearnerTrainPercentage", + 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: "Number" + name: "String" } }, - stackMetaLearnerType: { - serializedName: "stackMetaLearnerType", + 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" } @@ -6005,280 +6970,305 @@ export const StackEnsembleSettings: coreClient.CompositeMapper = { } }; -export const TableVertical: coreClient.CompositeMapper = { +export const KubernetesSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TableVertical", + className: "KubernetesSchema", modelProperties: { - cvSplitColumnNames: { - serializedName: "cvSplitColumnNames", - nullable: true, + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "KubernetesProperties" } - }, - featurizationSettings: { - serializedName: "featurizationSettings", + } + } + } +}; + +export const KubernetesProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KubernetesProperties", + modelProperties: { + relayConnectionString: { + serializedName: "relayConnectionString", + nullable: true, type: { - name: "Composite", - className: "TableVerticalFeaturizationSettings" + name: "String" } }, - limitSettings: { - serializedName: "limitSettings", + serviceBusConnectionString: { + serializedName: "serviceBusConnectionString", + nullable: true, type: { - name: "Composite", - className: "TableVerticalLimitSettings" + name: "String" } }, - nCrossValidations: { - serializedName: "nCrossValidations", + extensionPrincipalId: { + serializedName: "extensionPrincipalId", + nullable: true, type: { - name: "Composite", - className: "NCrossValidations" + name: "String" } }, - testData: { - serializedName: "testData", + extensionInstanceReleaseTrain: { + serializedName: "extensionInstanceReleaseTrain", type: { - name: "Composite", - className: "MLTableJobInput" + name: "String" } }, - testDataSize: { - serializedName: "testDataSize", - nullable: true, + vcName: { + serializedName: "vcName", type: { - name: "Number" + name: "String" } }, - validationData: { - serializedName: "validationData", + namespace: { + defaultValue: "default", + serializedName: "namespace", type: { - name: "Composite", - className: "MLTableJobInput" + name: "String" } }, - validationDataSize: { - serializedName: "validationDataSize", - nullable: true, + defaultInstanceType: { + serializedName: "defaultInstanceType", type: { - name: "Number" + name: "String" } }, - weightColumnName: { - serializedName: "weightColumnName", - nullable: true, + instanceTypes: { + serializedName: "instanceTypes", type: { - name: "String" + name: "Dictionary", + value: { + type: { name: "Composite", className: "InstanceTypeSchema" } + } } } } } }; -export const ColumnTransformer: coreClient.CompositeMapper = { +export const InstanceTypeSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ColumnTransformer", + className: "InstanceTypeSchema", modelProperties: { - fields: { - serializedName: "fields", + nodeSelector: { + serializedName: "nodeSelector", nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Dictionary", + value: { type: { name: "String" } } } }, - parameters: { - serializedName: "parameters", - nullable: true, + resources: { + serializedName: "resources", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "InstanceTypeSchemaResources" } } } } }; -export const FeaturizationSettings: coreClient.CompositeMapper = { +export const InstanceTypeSchemaResources: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FeaturizationSettings", + className: "InstanceTypeSchemaResources", modelProperties: { - datasetLanguage: { - serializedName: "datasetLanguage", - nullable: true, + requests: { + serializedName: "requests", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + limits: { + serializedName: "limits", + type: { + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const TableVerticalLimitSettings: coreClient.CompositeMapper = { +export const AmlComputeProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TableVerticalLimitSettings", + className: "AmlComputeProperties", modelProperties: { - enableEarlyTermination: { - defaultValue: true, - serializedName: "enableEarlyTermination", + osType: { + defaultValue: "Linux", + serializedName: "osType", type: { - name: "Boolean" + name: "String" } }, - exitScore: { - serializedName: "exitScore", - nullable: true, + vmSize: { + serializedName: "vmSize", type: { - name: "Number" + name: "String" } }, - maxConcurrentTrials: { - defaultValue: 1, - serializedName: "maxConcurrentTrials", + vmPriority: { + serializedName: "vmPriority", type: { - name: "Number" + name: "String" } }, - maxCoresPerTrial: { - defaultValue: -1, - serializedName: "maxCoresPerTrial", + virtualMachineImage: { + serializedName: "virtualMachineImage", type: { - name: "Number" + name: "Composite", + className: "VirtualMachineImage" } }, - maxTrials: { - defaultValue: 1000, - serializedName: "maxTrials", + isolatedNetwork: { + serializedName: "isolatedNetwork", type: { - name: "Number" + name: "Boolean" } }, - timeout: { - defaultValue: "PT6H", - serializedName: "timeout", + scaleSettings: { + serializedName: "scaleSettings", type: { - name: "TimeSpan" + name: "Composite", + className: "ScaleSettings" } }, - trialTimeout: { - defaultValue: "PT30M", - serializedName: "trialTimeout", + userAccountCredentials: { + serializedName: "userAccountCredentials", type: { - name: "TimeSpan" + name: "Composite", + className: "UserAccountCredentials" } - } - } - } -}; - -export const DistributionConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DistributionConfiguration", - uberParent: "DistributionConfiguration", - polymorphicDiscriminator: { - serializedName: "distributionType", - clientName: "distributionType" - }, - modelProperties: { - distributionType: { - serializedName: "distributionType", - required: true, + }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "ResourceId" + } + }, + remoteLoginPortPublicAccess: { + defaultValue: "NotSpecified", + serializedName: "remoteLoginPortPublicAccess", type: { name: "String" } - } - } - } -}; - -export const JobLimits: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JobLimits", - uberParent: "JobLimits", - polymorphicDiscriminator: { - serializedName: "jobLimitsType", - clientName: "jobLimitsType" - }, - modelProperties: { - jobLimitsType: { - serializedName: "jobLimitsType", - required: true, + }, + allocationState: { + serializedName: "allocationState", + readOnly: true, type: { name: "String" } }, - timeout: { - serializedName: "timeout", + allocationStateTransitionTime: { + serializedName: "allocationStateTransitionTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + errors: { + serializedName: "errors", + readOnly: true, nullable: true, type: { - name: "TimeSpan" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorResponse" + } + } + } + }, + currentNodeCount: { + serializedName: "currentNodeCount", + readOnly: true, + nullable: true, + type: { + name: "Number" + } + }, + targetNodeCount: { + serializedName: "targetNodeCount", + readOnly: true, + nullable: true, + type: { + name: "Number" + } + }, + nodeStateCounts: { + serializedName: "nodeStateCounts", + type: { + name: "Composite", + className: "NodeStateCounts" + } + }, + enableNodePublicIp: { + defaultValue: true, + serializedName: "enableNodePublicIp", + nullable: true, + type: { + name: "Boolean" + } + }, + propertyBag: { + serializedName: "propertyBag", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const ContainerResourceRequirements: coreClient.CompositeMapper = { +export const VirtualMachineImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerResourceRequirements", + className: "VirtualMachineImage", modelProperties: { - containerResourceLimits: { - serializedName: "containerResourceLimits", - type: { - name: "Composite", - className: "ContainerResourceSettings" - } - }, - containerResourceRequests: { - serializedName: "containerResourceRequests", + id: { + serializedName: "id", + required: true, type: { - name: "Composite", - className: "ContainerResourceSettings" + name: "String" } } } } }; -export const ContainerResourceSettings: coreClient.CompositeMapper = { +export const UserAccountCredentials: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ContainerResourceSettings", + className: "UserAccountCredentials", modelProperties: { - cpu: { - serializedName: "cpu", - nullable: true, + adminUserName: { + serializedName: "adminUserName", + required: true, type: { name: "String" } }, - gpu: { - serializedName: "gpu", - nullable: true, + adminUserSshPublicKey: { + serializedName: "adminUserSshPublicKey", type: { name: "String" } }, - memory: { - serializedName: "memory", - nullable: true, + adminUserPassword: { + serializedName: "adminUserPassword", type: { name: "String" } @@ -6287,625 +7277,813 @@ export const ContainerResourceSettings: coreClient.CompositeMapper = { } }; -export const ForecastingSettings: coreClient.CompositeMapper = { +export const NodeStateCounts: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ForecastingSettings", + className: "NodeStateCounts", modelProperties: { - countryOrRegionForHolidays: { - serializedName: "countryOrRegionForHolidays", - nullable: true, + idleNodeCount: { + serializedName: "idleNodeCount", + readOnly: true, type: { - name: "String" + name: "Number" } }, - cvStepSize: { - serializedName: "cvStepSize", - nullable: true, + runningNodeCount: { + serializedName: "runningNodeCount", + readOnly: true, type: { name: "Number" } }, - featureLags: { - serializedName: "featureLags", + preparingNodeCount: { + serializedName: "preparingNodeCount", + readOnly: true, type: { - name: "String" + name: "Number" } }, - forecastHorizon: { - serializedName: "forecastHorizon", + unusableNodeCount: { + serializedName: "unusableNodeCount", + readOnly: true, type: { - name: "Composite", - className: "ForecastHorizon" + name: "Number" } }, - frequency: { - serializedName: "frequency", - nullable: true, + leavingNodeCount: { + serializedName: "leavingNodeCount", + readOnly: true, type: { - name: "String" + name: "Number" } }, - seasonality: { - serializedName: "seasonality", + preemptedNodeCount: { + serializedName: "preemptedNodeCount", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const AmlComputeSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AmlComputeSchema", + modelProperties: { + properties: { + serializedName: "properties", type: { name: "Composite", - className: "Seasonality" + className: "AmlComputeProperties" } - }, - shortSeriesHandlingConfig: { - serializedName: "shortSeriesHandlingConfig", + } + } + } +}; + +export const ComputeInstanceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceProperties", + modelProperties: { + vmSize: { + serializedName: "vmSize", type: { name: "String" } }, - targetAggregateFunction: { - serializedName: "targetAggregateFunction", + subnet: { + serializedName: "subnet", type: { - name: "String" + name: "Composite", + className: "ResourceId" } }, - targetLags: { - serializedName: "targetLags", + applicationSharingPolicy: { + defaultValue: "Shared", + serializedName: "applicationSharingPolicy", type: { - name: "Composite", - className: "TargetLags" + name: "String" } }, - targetRollingWindowSize: { - serializedName: "targetRollingWindowSize", + autologgerSettings: { + serializedName: "autologgerSettings", type: { name: "Composite", - className: "TargetRollingWindowSize" + className: "ComputeInstanceAutologgerSettings" } }, - timeColumnName: { - serializedName: "timeColumnName", - nullable: true, + sshSettings: { + serializedName: "sshSettings", type: { - name: "String" + name: "Composite", + className: "ComputeInstanceSshSettings" } }, - timeSeriesIdColumnNames: { - serializedName: "timeSeriesIdColumnNames", + customServices: { + serializedName: "customServices", nullable: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "CustomService" } } } }, - useStl: { - serializedName: "useStl", + osImageMetadata: { + serializedName: "osImageMetadata", + type: { + name: "Composite", + className: "ImageMetadata" + } + }, + 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" } - } - } - } -}; - -export const ImageModelSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageModelSettings", - modelProperties: { - advancedSettings: { - serializedName: "advancedSettings", + }, + computeInstanceAuthorizationType: { + defaultValue: "personal", + serializedName: "computeInstanceAuthorizationType", nullable: true, type: { name: "String" } }, - amsGradient: { - serializedName: "amsGradient", + enableOSPatching: { + defaultValue: false, + serializedName: "enableOSPatching", nullable: true, type: { name: "Boolean" } }, - augmentations: { - serializedName: "augmentations", + releaseQuotaOnStop: { + defaultValue: false, + serializedName: "releaseQuotaOnStop", nullable: true, type: { - name: "String" + name: "Boolean" } }, - beta1: { - serializedName: "beta1", - nullable: true, + personalComputeInstanceSettings: { + serializedName: "personalComputeInstanceSettings", type: { - name: "Number" + name: "Composite", + className: "PersonalComputeInstanceSettings" } }, - beta2: { - serializedName: "beta2", - nullable: true, + setupScripts: { + serializedName: "setupScripts", type: { - name: "Number" + name: "Composite", + className: "SetupScripts" } }, - checkpointFrequency: { - serializedName: "checkpointFrequency", - nullable: true, + lastOperation: { + serializedName: "lastOperation", type: { - name: "Number" + name: "Composite", + className: "ComputeInstanceLastOperation" } }, - checkpointModel: { - serializedName: "checkpointModel", + schedules: { + serializedName: "schedules", type: { name: "Composite", - className: "MLFlowModelJobInput" + className: "ComputeSchedules" } }, - checkpointRunId: { - serializedName: "checkpointRunId", - nullable: true, + idleTimeBeforeShutdown: { + serializedName: "idleTimeBeforeShutdown", type: { name: "String" } }, - distributed: { - serializedName: "distributed", + enableNodePublicIp: { + defaultValue: true, + serializedName: "enableNodePublicIp", nullable: true, type: { name: "Boolean" } }, - earlyStopping: { - serializedName: "earlyStopping", + containers: { + serializedName: "containers", + readOnly: true, nullable: true, type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceContainer" + } + } } }, - earlyStoppingDelay: { - serializedName: "earlyStoppingDelay", + dataDisks: { + serializedName: "dataDisks", + readOnly: true, nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceDataDisk" + } + } } }, - earlyStoppingPatience: { - serializedName: "earlyStoppingPatience", + dataMounts: { + serializedName: "dataMounts", + readOnly: true, nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeInstanceDataMount" + } + } } }, - enableOnnxNormalization: { - serializedName: "enableOnnxNormalization", - nullable: true, + versions: { + serializedName: "versions", type: { - name: "Boolean" + name: "Composite", + className: "ComputeInstanceVersion" } - }, - evaluationFrequency: { - serializedName: "evaluationFrequency", - nullable: true, + } + } + } +}; + +export const ComputeInstanceAutologgerSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceAutologgerSettings", + modelProperties: { + mlflowAutologger: { + serializedName: "mlflowAutologger", type: { - name: "Number" + name: "String" } - }, - gradientAccumulationStep: { - serializedName: "gradientAccumulationStep", - nullable: true, + } + } + } +}; + +export const ComputeInstanceSshSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceSshSettings", + modelProperties: { + sshPublicAccess: { + defaultValue: "Disabled", + serializedName: "sshPublicAccess", type: { - name: "Number" + name: "String" } }, - layersToFreeze: { - serializedName: "layersToFreeze", - nullable: true, + adminUserName: { + serializedName: "adminUserName", + readOnly: true, type: { - name: "Number" + name: "String" } }, - learningRate: { - serializedName: "learningRate", - nullable: true, + sshPort: { + serializedName: "sshPort", + readOnly: true, type: { name: "Number" } }, - learningRateScheduler: { - serializedName: "learningRateScheduler", + adminPublicKey: { + serializedName: "adminPublicKey", type: { name: "String" } - }, - modelName: { - serializedName: "modelName", - nullable: true, + } + } + } +}; + +export const ImageMetadata: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageMetadata", + modelProperties: { + currentImageVersion: { + serializedName: "currentImageVersion", type: { name: "String" } }, - momentum: { - serializedName: "momentum", - nullable: true, + latestImageVersion: { + serializedName: "latestImageVersion", type: { - name: "Number" + name: "String" } }, - nesterov: { - serializedName: "nesterov", - nullable: true, + isLatestOsImageVersion: { + serializedName: "isLatestOsImageVersion", type: { name: "Boolean" } }, - numberOfEpochs: { - serializedName: "numberOfEpochs", - nullable: true, + osPatchingStatus: { + serializedName: "osPatchingStatus", type: { - name: "Number" + name: "Composite", + className: "OsPatchingStatus" } - }, - numberOfWorkers: { - serializedName: "numberOfWorkers", - nullable: true, + } + } + } +}; + +export const OsPatchingStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OsPatchingStatus", + modelProperties: { + patchStatus: { + serializedName: "patchStatus", type: { - name: "Number" + name: "String" } }, - optimizer: { - serializedName: "optimizer", + latestPatchTime: { + serializedName: "latestPatchTime", type: { name: "String" } }, - randomSeed: { - serializedName: "randomSeed", - nullable: true, + rebootPending: { + serializedName: "rebootPending", type: { - name: "Number" + name: "Boolean" } }, - stepLRGamma: { - serializedName: "stepLRGamma", - nullable: true, + scheduledRebootTime: { + serializedName: "scheduledRebootTime", type: { - name: "Number" - } - }, - stepLRStepSize: { - serializedName: "stepLRStepSize", - nullable: true, - type: { - name: "Number" - } - }, - trainingBatchSize: { - serializedName: "trainingBatchSize", - nullable: true, - type: { - name: "Number" - } - }, - validationBatchSize: { - serializedName: "validationBatchSize", - nullable: true, - type: { - name: "Number" - } - }, - warmupCosineLRCycles: { - serializedName: "warmupCosineLRCycles", - nullable: true, - type: { - name: "Number" - } - }, - warmupCosineLRWarmupEpochs: { - serializedName: "warmupCosineLRWarmupEpochs", - nullable: true, - type: { - name: "Number" - } - }, - weightDecay: { - serializedName: "weightDecay", - nullable: true, - type: { - name: "Number" + name: "String" } } } } }; -export const ImageModelDistributionSettings: coreClient.CompositeMapper = { +export const ComputeInstanceConnectivityEndpoints: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelDistributionSettings", + className: "ComputeInstanceConnectivityEndpoints", modelProperties: { - amsGradient: { - serializedName: "amsGradient", + publicIpAddress: { + serializedName: "publicIpAddress", + readOnly: true, nullable: true, type: { name: "String" } }, - augmentations: { - serializedName: "augmentations", + privateIpAddress: { + serializedName: "privateIpAddress", + readOnly: true, nullable: true, type: { name: "String" } - }, - beta1: { - serializedName: "beta1", - nullable: true, + } + } + } +}; + +export const ComputeInstanceApplication: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceApplication", + modelProperties: { + displayName: { + serializedName: "displayName", type: { name: "String" } }, - beta2: { - serializedName: "beta2", - nullable: true, + endpointUri: { + serializedName: "endpointUri", type: { name: "String" } - }, - distributed: { - serializedName: "distributed", + } + } + } +}; + +export const ComputeInstanceCreatedBy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceCreatedBy", + modelProperties: { + userName: { + serializedName: "userName", + readOnly: true, nullable: true, type: { name: "String" } }, - earlyStopping: { - serializedName: "earlyStopping", - nullable: true, + userOrgId: { + serializedName: "userOrgId", + readOnly: true, type: { name: "String" } }, - earlyStoppingDelay: { - serializedName: "earlyStoppingDelay", + userId: { + serializedName: "userId", + readOnly: true, nullable: true, type: { name: "String" } - }, - earlyStoppingPatience: { - serializedName: "earlyStoppingPatience", - nullable: true, + } + } + } +}; + +export const PersonalComputeInstanceSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PersonalComputeInstanceSettings", + modelProperties: { + assignedUser: { + serializedName: "assignedUser", type: { - name: "String" + name: "Composite", + className: "AssignedUser" } - }, - enableOnnxNormalization: { - serializedName: "enableOnnxNormalization", - nullable: true, + } + } + } +}; + +export const AssignedUser: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssignedUser", + modelProperties: { + objectId: { + serializedName: "objectId", + required: true, type: { name: "String" } }, - evaluationFrequency: { - serializedName: "evaluationFrequency", - nullable: true, + tenantId: { + serializedName: "tenantId", + required: true, type: { name: "String" } - }, - gradientAccumulationStep: { - serializedName: "gradientAccumulationStep", - nullable: true, + } + } + } +}; + +export const SetupScripts: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SetupScripts", + modelProperties: { + scripts: { + serializedName: "scripts", type: { - name: "String" + name: "Composite", + className: "ScriptsToExecute" } - }, - layersToFreeze: { - serializedName: "layersToFreeze", - nullable: true, + } + } + } +}; + +export const ScriptsToExecute: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScriptsToExecute", + modelProperties: { + startupScript: { + serializedName: "startupScript", type: { - name: "String" + name: "Composite", + className: "ScriptReference" } }, - learningRate: { - serializedName: "learningRate", - nullable: true, + 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" } }, - learningRateScheduler: { - serializedName: "learningRateScheduler", - nullable: true, + scriptData: { + serializedName: "scriptData", type: { name: "String" } }, - modelName: { - serializedName: "modelName", - nullable: true, + scriptArguments: { + serializedName: "scriptArguments", type: { name: "String" } }, - momentum: { - serializedName: "momentum", - nullable: true, + timeout: { + serializedName: "timeout", type: { name: "String" } - }, - nesterov: { - serializedName: "nesterov", - nullable: true, + } + } + } +}; + +export const ComputeInstanceLastOperation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceLastOperation", + modelProperties: { + operationName: { + serializedName: "operationName", type: { name: "String" } }, - numberOfEpochs: { - serializedName: "numberOfEpochs", - nullable: true, + operationTime: { + serializedName: "operationTime", type: { - name: "String" + name: "DateTime" } }, - numberOfWorkers: { - serializedName: "numberOfWorkers", - nullable: true, + operationStatus: { + serializedName: "operationStatus", type: { name: "String" } }, - optimizer: { - serializedName: "optimizer", - nullable: true, + operationTrigger: { + serializedName: "operationTrigger", type: { name: "String" } - }, - randomSeed: { - serializedName: "randomSeed", + } + } + } +}; + +export const ComputeSchedules: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeSchedules", + modelProperties: { + computeStartStop: { + serializedName: "computeStartStop", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComputeStartStopSchedule" + } + } + } + } + } + } +}; + +export const ComputeStartStopSchedule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeStartStopSchedule", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, nullable: true, type: { name: "String" } }, - stepLRGamma: { - serializedName: "stepLRGamma", - nullable: true, + provisioningStatus: { + serializedName: "provisioningStatus", + readOnly: true, type: { name: "String" } }, - stepLRStepSize: { - serializedName: "stepLRStepSize", - nullable: true, + status: { + serializedName: "status", type: { name: "String" } }, - trainingBatchSize: { - serializedName: "trainingBatchSize", - nullable: true, + action: { + serializedName: "action", type: { name: "String" } }, - validationBatchSize: { - serializedName: "validationBatchSize", - nullable: true, + triggerType: { + serializedName: "triggerType", type: { name: "String" } }, - warmupCosineLRCycles: { - serializedName: "warmupCosineLRCycles", - nullable: true, + recurrence: { + serializedName: "recurrence", type: { - name: "String" + name: "Composite", + className: "Recurrence" } }, - warmupCosineLRWarmupEpochs: { - serializedName: "warmupCosineLRWarmupEpochs", - nullable: true, + cron: { + serializedName: "cron", type: { - name: "String" + name: "Composite", + className: "Cron" } }, - weightDecay: { - serializedName: "weightDecay", - nullable: true, + schedule: { + serializedName: "schedule", type: { - name: "String" + name: "Composite", + className: "ScheduleBase" } } } } }; -export const ImageVertical: coreClient.CompositeMapper = { +export const Recurrence: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageVertical", + className: "Recurrence", modelProperties: { - limitSettings: { - serializedName: "limitSettings", + frequency: { + serializedName: "frequency", type: { - name: "Composite", - className: "ImageLimitSettings" + name: "String" } }, - sweepSettings: { - serializedName: "sweepSettings", + interval: { + serializedName: "interval", type: { - name: "Composite", - className: "ImageSweepSettings" + name: "Number" } }, - validationData: { - serializedName: "validationData", + startTime: { + serializedName: "startTime", + nullable: true, type: { - name: "Composite", - className: "MLTableJobInput" + name: "String" } }, - validationDataSize: { - serializedName: "validationDataSize", - nullable: true, + timeZone: { + defaultValue: "UTC", + serializedName: "timeZone", type: { - name: "Number" + name: "String" + } + }, + schedule: { + serializedName: "schedule", + type: { + name: "Composite", + className: "RecurrenceSchedule" } } } } }; -export const ImageLimitSettings: coreClient.CompositeMapper = { +export const Cron: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageLimitSettings", + className: "Cron", modelProperties: { - maxConcurrentTrials: { - defaultValue: 1, - serializedName: "maxConcurrentTrials", + startTime: { + serializedName: "startTime", + nullable: true, type: { - name: "Number" + name: "String" } }, - maxTrials: { - defaultValue: 1, - serializedName: "maxTrials", + timeZone: { + defaultValue: "UTC", + serializedName: "timeZone", type: { - name: "Number" + name: "String" } }, - timeout: { - defaultValue: "P7D", - serializedName: "timeout", + expression: { + serializedName: "expression", type: { - name: "TimeSpan" + name: "String" } } } } }; -export const ImageSweepSettings: coreClient.CompositeMapper = { +export const ScheduleBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageSweepSettings", + className: "ScheduleBase", modelProperties: { - earlyTermination: { - serializedName: "earlyTermination", + id: { + serializedName: "id", + nullable: true, type: { - name: "Composite", - className: "EarlyTerminationPolicy" + name: "String" } }, - samplingAlgorithm: { - serializedName: "samplingAlgorithm", - required: true, + provisioningStatus: { + serializedName: "provisioningStatus", + type: { + name: "String" + } + }, + status: { + serializedName: "status", type: { name: "String" } @@ -6914,83 +8092,72 @@ export const ImageSweepSettings: coreClient.CompositeMapper = { } }; -export const NlpVertical: coreClient.CompositeMapper = { +export const ComputeInstanceContainer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NlpVertical", + className: "ComputeInstanceContainer", modelProperties: { - featurizationSettings: { - serializedName: "featurizationSettings", + name: { + serializedName: "name", type: { - name: "Composite", - className: "NlpVerticalFeaturizationSettings" + name: "String" } }, - limitSettings: { - serializedName: "limitSettings", + autosave: { + serializedName: "autosave", type: { - name: "Composite", - className: "NlpVerticalLimitSettings" + name: "String" } }, - validationData: { - serializedName: "validationData", + gpu: { + serializedName: "gpu", type: { - name: "Composite", - className: "MLTableJobInput" + name: "String" } - } - } - } -}; - -export const NlpVerticalLimitSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NlpVerticalLimitSettings", - modelProperties: { - maxConcurrentTrials: { - defaultValue: 1, - serializedName: "maxConcurrentTrials", + }, + network: { + serializedName: "network", type: { - name: "Number" + name: "String" } }, - maxTrials: { - defaultValue: 1, - serializedName: "maxTrials", + environment: { + serializedName: "environment", type: { - name: "Number" + name: "Composite", + className: "ComputeInstanceEnvironmentInfo" } }, - timeout: { - serializedName: "timeout", + services: { + serializedName: "services", + readOnly: true, type: { - name: "TimeSpan" + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } } } } } }; -export const Objective: coreClient.CompositeMapper = { +export const ComputeInstanceEnvironmentInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Objective", + className: "ComputeInstanceEnvironmentInfo", modelProperties: { - goal: { - serializedName: "goal", - required: true, + name: { + serializedName: "name", type: { name: "String" } }, - primaryMetric: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "primaryMetric", - required: true, + version: { + serializedName: "version", type: { name: "String" } @@ -6999,115 +8166,95 @@ export const Objective: coreClient.CompositeMapper = { } }; -export const TrialComponent: coreClient.CompositeMapper = { +export const ComputeInstanceDataDisk: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrialComponent", + className: "ComputeInstanceDataDisk", modelProperties: { - codeId: { - serializedName: "codeId", - nullable: true, + caching: { + serializedName: "caching", type: { name: "String" } }, - command: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1 - }, - serializedName: "command", - required: true, + diskSizeGB: { + serializedName: "diskSizeGB", type: { - name: "String" + name: "Number" } }, - distribution: { - serializedName: "distribution", + lun: { + serializedName: "lun", type: { - name: "Composite", - className: "DistributionConfiguration" + name: "Number" } }, - environmentId: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "environmentId", - required: true, + storageAccountType: { + defaultValue: "Standard_LRS", + serializedName: "storageAccountType", type: { name: "String" } - }, - environmentVariables: { - serializedName: "environmentVariables", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - resources: { - serializedName: "resources", - type: { - name: "Composite", - className: "JobResourceConfiguration" - } } } } }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { +export const ComputeInstanceDataMount: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "ComputeInstanceDataMount", modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + source: { + serializedName: "source", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "String" } }, - location: { - serializedName: "location", + sourceType: { + serializedName: "sourceType", type: { name: "String" } }, - tags: { - serializedName: "tags", + mountName: { + serializedName: "mountName", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - sku: { - serializedName: "sku", + mountAction: { + serializedName: "mountAction", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + createdBy: { + serializedName: "createdBy", type: { - name: "Composite", - className: "PrivateEndpoint" + name: "String" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + mountPath: { + serializedName: "mountPath", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + mountState: { + serializedName: "mountState", + type: { + name: "String" + } + }, + mountedOn: { + serializedName: "mountedOn", + type: { + name: "DateTime" + } + }, + error: { + serializedName: "error", type: { name: "String" } @@ -7116,359 +8263,415 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { } }; -export const Workspace: coreClient.CompositeMapper = { +export const ComputeInstanceVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Workspace", + className: "ComputeInstanceVersion", modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, - location: { - serializedName: "location", + runtime: { + serializedName: "runtime", + nullable: true, type: { name: "String" } - }, - tags: { - serializedName: "tags", + } + } + } +}; + +export const ComputeInstanceSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeInstanceSchema", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "ComputeInstanceProperties" } - }, - sku: { - serializedName: "sku", + } + } + } +}; + +export const VirtualMachineSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineSchema", + modelProperties: { + properties: { + serializedName: "properties", type: { name: "Composite", - className: "Sku" + className: "VirtualMachineSchemaProperties" } - }, - workspaceId: { - serializedName: "properties.workspaceId", - readOnly: true, + } + } + } +}; + +export const VirtualMachineSchemaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineSchemaProperties", + modelProperties: { + virtualMachineSize: { + serializedName: "virtualMachineSize", type: { name: "String" } }, - description: { - serializedName: "properties.description", + sshPort: { + serializedName: "sshPort", type: { - name: "String" + name: "Number" } }, - friendlyName: { - serializedName: "properties.friendlyName", + notebookServerPort: { + serializedName: "notebookServerPort", type: { - name: "String" + name: "Number" } }, - keyVault: { - serializedName: "properties.keyVault", + address: { + serializedName: "address", type: { name: "String" } }, - applicationInsights: { - serializedName: "properties.applicationInsights", + administratorAccount: { + serializedName: "administratorAccount", type: { - name: "String" + name: "Composite", + className: "VirtualMachineSshCredentials" } }, - containerRegistry: { - serializedName: "properties.containerRegistry", - nullable: true, + isNotebookInstanceCompute: { + serializedName: "isNotebookInstanceCompute", type: { - name: "String" + name: "Boolean" } - }, - storageAccount: { - serializedName: "properties.storageAccount", + } + } + } +}; + +export const VirtualMachineSshCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineSshCredentials", + modelProperties: { + username: { + serializedName: "username", type: { name: "String" } }, - discoveryUrl: { - serializedName: "properties.discoveryUrl", + password: { + serializedName: "password", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + publicKeyData: { + serializedName: "publicKeyData", type: { name: "String" } }, - encryption: { - serializedName: "properties.encryption", + privateKeyData: { + serializedName: "privateKeyData", type: { - name: "Composite", - className: "EncryptionProperty" + name: "String" } - }, - hbiWorkspace: { - defaultValue: false, - serializedName: "properties.hbiWorkspace", + } + } + } +}; + +export const HDInsightProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HDInsightProperties", + modelProperties: { + sshPort: { + serializedName: "sshPort", type: { - name: "Boolean" + name: "Number" } }, - serviceProvisionedResourceGroup: { - serializedName: "properties.serviceProvisionedResourceGroup", - readOnly: true, + address: { + serializedName: "address", type: { name: "String" } }, - privateLinkCount: { - serializedName: "properties.privateLinkCount", - readOnly: true, + administratorAccount: { + serializedName: "administratorAccount", type: { - name: "Number" + name: "Composite", + className: "VirtualMachineSshCredentials" } - }, - imageBuildCompute: { - serializedName: "properties.imageBuildCompute", + } + } + } +}; + +export const HDInsightSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HDInsightSchema", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "HDInsightProperties" + } + } + } + } +}; + +export const DatabricksProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabricksProperties", + modelProperties: { + databricksAccessToken: { + serializedName: "databricksAccessToken", type: { name: "String" } }, - allowPublicAccessWhenBehindVnet: { - defaultValue: false, - serializedName: "properties.allowPublicAccessWhenBehindVnet", + workspaceUrl: { + serializedName: "workspaceUrl", type: { - name: "Boolean" + name: "String" } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + } + } + } +}; + +export const DatabricksSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DatabricksSchema", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DatabricksProperties" + } + } + } + } +}; + +export const DataLakeAnalyticsSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataLakeAnalyticsSchema", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataLakeAnalyticsSchemaProperties" + } + } + } + } +}; + +export const DataLakeAnalyticsSchemaProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataLakeAnalyticsSchemaProperties", + 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" + } }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", - readOnly: true, + autoPauseProperties: { + serializedName: "autoPauseProperties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "Composite", + className: "AutoPauseProperties" } }, - sharedPrivateLinkResources: { - serializedName: "properties.sharedPrivateLinkResources", + sparkVersion: { + serializedName: "sparkVersion", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedPrivateLinkResource" - } - } + name: "String" } }, - notebookInfo: { - serializedName: "properties.notebookInfo", + nodeCount: { + serializedName: "nodeCount", type: { - name: "Composite", - className: "NotebookResourceInfo" + name: "Number" } }, - serviceManagedResourcesSettings: { - serializedName: "properties.serviceManagedResourcesSettings", + nodeSize: { + serializedName: "nodeSize", type: { - name: "Composite", - className: "ServiceManagedResourcesSettings" + name: "String" } }, - primaryUserAssignedIdentity: { - serializedName: "properties.primaryUserAssignedIdentity", + nodeSizeFamily: { + serializedName: "nodeSizeFamily", type: { name: "String" } }, - tenantId: { - serializedName: "properties.tenantId", - readOnly: true, + subscriptionId: { + serializedName: "subscriptionId", type: { name: "String" } }, - storageHnsEnabled: { - serializedName: "properties.storageHnsEnabled", - readOnly: true, + resourceGroup: { + serializedName: "resourceGroup", type: { - name: "Boolean" + name: "String" } }, - mlFlowTrackingUri: { - serializedName: "properties.mlFlowTrackingUri", - readOnly: true, + workspaceName: { + serializedName: "workspaceName", type: { name: "String" } }, - v1LegacyMode: { - defaultValue: false, - serializedName: "properties.v1LegacyMode", + poolName: { + serializedName: "poolName", type: { - name: "Boolean" + name: "String" } } } } }; -export const ComputeResource: coreClient.CompositeMapper = { +export const AutoScaleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeResource", + className: "AutoScaleProperties", modelProperties: { - ...Resource.type.modelProperties, - ...ComputeResourceSchema.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, - location: { - serializedName: "location", + minNodeCount: { + serializedName: "minNodeCount", type: { - name: "String" + name: "Number" } }, - tags: { - serializedName: "tags", - nullable: true, + enabled: { + serializedName: "enabled", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } }, - sku: { - serializedName: "sku", + maxNodeCount: { + serializedName: "maxNodeCount", type: { - name: "Composite", - className: "Sku" + name: "Number" } } } } }; -export const PrivateLinkResource: coreClient.CompositeMapper = { +export const AutoPauseProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkResource", + className: "AutoPauseProperties", modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, - location: { - serializedName: "location", + delayInMinutes: { + serializedName: "delayInMinutes", type: { - name: "String" + name: "Number" } }, - tags: { - serializedName: "tags", + enabled: { + serializedName: "enabled", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Boolean" } - }, - sku: { - serializedName: "sku", + } + } + } +}; + +export const AksComputeSecretsProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AksComputeSecretsProperties", + modelProperties: { + userKubeConfig: { + serializedName: "userKubeConfig", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - groupId: { - serializedName: "properties.groupId", - readOnly: true, + adminKubeConfig: { + serializedName: "adminKubeConfig", type: { name: "String" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + imagePullSecretName: { + serializedName: "imagePullSecretName", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const WorkspaceConnectionPropertiesV2BasicResource: coreClient.CompositeMapper = { +export const VirtualMachineSecretsSchema: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceConnectionPropertiesV2BasicResource", + className: "VirtualMachineSecretsSchema", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + administratorAccount: { + serializedName: "administratorAccount", type: { name: "Composite", - className: "WorkspaceConnectionPropertiesV2" + className: "VirtualMachineSshCredentials" } } } } }; -export const TrackedResource: coreClient.CompositeMapper = { +export const DatabricksComputeSecretsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TrackedResource", + className: "DatabricksComputeSecretsProperties", modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - location: { - serializedName: "location", - required: true, + databricksAccessToken: { + serializedName: "databricksAccessToken", type: { name: "String" } @@ -7477,528 +8680,613 @@ export const TrackedResource: coreClient.CompositeMapper = { } }; -export const CodeContainer: coreClient.CompositeMapper = { +export const MonitoringFeatureFilterBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeContainer", + className: "MonitoringFeatureFilterBase", + uberParent: "MonitoringFeatureFilterBase", + polymorphicDiscriminator: { + serializedName: "filterType", + clientName: "filterType" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + filterType: { + serializedName: "filterType", + required: true, type: { - name: "Composite", - className: "CodeContainerProperties" + name: "String" } } } } }; -export const CodeVersion: coreClient.CompositeMapper = { +export const MonitorComputeIdentityBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeVersion", + className: "MonitorComputeIdentityBase", + uberParent: "MonitorComputeIdentityBase", + polymorphicDiscriminator: { + serializedName: "computeIdentityType", + clientName: "computeIdentityType" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + computeIdentityType: { + serializedName: "computeIdentityType", + required: true, type: { - name: "Composite", - className: "CodeVersionProperties" + name: "String" } } } } }; -export const ComponentContainer: coreClient.CompositeMapper = { +export const AssetJobInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentContainer", + className: "AssetJobInput", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + mode: { + serializedName: "mode", type: { - name: "Composite", - className: "ComponentContainerProperties" + name: "String" + } + }, + uri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "uri", + required: true, + type: { + name: "String" } } } } }; -export const ComponentVersion: coreClient.CompositeMapper = { +export const AssetJobOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentVersion", + className: "AssetJobOutput", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + assetName: { + serializedName: "assetName", + nullable: true, + type: { + name: "String" + } + }, + assetVersion: { + serializedName: "assetVersion", + nullable: true, + type: { + name: "String" + } + }, + autoDeleteSetting: { + serializedName: "autoDeleteSetting", type: { name: "Composite", - className: "ComponentVersionProperties" + className: "AutoDeleteSetting" + } + }, + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + uri: { + serializedName: "uri", + nullable: true, + type: { + name: "String" } } } } }; -export const DataContainer: coreClient.CompositeMapper = { +export const ForecastHorizon: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataContainer", + className: "ForecastHorizon", + uberParent: "ForecastHorizon", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + mode: { + serializedName: "mode", + required: true, type: { - name: "Composite", - className: "DataContainerProperties" + name: "String" } } } } }; -export const DataVersionBase: coreClient.CompositeMapper = { +export const JobOutput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataVersionBase", + className: "JobOutput", + uberParent: "JobOutput", + polymorphicDiscriminator: { + serializedName: "jobOutputType", + clientName: "jobOutputType" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + description: { + serializedName: "description", + nullable: true, type: { - name: "Composite", - className: "DataVersionBaseProperties" + name: "String" + } + }, + jobOutputType: { + serializedName: "jobOutputType", + required: true, + type: { + name: "String" } } } } }; -export const Datastore: coreClient.CompositeMapper = { +export const QueueSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Datastore", + className: "QueueSettings", modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + jobTier: { + serializedName: "jobTier", type: { - name: "Composite", - className: "DatastoreProperties" + name: "String" + } + }, + priority: { + serializedName: "priority", + nullable: true, + type: { + name: "Number" } } } } }; -export const EnvironmentContainer: coreClient.CompositeMapper = { +export const AutoMLVertical: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentContainer", + className: "AutoMLVertical", + uberParent: "AutoMLVertical", + polymorphicDiscriminator: { + serializedName: "taskType", + clientName: "taskType" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + logVerbosity: { + serializedName: "logVerbosity", + type: { + name: "String" + } + }, + targetColumnName: { + serializedName: "targetColumnName", + nullable: true, + type: { + name: "String" + } + }, + taskType: { + serializedName: "taskType", + required: true, + type: { + name: "String" + } + }, + trainingData: { + serializedName: "trainingData", type: { name: "Composite", - className: "EnvironmentContainerProperties" + className: "MLTableJobInput" } } } } }; -export const EnvironmentVersion: coreClient.CompositeMapper = { +export const JobInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentVersion", + className: "JobInput", + uberParent: "JobInput", + polymorphicDiscriminator: { + serializedName: "jobInputType", + clientName: "jobInputType" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + description: { + serializedName: "description", + nullable: true, type: { - name: "Composite", - className: "EnvironmentVersionProperties" + name: "String" + } + }, + jobInputType: { + serializedName: "jobInputType", + required: true, + type: { + name: "String" } } } } }; -export const JobBase: coreClient.CompositeMapper = { +export const NCrossValidations: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobBase", + className: "NCrossValidations", + uberParent: "NCrossValidations", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + mode: { + serializedName: "mode", + required: true, type: { - name: "Composite", - className: "JobBaseProperties" + name: "String" } } } } }; -export const ModelContainer: coreClient.CompositeMapper = { +export const Seasonality: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelContainer", + className: "Seasonality", + uberParent: "Seasonality", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + mode: { + serializedName: "mode", + required: true, type: { - name: "Composite", - className: "ModelContainerProperties" + name: "String" } } } } }; -export const ModelVersion: coreClient.CompositeMapper = { +export const TargetLags: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelVersion", + className: "TargetLags", + uberParent: "TargetLags", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + mode: { + serializedName: "mode", + required: true, type: { - name: "Composite", - className: "ModelVersionProperties" + name: "String" } } } } }; -export const Schedule: coreClient.CompositeMapper = { +export const TargetRollingWindowSize: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Schedule", + className: "TargetRollingWindowSize", + uberParent: "TargetRollingWindowSize", + polymorphicDiscriminator: { + serializedName: "mode", + clientName: "mode" + }, modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + mode: { + serializedName: "mode", + required: true, type: { - name: "Composite", - className: "ScheduleProperties" + name: "String" } } } } }; -export const Aks: coreClient.CompositeMapper = { - serializedName: "AKS", - type: { - name: "Composite", - className: "Aks", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, - modelProperties: { - ...Compute.type.modelProperties, - ...AKSSchema.type.modelProperties - } - } -}; - -export const Kubernetes: coreClient.CompositeMapper = { - serializedName: "Kubernetes", +export const AutologgerSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Kubernetes", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "AutologgerSettings", modelProperties: { - ...Compute.type.modelProperties, - ...KubernetesSchema.type.modelProperties + mlflowAutologger: { + serializedName: "mlflowAutologger", + required: true, + type: { + name: "String" + } + } } } }; -export const AmlCompute: coreClient.CompositeMapper = { - serializedName: "AmlCompute", +export const MonitoringAlertNotificationSettingsBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlCompute", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "MonitoringAlertNotificationSettingsBase", + uberParent: "MonitoringAlertNotificationSettingsBase", + polymorphicDiscriminator: { + serializedName: "alertNotificationType", + clientName: "alertNotificationType" + }, modelProperties: { - ...Compute.type.modelProperties, - ...AmlComputeSchema.type.modelProperties + alertNotificationType: { + serializedName: "alertNotificationType", + required: true, + type: { + name: "String" + } + } } } }; -export const ComputeInstance: coreClient.CompositeMapper = { - serializedName: "ComputeInstance", +export const AzureDatastore: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeInstance", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "AzureDatastore", modelProperties: { - ...Compute.type.modelProperties, - ...ComputeInstanceSchema.type.modelProperties + resourceGroup: { + serializedName: "resourceGroup", + nullable: true, + type: { + name: "String" + } + }, + subscriptionId: { + serializedName: "subscriptionId", + nullable: true, + type: { + name: "String" + } + } } } }; -export const VirtualMachine: coreClient.CompositeMapper = { - serializedName: "VirtualMachine", +export const EarlyTerminationPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachine", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "EarlyTerminationPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: { + serializedName: "policyType", + clientName: "policyType" + }, modelProperties: { - ...Compute.type.modelProperties, - ...VirtualMachineSchema.type.modelProperties + delayEvaluation: { + defaultValue: 0, + serializedName: "delayEvaluation", + type: { + name: "Number" + } + }, + evaluationInterval: { + defaultValue: 0, + serializedName: "evaluationInterval", + type: { + name: "Number" + } + }, + policyType: { + serializedName: "policyType", + required: true, + type: { + name: "String" + } + } } } }; -export const HDInsight: coreClient.CompositeMapper = { - serializedName: "HDInsight", +export const SamplingAlgorithm: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HDInsight", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "SamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: { + serializedName: "samplingAlgorithmType", + clientName: "samplingAlgorithmType" + }, modelProperties: { - ...Compute.type.modelProperties, - ...HDInsightSchema.type.modelProperties + samplingAlgorithmType: { + serializedName: "samplingAlgorithmType", + required: true, + type: { + name: "String" + } + } } } }; -export const DataFactory: coreClient.CompositeMapper = { - serializedName: "DataFactory", +export const DataDriftMetricThresholdBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataFactory", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "DataDriftMetricThresholdBase", + uberParent: "DataDriftMetricThresholdBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, modelProperties: { - ...Compute.type.modelProperties + dataType: { + serializedName: "dataType", + required: true, + type: { + name: "String" + } + }, + threshold: { + serializedName: "threshold", + type: { + name: "Composite", + className: "MonitoringThreshold" + } + } } } }; -export const Databricks: coreClient.CompositeMapper = { - serializedName: "Databricks", +export const MonitoringThreshold: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Databricks", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "MonitoringThreshold", modelProperties: { - ...Compute.type.modelProperties, - ...DatabricksSchema.type.modelProperties + value: { + serializedName: "value", + nullable: true, + type: { + name: "Number" + } + } } } }; -export const DataLakeAnalytics: coreClient.CompositeMapper = { - serializedName: "DataLakeAnalytics", +export const DataQualityMetricThresholdBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataLakeAnalytics", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "DataQualityMetricThresholdBase", + uberParent: "DataQualityMetricThresholdBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, modelProperties: { - ...Compute.type.modelProperties, - ...DataLakeAnalyticsSchema.type.modelProperties + dataType: { + serializedName: "dataType", + required: true, + type: { + name: "String" + } + }, + threshold: { + serializedName: "threshold", + type: { + name: "Composite", + className: "MonitoringThreshold" + } + } } } }; -export const SynapseSpark: coreClient.CompositeMapper = { - serializedName: "SynapseSpark", +export const PredictionDriftMetricThresholdBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SynapseSpark", - uberParent: "Compute", - polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + className: "PredictionDriftMetricThresholdBase", + uberParent: "PredictionDriftMetricThresholdBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, modelProperties: { - ...Compute.type.modelProperties, - properties: { - serializedName: "properties", + dataType: { + serializedName: "dataType", + required: true, + type: { + name: "String" + } + }, + threshold: { + serializedName: "threshold", type: { name: "Composite", - className: "SynapseSparkProperties" + className: "MonitoringThreshold" } } } } }; -export const AksComputeSecrets: coreClient.CompositeMapper = { - serializedName: "AKS", - type: { - name: "Composite", - className: "AksComputeSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, - modelProperties: { - ...ComputeSecrets.type.modelProperties, - ...AksComputeSecretsProperties.type.modelProperties - } - } -}; - -export const VirtualMachineSecrets: coreClient.CompositeMapper = { - serializedName: "VirtualMachine", - type: { - name: "Composite", - className: "VirtualMachineSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, - modelProperties: { - ...ComputeSecrets.type.modelProperties, - ...VirtualMachineSecretsSchema.type.modelProperties - } - } -}; - -export const DatabricksComputeSecrets: coreClient.CompositeMapper = { - serializedName: "Databricks", - type: { - name: "Composite", - className: "DatabricksComputeSecrets", - uberParent: "ComputeSecrets", - polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, - modelProperties: { - ...ComputeSecrets.type.modelProperties, - ...DatabricksComputeSecretsProperties.type.modelProperties - } - } -}; - -export const PATAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "PAT", +export const TrainingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PATAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + className: "TrainingSettings", modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + enableDnnTraining: { + defaultValue: false, + serializedName: "enableDnnTraining", type: { - name: "Composite", - className: "WorkspaceConnectionPersonalAccessToken" + name: "Boolean" } - } - } - } -}; - -export const SASAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "SAS", - type: { - name: "Composite", - className: "SASAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, - modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + }, + enableModelExplainability: { + defaultValue: true, + serializedName: "enableModelExplainability", type: { - name: "Composite", - className: "WorkspaceConnectionSharedAccessSignature" + name: "Boolean" } - } - } - } -}; - -export const UsernamePasswordAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "UsernamePassword", - type: { - name: "Composite", - className: "UsernamePasswordAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, - modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + }, + enableOnnxCompatibleModels: { + defaultValue: false, + serializedName: "enableOnnxCompatibleModels", type: { - name: "Composite", - className: "WorkspaceConnectionUsernamePassword" + name: "Boolean" } - } - } - } -}; - -export const NoneAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "None", - type: { - name: "Composite", - className: "NoneAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, - modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties - } - } -}; - -export const ManagedIdentityAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { - serializedName: "ManagedIdentity", - type: { - name: "Composite", - className: "ManagedIdentityAuthTypeWorkspaceConnectionProperties", - uberParent: "WorkspaceConnectionPropertiesV2", - polymorphicDiscriminator: - WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, - modelProperties: { - ...WorkspaceConnectionPropertiesV2.type.modelProperties, - credentials: { - serializedName: "credentials", + }, + enableStackEnsemble: { + defaultValue: true, + serializedName: "enableStackEnsemble", type: { - name: "Composite", - className: "WorkspaceConnectionManagedIdentity" + name: "Boolean" } - } - } - } -}; - -export const BatchEndpointProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BatchEndpointProperties", - modelProperties: { - ...EndpointPropertiesBase.type.modelProperties, - defaults: { - serializedName: "defaults", + }, + enableVoteEnsemble: { + defaultValue: true, + serializedName: "enableVoteEnsemble", + type: { + name: "Boolean" + } + }, + ensembleModelDownloadTimeout: { + defaultValue: "PT5M", + serializedName: "ensembleModelDownloadTimeout", + type: { + name: "TimeSpan" + } + }, + stackEnsembleSettings: { + serializedName: "stackEnsembleSettings", type: { name: "Composite", - className: "BatchEndpointDefaults" + className: "StackEnsembleSettings" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + trainingMode: { + serializedName: "trainingMode", type: { name: "String" } @@ -8007,120 +9295,132 @@ export const BatchEndpointProperties: coreClient.CompositeMapper = { } }; -export const OnlineEndpointProperties: coreClient.CompositeMapper = { +export const StackEnsembleSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointProperties", + className: "StackEnsembleSettings", modelProperties: { - ...EndpointPropertiesBase.type.modelProperties, - compute: { - serializedName: "compute", + stackMetaLearnerKWargs: { + serializedName: "stackMetaLearnerKWargs", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + stackMetaLearnerTrainPercentage: { + defaultValue: 0.2, + serializedName: "stackMetaLearnerTrainPercentage", type: { - name: "String" + name: "Number" } }, - publicNetworkAccess: { - serializedName: "publicNetworkAccess", + stackMetaLearnerType: { + serializedName: "stackMetaLearnerType", type: { name: "String" } - }, - traffic: { - serializedName: "traffic", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "Number" } } - } } } } }; -export const PartialMinimalTrackedResourceWithIdentity: coreClient.CompositeMapper = { +export const TableVertical: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartialMinimalTrackedResourceWithIdentity", + className: "TableVertical", modelProperties: { - ...PartialMinimalTrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + cvSplitColumnNames: { + serializedName: "cvSplitColumnNames", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + featurizationSettings: { + serializedName: "featurizationSettings", type: { name: "Composite", - className: "PartialManagedServiceIdentity" + className: "TableVerticalFeaturizationSettings" } - } - } - } -}; - -export const PartialMinimalTrackedResourceWithSku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PartialMinimalTrackedResourceWithSku", - modelProperties: { - ...PartialMinimalTrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + }, + fixedParameters: { + serializedName: "fixedParameters", type: { name: "Composite", - className: "PartialSku" + className: "TableFixedParameters" } - } - } - } -}; - -export const DataPathAssetReference: coreClient.CompositeMapper = { - serializedName: "DataPath", - type: { - name: "Composite", - className: "DataPathAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, - modelProperties: { - ...AssetReferenceBase.type.modelProperties, - datastoreId: { - serializedName: "datastoreId", + }, + limitSettings: { + serializedName: "limitSettings", + type: { + name: "Composite", + className: "TableVerticalLimitSettings" + } + }, + nCrossValidations: { + serializedName: "nCrossValidations", + type: { + name: "Composite", + className: "NCrossValidations" + } + }, + searchSpace: { + serializedName: "searchSpace", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TableParameterSubspace" + } + } } }, - path: { - serializedName: "path", + sweepSettings: { + serializedName: "sweepSettings", + type: { + name: "Composite", + className: "TableSweepSettings" + } + }, + testData: { + serializedName: "testData", + type: { + name: "Composite", + className: "MLTableJobInput" + } + }, + testDataSize: { + serializedName: "testDataSize", nullable: true, type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const IdAssetReference: coreClient.CompositeMapper = { - serializedName: "Id", - type: { - name: "Composite", - className: "IdAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, - modelProperties: { - ...AssetReferenceBase.type.modelProperties, - assetId: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "assetId", - required: true, + }, + validationData: { + serializedName: "validationData", + type: { + name: "Composite", + className: "MLTableJobInput" + } + }, + validationDataSize: { + serializedName: "validationDataSize", + nullable: true, + type: { + name: "Number" + } + }, + weightColumnName: { + serializedName: "weightColumnName", + nullable: true, type: { name: "String" } @@ -8129,642 +9429,651 @@ export const IdAssetReference: coreClient.CompositeMapper = { } }; -export const OutputPathAssetReference: coreClient.CompositeMapper = { - serializedName: "OutputPath", +export const ColumnTransformer: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OutputPathAssetReference", - uberParent: "AssetReferenceBase", - polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + className: "ColumnTransformer", modelProperties: { - ...AssetReferenceBase.type.modelProperties, - jobId: { - serializedName: "jobId", + fields: { + serializedName: "fields", nullable: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - path: { - serializedName: "path", + parameters: { + serializedName: "parameters", nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const DeploymentResourceConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentResourceConfiguration", - modelProperties: { - ...ResourceConfiguration.type.modelProperties - } - } -}; - -export const JobResourceConfiguration: coreClient.CompositeMapper = { +export const FeaturizationSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobResourceConfiguration", + className: "FeaturizationSettings", modelProperties: { - ...ResourceConfiguration.type.modelProperties, - dockerArgs: { - serializedName: "dockerArgs", + datasetLanguage: { + serializedName: "datasetLanguage", nullable: true, type: { name: "String" } - }, - shmSize: { - defaultValue: "2g", - constraints: { - Pattern: new RegExp("\\d+[bBkKmMgG]") - }, - serializedName: "shmSize", - type: { - name: "String" - } } } } }; -export const BatchDeploymentProperties: coreClient.CompositeMapper = { +export const TableFixedParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentProperties", + className: "TableFixedParameters", modelProperties: { - ...EndpointDeploymentPropertiesBase.type.modelProperties, - compute: { - serializedName: "compute", + booster: { + serializedName: "booster", nullable: true, type: { name: "String" } }, - errorThreshold: { - defaultValue: -1, - serializedName: "errorThreshold", + boostingType: { + serializedName: "boostingType", + nullable: true, type: { - name: "Number" + name: "String" } }, - loggingLevel: { - serializedName: "loggingLevel", + growPolicy: { + serializedName: "growPolicy", + nullable: true, type: { name: "String" } }, - maxConcurrencyPerInstance: { - defaultValue: 1, - serializedName: "maxConcurrencyPerInstance", + learningRate: { + serializedName: "learningRate", + nullable: true, type: { name: "Number" } }, - miniBatchSize: { - defaultValue: 10, - serializedName: "miniBatchSize", + maxBin: { + serializedName: "maxBin", + nullable: true, type: { name: "Number" } }, - model: { - serializedName: "model", + maxDepth: { + serializedName: "maxDepth", + nullable: true, type: { - name: "Composite", - className: "AssetReferenceBase" + name: "Number" } }, - outputAction: { - serializedName: "outputAction", + maxLeaves: { + serializedName: "maxLeaves", + nullable: true, type: { - name: "String" + name: "Number" } }, - outputFileName: { - defaultValue: "predictions.csv", - serializedName: "outputFileName", + minDataInLeaf: { + serializedName: "minDataInLeaf", + nullable: true, type: { - name: "String" + name: "Number" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + minSplitGain: { + serializedName: "minSplitGain", + nullable: true, type: { - name: "String" + name: "Number" } }, - resources: { - serializedName: "resources", + modelName: { + serializedName: "modelName", + nullable: true, type: { - name: "Composite", - className: "DeploymentResourceConfiguration" + name: "String" } }, - retrySettings: { - serializedName: "retrySettings", + nEstimators: { + serializedName: "nEstimators", + nullable: true, type: { - name: "Composite", - className: "BatchRetrySettings" + name: "Number" } - } - } - } -}; - -export const OnlineDeploymentProperties: coreClient.CompositeMapper = { - serializedName: "OnlineDeploymentProperties", - type: { - name: "Composite", - className: "OnlineDeploymentProperties", - uberParent: "EndpointDeploymentPropertiesBase", - polymorphicDiscriminator: { - serializedName: "endpointComputeType", - clientName: "endpointComputeType" - }, - modelProperties: { - ...EndpointDeploymentPropertiesBase.type.modelProperties, - appInsightsEnabled: { - defaultValue: false, - serializedName: "appInsightsEnabled", + }, + numLeaves: { + serializedName: "numLeaves", + nullable: true, type: { - name: "Boolean" + name: "Number" } }, - egressPublicNetworkAccess: { - serializedName: "egressPublicNetworkAccess", + preprocessorName: { + serializedName: "preprocessorName", + nullable: true, type: { name: "String" } }, - endpointComputeType: { - serializedName: "endpointComputeType", - required: true, + regAlpha: { + serializedName: "regAlpha", + nullable: true, type: { - name: "String" + name: "Number" } }, - instanceType: { - serializedName: "instanceType", + regLambda: { + serializedName: "regLambda", nullable: true, type: { - name: "String" + name: "Number" } }, - livenessProbe: { - serializedName: "livenessProbe", + subsample: { + serializedName: "subsample", + nullable: true, type: { - name: "Composite", - className: "ProbeSettings" + name: "Number" } }, - model: { - serializedName: "model", + subsampleFreq: { + serializedName: "subsampleFreq", nullable: true, type: { - name: "String" + name: "Number" } }, - modelMountPath: { - serializedName: "modelMountPath", + treeMethod: { + serializedName: "treeMethod", nullable: true, type: { name: "String" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - readinessProbe: { - serializedName: "readinessProbe", - type: { - name: "Composite", - className: "ProbeSettings" - } - }, - requestSettings: { - serializedName: "requestSettings", + withMean: { + defaultValue: false, + serializedName: "withMean", type: { - name: "Composite", - className: "OnlineRequestSettings" + name: "Boolean" } }, - scaleSettings: { - serializedName: "scaleSettings", + withStd: { + defaultValue: false, + serializedName: "withStd", type: { - name: "Composite", - className: "OnlineScaleSettings" + name: "Boolean" } } } } }; -export const AssetContainer: coreClient.CompositeMapper = { +export const TableVerticalLimitSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssetContainer", + className: "TableVerticalLimitSettings", modelProperties: { - ...ResourceBase.type.modelProperties, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + enableEarlyTermination: { + defaultValue: true, + serializedName: "enableEarlyTermination", type: { name: "Boolean" } }, - latestVersion: { - serializedName: "latestVersion", - readOnly: true, + exitScore: { + serializedName: "exitScore", nullable: true, type: { - name: "String" + name: "Number" } }, - nextVersion: { - serializedName: "nextVersion", - readOnly: true, - nullable: true, + maxConcurrentTrials: { + defaultValue: 1, + serializedName: "maxConcurrentTrials", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const AssetBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AssetBase", - modelProperties: { - ...ResourceBase.type.modelProperties, - isAnonymous: { - defaultValue: false, - serializedName: "isAnonymous", + }, + maxCoresPerTrial: { + defaultValue: -1, + serializedName: "maxCoresPerTrial", type: { - name: "Boolean" + name: "Number" } }, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + maxNodes: { + defaultValue: 1, + serializedName: "maxNodes", type: { - name: "Boolean" + name: "Number" + } + }, + maxTrials: { + defaultValue: 1000, + serializedName: "maxTrials", + type: { + name: "Number" + } + }, + sweepConcurrentTrials: { + defaultValue: 0, + serializedName: "sweepConcurrentTrials", + type: { + name: "Number" + } + }, + sweepTrials: { + defaultValue: 0, + serializedName: "sweepTrials", + type: { + name: "Number" + } + }, + timeout: { + defaultValue: "PT6H", + serializedName: "timeout", + type: { + name: "TimeSpan" + } + }, + trialTimeout: { + defaultValue: "PT30M", + serializedName: "trialTimeout", + type: { + name: "TimeSpan" } } } } }; -export const DatastoreProperties: coreClient.CompositeMapper = { - serializedName: "DatastoreProperties", +export const TableParameterSubspace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DatastoreProperties", - uberParent: "ResourceBase", - polymorphicDiscriminator: { - serializedName: "datastoreType", - clientName: "datastoreType" - }, + className: "TableParameterSubspace", modelProperties: { - ...ResourceBase.type.modelProperties, - credentials: { - serializedName: "credentials", + booster: { + serializedName: "booster", + nullable: true, type: { - name: "Composite", - className: "DatastoreCredentials" + name: "String" } }, - datastoreType: { - serializedName: "datastoreType", - required: true, + boostingType: { + serializedName: "boostingType", + nullable: true, type: { name: "String" } }, - isDefault: { - serializedName: "isDefault", - readOnly: true, + growPolicy: { + serializedName: "growPolicy", + nullable: true, type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const JobBaseProperties: coreClient.CompositeMapper = { - serializedName: "JobBaseProperties", - type: { - name: "Composite", - className: "JobBaseProperties", - uberParent: "ResourceBase", - polymorphicDiscriminator: { - serializedName: "jobType", - clientName: "jobType" - }, - modelProperties: { - ...ResourceBase.type.modelProperties, - componentId: { - serializedName: "componentId", + }, + learningRate: { + serializedName: "learningRate", nullable: true, type: { name: "String" } }, - computeId: { - serializedName: "computeId", + maxBin: { + serializedName: "maxBin", nullable: true, type: { name: "String" } }, - displayName: { - serializedName: "displayName", + maxDepth: { + serializedName: "maxDepth", nullable: true, type: { name: "String" } }, - experimentName: { - defaultValue: "Default", - serializedName: "experimentName", + maxLeaves: { + serializedName: "maxLeaves", + nullable: true, type: { name: "String" } }, - identity: { - serializedName: "identity", + minDataInLeaf: { + serializedName: "minDataInLeaf", + nullable: true, type: { - name: "Composite", - className: "IdentityConfiguration" + name: "String" } }, - isArchived: { - defaultValue: false, - serializedName: "isArchived", + minSplitGain: { + serializedName: "minSplitGain", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - jobType: { - serializedName: "jobType", - required: true, + modelName: { + serializedName: "modelName", + nullable: true, type: { name: "String" } }, - services: { - serializedName: "services", + nEstimators: { + serializedName: "nEstimators", nullable: true, type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobService" } } + name: "String" } }, - status: { - serializedName: "status", - readOnly: true, + numLeaves: { + serializedName: "numLeaves", + nullable: true, type: { name: "String" } - } - } - } -}; - -export const ScheduleProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScheduleProperties", - modelProperties: { - ...ResourceBase.type.modelProperties, - action: { - serializedName: "action", + }, + preprocessorName: { + serializedName: "preprocessorName", + nullable: true, type: { - name: "Composite", - className: "ScheduleActionBase" + name: "String" } }, - displayName: { - serializedName: "displayName", + regAlpha: { + serializedName: "regAlpha", nullable: true, type: { name: "String" } }, - isEnabled: { - defaultValue: true, - serializedName: "isEnabled", + regLambda: { + serializedName: "regLambda", + nullable: true, type: { - name: "Boolean" + name: "String" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + subsample: { + serializedName: "subsample", + nullable: true, type: { name: "String" } }, - trigger: { - serializedName: "trigger", + subsampleFreq: { + serializedName: "subsampleFreq", + nullable: true, type: { - name: "Composite", - className: "TriggerBase" + name: "String" + } + }, + treeMethod: { + serializedName: "treeMethod", + nullable: true, + type: { + name: "String" + } + }, + withMean: { + serializedName: "withMean", + nullable: true, + type: { + name: "String" + } + }, + withStd: { + serializedName: "withStd", + nullable: true, + type: { + name: "String" } } } } }; -export const AccountKeyDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "AccountKey", +export const TableSweepSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccountKeyDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "TableSweepSettings", modelProperties: { - ...DatastoreCredentials.type.modelProperties, - secrets: { - serializedName: "secrets", + earlyTermination: { + serializedName: "earlyTermination", type: { name: "Composite", - className: "AccountKeyDatastoreSecrets" + className: "EarlyTerminationPolicy" } - } - } + }, + samplingAlgorithm: { + serializedName: "samplingAlgorithm", + required: true, + type: { + name: "String" + } + } + } } }; -export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "Certificate", +export const ModelPerformanceMetricThresholdBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "ModelPerformanceMetricThresholdBase", + uberParent: "ModelPerformanceMetricThresholdBase", + polymorphicDiscriminator: { + serializedName: "modelType", + clientName: "modelType" + }, modelProperties: { - ...DatastoreCredentials.type.modelProperties, - authorityUrl: { - serializedName: "authorityUrl", - nullable: true, - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", + modelType: { + serializedName: "modelType", required: true, - type: { - name: "Uuid" - } - }, - resourceUrl: { - serializedName: "resourceUrl", - nullable: true, type: { name: "String" } }, - secrets: { - serializedName: "secrets", + threshold: { + serializedName: "threshold", type: { name: "Composite", - className: "CertificateDatastoreSecrets" + className: "MonitoringThreshold" } - }, - tenantId: { - serializedName: "tenantId", + } + } + } +}; + +export const DistributionConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DistributionConfiguration", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: { + serializedName: "distributionType", + clientName: "distributionType" + }, + modelProperties: { + distributionType: { + serializedName: "distributionType", required: true, type: { - name: "Uuid" + name: "String" } - }, - thumbprint: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "thumbprint", + } + } + } +}; + +export const JobLimits: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobLimits", + uberParent: "JobLimits", + polymorphicDiscriminator: { + serializedName: "jobLimitsType", + clientName: "jobLimitsType" + }, + modelProperties: { + jobLimitsType: { + serializedName: "jobLimitsType", required: true, type: { name: "String" } + }, + timeout: { + serializedName: "timeout", + nullable: true, + type: { + name: "TimeSpan" + } } } } }; -export const NoneDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "None", +export const ComponentConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NoneDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "ComponentConfiguration", modelProperties: { - ...DatastoreCredentials.type.modelProperties + pipelineSettings: { + serializedName: "pipelineSettings", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } } } }; -export const SasDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "Sas", +export const ContainerResourceRequirements: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SasDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "ContainerResourceRequirements", modelProperties: { - ...DatastoreCredentials.type.modelProperties, - secrets: { - serializedName: "secrets", + containerResourceLimits: { + serializedName: "containerResourceLimits", type: { name: "Composite", - className: "SasDatastoreSecrets" + className: "ContainerResourceSettings" + } + }, + containerResourceRequests: { + serializedName: "containerResourceRequests", + type: { + name: "Composite", + className: "ContainerResourceSettings" } } } } }; -export const ServicePrincipalDatastoreCredentials: coreClient.CompositeMapper = { - serializedName: "ServicePrincipal", +export const ContainerResourceSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePrincipalDatastoreCredentials", - uberParent: "DatastoreCredentials", - polymorphicDiscriminator: - DatastoreCredentials.type.polymorphicDiscriminator, + className: "ContainerResourceSettings", modelProperties: { - ...DatastoreCredentials.type.modelProperties, - authorityUrl: { - serializedName: "authorityUrl", + cpu: { + serializedName: "cpu", nullable: true, type: { name: "String" } }, - clientId: { - serializedName: "clientId", - required: true, + gpu: { + serializedName: "gpu", + nullable: true, type: { - name: "Uuid" + name: "String" } }, - resourceUrl: { - serializedName: "resourceUrl", + memory: { + serializedName: "memory", nullable: true, type: { name: "String" } + } + } + } +}; + +export const MonitorDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MonitorDefinition", + modelProperties: { + alertNotificationSetting: { + serializedName: "alertNotificationSetting", + type: { + name: "Composite", + className: "MonitoringAlertNotificationSettingsBase" + } }, - secrets: { - serializedName: "secrets", + computeConfiguration: { + serializedName: "computeConfiguration", type: { name: "Composite", - className: "ServicePrincipalDatastoreSecrets" + className: "MonitorComputeConfigurationBase" } }, - tenantId: { - serializedName: "tenantId", + monitoringTarget: { + serializedName: "monitoringTarget", + type: { + name: "Composite", + className: "MonitoringTarget" + } + }, + signals: { + serializedName: "signals", required: true, type: { - name: "Uuid" + name: "Dictionary", + value: { + type: { name: "Composite", className: "MonitoringSignalBase" } + } } } } } }; -export const AccountKeyDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "AccountKey", +export const MonitorComputeConfigurationBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccountKeyDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + className: "MonitorComputeConfigurationBase", + uberParent: "MonitorComputeConfigurationBase", + polymorphicDiscriminator: { + serializedName: "computeType", + clientName: "computeType" + }, modelProperties: { - ...DatastoreSecrets.type.modelProperties, - key: { - serializedName: "key", - nullable: true, + computeType: { + serializedName: "computeType", + required: true, type: { name: "String" } @@ -8773,58 +10082,63 @@ export const AccountKeyDatastoreSecrets: coreClient.CompositeMapper = { } }; -export const CertificateDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "Certificate", +export const MonitoringTarget: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CertificateDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + className: "MonitoringTarget", modelProperties: { - ...DatastoreSecrets.type.modelProperties, - certificate: { - serializedName: "certificate", + deploymentId: { + serializedName: "deploymentId", nullable: true, type: { name: "String" } - } - } - } -}; - -export const SasDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "Sas", - type: { - name: "Composite", - className: "SasDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, - modelProperties: { - ...DatastoreSecrets.type.modelProperties, - sasToken: { - serializedName: "sasToken", + }, + modelId: { + serializedName: "modelId", nullable: true, type: { name: "String" } + }, + taskType: { + serializedName: "taskType", + required: true, + type: { + name: "String" + } } } } }; -export const ServicePrincipalDatastoreSecrets: coreClient.CompositeMapper = { - serializedName: "ServicePrincipal", +export const MonitoringSignalBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePrincipalDatastoreSecrets", - uberParent: "DatastoreSecrets", - polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + className: "MonitoringSignalBase", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: { + serializedName: "signalType", + clientName: "signalType" + }, modelProperties: { - ...DatastoreSecrets.type.modelProperties, - clientSecret: { - serializedName: "clientSecret", + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + signalType: { + serializedName: "signalType", + required: true, type: { name: "String" } @@ -8833,624 +10147,7967 @@ export const ServicePrincipalDatastoreSecrets: coreClient.CompositeMapper = { } }; -export const AmlToken: coreClient.CompositeMapper = { - serializedName: "AMLToken", +export const OnlineInferenceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AmlToken", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, + className: "OnlineInferenceConfiguration", modelProperties: { - ...IdentityConfiguration.type.modelProperties - } - } -}; - -export const ManagedIdentity: coreClient.CompositeMapper = { - serializedName: "Managed", - type: { - name: "Composite", - className: "ManagedIdentity", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, - modelProperties: { - ...IdentityConfiguration.type.modelProperties, - clientId: { - serializedName: "clientId", + configurations: { + serializedName: "configurations", nullable: true, type: { - name: "Uuid" + name: "Dictionary", + value: { type: { name: "String" } } } }, - objectId: { - serializedName: "objectId", + entryScript: { + serializedName: "entryScript", nullable: true, type: { - name: "Uuid" + name: "String" } }, - resourceId: { - serializedName: "resourceId", - nullable: true, + livenessRoute: { + serializedName: "livenessRoute", type: { - name: "String" + name: "Composite", + className: "Route" + } + }, + readinessRoute: { + serializedName: "readinessRoute", + type: { + name: "Composite", + className: "Route" + } + }, + scoringRoute: { + serializedName: "scoringRoute", + type: { + name: "Composite", + className: "Route" } } } } }; -export const UserIdentity: coreClient.CompositeMapper = { - serializedName: "UserIdentity", - type: { - name: "Composite", - className: "UserIdentity", - uberParent: "IdentityConfiguration", - polymorphicDiscriminator: - IdentityConfiguration.type.polymorphicDiscriminator, - modelProperties: { - ...IdentityConfiguration.type.modelProperties - } - } -}; - -export const DefaultScaleSettings: coreClient.CompositeMapper = { - serializedName: "Default", +export const CustomMetricThreshold: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefaultScaleSettings", - uberParent: "OnlineScaleSettings", - polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + className: "CustomMetricThreshold", modelProperties: { - ...OnlineScaleSettings.type.modelProperties + metric: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "metric", + required: true, + type: { + name: "String" + } + }, + threshold: { + serializedName: "threshold", + type: { + name: "Composite", + className: "MonitoringThreshold" + } + } } } }; -export const TargetUtilizationScaleSettings: coreClient.CompositeMapper = { - serializedName: "TargetUtilization", +export const MonitoringInputDataBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TargetUtilizationScaleSettings", - uberParent: "OnlineScaleSettings", - polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + className: "MonitoringInputDataBase", + uberParent: "MonitoringInputDataBase", + polymorphicDiscriminator: { + serializedName: "inputDataType", + clientName: "inputDataType" + }, modelProperties: { - ...OnlineScaleSettings.type.modelProperties, - maxInstances: { - defaultValue: 1, - serializedName: "maxInstances", + columns: { + serializedName: "columns", + nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } } }, - minInstances: { - defaultValue: 1, - serializedName: "minInstances", + dataContext: { + serializedName: "dataContext", + nullable: true, type: { - name: "Number" + name: "String" } }, - pollingInterval: { - defaultValue: "PT1S", - serializedName: "pollingInterval", + inputDataType: { + serializedName: "inputDataType", + required: true, type: { - name: "TimeSpan" + name: "String" } }, - targetUtilizationPercentage: { - defaultValue: 70, - serializedName: "targetUtilizationPercentage", + jobInputType: { + serializedName: "jobInputType", + required: true, type: { - name: "Number" + name: "String" + } + }, + uri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "uri", + required: true, + type: { + name: "String" } } } } }; -export const EndpointScheduleAction: coreClient.CompositeMapper = { - serializedName: "InvokeBatchEndpoint", +export const MonitoringWorkspaceConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EndpointScheduleAction", - uberParent: "ScheduleActionBase", - polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + className: "MonitoringWorkspaceConnection", modelProperties: { - ...ScheduleActionBase.type.modelProperties, - endpointInvocationDefinition: { - serializedName: "endpointInvocationDefinition", - required: true, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, type: { name: "Dictionary", - value: { type: { name: "any" } } + value: { type: { name: "String" } } + } + }, + secrets: { + serializedName: "secrets", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const JobScheduleAction: coreClient.CompositeMapper = { - serializedName: "CreateJob", +export const MonitoringDataSegment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobScheduleAction", - uberParent: "ScheduleActionBase", - polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + className: "MonitoringDataSegment", modelProperties: { - ...ScheduleActionBase.type.modelProperties, - jobDefinition: { - serializedName: "jobDefinition", + feature: { + serializedName: "feature", + nullable: true, type: { - name: "Composite", - className: "JobBaseProperties" + name: "String" + } + }, + values: { + serializedName: "values", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const RecurrenceTrigger: coreClient.CompositeMapper = { - serializedName: "Recurrence", +export const DataImportSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecurrenceTrigger", - uberParent: "TriggerBase", - polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, + className: "DataImportSource", + uberParent: "DataImportSource", + polymorphicDiscriminator: { + serializedName: "sourceType", + clientName: "sourceType" + }, modelProperties: { - ...TriggerBase.type.modelProperties, - frequency: { - serializedName: "frequency", - required: true, + connection: { + serializedName: "connection", + nullable: true, type: { name: "String" } }, - interval: { - serializedName: "interval", + sourceType: { + serializedName: "sourceType", required: true, type: { - name: "Number" - } - }, - schedule: { - serializedName: "schedule", - type: { - name: "Composite", - className: "RecurrenceSchedule" + name: "String" } } } } }; -export const CronTrigger: coreClient.CompositeMapper = { - serializedName: "Cron", +export const FeatureAttributionMetricThreshold: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CronTrigger", - uberParent: "TriggerBase", - polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, + className: "FeatureAttributionMetricThreshold", modelProperties: { - ...TriggerBase.type.modelProperties, - expression: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "expression", + metric: { + serializedName: "metric", required: true, type: { name: "String" } + }, + threshold: { + serializedName: "threshold", + type: { + name: "Composite", + className: "MonitoringThreshold" + } } } } }; -export const MLTableJobInput: coreClient.CompositeMapper = { - serializedName: "mltable", - type: { - name: "Composite", - className: "MLTableJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, - modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties - } - } -}; - -export const CustomModelJobInput: coreClient.CompositeMapper = { - serializedName: "custom_model", - type: { - name: "Composite", - className: "CustomModelJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, - modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties - } - } -}; - -export const MLFlowModelJobInput: coreClient.CompositeMapper = { - serializedName: "mlflow_model", - type: { - name: "Composite", - className: "MLFlowModelJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, - modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties - } - } -}; - -export const TritonModelJobInput: coreClient.CompositeMapper = { - serializedName: "triton_model", +export const ForecastingSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TritonModelJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "ForecastingSettings", modelProperties: { - ...AssetJobInput.type.modelProperties, + countryOrRegionForHolidays: { + serializedName: "countryOrRegionForHolidays", + nullable: true, + type: { + name: "String" + } + }, + cvStepSize: { + serializedName: "cvStepSize", + nullable: true, + type: { + name: "Number" + } + }, + featureLags: { + serializedName: "featureLags", + type: { + name: "String" + } + }, + featuresUnknownAtForecastTime: { + serializedName: "featuresUnknownAtForecastTime", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + forecastHorizon: { + serializedName: "forecastHorizon", + type: { + name: "Composite", + className: "ForecastHorizon" + } + }, + frequency: { + serializedName: "frequency", + nullable: true, + type: { + name: "String" + } + }, + seasonality: { + serializedName: "seasonality", + type: { + name: "Composite", + className: "Seasonality" + } + }, + shortSeriesHandlingConfig: { + serializedName: "shortSeriesHandlingConfig", + type: { + name: "String" + } + }, + targetAggregateFunction: { + serializedName: "targetAggregateFunction", + type: { + name: "String" + } + }, + targetLags: { + serializedName: "targetLags", + type: { + name: "Composite", + className: "TargetLags" + } + }, + targetRollingWindowSize: { + serializedName: "targetRollingWindowSize", + type: { + name: "Composite", + className: "TargetRollingWindowSize" + } + }, + timeColumnName: { + serializedName: "timeColumnName", + nullable: true, + type: { + name: "String" + } + }, + timeSeriesIdColumnNames: { + serializedName: "timeSeriesIdColumnNames", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + useStl: { + serializedName: "useStl", + type: { + name: "String" + } + } + } + } +}; + +export const GenerationSafetyQualityMetricThreshold: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GenerationSafetyQualityMetricThreshold", + modelProperties: { + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + }, + threshold: { + serializedName: "threshold", + type: { + name: "Composite", + className: "MonitoringThreshold" + } + } + } + } +}; + +export const GenerationTokenStatisticsMetricThreshold: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GenerationTokenStatisticsMetricThreshold", + modelProperties: { + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + }, + threshold: { + serializedName: "threshold", + type: { + name: "Composite", + className: "MonitoringThreshold" + } + } + } + } +}; + +export const ImageModelSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageModelSettings", + modelProperties: { + advancedSettings: { + serializedName: "advancedSettings", + nullable: true, + type: { + name: "String" + } + }, + amsGradient: { + serializedName: "amsGradient", + nullable: true, + type: { + name: "Boolean" + } + }, + augmentations: { + serializedName: "augmentations", + nullable: true, + type: { + name: "String" + } + }, + beta1: { + serializedName: "beta1", + nullable: true, + type: { + name: "Number" + } + }, + beta2: { + serializedName: "beta2", + nullable: true, + type: { + name: "Number" + } + }, + checkpointFrequency: { + serializedName: "checkpointFrequency", + nullable: true, + type: { + name: "Number" + } + }, + checkpointModel: { + serializedName: "checkpointModel", + type: { + name: "Composite", + className: "MLFlowModelJobInput" + } + }, + checkpointRunId: { + serializedName: "checkpointRunId", + nullable: true, + type: { + name: "String" + } + }, + distributed: { + serializedName: "distributed", + nullable: true, + type: { + name: "Boolean" + } + }, + earlyStopping: { + serializedName: "earlyStopping", + nullable: true, + type: { + name: "Boolean" + } + }, + earlyStoppingDelay: { + serializedName: "earlyStoppingDelay", + nullable: true, + type: { + name: "Number" + } + }, + earlyStoppingPatience: { + serializedName: "earlyStoppingPatience", + nullable: true, + type: { + name: "Number" + } + }, + enableOnnxNormalization: { + serializedName: "enableOnnxNormalization", + nullable: true, + type: { + name: "Boolean" + } + }, + evaluationFrequency: { + serializedName: "evaluationFrequency", + nullable: true, + type: { + name: "Number" + } + }, + gradientAccumulationStep: { + serializedName: "gradientAccumulationStep", + nullable: true, + type: { + name: "Number" + } + }, + layersToFreeze: { + serializedName: "layersToFreeze", + nullable: true, + type: { + name: "Number" + } + }, + learningRate: { + serializedName: "learningRate", + nullable: true, + type: { + name: "Number" + } + }, + learningRateScheduler: { + serializedName: "learningRateScheduler", + type: { + name: "String" + } + }, + modelName: { + serializedName: "modelName", + nullable: true, + type: { + name: "String" + } + }, + momentum: { + serializedName: "momentum", + nullable: true, + type: { + name: "Number" + } + }, + nesterov: { + serializedName: "nesterov", + nullable: true, + type: { + name: "Boolean" + } + }, + numberOfEpochs: { + serializedName: "numberOfEpochs", + nullable: true, + type: { + name: "Number" + } + }, + numberOfWorkers: { + serializedName: "numberOfWorkers", + nullable: true, + type: { + name: "Number" + } + }, + optimizer: { + serializedName: "optimizer", + type: { + name: "String" + } + }, + randomSeed: { + serializedName: "randomSeed", + nullable: true, + type: { + name: "Number" + } + }, + stepLRGamma: { + serializedName: "stepLRGamma", + nullable: true, + type: { + name: "Number" + } + }, + stepLRStepSize: { + serializedName: "stepLRStepSize", + nullable: true, + type: { + name: "Number" + } + }, + trainingBatchSize: { + serializedName: "trainingBatchSize", + nullable: true, + type: { + name: "Number" + } + }, + validationBatchSize: { + serializedName: "validationBatchSize", + nullable: true, + type: { + name: "Number" + } + }, + warmupCosineLRCycles: { + serializedName: "warmupCosineLRCycles", + nullable: true, + type: { + name: "Number" + } + }, + warmupCosineLRWarmupEpochs: { + serializedName: "warmupCosineLRWarmupEpochs", + nullable: true, + type: { + name: "Number" + } + }, + weightDecay: { + serializedName: "weightDecay", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const ImageModelDistributionSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageModelDistributionSettings", + modelProperties: { + amsGradient: { + serializedName: "amsGradient", + nullable: true, + type: { + name: "String" + } + }, + augmentations: { + serializedName: "augmentations", + nullable: true, + type: { + name: "String" + } + }, + beta1: { + serializedName: "beta1", + nullable: true, + type: { + name: "String" + } + }, + beta2: { + serializedName: "beta2", + nullable: true, + type: { + name: "String" + } + }, + distributed: { + serializedName: "distributed", + nullable: true, + type: { + name: "String" + } + }, + earlyStopping: { + serializedName: "earlyStopping", + nullable: true, + type: { + name: "String" + } + }, + earlyStoppingDelay: { + serializedName: "earlyStoppingDelay", + nullable: true, + type: { + name: "String" + } + }, + earlyStoppingPatience: { + serializedName: "earlyStoppingPatience", + nullable: true, + type: { + name: "String" + } + }, + enableOnnxNormalization: { + serializedName: "enableOnnxNormalization", + nullable: true, + type: { + name: "String" + } + }, + evaluationFrequency: { + serializedName: "evaluationFrequency", + nullable: true, + type: { + name: "String" + } + }, + gradientAccumulationStep: { + serializedName: "gradientAccumulationStep", + nullable: true, + type: { + name: "String" + } + }, + layersToFreeze: { + serializedName: "layersToFreeze", + nullable: true, + type: { + name: "String" + } + }, + learningRate: { + serializedName: "learningRate", + nullable: true, + type: { + name: "String" + } + }, + learningRateScheduler: { + serializedName: "learningRateScheduler", + nullable: true, + type: { + name: "String" + } + }, + modelName: { + serializedName: "modelName", + nullable: true, + type: { + name: "String" + } + }, + momentum: { + serializedName: "momentum", + nullable: true, + type: { + name: "String" + } + }, + nesterov: { + serializedName: "nesterov", + nullable: true, + type: { + name: "String" + } + }, + numberOfEpochs: { + serializedName: "numberOfEpochs", + nullable: true, + type: { + name: "String" + } + }, + numberOfWorkers: { + serializedName: "numberOfWorkers", + nullable: true, + type: { + name: "String" + } + }, + optimizer: { + serializedName: "optimizer", + nullable: true, + type: { + name: "String" + } + }, + randomSeed: { + serializedName: "randomSeed", + nullable: true, + type: { + name: "String" + } + }, + stepLRGamma: { + serializedName: "stepLRGamma", + nullable: true, + type: { + name: "String" + } + }, + stepLRStepSize: { + serializedName: "stepLRStepSize", + nullable: true, + type: { + name: "String" + } + }, + trainingBatchSize: { + serializedName: "trainingBatchSize", + nullable: true, + type: { + name: "String" + } + }, + validationBatchSize: { + serializedName: "validationBatchSize", + nullable: true, + type: { + name: "String" + } + }, + warmupCosineLRCycles: { + serializedName: "warmupCosineLRCycles", + nullable: true, + type: { + name: "String" + } + }, + warmupCosineLRWarmupEpochs: { + serializedName: "warmupCosineLRWarmupEpochs", + nullable: true, + type: { + name: "String" + } + }, + weightDecay: { + serializedName: "weightDecay", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImageVertical: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageVertical", + modelProperties: { + limitSettings: { + serializedName: "limitSettings", + type: { + name: "Composite", + className: "ImageLimitSettings" + } + }, + sweepSettings: { + serializedName: "sweepSettings", + type: { + name: "Composite", + className: "ImageSweepSettings" + } + }, + validationData: { + serializedName: "validationData", + type: { + name: "Composite", + className: "MLTableJobInput" + } + }, + validationDataSize: { + serializedName: "validationDataSize", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const ImageLimitSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageLimitSettings", + modelProperties: { + maxConcurrentTrials: { + defaultValue: 1, + serializedName: "maxConcurrentTrials", + type: { + name: "Number" + } + }, + maxTrials: { + defaultValue: 1, + serializedName: "maxTrials", + type: { + name: "Number" + } + }, + timeout: { + defaultValue: "P7D", + serializedName: "timeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const ImageSweepSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageSweepSettings", + modelProperties: { + earlyTermination: { + serializedName: "earlyTermination", + type: { + name: "Composite", + className: "EarlyTerminationPolicy" + } + }, + samplingAlgorithm: { + serializedName: "samplingAlgorithm", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const KerberosCredentials: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KerberosCredentials", + modelProperties: { + kerberosKdcAddress: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "kerberosKdcAddress", + required: true, + type: { + name: "String" + } + }, + kerberosPrincipal: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "kerberosPrincipal", + required: true, + type: { + name: "String" + } + }, + kerberosRealm: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "kerberosRealm", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const OneLakeArtifact: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OneLakeArtifact", + uberParent: "OneLakeArtifact", + polymorphicDiscriminator: { + serializedName: "artifactType", + clientName: "artifactType" + }, + modelProperties: { + artifactName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "artifactName", + required: true, + type: { + name: "String" + } + }, + artifactType: { + serializedName: "artifactType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const NlpFixedParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NlpFixedParameters", + modelProperties: { + gradientAccumulationSteps: { + serializedName: "gradientAccumulationSteps", + nullable: true, + type: { + name: "Number" + } + }, + learningRate: { + serializedName: "learningRate", + nullable: true, + type: { + name: "Number" + } + }, + learningRateScheduler: { + serializedName: "learningRateScheduler", + type: { + name: "String" + } + }, + modelName: { + serializedName: "modelName", + nullable: true, + type: { + name: "String" + } + }, + numberOfEpochs: { + serializedName: "numberOfEpochs", + nullable: true, + type: { + name: "Number" + } + }, + trainingBatchSize: { + serializedName: "trainingBatchSize", + nullable: true, + type: { + name: "Number" + } + }, + validationBatchSize: { + serializedName: "validationBatchSize", + nullable: true, + type: { + name: "Number" + } + }, + warmupRatio: { + serializedName: "warmupRatio", + nullable: true, + type: { + name: "Number" + } + }, + weightDecay: { + serializedName: "weightDecay", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const NlpParameterSubspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NlpParameterSubspace", + modelProperties: { + gradientAccumulationSteps: { + serializedName: "gradientAccumulationSteps", + nullable: true, + type: { + name: "String" + } + }, + learningRate: { + serializedName: "learningRate", + nullable: true, + type: { + name: "String" + } + }, + learningRateScheduler: { + serializedName: "learningRateScheduler", + nullable: true, + type: { + name: "String" + } + }, + modelName: { + serializedName: "modelName", + nullable: true, + type: { + name: "String" + } + }, + numberOfEpochs: { + serializedName: "numberOfEpochs", + nullable: true, + type: { + name: "String" + } + }, + trainingBatchSize: { + serializedName: "trainingBatchSize", + nullable: true, + type: { + name: "String" + } + }, + validationBatchSize: { + serializedName: "validationBatchSize", + nullable: true, + type: { + name: "String" + } + }, + warmupRatio: { + serializedName: "warmupRatio", + nullable: true, + type: { + name: "String" + } + }, + weightDecay: { + serializedName: "weightDecay", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const NlpSweepSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NlpSweepSettings", + modelProperties: { + earlyTermination: { + serializedName: "earlyTermination", + type: { + name: "Composite", + className: "EarlyTerminationPolicy" + } + }, + samplingAlgorithm: { + serializedName: "samplingAlgorithm", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const NlpVertical: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NlpVertical", + modelProperties: { + featurizationSettings: { + serializedName: "featurizationSettings", + type: { + name: "Composite", + className: "NlpVerticalFeaturizationSettings" + } + }, + fixedParameters: { + serializedName: "fixedParameters", + type: { + name: "Composite", + className: "NlpFixedParameters" + } + }, + limitSettings: { + serializedName: "limitSettings", + type: { + name: "Composite", + className: "NlpVerticalLimitSettings" + } + }, + searchSpace: { + serializedName: "searchSpace", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NlpParameterSubspace" + } + } + } + }, + sweepSettings: { + serializedName: "sweepSettings", + type: { + name: "Composite", + className: "NlpSweepSettings" + } + }, + validationData: { + serializedName: "validationData", + type: { + name: "Composite", + className: "MLTableJobInput" + } + } + } + } +}; + +export const NlpVerticalLimitSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NlpVerticalLimitSettings", + modelProperties: { + maxConcurrentTrials: { + defaultValue: 1, + serializedName: "maxConcurrentTrials", + type: { + name: "Number" + } + }, + maxNodes: { + defaultValue: 1, + serializedName: "maxNodes", + type: { + name: "Number" + } + }, + maxTrials: { + defaultValue: 1, + serializedName: "maxTrials", + type: { + name: "Number" + } + }, + timeout: { + defaultValue: "P7D", + serializedName: "timeout", + type: { + name: "TimeSpan" + } + }, + trialTimeout: { + serializedName: "trialTimeout", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const Objective: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Objective", + modelProperties: { + goal: { + serializedName: "goal", + required: true, + type: { + name: "String" + } + }, + primaryMetric: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "primaryMetric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const SparkJobEntry: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SparkJobEntry", + uberParent: "SparkJobEntry", + polymorphicDiscriminator: { + serializedName: "sparkJobEntryType", + clientName: "sparkJobEntryType" + }, + modelProperties: { + sparkJobEntryType: { + serializedName: "sparkJobEntryType", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const SparkResourceConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SparkResourceConfiguration", + modelProperties: { + instanceType: { + serializedName: "instanceType", + nullable: true, + type: { + name: "String" + } + }, + runtimeVersion: { + defaultValue: "3.1", + serializedName: "runtimeVersion", + type: { + name: "String" + } + } + } + } +}; + +export const TrialComponent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrialComponent", + modelProperties: { + codeId: { + serializedName: "codeId", + nullable: true, + type: { + name: "String" + } + }, + command: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "command", + required: true, + type: { + name: "String" + } + }, + distribution: { + serializedName: "distribution", + type: { + name: "Composite", + className: "DistributionConfiguration" + } + }, + environmentId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "environmentId", + required: true, + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "JobResourceConfiguration" + } + } + } + } +}; + +export const WorkspaceConnectionAccessKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionAccessKey", + modelProperties: { + accessKeyId: { + serializedName: "accessKeyId", + type: { + name: "String" + } + }, + secretAccessKey: { + serializedName: "secretAccessKey", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnectionApiKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionApiKey", + modelProperties: { + key: { + serializedName: "key", + type: { + name: "String" + } + } + } + } +}; + +export const CustomKeys: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomKeys", + modelProperties: { + keys: { + serializedName: "keys", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const WorkspaceConnectionManagedIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionManagedIdentity", + modelProperties: { + clientId: { + serializedName: "clientId", + type: { + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnectionPersonalAccessToken: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionPersonalAccessToken", + modelProperties: { + pat: { + serializedName: "pat", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointDestination: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointDestination", + modelProperties: { + serviceResourceId: { + serializedName: "serviceResourceId", + type: { + name: "String" + } + }, + sparkEnabled: { + serializedName: "sparkEnabled", + type: { + name: "Boolean" + } + }, + sparkStatus: { + serializedName: "sparkStatus", + type: { + name: "String" + } + }, + subresourceTarget: { + serializedName: "subresourceTarget", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnectionSharedAccessSignature: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionSharedAccessSignature", + modelProperties: { + sas: { + serializedName: "sas", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnectionServicePrincipal: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionServicePrincipal", + modelProperties: { + clientId: { + serializedName: "clientId", + type: { + name: "String" + } + }, + clientSecret: { + serializedName: "clientSecret", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceTagDestination: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceTagDestination", + modelProperties: { + action: { + serializedName: "action", + type: { + name: "String" + } + }, + addressPrefixes: { + serializedName: "addressPrefixes", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + portRanges: { + serializedName: "portRanges", + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + type: { + name: "String" + } + }, + serviceTag: { + serializedName: "serviceTag", + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnectionUsernamePassword: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionUsernamePassword", + modelProperties: { + password: { + serializedName: "password", + type: { + name: "String" + } + }, + username: { + serializedName: "username", + type: { + name: "String" + } + } + } + } +}; + +export const RegistryPartialManagedServiceIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryPartialManagedServiceIdentity", + modelProperties: { + ...ManagedServiceIdentity.type.modelProperties + } + } +}; + +export const ComputeResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComputeResource", + modelProperties: { + ...Resource.type.modelProperties, + ...ComputeResourceSchema.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const CodeContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CodeContainerProperties" + } + } + } + } +}; + +export const CodeVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CodeVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "CodeVersionProperties" + } + } + } + } +}; + +export const ComponentContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComponentContainerProperties" + } + } + } + } +}; + +export const ComponentVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComponentVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ComponentVersionProperties" + } + } + } + } +}; + +export const DataContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataContainerProperties" + } + } + } + } +}; + +export const DataVersionBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataVersionBase", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DataVersionBaseProperties" + } + } + } + } +}; + +export const EnvironmentContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentContainerProperties" + } + } + } + } +}; + +export const EnvironmentVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "EnvironmentVersionProperties" + } + } + } + } +}; + +export const ModelContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ModelContainerProperties" + } + } + } + } +}; + +export const ModelVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ModelVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ModelVersionProperties" + } + } + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const Datastore: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Datastore", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DatastoreProperties" + } + } + } + } +}; + +export const FeaturesetContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturesetContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeaturesetContainerProperties" + } + } + } + } +}; + +export const Feature: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Feature", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeatureProperties" + } + } + } + } +}; + +export const FeaturesetVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturesetVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeaturesetVersionProperties" + } + } + } + } +}; + +export const FeaturestoreEntityContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturestoreEntityContainer", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeaturestoreEntityContainerProperties" + } + } + } + } +}; + +export const FeaturestoreEntityVersion: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturestoreEntityVersion", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "FeaturestoreEntityVersionProperties" + } + } + } + } +}; + +export const JobBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobBase", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "JobBaseProperties" + } + } + } + } +}; + +export const LabelingJob: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LabelingJob", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "LabelingJobProperties" + } + } + } + } +}; + +export const Schedule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Schedule", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ScheduleProperties" + } + } + } + } +}; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "WorkspacePrivateEndpointResource" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const Workspace: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Workspace", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + allowPublicAccessWhenBehindVnet: { + serializedName: "properties.allowPublicAccessWhenBehindVnet", + type: { + name: "Boolean" + } + }, + applicationInsights: { + serializedName: "properties.applicationInsights", + type: { + name: "String" + } + }, + associatedWorkspaces: { + serializedName: "properties.associatedWorkspaces", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + containerRegistries: { + serializedName: "properties.containerRegistries", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + containerRegistry: { + serializedName: "properties.containerRegistry", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + discoveryUrl: { + serializedName: "properties.discoveryUrl", + type: { + name: "String" + } + }, + enableDataIsolation: { + serializedName: "properties.enableDataIsolation", + type: { + name: "Boolean" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "EncryptionProperty" + } + }, + existingWorkspaces: { + serializedName: "properties.existingWorkspaces", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + featureStoreSettings: { + serializedName: "properties.featureStoreSettings", + type: { + name: "Composite", + className: "FeatureStoreSettings" + } + }, + friendlyName: { + serializedName: "properties.friendlyName", + type: { + name: "String" + } + }, + hbiWorkspace: { + serializedName: "properties.hbiWorkspace", + type: { + name: "Boolean" + } + }, + hubResourceId: { + serializedName: "properties.hubResourceId", + type: { + name: "String" + } + }, + imageBuildCompute: { + serializedName: "properties.imageBuildCompute", + type: { + name: "String" + } + }, + keyVault: { + serializedName: "properties.keyVault", + type: { + name: "String" + } + }, + keyVaults: { + serializedName: "properties.keyVaults", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + managedNetwork: { + serializedName: "properties.managedNetwork", + type: { + name: "Composite", + className: "ManagedNetworkSettings" + } + }, + mlFlowTrackingUri: { + serializedName: "properties.mlFlowTrackingUri", + readOnly: true, + type: { + name: "String" + } + }, + notebookInfo: { + serializedName: "properties.notebookInfo", + type: { + name: "Composite", + className: "NotebookResourceInfo" + } + }, + primaryUserAssignedIdentity: { + serializedName: "properties.primaryUserAssignedIdentity", + type: { + name: "String" + } + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + privateLinkCount: { + serializedName: "properties.privateLinkCount", + readOnly: true, + type: { + name: "Number" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + serviceManagedResourcesSettings: { + serializedName: "properties.serviceManagedResourcesSettings", + type: { + name: "Composite", + className: "ServiceManagedResourcesSettings" + } + }, + serviceProvisionedResourceGroup: { + serializedName: "properties.serviceProvisionedResourceGroup", + readOnly: true, + type: { + name: "String" + } + }, + sharedPrivateLinkResources: { + serializedName: "properties.sharedPrivateLinkResources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedPrivateLinkResource" + } + } + } + }, + softDeleteRetentionInDays: { + serializedName: "properties.softDeleteRetentionInDays", + type: { + name: "Number" + } + }, + storageAccount: { + serializedName: "properties.storageAccount", + type: { + name: "String" + } + }, + storageAccounts: { + serializedName: "properties.storageAccounts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + storageHnsEnabled: { + serializedName: "properties.storageHnsEnabled", + readOnly: true, + type: { + name: "Boolean" + } + }, + systemDatastoresAuthMode: { + serializedName: "properties.systemDatastoresAuthMode", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "properties.tenantId", + readOnly: true, + type: { + name: "String" + } + }, + v1LegacyMode: { + serializedName: "properties.v1LegacyMode", + type: { + name: "Boolean" + } + }, + workspaceHubConfig: { + serializedName: "properties.workspaceHubConfig", + type: { + name: "Composite", + className: "WorkspaceHubConfig" + } + }, + workspaceId: { + serializedName: "properties.workspaceId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const WorkspaceConnectionPropertiesV2BasicResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2BasicResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "WorkspaceConnectionPropertiesV2" + } + } + } + } +}; + +export const OutboundRuleBasicResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OutboundRuleBasicResource", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OutboundRule" + } + } + } + } +}; + +export const PrivateLinkResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + groupId: { + serializedName: "properties.groupId", + type: { + name: "String" + } + }, + requiredMembers: { + serializedName: "properties.requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const Aks: coreClient.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + className: "Aks", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...AKSSchema.type.modelProperties + } + } +}; + +export const Kubernetes: coreClient.CompositeMapper = { + serializedName: "Kubernetes", + type: { + name: "Composite", + className: "Kubernetes", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...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, + ...AmlComputeSchema.type.modelProperties + } + } +}; + +export const ComputeInstance: coreClient.CompositeMapper = { + serializedName: "ComputeInstance", + type: { + name: "Composite", + className: "ComputeInstance", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...ComputeInstanceSchema.type.modelProperties + } + } +}; + +export const VirtualMachine: coreClient.CompositeMapper = { + serializedName: "VirtualMachine", + type: { + name: "Composite", + className: "VirtualMachine", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...VirtualMachineSchema.type.modelProperties + } + } +}; + +export const HDInsight: coreClient.CompositeMapper = { + serializedName: "HDInsight", + type: { + name: "Composite", + className: "HDInsight", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...HDInsightSchema.type.modelProperties + } + } +}; + +export const DataFactory: coreClient.CompositeMapper = { + serializedName: "DataFactory", + type: { + name: "Composite", + className: "DataFactory", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties + } + } +}; + +export const Databricks: coreClient.CompositeMapper = { + serializedName: "Databricks", + type: { + name: "Composite", + className: "Databricks", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...DatabricksSchema.type.modelProperties + } + } +}; + +export const DataLakeAnalytics: coreClient.CompositeMapper = { + serializedName: "DataLakeAnalytics", + type: { + name: "Composite", + className: "DataLakeAnalytics", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + ...DataLakeAnalyticsSchema.type.modelProperties + } + } +}; + +export const SynapseSpark: coreClient.CompositeMapper = { + serializedName: "SynapseSpark", + type: { + name: "Composite", + className: "SynapseSpark", + uberParent: "Compute", + polymorphicDiscriminator: Compute.type.polymorphicDiscriminator, + modelProperties: { + ...Compute.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SynapseSparkProperties" + } + } + } + } +}; + +export const AksComputeSecrets: coreClient.CompositeMapper = { + serializedName: "AKS", + type: { + name: "Composite", + className: "AksComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + ...AksComputeSecretsProperties.type.modelProperties + } + } +}; + +export const VirtualMachineSecrets: coreClient.CompositeMapper = { + serializedName: "VirtualMachine", + type: { + name: "Composite", + className: "VirtualMachineSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + ...VirtualMachineSecretsSchema.type.modelProperties + } + } +}; + +export const DatabricksComputeSecrets: coreClient.CompositeMapper = { + serializedName: "Databricks", + type: { + name: "Composite", + className: "DatabricksComputeSecrets", + uberParent: "ComputeSecrets", + polymorphicDiscriminator: ComputeSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...ComputeSecrets.type.modelProperties, + ...DatabricksComputeSecretsProperties.type.modelProperties + } + } +}; + +export const AssetContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssetContainer", + modelProperties: { + ...ResourceBase.type.modelProperties, + isArchived: { + defaultValue: false, + serializedName: "isArchived", + type: { + name: "Boolean" + } + }, + latestVersion: { + serializedName: "latestVersion", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + nextVersion: { + serializedName: "nextVersion", + readOnly: true, + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const AssetBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssetBase", + modelProperties: { + ...ResourceBase.type.modelProperties, + autoDeleteSetting: { + serializedName: "autoDeleteSetting", + type: { + name: "Composite", + className: "AutoDeleteSetting" + } + }, + isAnonymous: { + defaultValue: false, + serializedName: "isAnonymous", + type: { + name: "Boolean" + } + }, + isArchived: { + defaultValue: false, + serializedName: "isArchived", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DatastoreProperties: coreClient.CompositeMapper = { + serializedName: "DatastoreProperties", + type: { + name: "Composite", + className: "DatastoreProperties", + uberParent: "ResourceBase", + polymorphicDiscriminator: { + serializedName: "datastoreType", + clientName: "datastoreType" + }, + modelProperties: { + ...ResourceBase.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "DatastoreCredentials" + } + }, + datastoreType: { + serializedName: "datastoreType", + required: true, + type: { + name: "String" + } + }, + intellectualProperty: { + serializedName: "intellectualProperty", + type: { + name: "Composite", + className: "IntellectualProperty" + } + }, + isDefault: { + serializedName: "isDefault", + readOnly: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const FeatureProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeatureProperties", + modelProperties: { + ...ResourceBase.type.modelProperties, + dataType: { + serializedName: "dataType", + type: { + name: "String" + } + }, + featureName: { + serializedName: "featureName", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const JobBaseProperties: coreClient.CompositeMapper = { + serializedName: "JobBaseProperties", + type: { + name: "Composite", + className: "JobBaseProperties", + uberParent: "ResourceBase", + polymorphicDiscriminator: { + serializedName: "jobType", + clientName: "jobType" + }, + modelProperties: { + ...ResourceBase.type.modelProperties, + componentId: { + serializedName: "componentId", + nullable: true, + type: { + name: "String" + } + }, + computeId: { + serializedName: "computeId", + nullable: true, + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + nullable: true, + type: { + name: "String" + } + }, + experimentName: { + defaultValue: "Default", + serializedName: "experimentName", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityConfiguration" + } + }, + isArchived: { + defaultValue: false, + serializedName: "isArchived", + type: { + name: "Boolean" + } + }, + jobType: { + serializedName: "jobType", + required: true, + type: { + name: "String" + } + }, + notificationSetting: { + serializedName: "notificationSetting", + type: { + name: "Composite", + className: "NotificationSetting" + } + }, + secretsConfiguration: { + serializedName: "secretsConfiguration", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "SecretConfiguration" } + } + } + }, + services: { + serializedName: "services", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobService" } } + } + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ScheduleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScheduleProperties", + modelProperties: { + ...ResourceBase.type.modelProperties, + action: { + serializedName: "action", + type: { + name: "Composite", + className: "ScheduleActionBase" + } + }, + displayName: { + serializedName: "displayName", + nullable: true, + type: { + name: "String" + } + }, + isEnabled: { + defaultValue: true, + serializedName: "isEnabled", + type: { + name: "Boolean" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + trigger: { + serializedName: "trigger", + type: { + name: "Composite", + className: "TriggerBase" + } + } + } + } +}; + +export const SASCredentialDto: coreClient.CompositeMapper = { + serializedName: "SAS", + type: { + name: "Composite", + className: "SASCredentialDto", + uberParent: "PendingUploadCredentialDto", + polymorphicDiscriminator: + PendingUploadCredentialDto.type.polymorphicDiscriminator, + modelProperties: { + ...PendingUploadCredentialDto.type.modelProperties, + sasUri: { + serializedName: "sasUri", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const BaseEnvironmentId: coreClient.CompositeMapper = { + serializedName: "EnvironmentAsset", + type: { + name: "Composite", + className: "BaseEnvironmentId", + uberParent: "BaseEnvironmentSource", + polymorphicDiscriminator: + BaseEnvironmentSource.type.polymorphicDiscriminator, + modelProperties: { + ...BaseEnvironmentSource.type.modelProperties, + resourceId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "resourceId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzureMLBatchInferencingServer: coreClient.CompositeMapper = { + serializedName: "AzureMLBatch", + type: { + name: "Composite", + className: "AzureMLBatchInferencingServer", + uberParent: "InferencingServer", + polymorphicDiscriminator: InferencingServer.type.polymorphicDiscriminator, + modelProperties: { + ...InferencingServer.type.modelProperties, + codeConfiguration: { + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + } + } + } +}; + +export const AzureMLOnlineInferencingServer: coreClient.CompositeMapper = { + serializedName: "AzureMLOnline", + type: { + name: "Composite", + className: "AzureMLOnlineInferencingServer", + uberParent: "InferencingServer", + polymorphicDiscriminator: InferencingServer.type.polymorphicDiscriminator, + modelProperties: { + ...InferencingServer.type.modelProperties, + codeConfiguration: { + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + } + } + } +}; + +export const CustomInferencingServer: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "CustomInferencingServer", + uberParent: "InferencingServer", + polymorphicDiscriminator: InferencingServer.type.polymorphicDiscriminator, + modelProperties: { + ...InferencingServer.type.modelProperties, + inferenceConfiguration: { + serializedName: "inferenceConfiguration", + type: { + name: "Composite", + className: "OnlineInferenceConfiguration" + } + } + } + } +}; + +export const TritonInferencingServer: coreClient.CompositeMapper = { + serializedName: "Triton", + type: { + name: "Composite", + className: "TritonInferencingServer", + uberParent: "InferencingServer", + polymorphicDiscriminator: InferencingServer.type.polymorphicDiscriminator, + modelProperties: { + ...InferencingServer.type.modelProperties, + inferenceConfiguration: { + serializedName: "inferenceConfiguration", + type: { + name: "Composite", + className: "OnlineInferenceConfiguration" + } + } + } + } +}; + +export const PackageInputPathId: coreClient.CompositeMapper = { + serializedName: "PathId", + type: { + name: "Composite", + className: "PackageInputPathId", + uberParent: "PackageInputPathBase", + polymorphicDiscriminator: + PackageInputPathBase.type.polymorphicDiscriminator, + modelProperties: { + ...PackageInputPathBase.type.modelProperties, + resourceId: { + serializedName: "resourceId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const PackageInputPathUrl: coreClient.CompositeMapper = { + serializedName: "Url", + type: { + name: "Composite", + className: "PackageInputPathUrl", + uberParent: "PackageInputPathBase", + polymorphicDiscriminator: + PackageInputPathBase.type.polymorphicDiscriminator, + modelProperties: { + ...PackageInputPathBase.type.modelProperties, + url: { + serializedName: "url", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const PackageInputPathVersion: coreClient.CompositeMapper = { + serializedName: "PathVersion", + type: { + name: "Composite", + className: "PackageInputPathVersion", + uberParent: "PackageInputPathBase", + polymorphicDiscriminator: + PackageInputPathBase.type.polymorphicDiscriminator, + modelProperties: { + ...PackageInputPathBase.type.modelProperties, + resourceName: { + serializedName: "resourceName", + nullable: true, + type: { + name: "String" + } + }, + resourceVersion: { + serializedName: "resourceVersion", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const BatchEndpointProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchEndpointProperties", + modelProperties: { + ...EndpointPropertiesBase.type.modelProperties, + defaults: { + serializedName: "defaults", + type: { + name: "Composite", + className: "BatchEndpointDefaults" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OnlineEndpointProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointProperties", + modelProperties: { + ...EndpointPropertiesBase.type.modelProperties, + compute: { + serializedName: "compute", + nullable: true, + type: { + name: "String" + } + }, + mirrorTraffic: { + serializedName: "mirrorTraffic", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Number" } } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + type: { + name: "String" + } + }, + traffic: { + serializedName: "traffic", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Number" } } + } + } + } + } +}; + +export const PartialMinimalTrackedResourceWithIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialMinimalTrackedResourceWithIdentity", + modelProperties: { + ...PartialMinimalTrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "PartialManagedServiceIdentity" + } + } + } + } +}; + +export const PartialMinimalTrackedResourceWithSkuAndIdentity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialMinimalTrackedResourceWithSkuAndIdentity", + modelProperties: { + ...PartialMinimalTrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "PartialManagedServiceIdentity" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PartialSku" + } + } + } + } +}; + +export const PartialMinimalTrackedResourceWithSku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialMinimalTrackedResourceWithSku", + modelProperties: { + ...PartialMinimalTrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PartialSku" + } + } + } + } +}; + +export const BatchPipelineComponentDeploymentConfiguration: coreClient.CompositeMapper = { + serializedName: "PipelineComponent", + type: { + name: "Composite", + className: "BatchPipelineComponentDeploymentConfiguration", + uberParent: "BatchDeploymentConfiguration", + polymorphicDiscriminator: + BatchDeploymentConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...BatchDeploymentConfiguration.type.modelProperties, + componentId: { + serializedName: "componentId", + type: { + name: "Composite", + className: "IdAssetReference" + } + }, + description: { + serializedName: "description", + nullable: true, + type: { + name: "String" + } + }, + settings: { + serializedName: "settings", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + tags: { + serializedName: "tags", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + +export const IdAssetReference: coreClient.CompositeMapper = { + serializedName: "Id", + type: { + name: "Composite", + className: "IdAssetReference", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + assetId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "assetId", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const DataPathAssetReference: coreClient.CompositeMapper = { + serializedName: "DataPath", + type: { + name: "Composite", + className: "DataPathAssetReference", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + datastoreId: { + serializedName: "datastoreId", + nullable: true, + type: { + name: "String" + } + }, + path: { + serializedName: "path", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const OutputPathAssetReference: coreClient.CompositeMapper = { + serializedName: "OutputPath", + type: { + name: "Composite", + className: "OutputPathAssetReference", + uberParent: "AssetReferenceBase", + polymorphicDiscriminator: AssetReferenceBase.type.polymorphicDiscriminator, + modelProperties: { + ...AssetReferenceBase.type.modelProperties, + jobId: { + serializedName: "jobId", + nullable: true, + type: { + name: "String" + } + }, + path: { + serializedName: "path", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const DeploymentResourceConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentResourceConfiguration", + modelProperties: { + ...ResourceConfiguration.type.modelProperties + } + } +}; + +export const JobResourceConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobResourceConfiguration", + modelProperties: { + ...ResourceConfiguration.type.modelProperties, + dockerArgs: { + serializedName: "dockerArgs", + nullable: true, + type: { + name: "String" + } + }, + shmSize: { + defaultValue: "2g", + constraints: { + Pattern: new RegExp("\\d+[bBkKmMgG]") + }, + serializedName: "shmSize", + type: { + name: "String" + } + } + } + } +}; + +export const BatchDeploymentProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentProperties", + modelProperties: { + ...EndpointDeploymentPropertiesBase.type.modelProperties, + compute: { + serializedName: "compute", + nullable: true, + type: { + name: "String" + } + }, + deploymentConfiguration: { + serializedName: "deploymentConfiguration", + type: { + name: "Composite", + className: "BatchDeploymentConfiguration" + } + }, + errorThreshold: { + defaultValue: -1, + serializedName: "errorThreshold", + type: { + name: "Number" + } + }, + loggingLevel: { + serializedName: "loggingLevel", + type: { + name: "String" + } + }, + maxConcurrencyPerInstance: { + defaultValue: 1, + serializedName: "maxConcurrencyPerInstance", + type: { + name: "Number" + } + }, + miniBatchSize: { + defaultValue: 10, + serializedName: "miniBatchSize", + type: { + name: "Number" + } + }, + model: { + serializedName: "model", + type: { + name: "Composite", + className: "AssetReferenceBase" + } + }, + outputAction: { + serializedName: "outputAction", + type: { + name: "String" + } + }, + outputFileName: { + defaultValue: "predictions.csv", + serializedName: "outputFileName", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "DeploymentResourceConfiguration" + } + }, + retrySettings: { + serializedName: "retrySettings", + type: { + name: "Composite", + className: "BatchRetrySettings" + } + } + } + } +}; + +export const OnlineDeploymentProperties: coreClient.CompositeMapper = { + serializedName: "OnlineDeploymentProperties", + type: { + name: "Composite", + className: "OnlineDeploymentProperties", + uberParent: "EndpointDeploymentPropertiesBase", + polymorphicDiscriminator: { + serializedName: "endpointComputeType", + clientName: "endpointComputeType" + }, + modelProperties: { + ...EndpointDeploymentPropertiesBase.type.modelProperties, + appInsightsEnabled: { + defaultValue: false, + serializedName: "appInsightsEnabled", + type: { + name: "Boolean" + } + }, + dataCollector: { + serializedName: "dataCollector", + type: { + name: "Composite", + className: "DataCollector" + } + }, + egressPublicNetworkAccess: { + serializedName: "egressPublicNetworkAccess", + type: { + name: "String" + } + }, + endpointComputeType: { + serializedName: "endpointComputeType", + required: true, + type: { + name: "String" + } + }, + instanceType: { + serializedName: "instanceType", + nullable: true, + type: { + name: "String" + } + }, + livenessProbe: { + serializedName: "livenessProbe", + type: { + name: "Composite", + className: "ProbeSettings" + } + }, + model: { + serializedName: "model", + nullable: true, + type: { + name: "String" + } + }, + modelMountPath: { + serializedName: "modelMountPath", + nullable: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + readinessProbe: { + serializedName: "readinessProbe", + type: { + name: "Composite", + className: "ProbeSettings" + } + }, + requestSettings: { + serializedName: "requestSettings", + type: { + name: "Composite", + className: "OnlineRequestSettings" + } + }, + scaleSettings: { + serializedName: "scaleSettings", + type: { + name: "Composite", + className: "OnlineScaleSettings" + } + } + } + } +}; + +export const AccountKeyDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "AccountKey", + type: { + name: "Composite", + className: "AccountKeyDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "AccountKeyDatastoreSecrets" + } + } + } + } +}; + +export const CertificateDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + className: "CertificateDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + authorityUrl: { + serializedName: "authorityUrl", + nullable: true, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + required: true, + type: { + name: "Uuid" + } + }, + resourceUrl: { + serializedName: "resourceUrl", + nullable: true, + type: { + name: "String" + } + }, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "CertificateDatastoreSecrets" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "Uuid" + } + }, + thumbprint: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "thumbprint", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const KerberosKeytabCredentials: coreClient.CompositeMapper = { + serializedName: "KerberosKeytab", + type: { + name: "Composite", + className: "KerberosKeytabCredentials", + uberParent: "KerberosCredentials", + polymorphicDiscriminator: KerberosCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...KerberosCredentials.type.modelProperties, + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "KerberosKeytabSecrets" + } + } + } + } +}; + +export const KerberosPasswordCredentials: coreClient.CompositeMapper = { + serializedName: "KerberosPassword", + type: { + name: "Composite", + className: "KerberosPasswordCredentials", + uberParent: "KerberosCredentials", + polymorphicDiscriminator: KerberosCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...KerberosCredentials.type.modelProperties, + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "KerberosPasswordSecrets" + } + } + } + } +}; + +export const NoneDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "None", + type: { + name: "Composite", + className: "NoneDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties + } + } +}; + +export const SasDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "Sas", + type: { + name: "Composite", + className: "SasDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "SasDatastoreSecrets" + } + } + } + } +}; + +export const ServicePrincipalDatastoreCredentials: coreClient.CompositeMapper = { + serializedName: "ServicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalDatastoreCredentials", + uberParent: "DatastoreCredentials", + polymorphicDiscriminator: + DatastoreCredentials.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreCredentials.type.modelProperties, + authorityUrl: { + serializedName: "authorityUrl", + nullable: true, + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + required: true, + type: { + name: "Uuid" + } + }, + resourceUrl: { + serializedName: "resourceUrl", + nullable: true, + type: { + name: "String" + } + }, + secrets: { + serializedName: "secrets", + type: { + name: "Composite", + className: "ServicePrincipalDatastoreSecrets" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "Uuid" + } + } + } + } +}; + +export const AccountKeyDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "AccountKey", + type: { + name: "Composite", + className: "AccountKeyDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + key: { + serializedName: "key", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const CertificateDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + className: "CertificateDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + certificate: { + serializedName: "certificate", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const KerberosKeytabSecrets: coreClient.CompositeMapper = { + serializedName: "KerberosKeytab", + type: { + name: "Composite", + className: "KerberosKeytabSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + kerberosKeytab: { + serializedName: "kerberosKeytab", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const KerberosPasswordSecrets: coreClient.CompositeMapper = { + serializedName: "KerberosPassword", + type: { + name: "Composite", + className: "KerberosPasswordSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + kerberosPassword: { + serializedName: "kerberosPassword", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const SasDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "Sas", + type: { + name: "Composite", + className: "SasDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + sasToken: { + serializedName: "sasToken", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServicePrincipalDatastoreSecrets: coreClient.CompositeMapper = { + serializedName: "ServicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalDatastoreSecrets", + uberParent: "DatastoreSecrets", + polymorphicDiscriminator: DatastoreSecrets.type.polymorphicDiscriminator, + modelProperties: { + ...DatastoreSecrets.type.modelProperties, + clientSecret: { + serializedName: "clientSecret", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzureDevOpsWebhook: coreClient.CompositeMapper = { + serializedName: "AzureDevOps", + type: { + name: "Composite", + className: "AzureDevOpsWebhook", + uberParent: "Webhook", + polymorphicDiscriminator: Webhook.type.polymorphicDiscriminator, + modelProperties: { + ...Webhook.type.modelProperties + } + } +}; + +export const RecurrenceTrigger: coreClient.CompositeMapper = { + serializedName: "Recurrence", + type: { + name: "Composite", + className: "RecurrenceTrigger", + uberParent: "TriggerBase", + polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, + modelProperties: { + ...TriggerBase.type.modelProperties, + frequency: { + serializedName: "frequency", + required: true, + type: { + name: "String" + } + }, + interval: { + serializedName: "interval", + required: true, + type: { + name: "Number" + } + }, + schedule: { + serializedName: "schedule", + type: { + name: "Composite", + className: "RecurrenceSchedule" + } + } + } + } +}; + +export const CronTrigger: coreClient.CompositeMapper = { + serializedName: "Cron", + type: { + name: "Composite", + className: "CronTrigger", + uberParent: "TriggerBase", + polymorphicDiscriminator: TriggerBase.type.polymorphicDiscriminator, + modelProperties: { + ...TriggerBase.type.modelProperties, + expression: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "expression", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const InferencePoolProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferencePoolProperties", + modelProperties: { + ...PropertiesBase.type.modelProperties, + codeConfiguration: { + serializedName: "codeConfiguration", + type: { + name: "Composite", + className: "CodeConfiguration" + } + }, + environmentConfiguration: { + serializedName: "environmentConfiguration", + type: { + name: "Composite", + className: "PoolEnvironmentConfiguration" + } + }, + modelConfiguration: { + serializedName: "modelConfiguration", + type: { + name: "Composite", + className: "PoolModelConfiguration" + } + }, + nodeSkuType: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "nodeSkuType", + required: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + requestConfiguration: { + serializedName: "requestConfiguration", + type: { + name: "Composite", + className: "RequestConfiguration" + } + } + } + } +}; + +export const InferenceGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferenceGroup", + modelProperties: { + ...PropertiesBase.type.modelProperties, + bonusExtraCapacity: { + defaultValue: 0, + serializedName: "bonusExtraCapacity", + type: { + name: "Number" + } + }, + data: { + serializedName: "data", + nullable: true, + type: { + name: "String" + } + }, + priority: { + defaultValue: 0, + serializedName: "priority", + type: { + name: "Number" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const InferenceEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferenceEndpoint", + modelProperties: { + ...PropertiesBase.type.modelProperties, + authMode: { + serializedName: "authMode", + required: true, + type: { + name: "String" + } + }, + endpointUri: { + serializedName: "endpointUri", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AmlToken: coreClient.CompositeMapper = { + serializedName: "AMLToken", + type: { + name: "Composite", + className: "AmlToken", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...IdentityConfiguration.type.modelProperties + } + } +}; + +export const ManagedIdentity: coreClient.CompositeMapper = { + serializedName: "Managed", + type: { + name: "Composite", + className: "ManagedIdentity", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...IdentityConfiguration.type.modelProperties, + clientId: { + serializedName: "clientId", + nullable: true, + type: { + name: "Uuid" + } + }, + objectId: { + serializedName: "objectId", + nullable: true, + type: { + name: "Uuid" + } + }, + resourceId: { + serializedName: "resourceId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const UserIdentity: coreClient.CompositeMapper = { + serializedName: "UserIdentity", + type: { + name: "Composite", + className: "UserIdentity", + uberParent: "IdentityConfiguration", + polymorphicDiscriminator: + IdentityConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...IdentityConfiguration.type.modelProperties + } + } +}; + +export const AllNodes: coreClient.CompositeMapper = { + serializedName: "All", + type: { + name: "Composite", + className: "AllNodes", + uberParent: "Nodes", + polymorphicDiscriminator: Nodes.type.polymorphicDiscriminator, + modelProperties: { + ...Nodes.type.modelProperties + } + } +}; + +export const LabelingJobImageProperties: coreClient.CompositeMapper = { + serializedName: "Image", + type: { + name: "Composite", + className: "LabelingJobImageProperties", + uberParent: "LabelingJobMediaProperties", + polymorphicDiscriminator: + LabelingJobMediaProperties.type.polymorphicDiscriminator, + modelProperties: { + ...LabelingJobMediaProperties.type.modelProperties, + annotationType: { + serializedName: "annotationType", + type: { + name: "String" + } + } + } + } +}; + +export const LabelingJobTextProperties: coreClient.CompositeMapper = { + serializedName: "Text", + type: { + name: "Composite", + className: "LabelingJobTextProperties", + uberParent: "LabelingJobMediaProperties", + polymorphicDiscriminator: + LabelingJobMediaProperties.type.polymorphicDiscriminator, + modelProperties: { + ...LabelingJobMediaProperties.type.modelProperties, + annotationType: { + serializedName: "annotationType", + type: { + name: "String" + } + } + } + } +}; + +export const MLAssistConfigurationDisabled: coreClient.CompositeMapper = { + serializedName: "Disabled", + type: { + name: "Composite", + className: "MLAssistConfigurationDisabled", + uberParent: "MLAssistConfiguration", + polymorphicDiscriminator: + MLAssistConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...MLAssistConfiguration.type.modelProperties + } + } +}; + +export const MLAssistConfigurationEnabled: coreClient.CompositeMapper = { + serializedName: "Enabled", + type: { + name: "Composite", + className: "MLAssistConfigurationEnabled", + uberParent: "MLAssistConfiguration", + polymorphicDiscriminator: + MLAssistConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...MLAssistConfiguration.type.modelProperties, + inferencingComputeBinding: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "inferencingComputeBinding", + required: true, + type: { + name: "String" + } + }, + trainingComputeBinding: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "trainingComputeBinding", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CocoExportSummary: coreClient.CompositeMapper = { + serializedName: "Coco", + type: { + name: "Composite", + className: "CocoExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + modelProperties: { + ...ExportSummary.type.modelProperties, + containerName: { + serializedName: "containerName", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + snapshotPath: { + serializedName: "snapshotPath", + readOnly: true, + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const CsvExportSummary: coreClient.CompositeMapper = { + serializedName: "CSV", + type: { + name: "Composite", + className: "CsvExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + modelProperties: { + ...ExportSummary.type.modelProperties, + containerName: { + serializedName: "containerName", + readOnly: true, + nullable: true, + type: { + name: "String" + } + }, + snapshotPath: { + serializedName: "snapshotPath", + readOnly: true, + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const DatasetExportSummary: coreClient.CompositeMapper = { + serializedName: "Dataset", + type: { + name: "Composite", + className: "DatasetExportSummary", + uberParent: "ExportSummary", + polymorphicDiscriminator: ExportSummary.type.polymorphicDiscriminator, + modelProperties: { + ...ExportSummary.type.modelProperties, + labeledAssetName: { + serializedName: "labeledAssetName", + readOnly: true, + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const DefaultScaleSettings: coreClient.CompositeMapper = { + serializedName: "Default", + type: { + name: "Composite", + className: "DefaultScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineScaleSettings.type.modelProperties + } + } +}; + +export const TargetUtilizationScaleSettings: coreClient.CompositeMapper = { + serializedName: "TargetUtilization", + type: { + name: "Composite", + className: "TargetUtilizationScaleSettings", + uberParent: "OnlineScaleSettings", + polymorphicDiscriminator: OnlineScaleSettings.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineScaleSettings.type.modelProperties, + maxInstances: { + defaultValue: 1, + serializedName: "maxInstances", + type: { + name: "Number" + } + }, + minInstances: { + defaultValue: 1, + serializedName: "minInstances", + type: { + name: "Number" + } + }, + pollingInterval: { + defaultValue: "PT1S", + serializedName: "pollingInterval", + type: { + name: "TimeSpan" + } + }, + targetUtilizationPercentage: { + defaultValue: 70, + serializedName: "targetUtilizationPercentage", + type: { + name: "Number" + } + } + } + } +}; + +export const CreateMonitorAction: coreClient.CompositeMapper = { + serializedName: "CreateMonitor", + type: { + name: "Composite", + className: "CreateMonitorAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + modelProperties: { + ...ScheduleActionBase.type.modelProperties, + monitorDefinition: { + serializedName: "monitorDefinition", + type: { + name: "Composite", + className: "MonitorDefinition" + } + } + } + } +}; + +export const EndpointScheduleAction: coreClient.CompositeMapper = { + serializedName: "InvokeBatchEndpoint", + type: { + name: "Composite", + className: "EndpointScheduleAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + modelProperties: { + ...ScheduleActionBase.type.modelProperties, + endpointInvocationDefinition: { + serializedName: "endpointInvocationDefinition", + required: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + } + } + } +}; + +export const ImportDataAction: coreClient.CompositeMapper = { + serializedName: "ImportData", + type: { + name: "Composite", + className: "ImportDataAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + modelProperties: { + ...ScheduleActionBase.type.modelProperties, + dataImportDefinition: { + serializedName: "dataImportDefinition", + type: { + name: "Composite", + className: "DataImport" + } + } + } + } +}; + +export const JobScheduleAction: coreClient.CompositeMapper = { + serializedName: "CreateJob", + type: { + name: "Composite", + className: "JobScheduleAction", + uberParent: "ScheduleActionBase", + polymorphicDiscriminator: ScheduleActionBase.type.polymorphicDiscriminator, + modelProperties: { + ...ScheduleActionBase.type.modelProperties, + jobDefinition: { + serializedName: "jobDefinition", + type: { + name: "Composite", + className: "JobBaseProperties" + } + } + } + } +}; + +export const PrivateEndpointResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointResource", + modelProperties: { + ...PrivateEndpoint.type.modelProperties, + subnetArmId: { + serializedName: "subnetArmId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const FqdnOutboundRule: coreClient.CompositeMapper = { + serializedName: "FQDN", + type: { + name: "Composite", + className: "FqdnOutboundRule", + uberParent: "OutboundRule", + polymorphicDiscriminator: OutboundRule.type.polymorphicDiscriminator, + modelProperties: { + ...OutboundRule.type.modelProperties, + destination: { + serializedName: "destination", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointOutboundRule: coreClient.CompositeMapper = { + serializedName: "PrivateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpointOutboundRule", + uberParent: "OutboundRule", + polymorphicDiscriminator: OutboundRule.type.polymorphicDiscriminator, + modelProperties: { + ...OutboundRule.type.modelProperties, + destination: { + serializedName: "destination", + type: { + name: "Composite", + className: "PrivateEndpointDestination" + } + } + } + } +}; + +export const ServiceTagOutboundRule: coreClient.CompositeMapper = { + serializedName: "ServiceTag", + type: { + name: "Composite", + className: "ServiceTagOutboundRule", + uberParent: "OutboundRule", + polymorphicDiscriminator: OutboundRule.type.polymorphicDiscriminator, + modelProperties: { + ...OutboundRule.type.modelProperties, + destination: { + serializedName: "destination", + type: { + name: "Composite", + className: "ServiceTagDestination" + } + } + } + } +}; + +export const AccessKeyAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "AccessKey", + type: { + name: "Composite", + className: "AccessKeyAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionAccessKey" + } + } + } + } +}; + +export const ApiKeyAuthWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "ApiKey", + type: { + name: "Composite", + className: "ApiKeyAuthWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionApiKey" + } + } + } + } +}; + +export const CustomKeysWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "CustomKeys", + type: { + name: "Composite", + className: "CustomKeysWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "CustomKeys" + } + } + } + } +}; + +export const ManagedIdentityAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "ManagedIdentity", + type: { + name: "Composite", + className: "ManagedIdentityAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionManagedIdentity" + } + } + } + } +}; + +export const NoneAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "None", + type: { + name: "Composite", + className: "NoneAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties + } + } +}; + +export const PATAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "PAT", + type: { + name: "Composite", + className: "PATAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionPersonalAccessToken" + } + } + } + } +}; + +export const SASAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "SAS", + type: { + name: "Composite", + className: "SASAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionSharedAccessSignature" + } + } + } + } +}; + +export const ServicePrincipalAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "ServicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionServicePrincipal" + } + } + } + } +}; + +export const UsernamePasswordAuthTypeWorkspaceConnectionProperties: coreClient.CompositeMapper = { + serializedName: "UsernamePassword", + type: { + name: "Composite", + className: "UsernamePasswordAuthTypeWorkspaceConnectionProperties", + uberParent: "WorkspaceConnectionPropertiesV2", + polymorphicDiscriminator: + WorkspaceConnectionPropertiesV2.type.polymorphicDiscriminator, + modelProperties: { + ...WorkspaceConnectionPropertiesV2.type.modelProperties, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "WorkspaceConnectionUsernamePassword" + } + } + } + } +}; + +export const AllFeatures: coreClient.CompositeMapper = { + serializedName: "AllFeatures", + type: { + name: "Composite", + className: "AllFeatures", + uberParent: "MonitoringFeatureFilterBase", + polymorphicDiscriminator: + MonitoringFeatureFilterBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringFeatureFilterBase.type.modelProperties + } + } +}; + +export const FeatureSubset: coreClient.CompositeMapper = { + serializedName: "FeatureSubset", + type: { + name: "Composite", + className: "FeatureSubset", + uberParent: "MonitoringFeatureFilterBase", + polymorphicDiscriminator: + MonitoringFeatureFilterBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringFeatureFilterBase.type.modelProperties, + features: { + serializedName: "features", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const TopNFeaturesByAttribution: coreClient.CompositeMapper = { + serializedName: "TopNByAttribution", + type: { + name: "Composite", + className: "TopNFeaturesByAttribution", + uberParent: "MonitoringFeatureFilterBase", + polymorphicDiscriminator: + MonitoringFeatureFilterBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringFeatureFilterBase.type.modelProperties, + top: { + defaultValue: 10, + serializedName: "top", + type: { + name: "Number" + } + } + } + } +}; + +export const AmlTokenComputeIdentity: coreClient.CompositeMapper = { + serializedName: "AmlToken", + type: { + name: "Composite", + className: "AmlTokenComputeIdentity", + uberParent: "MonitorComputeIdentityBase", + polymorphicDiscriminator: + MonitorComputeIdentityBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitorComputeIdentityBase.type.modelProperties + } + } +}; + +export const ManagedComputeIdentity: coreClient.CompositeMapper = { + serializedName: "ManagedIdentity", + type: { + name: "Composite", + className: "ManagedComputeIdentity", + uberParent: "MonitorComputeIdentityBase", + polymorphicDiscriminator: + MonitorComputeIdentityBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitorComputeIdentityBase.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + } + } + } +}; + +export const MLTableJobInput: coreClient.CompositeMapper = { + serializedName: "mltable", + type: { + name: "Composite", + className: "MLTableJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const CustomModelJobInput: coreClient.CompositeMapper = { + serializedName: "custom_model", + type: { + name: "Composite", + className: "CustomModelJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const MLFlowModelJobInput: coreClient.CompositeMapper = { + serializedName: "mlflow_model", + type: { + name: "Composite", + className: "MLFlowModelJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const TritonModelJobInput: coreClient.CompositeMapper = { + serializedName: "triton_model", + type: { + name: "Composite", + className: "TritonModelJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const UriFileJobInput: coreClient.CompositeMapper = { + serializedName: "uri_file", + type: { + name: "Composite", + className: "UriFileJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, + ...JobInput.type.modelProperties + } + } +}; + +export const UriFolderJobInput: coreClient.CompositeMapper = { + serializedName: "uri_folder", + type: { + name: "Composite", + className: "UriFolderJobInput", + uberParent: "AssetJobInput", + polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobInput.type.modelProperties, ...JobInput.type.modelProperties } } }; -export const UriFileJobInput: coreClient.CompositeMapper = { - serializedName: "uri_file", +export const CustomModelJobOutput: coreClient.CompositeMapper = { + serializedName: "custom_model", + type: { + name: "Composite", + className: "CustomModelJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const MLFlowModelJobOutput: coreClient.CompositeMapper = { + serializedName: "mlflow_model", + type: { + name: "Composite", + className: "MLFlowModelJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const MLTableJobOutput: coreClient.CompositeMapper = { + serializedName: "mltable", + type: { + name: "Composite", + className: "MLTableJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const TritonModelJobOutput: coreClient.CompositeMapper = { + serializedName: "triton_model", + type: { + name: "Composite", + className: "TritonModelJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const UriFileJobOutput: coreClient.CompositeMapper = { + serializedName: "uri_file", + type: { + name: "Composite", + className: "UriFileJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const UriFolderJobOutput: coreClient.CompositeMapper = { + serializedName: "uri_folder", + type: { + name: "Composite", + className: "UriFolderJobOutput", + uberParent: "AssetJobOutput", + polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + modelProperties: { + ...AssetJobOutput.type.modelProperties, + ...JobOutput.type.modelProperties + } + } +}; + +export const AutoForecastHorizon: coreClient.CompositeMapper = { + serializedName: "Auto", + type: { + name: "Composite", + className: "AutoForecastHorizon", + uberParent: "ForecastHorizon", + polymorphicDiscriminator: ForecastHorizon.type.polymorphicDiscriminator, + modelProperties: { + ...ForecastHorizon.type.modelProperties + } + } +}; + +export const CustomForecastHorizon: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "CustomForecastHorizon", + uberParent: "ForecastHorizon", + polymorphicDiscriminator: ForecastHorizon.type.polymorphicDiscriminator, + modelProperties: { + ...ForecastHorizon.type.modelProperties, + value: { + serializedName: "value", + required: true, + type: { + name: "Number" + } + } + } + } +}; + +export const Classification: coreClient.CompositeMapper = { + serializedName: "Classification", + type: { + name: "Composite", + className: "Classification", + uberParent: "TableVertical", + polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + modelProperties: { + ...TableVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + positiveLabel: { + serializedName: "positiveLabel", + nullable: true, + type: { + name: "String" + } + }, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + }, + trainingSettings: { + serializedName: "trainingSettings", + type: { + name: "Composite", + className: "ClassificationTrainingSettings" + } + } + } + } +}; + +export const Forecasting: coreClient.CompositeMapper = { + serializedName: "Forecasting", + type: { + name: "Composite", + className: "Forecasting", + uberParent: "TableVertical", + polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + modelProperties: { + ...TableVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + forecastingSettings: { + serializedName: "forecastingSettings", + type: { + name: "Composite", + className: "ForecastingSettings" + } + }, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + }, + trainingSettings: { + serializedName: "trainingSettings", + type: { + name: "Composite", + className: "ForecastingTrainingSettings" + } + } + } + } +}; + +export const ImageClassificationBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageClassificationBase", + modelProperties: { + ...ImageVertical.type.modelProperties, + modelSettings: { + serializedName: "modelSettings", + type: { + name: "Composite", + className: "ImageModelSettingsClassification" + } + }, + searchSpace: { + serializedName: "searchSpace", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageModelDistributionSettingsClassification" + } + } + } + } + } + } +}; + +export const ImageClassification: coreClient.CompositeMapper = { + serializedName: "ImageClassification", + type: { + name: "Composite", + className: "ImageClassification", + uberParent: "ImageClassificationBase", + modelProperties: { + ...ImageClassificationBase.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + } + } + } +}; +ImageClassificationBase.type.polymorphicDiscriminator = + ImageClassificationBase.type.polymorphicDiscriminator; + +export const ImageClassificationMultilabel: coreClient.CompositeMapper = { + serializedName: "ImageClassificationMultilabel", + type: { + name: "Composite", + className: "ImageClassificationMultilabel", + uberParent: "ImageClassificationBase", + polymorphicDiscriminator: + ImageClassificationBase.type.polymorphicDiscriminator, + modelProperties: { + ...ImageClassificationBase.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + } + } + } +}; + +export const ImageObjectDetectionBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageObjectDetectionBase", + modelProperties: { + ...ImageVertical.type.modelProperties, + modelSettings: { + serializedName: "modelSettings", + type: { + name: "Composite", + className: "ImageModelSettingsObjectDetection" + } + }, + searchSpace: { + serializedName: "searchSpace", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageModelDistributionSettingsObjectDetection" + } + } + } + } + } + } +}; + +export const ImageInstanceSegmentation: coreClient.CompositeMapper = { + serializedName: "ImageInstanceSegmentation", + type: { + name: "Composite", + className: "ImageInstanceSegmentation", + uberParent: "ImageObjectDetectionBase", + polymorphicDiscriminator: + ImageObjectDetectionBase.type.polymorphicDiscriminator, + modelProperties: { + ...ImageObjectDetectionBase.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + } + } + } +}; + +export const ImageObjectDetection: coreClient.CompositeMapper = { + serializedName: "ImageObjectDetection", + type: { + name: "Composite", + className: "ImageObjectDetection", + uberParent: "ImageObjectDetectionBase", + modelProperties: { + ...ImageObjectDetectionBase.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + } + } + } +}; +ImageObjectDetectionBase.type.polymorphicDiscriminator = + ImageObjectDetectionBase.type.polymorphicDiscriminator; + +export const Regression: coreClient.CompositeMapper = { + serializedName: "Regression", + type: { + name: "Composite", + className: "Regression", + uberParent: "TableVertical", + polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + modelProperties: { + ...TableVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + }, + trainingSettings: { + serializedName: "trainingSettings", + type: { + name: "Composite", + className: "RegressionTrainingSettings" + } + } + } + } +}; + +export const TextClassification: coreClient.CompositeMapper = { + serializedName: "TextClassification", + type: { + name: "Composite", + className: "TextClassification", + uberParent: "NlpVertical", + polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, + modelProperties: { + ...NlpVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + type: { + name: "String" + } + } + } + } +}; + +export const TextClassificationMultilabel: coreClient.CompositeMapper = { + serializedName: "TextClassificationMultilabel", + type: { + name: "Composite", + className: "TextClassificationMultilabel", + uberParent: "NlpVertical", + polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, + modelProperties: { + ...NlpVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const TextNer: coreClient.CompositeMapper = { + serializedName: "TextNER", + type: { + name: "Composite", + className: "TextNer", + uberParent: "NlpVertical", + polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, + modelProperties: { + ...NlpVertical.type.modelProperties, + ...AutoMLVertical.type.modelProperties, + primaryMetric: { + serializedName: "primaryMetric", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const LiteralJobInput: coreClient.CompositeMapper = { + serializedName: "literal", + type: { + name: "Composite", + className: "LiteralJobInput", + uberParent: "JobInput", + polymorphicDiscriminator: JobInput.type.polymorphicDiscriminator, + modelProperties: { + ...JobInput.type.modelProperties, + value: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "value", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AutoNCrossValidations: coreClient.CompositeMapper = { + serializedName: "Auto", + type: { + name: "Composite", + className: "AutoNCrossValidations", + uberParent: "NCrossValidations", + polymorphicDiscriminator: NCrossValidations.type.polymorphicDiscriminator, + modelProperties: { + ...NCrossValidations.type.modelProperties + } + } +}; + +export const CustomNCrossValidations: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "CustomNCrossValidations", + uberParent: "NCrossValidations", + polymorphicDiscriminator: NCrossValidations.type.polymorphicDiscriminator, + modelProperties: { + ...NCrossValidations.type.modelProperties, + value: { + serializedName: "value", + required: true, + type: { + name: "Number" + } + } + } + } +}; + +export const AutoSeasonality: coreClient.CompositeMapper = { + serializedName: "Auto", + type: { + name: "Composite", + className: "AutoSeasonality", + uberParent: "Seasonality", + polymorphicDiscriminator: Seasonality.type.polymorphicDiscriminator, + modelProperties: { + ...Seasonality.type.modelProperties + } + } +}; + +export const CustomSeasonality: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "CustomSeasonality", + uberParent: "Seasonality", + polymorphicDiscriminator: Seasonality.type.polymorphicDiscriminator, + modelProperties: { + ...Seasonality.type.modelProperties, + value: { + serializedName: "value", + required: true, + type: { + name: "Number" + } + } + } + } +}; + +export const AutoTargetLags: coreClient.CompositeMapper = { + serializedName: "Auto", + type: { + name: "Composite", + className: "AutoTargetLags", + uberParent: "TargetLags", + polymorphicDiscriminator: TargetLags.type.polymorphicDiscriminator, + modelProperties: { + ...TargetLags.type.modelProperties + } + } +}; + +export const CustomTargetLags: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "CustomTargetLags", + uberParent: "TargetLags", + polymorphicDiscriminator: TargetLags.type.polymorphicDiscriminator, + modelProperties: { + ...TargetLags.type.modelProperties, + values: { + serializedName: "values", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + } + } + } +}; + +export const AutoTargetRollingWindowSize: coreClient.CompositeMapper = { + serializedName: "Auto", + type: { + name: "Composite", + className: "AutoTargetRollingWindowSize", + uberParent: "TargetRollingWindowSize", + polymorphicDiscriminator: + TargetRollingWindowSize.type.polymorphicDiscriminator, + modelProperties: { + ...TargetRollingWindowSize.type.modelProperties + } + } +}; + +export const CustomTargetRollingWindowSize: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "CustomTargetRollingWindowSize", + uberParent: "TargetRollingWindowSize", + polymorphicDiscriminator: + TargetRollingWindowSize.type.polymorphicDiscriminator, + modelProperties: { + ...TargetRollingWindowSize.type.modelProperties, + value: { + serializedName: "value", + required: true, + type: { + name: "Number" + } + } + } + } +}; + +export const AzMonMonitoringAlertNotificationSettings: coreClient.CompositeMapper = { + serializedName: "AzureMonitor", + type: { + name: "Composite", + className: "AzMonMonitoringAlertNotificationSettings", + uberParent: "MonitoringAlertNotificationSettingsBase", + polymorphicDiscriminator: + MonitoringAlertNotificationSettingsBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringAlertNotificationSettingsBase.type.modelProperties + } + } +}; + +export const EmailMonitoringAlertNotificationSettings: coreClient.CompositeMapper = { + serializedName: "Email", + type: { + name: "Composite", + className: "EmailMonitoringAlertNotificationSettings", + uberParent: "MonitoringAlertNotificationSettingsBase", + polymorphicDiscriminator: + MonitoringAlertNotificationSettingsBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringAlertNotificationSettingsBase.type.modelProperties, + emailNotificationSetting: { + serializedName: "emailNotificationSetting", + type: { + name: "Composite", + className: "NotificationSetting" + } + } + } + } +}; + +export const AzureBlobDatastore: coreClient.CompositeMapper = { + serializedName: "AzureBlob", + type: { + name: "Composite", + className: "AzureBlobDatastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, + modelProperties: { + ...AzureDatastore.type.modelProperties, + ...DatastoreProperties.type.modelProperties, + accountName: { + serializedName: "accountName", + nullable: true, + type: { + name: "String" + } + }, + containerName: { + serializedName: "containerName", + nullable: true, + type: { + name: "String" + } + }, + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + nullable: true, + type: { + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + } + } + } +}; + +export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = { + serializedName: "AzureDataLakeGen1", + type: { + name: "Composite", + className: "AzureDataLakeGen1Datastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, + modelProperties: { + ...AzureDatastore.type.modelProperties, + ...DatastoreProperties.type.modelProperties, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + }, + storeName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "storeName", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { + serializedName: "AzureDataLakeGen2", + type: { + name: "Composite", + className: "AzureDataLakeGen2Datastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, + modelProperties: { + ...AzureDatastore.type.modelProperties, + ...DatastoreProperties.type.modelProperties, + accountName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "accountName", + required: true, + type: { + name: "String" + } + }, + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String" + } + }, + filesystem: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "filesystem", + required: true, + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + nullable: true, + type: { + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + } + } + } +}; + +export const AzureFileDatastore: coreClient.CompositeMapper = { + serializedName: "AzureFile", + type: { + name: "Composite", + className: "AzureFileDatastore", + uberParent: "AzureDatastore", + polymorphicDiscriminator: AzureDatastore.type.polymorphicDiscriminator, + modelProperties: { + ...AzureDatastore.type.modelProperties, + ...DatastoreProperties.type.modelProperties, + accountName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "accountName", + required: true, + type: { + name: "String" + } + }, + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String" + } + }, + fileShareName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "fileShareName", + required: true, + type: { + name: "String" + } + }, + protocol: { + serializedName: "protocol", + nullable: true, + type: { + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" + } + } + } + } +}; + +export const BanditPolicy: coreClient.CompositeMapper = { + serializedName: "Bandit", + type: { + name: "Composite", + className: "BanditPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties, + slackAmount: { + defaultValue: 0, + serializedName: "slackAmount", + type: { + name: "Number" + } + }, + slackFactor: { + defaultValue: 0, + serializedName: "slackFactor", + type: { + name: "Number" + } + } + } + } +}; + +export const MedianStoppingPolicy: coreClient.CompositeMapper = { + serializedName: "MedianStopping", + type: { + name: "Composite", + className: "MedianStoppingPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties + } + } +}; + +export const TruncationSelectionPolicy: coreClient.CompositeMapper = { + serializedName: "TruncationSelection", + type: { + name: "Composite", + className: "TruncationSelectionPolicy", + uberParent: "EarlyTerminationPolicy", + polymorphicDiscriminator: + EarlyTerminationPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...EarlyTerminationPolicy.type.modelProperties, + truncationPercentage: { + defaultValue: 0, + serializedName: "truncationPercentage", + type: { + name: "Number" + } + } + } + } +}; + +export const BayesianSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Bayesian", + type: { + name: "Composite", + className: "BayesianSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + modelProperties: { + ...SamplingAlgorithm.type.modelProperties + } + } +}; + +export const GridSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Grid", + type: { + name: "Composite", + className: "GridSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + modelProperties: { + ...SamplingAlgorithm.type.modelProperties + } + } +}; + +export const RandomSamplingAlgorithm: coreClient.CompositeMapper = { + serializedName: "Random", + type: { + name: "Composite", + className: "RandomSamplingAlgorithm", + uberParent: "SamplingAlgorithm", + polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + modelProperties: { + ...SamplingAlgorithm.type.modelProperties, + logbase: { + serializedName: "logbase", + nullable: true, + type: { + name: "String" + } + }, + rule: { + serializedName: "rule", + type: { + name: "String" + } + }, + seed: { + serializedName: "seed", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const CategoricalDataDriftMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Categorical", + type: { + name: "Composite", + className: "CategoricalDataDriftMetricThreshold", + uberParent: "DataDriftMetricThresholdBase", + polymorphicDiscriminator: + DataDriftMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...DataDriftMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const NumericalDataDriftMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Numerical", + type: { + name: "Composite", + className: "NumericalDataDriftMetricThreshold", + uberParent: "DataDriftMetricThresholdBase", + polymorphicDiscriminator: + DataDriftMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...DataDriftMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CategoricalDataQualityMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Categorical", + type: { + name: "Composite", + className: "CategoricalDataQualityMetricThreshold", + uberParent: "DataQualityMetricThresholdBase", + polymorphicDiscriminator: + DataQualityMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...DataQualityMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const NumericalDataQualityMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Numerical", + type: { + name: "Composite", + className: "NumericalDataQualityMetricThreshold", + uberParent: "DataQualityMetricThresholdBase", + polymorphicDiscriminator: + DataQualityMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...DataQualityMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CategoricalPredictionDriftMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Categorical", + type: { + name: "Composite", + className: "CategoricalPredictionDriftMetricThreshold", + uberParent: "PredictionDriftMetricThresholdBase", + polymorphicDiscriminator: + PredictionDriftMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...PredictionDriftMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const NumericalPredictionDriftMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Numerical", + type: { + name: "Composite", + className: "NumericalPredictionDriftMetricThreshold", + uberParent: "PredictionDriftMetricThresholdBase", + polymorphicDiscriminator: + PredictionDriftMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...PredictionDriftMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ClassificationTrainingSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ClassificationTrainingSettings", + modelProperties: { + ...TrainingSettings.type.modelProperties, + allowedTrainingAlgorithms: { + serializedName: "allowedTrainingAlgorithms", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + blockedTrainingAlgorithms: { + serializedName: "blockedTrainingAlgorithms", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ForecastingTrainingSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ForecastingTrainingSettings", + modelProperties: { + ...TrainingSettings.type.modelProperties, + allowedTrainingAlgorithms: { + serializedName: "allowedTrainingAlgorithms", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + blockedTrainingAlgorithms: { + serializedName: "blockedTrainingAlgorithms", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const RegressionTrainingSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegressionTrainingSettings", + modelProperties: { + ...TrainingSettings.type.modelProperties, + allowedTrainingAlgorithms: { + serializedName: "allowedTrainingAlgorithms", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + blockedTrainingAlgorithms: { + serializedName: "blockedTrainingAlgorithms", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const TableVerticalFeaturizationSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TableVerticalFeaturizationSettings", + modelProperties: { + ...FeaturizationSettings.type.modelProperties, + blockedTransformers: { + serializedName: "blockedTransformers", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + columnNameAndTypes: { + serializedName: "columnNameAndTypes", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + enableDnnFeaturization: { + defaultValue: false, + serializedName: "enableDnnFeaturization", + type: { + name: "Boolean" + } + }, + mode: { + serializedName: "mode", + type: { + name: "String" + } + }, + transformerParams: { + serializedName: "transformerParams", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { name: "Composite", className: "ColumnTransformer" } + } + } + } + } + } + } + } +}; + +export const NlpVerticalFeaturizationSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NlpVerticalFeaturizationSettings", + modelProperties: { + ...FeaturizationSettings.type.modelProperties + } + } +}; + +export const ClassificationModelPerformanceMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Classification", + type: { + name: "Composite", + className: "ClassificationModelPerformanceMetricThreshold", + uberParent: "ModelPerformanceMetricThresholdBase", + polymorphicDiscriminator: + ModelPerformanceMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...ModelPerformanceMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const RegressionModelPerformanceMetricThreshold: coreClient.CompositeMapper = { + serializedName: "Regression", + type: { + name: "Composite", + className: "RegressionModelPerformanceMetricThreshold", + uberParent: "ModelPerformanceMetricThresholdBase", + polymorphicDiscriminator: + ModelPerformanceMetricThresholdBase.type.polymorphicDiscriminator, + modelProperties: { + ...ModelPerformanceMetricThresholdBase.type.modelProperties, + metric: { + serializedName: "metric", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const Mpi: coreClient.CompositeMapper = { + serializedName: "Mpi", + type: { + name: "Composite", + className: "Mpi", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + processCountPerInstance: { + serializedName: "processCountPerInstance", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const PyTorch: coreClient.CompositeMapper = { + serializedName: "PyTorch", + type: { + name: "Composite", + className: "PyTorch", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + processCountPerInstance: { + serializedName: "processCountPerInstance", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const Ray: coreClient.CompositeMapper = { + serializedName: "Ray", + type: { + name: "Composite", + className: "Ray", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + address: { + serializedName: "address", + nullable: true, + type: { + name: "String" + } + }, + dashboardPort: { + serializedName: "dashboardPort", + nullable: true, + type: { + name: "Number" + } + }, + headNodeAdditionalArgs: { + serializedName: "headNodeAdditionalArgs", + nullable: true, + type: { + name: "String" + } + }, + includeDashboard: { + serializedName: "includeDashboard", + nullable: true, + type: { + name: "Boolean" + } + }, + port: { + serializedName: "port", + nullable: true, + type: { + name: "Number" + } + }, + workerNodeAdditionalArgs: { + serializedName: "workerNodeAdditionalArgs", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const TensorFlow: coreClient.CompositeMapper = { + serializedName: "TensorFlow", + type: { + name: "Composite", + className: "TensorFlow", + uberParent: "DistributionConfiguration", + polymorphicDiscriminator: + DistributionConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...DistributionConfiguration.type.modelProperties, + parameterServerCount: { + defaultValue: 0, + serializedName: "parameterServerCount", + type: { + name: "Number" + } + }, + workerCount: { + serializedName: "workerCount", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const CommandJobLimits: coreClient.CompositeMapper = { + serializedName: "Command", + type: { + name: "Composite", + className: "CommandJobLimits", + uberParent: "JobLimits", + polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, + modelProperties: { + ...JobLimits.type.modelProperties + } + } +}; + +export const SweepJobLimits: coreClient.CompositeMapper = { + serializedName: "Sweep", + type: { + name: "Composite", + className: "SweepJobLimits", + uberParent: "JobLimits", + polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, + modelProperties: { + ...JobLimits.type.modelProperties, + maxConcurrentTrials: { + serializedName: "maxConcurrentTrials", + nullable: true, + type: { + name: "Number" + } + }, + maxTotalTrials: { + serializedName: "maxTotalTrials", + nullable: true, + type: { + name: "Number" + } + }, + trialTimeout: { + serializedName: "trialTimeout", + nullable: true, + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const MonitorServerlessSparkCompute: coreClient.CompositeMapper = { + serializedName: "ServerlessSpark", + type: { + name: "Composite", + className: "MonitorServerlessSparkCompute", + uberParent: "MonitorComputeConfigurationBase", + polymorphicDiscriminator: + MonitorComputeConfigurationBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitorComputeConfigurationBase.type.modelProperties, + computeIdentity: { + serializedName: "computeIdentity", + type: { + name: "Composite", + className: "MonitorComputeIdentityBase" + } + }, + instanceType: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "instanceType", + required: true, + type: { + name: "String" + } + }, + runtimeVersion: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "runtimeVersion", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const CustomMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "Custom", + type: { + name: "Composite", + className: "CustomMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + componentId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "componentId", + required: true, + type: { + name: "String" + } + }, + inputAssets: { + serializedName: "inputAssets", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "MonitoringInputDataBase" } + } + } + }, + inputs: { + serializedName: "inputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } + } + }, + metricThresholds: { + serializedName: "metricThresholds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomMetricThreshold" + } + } + } + }, + workspaceConnection: { + serializedName: "workspaceConnection", + type: { + name: "Composite", + className: "MonitoringWorkspaceConnection" + } + } + } + } +}; + +export const DataDriftMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "DataDrift", + type: { + name: "Composite", + className: "DataDriftMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + dataSegment: { + serializedName: "dataSegment", + type: { + name: "Composite", + className: "MonitoringDataSegment" + } + }, + featureDataTypeOverride: { + serializedName: "featureDataTypeOverride", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + features: { + serializedName: "features", + type: { + name: "Composite", + className: "MonitoringFeatureFilterBase" + } + }, + metricThresholds: { + serializedName: "metricThresholds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataDriftMetricThresholdBase" + } + } + } + }, + productionData: { + serializedName: "productionData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + }, + referenceData: { + serializedName: "referenceData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + } +}; + +export const DataQualityMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "DataQuality", + type: { + name: "Composite", + className: "DataQualityMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + featureDataTypeOverride: { + serializedName: "featureDataTypeOverride", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + features: { + serializedName: "features", + type: { + name: "Composite", + className: "MonitoringFeatureFilterBase" + } + }, + metricThresholds: { + serializedName: "metricThresholds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataQualityMetricThresholdBase" + } + } + } + }, + productionData: { + serializedName: "productionData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + }, + referenceData: { + serializedName: "referenceData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + } +}; + +export const FeatureAttributionDriftMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "FeatureAttributionDrift", + type: { + name: "Composite", + className: "FeatureAttributionDriftMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + metricThreshold: { + serializedName: "metricThreshold", + type: { + name: "Composite", + className: "FeatureAttributionMetricThreshold" + } + }, + productionData: { + serializedName: "productionData", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + }, + referenceData: { + serializedName: "referenceData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + } +}; + +export const GenerationSafetyQualityMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "GenerationSafetyQuality", + type: { + name: "Composite", + className: "GenerationSafetyQualityMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + metricThresholds: { + serializedName: "metricThresholds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GenerationSafetyQualityMetricThreshold" + } + } + } + }, + productionData: { + serializedName: "productionData", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + }, + samplingRate: { + serializedName: "samplingRate", + required: true, + type: { + name: "Number" + } + }, + workspaceConnectionId: { + serializedName: "workspaceConnectionId", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const GenerationTokenStatisticsSignal: coreClient.CompositeMapper = { + serializedName: "GenerationTokenStatistics", + type: { + name: "Composite", + className: "GenerationTokenStatisticsSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + metricThresholds: { + serializedName: "metricThresholds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GenerationTokenStatisticsMetricThreshold" + } + } + } + }, + productionData: { + serializedName: "productionData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + }, + samplingRate: { + serializedName: "samplingRate", + required: true, + type: { + name: "Number" + } + } + } + } +}; + +export const ModelPerformanceSignal: coreClient.CompositeMapper = { + serializedName: "ModelPerformance", + type: { + name: "Composite", + className: "ModelPerformanceSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + dataSegment: { + serializedName: "dataSegment", + type: { + name: "Composite", + className: "MonitoringDataSegment" + } + }, + metricThreshold: { + serializedName: "metricThreshold", + type: { + name: "Composite", + className: "ModelPerformanceMetricThresholdBase" + } + }, + productionData: { + serializedName: "productionData", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + }, + referenceData: { + serializedName: "referenceData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + } +}; + +export const PredictionDriftMonitoringSignal: coreClient.CompositeMapper = { + serializedName: "PredictionDrift", + type: { + name: "Composite", + className: "PredictionDriftMonitoringSignal", + uberParent: "MonitoringSignalBase", + polymorphicDiscriminator: + MonitoringSignalBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringSignalBase.type.modelProperties, + metricThresholds: { + serializedName: "metricThresholds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PredictionDriftMetricThresholdBase" + } + } + } + }, + modelType: { + serializedName: "modelType", + required: true, + type: { + name: "String" + } + }, + productionData: { + serializedName: "productionData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + }, + referenceData: { + serializedName: "referenceData", + type: { + name: "Composite", + className: "MonitoringInputDataBase" + } + } + } + } +}; + +export const FixedInputData: coreClient.CompositeMapper = { + serializedName: "Fixed", + type: { + name: "Composite", + className: "FixedInputData", + uberParent: "MonitoringInputDataBase", + polymorphicDiscriminator: + MonitoringInputDataBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringInputDataBase.type.modelProperties + } + } +}; + +export const StaticInputData: coreClient.CompositeMapper = { + serializedName: "Static", + type: { + name: "Composite", + className: "StaticInputData", + uberParent: "MonitoringInputDataBase", + polymorphicDiscriminator: + MonitoringInputDataBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringInputDataBase.type.modelProperties, + preprocessingComponentId: { + serializedName: "preprocessingComponentId", + nullable: true, + type: { + name: "String" + } + }, + windowEnd: { + serializedName: "windowEnd", + required: true, + type: { + name: "DateTime" + } + }, + windowStart: { + serializedName: "windowStart", + required: true, + type: { + name: "DateTime" + } + } + } + } +}; + +export const TrailingInputData: coreClient.CompositeMapper = { + serializedName: "Trailing", + type: { + name: "Composite", + className: "TrailingInputData", + uberParent: "MonitoringInputDataBase", + polymorphicDiscriminator: + MonitoringInputDataBase.type.polymorphicDiscriminator, + modelProperties: { + ...MonitoringInputDataBase.type.modelProperties, + preprocessingComponentId: { + serializedName: "preprocessingComponentId", + nullable: true, + type: { + name: "String" + } + }, + windowOffset: { + serializedName: "windowOffset", + required: true, + type: { + name: "TimeSpan" + } + }, + windowSize: { + serializedName: "windowSize", + required: true, + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const DatabaseSource: coreClient.CompositeMapper = { + serializedName: "database", + type: { + name: "Composite", + className: "DatabaseSource", + uberParent: "DataImportSource", + polymorphicDiscriminator: DataImportSource.type.polymorphicDiscriminator, + modelProperties: { + ...DataImportSource.type.modelProperties, + query: { + serializedName: "query", + nullable: true, + type: { + name: "String" + } + }, + storedProcedure: { + serializedName: "storedProcedure", + nullable: true, + type: { + name: "String" + } + }, + storedProcedureParams: { + serializedName: "storedProcedureParams", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + }, + tableName: { + serializedName: "tableName", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const FileSystemSource: coreClient.CompositeMapper = { + serializedName: "file_system", + type: { + name: "Composite", + className: "FileSystemSource", + uberParent: "DataImportSource", + polymorphicDiscriminator: DataImportSource.type.polymorphicDiscriminator, + modelProperties: { + ...DataImportSource.type.modelProperties, + path: { + serializedName: "path", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImageModelSettingsClassification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageModelSettingsClassification", + modelProperties: { + ...ImageModelSettings.type.modelProperties, + trainingCropSize: { + serializedName: "trainingCropSize", + nullable: true, + type: { + name: "Number" + } + }, + validationCropSize: { + serializedName: "validationCropSize", + nullable: true, + type: { + name: "Number" + } + }, + validationResizeSize: { + serializedName: "validationResizeSize", + nullable: true, + type: { + name: "Number" + } + }, + weightedLoss: { + serializedName: "weightedLoss", + nullable: true, + type: { + name: "Number" + } + } + } + } +}; + +export const ImageModelSettingsObjectDetection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageModelSettingsObjectDetection", + modelProperties: { + ...ImageModelSettings.type.modelProperties, + boxDetectionsPerImage: { + serializedName: "boxDetectionsPerImage", + nullable: true, + type: { + name: "Number" + } + }, + boxScoreThreshold: { + serializedName: "boxScoreThreshold", + nullable: true, + type: { + name: "Number" + } + }, + imageSize: { + serializedName: "imageSize", + nullable: true, + type: { + name: "Number" + } + }, + logTrainingMetrics: { + serializedName: "logTrainingMetrics", + type: { + name: "String" + } + }, + logValidationLoss: { + serializedName: "logValidationLoss", + type: { + name: "String" + } + }, + maxSize: { + serializedName: "maxSize", + nullable: true, + type: { + name: "Number" + } + }, + minSize: { + serializedName: "minSize", + nullable: true, + type: { + name: "Number" + } + }, + modelSize: { + serializedName: "modelSize", + type: { + name: "String" + } + }, + multiScale: { + serializedName: "multiScale", + nullable: true, + type: { + name: "Boolean" + } + }, + nmsIouThreshold: { + serializedName: "nmsIouThreshold", + nullable: true, + type: { + name: "Number" + } + }, + tileGridSize: { + serializedName: "tileGridSize", + nullable: true, + type: { + name: "String" + } + }, + tileOverlapRatio: { + serializedName: "tileOverlapRatio", + nullable: true, + type: { + name: "Number" + } + }, + tilePredictionsNmsThreshold: { + serializedName: "tilePredictionsNmsThreshold", + nullable: true, + type: { + name: "Number" + } + }, + validationIouThreshold: { + serializedName: "validationIouThreshold", + nullable: true, + type: { + name: "Number" + } + }, + validationMetricType: { + serializedName: "validationMetricType", + type: { + name: "String" + } + } + } + } +}; + +export const ImageModelDistributionSettingsClassification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageModelDistributionSettingsClassification", + modelProperties: { + ...ImageModelDistributionSettings.type.modelProperties, + trainingCropSize: { + serializedName: "trainingCropSize", + nullable: true, + type: { + name: "String" + } + }, + validationCropSize: { + serializedName: "validationCropSize", + nullable: true, + type: { + name: "String" + } + }, + validationResizeSize: { + serializedName: "validationResizeSize", + nullable: true, + type: { + name: "String" + } + }, + weightedLoss: { + serializedName: "weightedLoss", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const ImageModelDistributionSettingsObjectDetection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImageModelDistributionSettingsObjectDetection", + modelProperties: { + ...ImageModelDistributionSettings.type.modelProperties, + boxDetectionsPerImage: { + serializedName: "boxDetectionsPerImage", + nullable: true, + type: { + name: "String" + } + }, + boxScoreThreshold: { + serializedName: "boxScoreThreshold", + nullable: true, + type: { + name: "String" + } + }, + imageSize: { + serializedName: "imageSize", + nullable: true, + type: { + name: "String" + } + }, + maxSize: { + serializedName: "maxSize", + nullable: true, + type: { + name: "String" + } + }, + minSize: { + serializedName: "minSize", + nullable: true, + type: { + name: "String" + } + }, + modelSize: { + serializedName: "modelSize", + nullable: true, + type: { + name: "String" + } + }, + multiScale: { + serializedName: "multiScale", + nullable: true, + type: { + name: "String" + } + }, + nmsIouThreshold: { + serializedName: "nmsIouThreshold", + nullable: true, + type: { + name: "String" + } + }, + tileGridSize: { + serializedName: "tileGridSize", + nullable: true, + type: { + name: "String" + } + }, + tileOverlapRatio: { + serializedName: "tileOverlapRatio", + nullable: true, + type: { + name: "String" + } + }, + tilePredictionsNmsThreshold: { + serializedName: "tilePredictionsNmsThreshold", + nullable: true, + type: { + name: "String" + } + }, + validationIouThreshold: { + serializedName: "validationIouThreshold", + nullable: true, + type: { + name: "String" + } + }, + validationMetricType: { + serializedName: "validationMetricType", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const LakeHouseArtifact: coreClient.CompositeMapper = { + serializedName: "LakeHouse", + type: { + name: "Composite", + className: "LakeHouseArtifact", + uberParent: "OneLakeArtifact", + polymorphicDiscriminator: OneLakeArtifact.type.polymorphicDiscriminator, + modelProperties: { + ...OneLakeArtifact.type.modelProperties + } + } +}; + +export const SparkJobPythonEntry: coreClient.CompositeMapper = { + serializedName: "SparkJobPythonEntry", + type: { + name: "Composite", + className: "SparkJobPythonEntry", + uberParent: "SparkJobEntry", + polymorphicDiscriminator: SparkJobEntry.type.polymorphicDiscriminator, + modelProperties: { + ...SparkJobEntry.type.modelProperties, + file: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "file", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const SparkJobScalaEntry: coreClient.CompositeMapper = { + serializedName: "SparkJobScalaEntry", + type: { + name: "Composite", + className: "SparkJobScalaEntry", + uberParent: "SparkJobEntry", + polymorphicDiscriminator: SparkJobEntry.type.polymorphicDiscriminator, + modelProperties: { + ...SparkJobEntry.type.modelProperties, + className: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "className", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const BatchEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchEndpoint", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BatchEndpointProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const BatchDeployment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeployment", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BatchDeploymentProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const InferencePool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferencePool", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "InferencePoolProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const OnlineEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpoint", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OnlineEndpointProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } + } + } +}; + +export const OnlineDeployment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFileJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "OnlineDeployment", modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OnlineDeploymentProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } } } }; -export const UriFolderJobInput: coreClient.CompositeMapper = { - serializedName: "uri_folder", +export const ServerlessEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFolderJobInput", - uberParent: "AssetJobInput", - polymorphicDiscriminator: AssetJobInput.type.polymorphicDiscriminator, + className: "ServerlessEndpoint", modelProperties: { - ...AssetJobInput.type.modelProperties, - ...JobInput.type.modelProperties + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ServerlessEndpointProperties" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + } } } }; -export const CustomModelJobOutput: coreClient.CompositeMapper = { - serializedName: "custom_model", +export const Registry: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomModelJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "Registry", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + discoveryUrl: { + serializedName: "properties.discoveryUrl", + nullable: true, + type: { + name: "String" + } + }, + intellectualPropertyPublisher: { + serializedName: "properties.intellectualPropertyPublisher", + nullable: true, + type: { + name: "String" + } + }, + managedResourceGroup: { + serializedName: "properties.managedResourceGroup", + type: { + name: "Composite", + className: "ArmResourceId" + } + }, + mlFlowRegistryUri: { + serializedName: "properties.mlFlowRegistryUri", + nullable: true, + type: { + name: "String" + } + }, + registryPrivateEndpointConnections: { + serializedName: "properties.registryPrivateEndpointConnections", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegistryPrivateEndpointConnection" + } + } + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + nullable: true, + type: { + name: "String" + } + }, + regionDetails: { + serializedName: "properties.regionDetails", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegistryRegionArmDetails" + } + } + } + } } } }; -export const MLFlowModelJobOutput: coreClient.CompositeMapper = { - serializedName: "mlflow_model", +export const CodeContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLFlowModelJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "CodeContainerProperties", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const MLTableJobOutput: coreClient.CompositeMapper = { - serializedName: "mltable", +export const ComponentContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLTableJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "ComponentContainerProperties", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const TritonModelJobOutput: coreClient.CompositeMapper = { - serializedName: "triton_model", +export const DataContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TritonModelJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "DataContainerProperties", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...AssetContainer.type.modelProperties, + dataType: { + serializedName: "dataType", + required: true, + type: { + name: "String" + } + } } } }; -export const UriFileJobOutput: coreClient.CompositeMapper = { - serializedName: "uri_file", +export const EnvironmentContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFileJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "EnvironmentContainerProperties", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const UriFolderJobOutput: coreClient.CompositeMapper = { - serializedName: "uri_folder", +export const ModelContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFolderJobOutput", - uberParent: "AssetJobOutput", - polymorphicDiscriminator: AssetJobOutput.type.polymorphicDiscriminator, + className: "ModelContainerProperties", modelProperties: { - ...AssetJobOutput.type.modelProperties, - ...JobOutput.type.modelProperties + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const AutoForecastHorizon: coreClient.CompositeMapper = { - serializedName: "Auto", +export const FeaturesetContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoForecastHorizon", - uberParent: "ForecastHorizon", - polymorphicDiscriminator: ForecastHorizon.type.polymorphicDiscriminator, + className: "FeaturesetContainerProperties", modelProperties: { - ...ForecastHorizon.type.modelProperties + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const CustomForecastHorizon: coreClient.CompositeMapper = { - serializedName: "Custom", +export const FeaturestoreEntityContainerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomForecastHorizon", - uberParent: "ForecastHorizon", - polymorphicDiscriminator: ForecastHorizon.type.polymorphicDiscriminator, + className: "FeaturestoreEntityContainerProperties", modelProperties: { - ...ForecastHorizon.type.modelProperties, - value: { - serializedName: "value", - required: true, + ...AssetContainer.type.modelProperties, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" } } } } }; -export const Classification: coreClient.CompositeMapper = { - serializedName: "Classification", +export const CodeVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Classification", - uberParent: "TableVertical", - polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + className: "CodeVersionProperties", modelProperties: { - ...TableVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - positiveLabel: { - serializedName: "positiveLabel", + ...AssetBase.type.modelProperties, + codeUri: { + serializedName: "codeUri", nullable: true, type: { name: "String" } }, - primaryMetric: { - serializedName: "primaryMetric", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } - }, - trainingSettings: { - serializedName: "trainingSettings", - type: { - name: "Composite", - className: "ClassificationTrainingSettings" - } } } } }; -export const Forecasting: coreClient.CompositeMapper = { - serializedName: "Forecasting", +export const ComponentVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Forecasting", - uberParent: "TableVertical", - polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + className: "ComponentVersionProperties", modelProperties: { - ...TableVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - forecastingSettings: { - serializedName: "forecastingSettings", + ...AssetBase.type.modelProperties, + componentSpec: { + serializedName: "componentSpec", + nullable: true, type: { - name: "Composite", - className: "ForecastingSettings" + name: "Dictionary", + value: { type: { name: "any" } } } }, - primaryMetric: { - serializedName: "primaryMetric", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String" } }, - trainingSettings: { - serializedName: "trainingSettings", + stage: { + serializedName: "stage", + nullable: true, type: { - name: "Composite", - className: "ForecastingTrainingSettings" + name: "String" } } } } }; -export const ImageClassificationBase: coreClient.CompositeMapper = { +export const DataVersionBaseProperties: coreClient.CompositeMapper = { + serializedName: "DataVersionBaseProperties", type: { name: "Composite", - className: "ImageClassificationBase", + className: "DataVersionBaseProperties", + uberParent: "AssetBase", + polymorphicDiscriminator: { + serializedName: "dataType", + clientName: "dataType" + }, modelProperties: { - ...ImageVertical.type.modelProperties, - modelSettings: { - serializedName: "modelSettings", + ...AssetBase.type.modelProperties, + dataType: { + serializedName: "dataType", + required: true, + type: { + name: "String" + } + }, + dataUri: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "dataUri", + required: true, + type: { + name: "String" + } + }, + intellectualProperty: { + serializedName: "intellectualProperty", type: { name: "Composite", - className: "ImageModelSettingsClassification" + className: "IntellectualProperty" } }, - searchSpace: { - serializedName: "searchSpace", + stage: { + serializedName: "stage", nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ImageModelDistributionSettingsClassification" - } - } + name: "String" } } } } }; -export const ImageClassification: coreClient.CompositeMapper = { - serializedName: "ImageClassification", +export const EnvironmentVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageClassification", - uberParent: "ImageClassificationBase", + className: "EnvironmentVersionProperties", modelProperties: { - ...ImageClassificationBase.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetBase.type.modelProperties, + autoRebuild: { + serializedName: "autoRebuild", type: { name: "String" } - } - } - } -}; -ImageClassificationBase.type.polymorphicDiscriminator = - ImageClassificationBase.type.polymorphicDiscriminator; - -export const ImageClassificationMultilabel: coreClient.CompositeMapper = { - serializedName: "ImageClassificationMultilabel", - type: { - name: "Composite", - className: "ImageClassificationMultilabel", - uberParent: "ImageClassificationBase", - polymorphicDiscriminator: - ImageClassificationBase.type.polymorphicDiscriminator, - modelProperties: { - ...ImageClassificationBase.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + }, + build: { + serializedName: "build", + type: { + name: "Composite", + className: "BuildContext" + } + }, + condaFile: { + serializedName: "condaFile", type: { name: "String" } - } - } - } -}; - -export const ImageObjectDetectionBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageObjectDetectionBase", - modelProperties: { - ...ImageVertical.type.modelProperties, - modelSettings: { - serializedName: "modelSettings", + }, + environmentType: { + serializedName: "environmentType", + readOnly: true, + type: { + name: "String" + } + }, + image: { + serializedName: "image", + type: { + name: "String" + } + }, + inferenceConfig: { + serializedName: "inferenceConfig", type: { name: "Composite", - className: "ImageModelSettingsObjectDetection" + className: "InferenceContainerProperties" } }, - searchSpace: { - serializedName: "searchSpace", - nullable: true, + intellectualProperty: { + serializedName: "intellectualProperty", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ImageModelDistributionSettingsObjectDetection" - } - } + name: "Composite", + className: "IntellectualProperty" } - } - } - } -}; - -export const ImageInstanceSegmentation: coreClient.CompositeMapper = { - serializedName: "ImageInstanceSegmentation", - type: { - name: "Composite", - className: "ImageInstanceSegmentation", - uberParent: "ImageObjectDetectionBase", - polymorphicDiscriminator: - ImageObjectDetectionBase.type.polymorphicDiscriminator, - modelProperties: { - ...ImageObjectDetectionBase.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + }, + osType: { + serializedName: "osType", type: { name: "String" } - } - } - } -}; - -export const ImageObjectDetection: coreClient.CompositeMapper = { - serializedName: "ImageObjectDetection", - type: { - name: "Composite", - className: "ImageObjectDetection", - uberParent: "ImageObjectDetectionBase", - modelProperties: { - ...ImageObjectDetectionBase.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + stage: { + serializedName: "stage", + nullable: true, type: { name: "String" } @@ -9458,113 +18115,59 @@ export const ImageObjectDetection: coreClient.CompositeMapper = { } } }; -ImageObjectDetectionBase.type.polymorphicDiscriminator = - ImageObjectDetectionBase.type.polymorphicDiscriminator; -export const Regression: coreClient.CompositeMapper = { - serializedName: "Regression", +export const ModelVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Regression", - uberParent: "TableVertical", - polymorphicDiscriminator: TableVertical.type.polymorphicDiscriminator, + className: "ModelVersionProperties", modelProperties: { - ...TableVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + ...AssetBase.type.modelProperties, + flavors: { + serializedName: "flavors", + nullable: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "Composite", className: "FlavorData" } } } }, - trainingSettings: { - serializedName: "trainingSettings", + intellectualProperty: { + serializedName: "intellectualProperty", type: { name: "Composite", - className: "RegressionTrainingSettings" + className: "IntellectualProperty" } - } - } - } -}; - -export const TextClassification: coreClient.CompositeMapper = { - serializedName: "TextClassification", - type: { - name: "Composite", - className: "TextClassification", - uberParent: "NlpVertical", - polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, - modelProperties: { - ...NlpVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + }, + jobName: { + serializedName: "jobName", + nullable: true, type: { name: "String" } - } - } - } -}; - -export const TextClassificationMultilabel: coreClient.CompositeMapper = { - serializedName: "TextClassificationMultilabel", - type: { - name: "Composite", - className: "TextClassificationMultilabel", - uberParent: "NlpVertical", - polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, - modelProperties: { - ...NlpVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", - readOnly: true, + }, + modelType: { + serializedName: "modelType", + nullable: true, type: { name: "String" } - } - } - } -}; - -export const TextNer: coreClient.CompositeMapper = { - serializedName: "TextNER", - type: { - name: "Composite", - className: "TextNer", - uberParent: "NlpVertical", - polymorphicDiscriminator: NlpVertical.type.polymorphicDiscriminator, - modelProperties: { - ...NlpVertical.type.modelProperties, - ...AutoMLVertical.type.modelProperties, - primaryMetric: { - serializedName: "primaryMetric", + }, + modelUri: { + serializedName: "modelUri", + nullable: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const LiteralJobInput: coreClient.CompositeMapper = { - serializedName: "literal", - type: { - name: "Composite", - className: "LiteralJobInput", - uberParent: "JobInput", - polymorphicDiscriminator: JobInput.type.polymorphicDiscriminator, - modelProperties: { - ...JobInput.type.modelProperties, - value: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "value", - required: true, + }, + stage: { + serializedName: "stage", + nullable: true, type: { name: "String" } @@ -9573,302 +18176,499 @@ export const LiteralJobInput: coreClient.CompositeMapper = { } }; -export const AutoNCrossValidations: coreClient.CompositeMapper = { - serializedName: "Auto", - type: { - name: "Composite", - className: "AutoNCrossValidations", - uberParent: "NCrossValidations", - polymorphicDiscriminator: NCrossValidations.type.polymorphicDiscriminator, - modelProperties: { - ...NCrossValidations.type.modelProperties - } - } -}; - -export const CustomNCrossValidations: coreClient.CompositeMapper = { - serializedName: "Custom", +export const FeaturesetVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomNCrossValidations", - uberParent: "NCrossValidations", - polymorphicDiscriminator: NCrossValidations.type.polymorphicDiscriminator, + className: "FeaturesetVersionProperties", modelProperties: { - ...NCrossValidations.type.modelProperties, - value: { - serializedName: "value", - required: true, + ...AssetBase.type.modelProperties, + entities: { + serializedName: "entities", + nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const AutoSeasonality: coreClient.CompositeMapper = { - serializedName: "Auto", - type: { - name: "Composite", - className: "AutoSeasonality", - uberParent: "Seasonality", - polymorphicDiscriminator: Seasonality.type.polymorphicDiscriminator, - modelProperties: { - ...Seasonality.type.modelProperties - } - } -}; - -export const CustomSeasonality: coreClient.CompositeMapper = { - serializedName: "Custom", - type: { - name: "Composite", - className: "CustomSeasonality", - uberParent: "Seasonality", - polymorphicDiscriminator: Seasonality.type.polymorphicDiscriminator, - modelProperties: { - ...Seasonality.type.modelProperties, - value: { - serializedName: "value", - required: true, + }, + materializationSettings: { + serializedName: "materializationSettings", type: { - name: "Number" + name: "Composite", + className: "MaterializationSettings" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + specification: { + serializedName: "specification", + type: { + name: "Composite", + className: "FeaturesetSpecification" + } + }, + stage: { + serializedName: "stage", + nullable: true, + type: { + name: "String" } } } } }; -export const AutoTargetLags: coreClient.CompositeMapper = { - serializedName: "Auto", - type: { - name: "Composite", - className: "AutoTargetLags", - uberParent: "TargetLags", - polymorphicDiscriminator: TargetLags.type.polymorphicDiscriminator, - modelProperties: { - ...TargetLags.type.modelProperties - } - } -}; - -export const CustomTargetLags: coreClient.CompositeMapper = { - serializedName: "Custom", +export const FeaturestoreEntityVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomTargetLags", - uberParent: "TargetLags", - polymorphicDiscriminator: TargetLags.type.polymorphicDiscriminator, + className: "FeaturestoreEntityVersionProperties", modelProperties: { - ...TargetLags.type.modelProperties, - values: { - serializedName: "values", - required: true, + ...AssetBase.type.modelProperties, + indexColumns: { + serializedName: "indexColumns", + nullable: true, type: { name: "Sequence", element: { type: { - name: "Number" + name: "Composite", + className: "IndexColumn" } } } - } - } - } -}; - -export const AutoTargetRollingWindowSize: coreClient.CompositeMapper = { - serializedName: "Auto", - type: { - name: "Composite", - className: "AutoTargetRollingWindowSize", - uberParent: "TargetRollingWindowSize", - polymorphicDiscriminator: - TargetRollingWindowSize.type.polymorphicDiscriminator, - modelProperties: { - ...TargetRollingWindowSize.type.modelProperties - } - } -}; - -export const CustomTargetRollingWindowSize: coreClient.CompositeMapper = { - serializedName: "Custom", - type: { - name: "Composite", - className: "CustomTargetRollingWindowSize", - uberParent: "TargetRollingWindowSize", - polymorphicDiscriminator: - TargetRollingWindowSize.type.polymorphicDiscriminator, - modelProperties: { - ...TargetRollingWindowSize.type.modelProperties, - value: { - serializedName: "value", - required: true, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" + } + }, + stage: { + serializedName: "stage", + nullable: true, + type: { + name: "String" } } } } }; -export const BanditPolicy: coreClient.CompositeMapper = { - serializedName: "Bandit", +export const HdfsDatastore: coreClient.CompositeMapper = { + serializedName: "Hdfs", type: { name: "Composite", - className: "BanditPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: - EarlyTerminationPolicy.type.polymorphicDiscriminator, + className: "HdfsDatastore", + uberParent: "DatastoreProperties", + polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, modelProperties: { - ...EarlyTerminationPolicy.type.modelProperties, - slackAmount: { - defaultValue: 0, - serializedName: "slackAmount", + ...DatastoreProperties.type.modelProperties, + hdfsServerCertificate: { + serializedName: "hdfsServerCertificate", + nullable: true, type: { - name: "Number" + name: "String" } }, - slackFactor: { - defaultValue: 0, - serializedName: "slackFactor", + nameNodeAddress: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "nameNodeAddress", + required: true, type: { - name: "Number" + name: "String" + } + }, + protocol: { + defaultValue: "http", + serializedName: "protocol", + type: { + name: "String" } } } } }; -export const MedianStoppingPolicy: coreClient.CompositeMapper = { - serializedName: "MedianStopping", - type: { - name: "Composite", - className: "MedianStoppingPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: - EarlyTerminationPolicy.type.polymorphicDiscriminator, - modelProperties: { - ...EarlyTerminationPolicy.type.modelProperties - } - } -}; - -export const TruncationSelectionPolicy: coreClient.CompositeMapper = { - serializedName: "TruncationSelection", +export const OneLakeDatastore: coreClient.CompositeMapper = { + serializedName: "OneLake", type: { name: "Composite", - className: "TruncationSelectionPolicy", - uberParent: "EarlyTerminationPolicy", - polymorphicDiscriminator: - EarlyTerminationPolicy.type.polymorphicDiscriminator, + className: "OneLakeDatastore", + uberParent: "DatastoreProperties", + polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, modelProperties: { - ...EarlyTerminationPolicy.type.modelProperties, - truncationPercentage: { - defaultValue: 0, - serializedName: "truncationPercentage", + ...DatastoreProperties.type.modelProperties, + artifact: { + serializedName: "artifact", type: { - name: "Number" + name: "Composite", + className: "OneLakeArtifact" + } + }, + endpoint: { + serializedName: "endpoint", + nullable: true, + type: { + name: "String" + } + }, + oneLakeWorkspaceName: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "oneLakeWorkspaceName", + required: true, + type: { + name: "String" + } + }, + serviceDataAccessAuthIdentity: { + serializedName: "serviceDataAccessAuthIdentity", + type: { + name: "String" } } } } }; -export const BayesianSamplingAlgorithm: coreClient.CompositeMapper = { - serializedName: "Bayesian", +export const LabelingJobProperties: coreClient.CompositeMapper = { + serializedName: "Labeling", type: { name: "Composite", - className: "BayesianSamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + className: "LabelingJobProperties", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...SamplingAlgorithm.type.modelProperties + ...JobBaseProperties.type.modelProperties, + createdDateTime: { + serializedName: "createdDateTime", + readOnly: true, + nullable: true, + type: { + name: "DateTime" + } + }, + dataConfiguration: { + serializedName: "dataConfiguration", + type: { + name: "Composite", + className: "LabelingDataConfiguration" + } + }, + jobInstructions: { + serializedName: "jobInstructions", + type: { + name: "Composite", + className: "LabelingJobInstructions" + } + }, + labelCategories: { + serializedName: "labelCategories", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "LabelCategory" } } + } + }, + labelingJobMediaProperties: { + serializedName: "labelingJobMediaProperties", + type: { + name: "Composite", + className: "LabelingJobMediaProperties" + } + }, + mlAssistConfiguration: { + serializedName: "mlAssistConfiguration", + type: { + name: "Composite", + className: "MLAssistConfiguration" + } + }, + progressMetrics: { + serializedName: "progressMetrics", + type: { + name: "Composite", + className: "ProgressMetrics" + } + }, + projectId: { + serializedName: "projectId", + readOnly: true, + type: { + name: "Uuid" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + statusMessages: { + serializedName: "statusMessages", + readOnly: true, + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StatusMessage" + } + } + } + } } } }; -export const GridSamplingAlgorithm: coreClient.CompositeMapper = { - serializedName: "Grid", +export const AutoMLJob: coreClient.CompositeMapper = { + serializedName: "AutoML", type: { name: "Composite", - className: "GridSamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + className: "AutoMLJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...SamplingAlgorithm.type.modelProperties + ...JobBaseProperties.type.modelProperties, + environmentId: { + serializedName: "environmentId", + nullable: true, + type: { + name: "String" + } + }, + environmentVariables: { + serializedName: "environmentVariables", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + outputs: { + serializedName: "outputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } + } + }, + queueSettings: { + serializedName: "queueSettings", + type: { + name: "Composite", + className: "QueueSettings" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "JobResourceConfiguration" + } + }, + taskDetails: { + serializedName: "taskDetails", + type: { + name: "Composite", + className: "AutoMLVertical" + } + } } } }; -export const RandomSamplingAlgorithm: coreClient.CompositeMapper = { - serializedName: "Random", +export const CommandJob: coreClient.CompositeMapper = { + serializedName: "Command", type: { name: "Composite", - className: "RandomSamplingAlgorithm", - uberParent: "SamplingAlgorithm", - polymorphicDiscriminator: SamplingAlgorithm.type.polymorphicDiscriminator, + className: "CommandJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...SamplingAlgorithm.type.modelProperties, - rule: { - serializedName: "rule", + ...JobBaseProperties.type.modelProperties, + autologgerSettings: { + serializedName: "autologgerSettings", + type: { + name: "Composite", + className: "AutologgerSettings" + } + }, + codeId: { + serializedName: "codeId", + nullable: true, + type: { + name: "String" + } + }, + command: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "command", + required: true, + type: { + name: "String" + } + }, + distribution: { + serializedName: "distribution", + type: { + name: "Composite", + className: "DistributionConfiguration" + } + }, + environmentId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "environmentId", + required: true, type: { name: "String" } }, - seed: { - serializedName: "seed", + environmentVariables: { + serializedName: "environmentVariables", nullable: true, type: { - name: "Number" + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + inputs: { + serializedName: "inputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } + } + }, + limits: { + serializedName: "limits", + type: { + name: "Composite", + className: "CommandJobLimits" + } + }, + outputs: { + serializedName: "outputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } + } + }, + parameters: { + serializedName: "parameters", + readOnly: true, + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + queueSettings: { + serializedName: "queueSettings", + type: { + name: "Composite", + className: "QueueSettings" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "JobResourceConfiguration" } } } } }; -export const ClassificationTrainingSettings: coreClient.CompositeMapper = { +export const PipelineJob: coreClient.CompositeMapper = { + serializedName: "Pipeline", type: { name: "Composite", - className: "ClassificationTrainingSettings", + className: "PipelineJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...TrainingSettings.type.modelProperties, - allowedTrainingAlgorithms: { - serializedName: "allowedTrainingAlgorithms", + ...JobBaseProperties.type.modelProperties, + inputs: { + serializedName: "inputs", nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } } }, - blockedTrainingAlgorithms: { - serializedName: "blockedTrainingAlgorithms", + jobs: { + serializedName: "jobs", nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } + name: "Dictionary", + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } } } + }, + outputs: { + serializedName: "outputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } + } + }, + settings: { + serializedName: "settings", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + sourceJobId: { + serializedName: "sourceJobId", + nullable: true, + type: { + name: "String" + } } } } }; -export const ForecastingTrainingSettings: coreClient.CompositeMapper = { +export const SparkJob: coreClient.CompositeMapper = { + serializedName: "Spark", type: { name: "Composite", - className: "ForecastingTrainingSettings", + className: "SparkJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...TrainingSettings.type.modelProperties, - allowedTrainingAlgorithms: { - serializedName: "allowedTrainingAlgorithms", + ...JobBaseProperties.type.modelProperties, + archives: { + serializedName: "archives", nullable: true, type: { name: "Sequence", @@ -9879,8 +18679,48 @@ export const ForecastingTrainingSettings: coreClient.CompositeMapper = { } } }, - blockedTrainingAlgorithms: { - serializedName: "blockedTrainingAlgorithms", + args: { + serializedName: "args", + nullable: true, + type: { + name: "String" + } + }, + codeId: { + constraints: { + Pattern: new RegExp("[a-zA-Z0-9_]"), + MinLength: 1 + }, + serializedName: "codeId", + required: true, + type: { + name: "String" + } + }, + conf: { + serializedName: "conf", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + entry: { + serializedName: "entry", + type: { + name: "Composite", + className: "SparkJobEntry" + } + }, + environmentId: { + serializedName: "environmentId", + nullable: true, + type: { + name: "String" + } + }, + files: { + serializedName: "files", nullable: true, type: { name: "Sequence", @@ -9890,19 +18730,17 @@ export const ForecastingTrainingSettings: coreClient.CompositeMapper = { } } } - } - } - } -}; - -export const RegressionTrainingSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegressionTrainingSettings", - modelProperties: { - ...TrainingSettings.type.modelProperties, - allowedTrainingAlgorithms: { - serializedName: "allowedTrainingAlgorithms", + }, + inputs: { + serializedName: "inputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } + } + }, + jars: { + serializedName: "jars", nullable: true, type: { name: "Sequence", @@ -9913,8 +18751,16 @@ export const RegressionTrainingSettings: coreClient.CompositeMapper = { } } }, - blockedTrainingAlgorithms: { - serializedName: "blockedTrainingAlgorithms", + outputs: { + serializedName: "outputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } + } + }, + pyFiles: { + serializedName: "pyFiles", nullable: true, type: { name: "Sequence", @@ -9924,325 +18770,382 @@ export const RegressionTrainingSettings: coreClient.CompositeMapper = { } } } + }, + queueSettings: { + serializedName: "queueSettings", + type: { + name: "Composite", + className: "QueueSettings" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "SparkResourceConfiguration" + } } } } }; -export const TableVerticalFeaturizationSettings: coreClient.CompositeMapper = { +export const SweepJob: coreClient.CompositeMapper = { + serializedName: "Sweep", type: { name: "Composite", - className: "TableVerticalFeaturizationSettings", + className: "SweepJob", + uberParent: "JobBaseProperties", + polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...FeaturizationSettings.type.modelProperties, - blockedTransformers: { - serializedName: "blockedTransformers", + ...JobBaseProperties.type.modelProperties, + componentConfiguration: { + serializedName: "componentConfiguration", + type: { + name: "Composite", + className: "ComponentConfiguration" + } + }, + earlyTermination: { + serializedName: "earlyTermination", + type: { + name: "Composite", + className: "EarlyTerminationPolicy" + } + }, + inputs: { + serializedName: "inputs", nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Dictionary", + value: { type: { name: "Composite", className: "JobInput" } } + } + }, + limits: { + serializedName: "limits", + type: { + name: "Composite", + className: "SweepJobLimits" + } + }, + objective: { + serializedName: "objective", + type: { + name: "Composite", + className: "Objective" + } + }, + outputs: { + serializedName: "outputs", + nullable: true, + type: { + name: "Dictionary", + value: { type: { name: "Composite", className: "JobOutput" } } + } + }, + queueSettings: { + serializedName: "queueSettings", + type: { + name: "Composite", + className: "QueueSettings" + } + }, + resources: { + serializedName: "resources", + type: { + name: "Composite", + className: "JobResourceConfiguration" } }, - columnNameAndTypes: { - serializedName: "columnNameAndTypes", - nullable: true, + samplingAlgorithm: { + serializedName: "samplingAlgorithm", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Composite", + className: "SamplingAlgorithm" } }, - enableDnnFeaturization: { - defaultValue: false, - serializedName: "enableDnnFeaturization", + searchSpace: { + serializedName: "searchSpace", + required: true, type: { - name: "Boolean" + name: "Dictionary", + value: { type: { name: "any" } } } }, - mode: { - serializedName: "mode", + trial: { + serializedName: "trial", type: { - name: "String" + name: "Composite", + className: "TrialComponent" } - }, - transformerParams: { - serializedName: "transformerParams", - nullable: true, + } + } + } +}; + +export const KubernetesOnlineDeployment: coreClient.CompositeMapper = { + serializedName: "Kubernetes", + type: { + name: "Composite", + className: "KubernetesOnlineDeployment", + uberParent: "OnlineDeploymentProperties", + polymorphicDiscriminator: + OnlineDeploymentProperties.type.polymorphicDiscriminator, + modelProperties: { + ...OnlineDeploymentProperties.type.modelProperties, + containerResourceRequirements: { + serializedName: "containerResourceRequirements", type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { name: "Composite", className: "ColumnTransformer" } - } - } - } + name: "Composite", + className: "ContainerResourceRequirements" } } } } }; -export const NlpVerticalFeaturizationSettings: coreClient.CompositeMapper = { +export const ManagedOnlineDeployment: coreClient.CompositeMapper = { + serializedName: "Managed", type: { name: "Composite", - className: "NlpVerticalFeaturizationSettings", + className: "ManagedOnlineDeployment", + uberParent: "OnlineDeploymentProperties", + polymorphicDiscriminator: + OnlineDeploymentProperties.type.polymorphicDiscriminator, modelProperties: { - ...FeaturizationSettings.type.modelProperties + ...OnlineDeploymentProperties.type.modelProperties } } }; -export const Mpi: coreClient.CompositeMapper = { - serializedName: "Mpi", +export const DataImport: coreClient.CompositeMapper = { + serializedName: "uri_folder", type: { name: "Composite", - className: "Mpi", - uberParent: "DistributionConfiguration", + className: "DataImport", + uberParent: "DataVersionBaseProperties", polymorphicDiscriminator: - DistributionConfiguration.type.polymorphicDiscriminator, + DataVersionBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...DistributionConfiguration.type.modelProperties, - processCountPerInstance: { - serializedName: "processCountPerInstance", + ...DataVersionBaseProperties.type.modelProperties, + assetName: { + serializedName: "assetName", nullable: true, type: { - name: "Number" + name: "String" + } + }, + source: { + serializedName: "source", + type: { + name: "Composite", + className: "DataImportSource" } } } } }; -export const PyTorch: coreClient.CompositeMapper = { - serializedName: "PyTorch", +export const MLTableData: coreClient.CompositeMapper = { + serializedName: "mltable", type: { name: "Composite", - className: "PyTorch", - uberParent: "DistributionConfiguration", + className: "MLTableData", + uberParent: "DataVersionBaseProperties", polymorphicDiscriminator: - DistributionConfiguration.type.polymorphicDiscriminator, + DataVersionBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...DistributionConfiguration.type.modelProperties, - processCountPerInstance: { - serializedName: "processCountPerInstance", + ...DataVersionBaseProperties.type.modelProperties, + referencedUris: { + serializedName: "referencedUris", nullable: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const TensorFlow: coreClient.CompositeMapper = { - serializedName: "TensorFlow", +export const UriFileDataVersion: coreClient.CompositeMapper = { + serializedName: "uri_file", type: { name: "Composite", - className: "TensorFlow", - uberParent: "DistributionConfiguration", + className: "UriFileDataVersion", + uberParent: "DataVersionBaseProperties", polymorphicDiscriminator: - DistributionConfiguration.type.polymorphicDiscriminator, + DataVersionBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...DistributionConfiguration.type.modelProperties, - parameterServerCount: { - defaultValue: 0, - serializedName: "parameterServerCount", - type: { - name: "Number" - } - }, - workerCount: { - serializedName: "workerCount", - nullable: true, - type: { - name: "Number" - } - } + ...DataVersionBaseProperties.type.modelProperties } } }; -export const CommandJobLimits: coreClient.CompositeMapper = { - serializedName: "Command", +export const UriFolderDataVersion: coreClient.CompositeMapper = { + serializedName: "uri_folder", type: { name: "Composite", - className: "CommandJobLimits", - uberParent: "JobLimits", - polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, + className: "UriFolderDataVersion", + uberParent: "DataVersionBaseProperties", + polymorphicDiscriminator: + DataVersionBaseProperties.type.polymorphicDiscriminator, modelProperties: { - ...JobLimits.type.modelProperties + ...DataVersionBaseProperties.type.modelProperties } } }; -export const SweepJobLimits: coreClient.CompositeMapper = { - serializedName: "Sweep", +export const ComputeCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SweepJobLimits", - uberParent: "JobLimits", - polymorphicDiscriminator: JobLimits.type.polymorphicDiscriminator, + className: "ComputeCreateOrUpdateHeaders", modelProperties: { - ...JobLimits.type.modelProperties, - maxConcurrentTrials: { - serializedName: "maxConcurrentTrials", - nullable: true, - type: { - name: "Number" - } - }, - maxTotalTrials: { - serializedName: "maxTotalTrials", - nullable: true, - type: { - name: "Number" - } - }, - trialTimeout: { - serializedName: "trialTimeout", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "TimeSpan" + name: "String" } } } } }; -export const ImageModelSettingsClassification: coreClient.CompositeMapper = { +export const ComputeDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelSettingsClassification", + className: "ComputeDeleteHeaders", modelProperties: { - ...ImageModelSettings.type.modelProperties, - trainingCropSize: { - serializedName: "trainingCropSize", - nullable: true, - type: { - name: "Number" - } - }, - validationCropSize: { - serializedName: "validationCropSize", - nullable: true, - type: { - name: "Number" - } - }, - validationResizeSize: { - serializedName: "validationResizeSize", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Number" + name: "String" } }, - weightedLoss: { - serializedName: "weightedLoss", - nullable: true, + location: { + serializedName: "location", type: { - name: "Number" + name: "String" } } } } }; -export const ImageModelSettingsObjectDetection: coreClient.CompositeMapper = { +export const ComputeResizeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelSettingsObjectDetection", + className: "ComputeResizeHeaders", modelProperties: { - ...ImageModelSettings.type.modelProperties, - boxDetectionsPerImage: { - serializedName: "boxDetectionsPerImage", - nullable: true, - type: { - name: "Number" - } - }, - boxScoreThreshold: { - serializedName: "boxScoreThreshold", - nullable: true, - type: { - name: "Number" - } - }, - imageSize: { - serializedName: "imageSize", - nullable: true, - type: { - name: "Number" - } - }, - maxSize: { - serializedName: "maxSize", - nullable: true, + location: { + serializedName: "location", type: { - name: "Number" + name: "String" } - }, - minSize: { - serializedName: "minSize", - nullable: true, + } + } + } +}; + +export const RegistryCodeContainersDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryCodeContainersDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Number" + name: "TimeSpan" } }, - modelSize: { - serializedName: "modelSize", + location: { + serializedName: "location", type: { name: "String" } }, - multiScale: { - serializedName: "multiScale", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Boolean" + name: "Number" } - }, - nmsIouThreshold: { - serializedName: "nmsIouThreshold", - nullable: true, + } + } + } +}; + +export const RegistryCodeContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryCodeContainersCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Number" + name: "TimeSpan" } }, - tileGridSize: { - serializedName: "tileGridSize", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - tileOverlapRatio: { - serializedName: "tileOverlapRatio", - nullable: true, + } + } + } +}; + +export const RegistryCodeVersionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryCodeVersionsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Number" + name: "TimeSpan" } }, - tilePredictionsNmsThreshold: { - serializedName: "tilePredictionsNmsThreshold", - nullable: true, + location: { + serializedName: "location", type: { - name: "Number" + name: "String" } }, - validationIouThreshold: { - serializedName: "validationIouThreshold", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { name: "Number" } + } + } + } +}; + +export const RegistryCodeVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryCodeVersionsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } }, - validationMetricType: { - serializedName: "validationMetricType", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10251,36 +19154,50 @@ export const ImageModelSettingsObjectDetection: coreClient.CompositeMapper = { } }; -export const ImageModelDistributionSettingsClassification: coreClient.CompositeMapper = { +export const RegistryComponentContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelDistributionSettingsClassification", + className: "RegistryComponentContainersDeleteHeaders", modelProperties: { - ...ImageModelDistributionSettings.type.modelProperties, - trainingCropSize: { - serializedName: "trainingCropSize", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - validationCropSize: { - serializedName: "validationCropSize", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - validationResizeSize: { - serializedName: "validationResizeSize", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" + } + } + } + } +}; + +export const RegistryComponentContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryComponentContainersCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" } }, - weightedLoss: { - serializedName: "weightedLoss", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10289,407 +19206,470 @@ export const ImageModelDistributionSettingsClassification: coreClient.CompositeM } }; -export const ImageModelDistributionSettingsObjectDetection: coreClient.CompositeMapper = { +export const RegistryComponentVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImageModelDistributionSettingsObjectDetection", + className: "RegistryComponentVersionsDeleteHeaders", modelProperties: { - ...ImageModelDistributionSettings.type.modelProperties, - boxDetectionsPerImage: { - serializedName: "boxDetectionsPerImage", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - boxScoreThreshold: { - serializedName: "boxScoreThreshold", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - imageSize: { - serializedName: "imageSize", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } - }, - maxSize: { - serializedName: "maxSize", - nullable: true, + } + } + } +}; + +export const RegistryComponentVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryComponentVersionsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - minSize: { - serializedName: "minSize", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - modelSize: { - serializedName: "modelSize", - nullable: true, + } + } + } +}; + +export const RegistryDataContainersDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryDataContainersDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - multiScale: { - serializedName: "multiScale", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - nmsIouThreshold: { - serializedName: "nmsIouThreshold", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } - }, - tileGridSize: { - serializedName: "tileGridSize", - nullable: true, + } + } + } +}; + +export const RegistryDataContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryDataContainersCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - tileOverlapRatio: { - serializedName: "tileOverlapRatio", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - tilePredictionsNmsThreshold: { - serializedName: "tilePredictionsNmsThreshold", - nullable: true, + } + } + } +}; + +export const RegistryDataVersionsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegistryDataVersionsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - validationIouThreshold: { - serializedName: "validationIouThreshold", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - validationMetricType: { - serializedName: "validationMetricType", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const BatchEndpoint: coreClient.CompositeMapper = { +export const RegistryDataVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpoint", + className: "RegistryDataVersionsCreateOrUpdateHeaders", modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "TimeSpan" } }, - kind: { - serializedName: "kind", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "BatchEndpointProperties" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } } } } }; -export const BatchDeployment: coreClient.CompositeMapper = { +export const RegistryEnvironmentContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeployment", + className: "RegistryEnvironmentContainersDeleteHeaders", modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "TimeSpan" } }, - kind: { - serializedName: "kind", + location: { + serializedName: "location", type: { name: "String" } }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "BatchDeploymentProperties" - } - }, - sku: { - serializedName: "sku", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "Sku" + name: "Number" } } } } }; -export const OnlineEndpoint: coreClient.CompositeMapper = { +export const RegistryEnvironmentContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpoint", + className: "RegistryEnvironmentContainersCreateOrUpdateHeaders", modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "TimeSpan" } }, - kind: { - serializedName: "kind", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "OnlineEndpointProperties" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } } } } }; -export const OnlineDeployment: coreClient.CompositeMapper = { +export const RegistryEnvironmentVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeployment", + className: "RegistryEnvironmentVersionsDeleteHeaders", modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "ManagedServiceIdentity" + name: "TimeSpan" } }, - kind: { - serializedName: "kind", + location: { + serializedName: "location", type: { name: "String" } }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "OnlineDeploymentProperties" - } - }, - sku: { - serializedName: "sku", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "Sku" + name: "Number" } } } } }; -export const KubernetesOnlineDeployment: coreClient.CompositeMapper = { - serializedName: "Kubernetes", +export const RegistryEnvironmentVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KubernetesOnlineDeployment", - uberParent: "OnlineDeploymentProperties", - polymorphicDiscriminator: - OnlineDeploymentProperties.type.polymorphicDiscriminator, + className: "RegistryEnvironmentVersionsCreateOrUpdateHeaders", modelProperties: { - ...OnlineDeploymentProperties.type.modelProperties, - containerResourceRequirements: { - serializedName: "containerResourceRequirements", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "ContainerResourceRequirements" + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" } } } } }; -export const ManagedOnlineDeployment: coreClient.CompositeMapper = { - serializedName: "Managed", - type: { - name: "Composite", - className: "ManagedOnlineDeployment", - uberParent: "OnlineDeploymentProperties", - polymorphicDiscriminator: - OnlineDeploymentProperties.type.polymorphicDiscriminator, - modelProperties: { - ...OnlineDeploymentProperties.type.modelProperties - } - } -}; - -export const CodeContainerProperties: coreClient.CompositeMapper = { +export const RegistryModelContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeContainerProperties", + className: "RegistryModelContainersDeleteHeaders", modelProperties: { - ...AssetContainer.type.modelProperties + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } } } }; -export const ComponentContainerProperties: coreClient.CompositeMapper = { +export const RegistryModelContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentContainerProperties", + className: "RegistryModelContainersCreateOrUpdateHeaders", modelProperties: { - ...AssetContainer.type.modelProperties + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } } } }; -export const DataContainerProperties: coreClient.CompositeMapper = { +export const RegistryModelVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataContainerProperties", + className: "RegistryModelVersionsDeleteHeaders", modelProperties: { - ...AssetContainer.type.modelProperties, - dataType: { - serializedName: "dataType", - required: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", type: { name: "String" } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } } } } }; -export const EnvironmentContainerProperties: coreClient.CompositeMapper = { +export const RegistryModelVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentContainerProperties", + className: "RegistryModelVersionsCreateOrUpdateHeaders", modelProperties: { - ...AssetContainer.type.modelProperties + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } } } }; -export const ModelContainerProperties: coreClient.CompositeMapper = { +export const RegistryModelVersionsPackageHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelContainerProperties", + className: "RegistryModelVersionsPackageHeaders", modelProperties: { - ...AssetContainer.type.modelProperties + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } } } }; -export const CodeVersionProperties: coreClient.CompositeMapper = { +export const BatchEndpointsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CodeVersionProperties", + className: "BatchEndpointsDeleteHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - codeUri: { - serializedName: "codeUri", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", type: { name: "String" } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } } } } }; -export const ComponentVersionProperties: coreClient.CompositeMapper = { +export const BatchEndpointsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComponentVersionProperties", + className: "BatchEndpointsUpdateHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - componentSpec: { - serializedName: "componentSpec", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "TimeSpan" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" } } } } }; -export const DataVersionBaseProperties: coreClient.CompositeMapper = { - serializedName: "DataVersionBaseProperties", +export const BatchEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataVersionBaseProperties", - uberParent: "AssetBase", - polymorphicDiscriminator: { - serializedName: "dataType", - clientName: "dataType" - }, + className: "BatchEndpointsCreateOrUpdateHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - dataType: { - serializedName: "dataType", - required: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - dataUri: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "dataUri", - required: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10698,53 +19678,81 @@ export const DataVersionBaseProperties: coreClient.CompositeMapper = { } }; -export const EnvironmentVersionProperties: coreClient.CompositeMapper = { +export const BatchDeploymentsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentVersionProperties", + className: "BatchDeploymentsDeleteHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - autoRebuild: { - serializedName: "autoRebuild", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - build: { - serializedName: "build", + location: { + serializedName: "location", type: { - name: "Composite", - className: "BuildContext" + name: "String" } }, - condaFile: { - serializedName: "condaFile", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } - }, - environmentType: { - serializedName: "environmentType", - readOnly: true, + } + } + } +}; + +export const BatchDeploymentsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentsUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - image: { - serializedName: "image", + location: { + serializedName: "location", type: { name: "String" } }, - inferenceConfig: { - serializedName: "inferenceConfig", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "InferenceContainerProperties" + name: "Number" + } + } + } + } +}; + +export const BatchDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BatchDeploymentsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" } }, - osType: { - serializedName: "osType", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10753,37 +19761,50 @@ export const EnvironmentVersionProperties: coreClient.CompositeMapper = { } }; -export const ModelVersionProperties: coreClient.CompositeMapper = { +export const FeaturesetContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ModelVersionProperties", + className: "FeaturesetContainersDeleteHeaders", modelProperties: { - ...AssetBase.type.modelProperties, - flavors: { - serializedName: "flavors", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "FlavorData" } } + name: "TimeSpan" } }, - jobName: { - serializedName: "jobName", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - modelType: { - serializedName: "modelType", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" + } + } + } + } +}; + +export const FeaturesetContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturesetContainersCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" } }, - modelUri: { - serializedName: "modelUri", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10792,45 +19813,50 @@ export const ModelVersionProperties: coreClient.CompositeMapper = { } }; -export const AzureBlobDatastore: coreClient.CompositeMapper = { - serializedName: "AzureBlob", +export const FeaturesetVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureBlobDatastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "FeaturesetVersionsDeleteHeaders", modelProperties: { - ...DatastoreProperties.type.modelProperties, - accountName: { - serializedName: "accountName", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - containerName: { - serializedName: "containerName", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - endpoint: { - serializedName: "endpoint", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } - }, - protocol: { - serializedName: "protocol", - nullable: true, + } + } + } +}; + +export const FeaturesetVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturesetVersionsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10839,80 +19865,75 @@ export const AzureBlobDatastore: coreClient.CompositeMapper = { } }; -export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = { - serializedName: "AzureDataLakeGen1", +export const FeaturesetVersionsBackfillHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDataLakeGen1Datastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "FeaturesetVersionsBackfillHeaders", modelProperties: { - ...DatastoreProperties.type.modelProperties, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + location: { + serializedName: "location", type: { name: "String" } }, - storeName: { + retryAfter: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + InclusiveMaximum: 600, + InclusiveMinimum: 10 }, - serializedName: "storeName", - required: true, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { - serializedName: "AzureDataLakeGen2", +export const FeaturestoreEntityContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDataLakeGen2Datastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "FeaturestoreEntityContainersDeleteHeaders", modelProperties: { - ...DatastoreProperties.type.modelProperties, - accountName: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "accountName", - required: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - endpoint: { - serializedName: "endpoint", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - filesystem: { + retryAfter: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + InclusiveMaximum: 600, + InclusiveMinimum: 10 }, - serializedName: "filesystem", - required: true, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } - }, - protocol: { - serializedName: "protocol", - nullable: true, + } + } + } +}; + +export const FeaturestoreEntityContainersCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturestoreEntityContainersCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10921,51 +19942,50 @@ export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { } }; -export const AzureFileDatastore: coreClient.CompositeMapper = { - serializedName: "AzureFile", +export const FeaturestoreEntityVersionsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureFileDatastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + className: "FeaturestoreEntityVersionsDeleteHeaders", modelProperties: { - ...DatastoreProperties.type.modelProperties, - accountName: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "accountName", - required: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - endpoint: { - serializedName: "endpoint", - nullable: true, + location: { + serializedName: "location", type: { name: "String" } }, - fileShareName: { + retryAfter: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") + InclusiveMaximum: 600, + InclusiveMinimum: 10 }, - serializedName: "fileShareName", - required: true, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } - }, - protocol: { - serializedName: "protocol", - nullable: true, + } + } + } +}; + +export const FeaturestoreEntityVersionsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FeaturestoreEntityVersionsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, - serviceDataAccessAuthIdentity: { - serializedName: "serviceDataAccessAuthIdentity", + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } @@ -10974,335 +19994,361 @@ export const AzureFileDatastore: coreClient.CompositeMapper = { } }; -export const AutoMLJob: coreClient.CompositeMapper = { - serializedName: "AutoML", +export const InferencePoolsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoMLJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "InferencePoolsDeleteHeaders", modelProperties: { - ...JobBaseProperties.type.modelProperties, - environmentId: { - serializedName: "environmentId", - nullable: true, - type: { - name: "String" - } - }, - environmentVariables: { - serializedName: "environmentVariables", - nullable: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - outputs: { - serializedName: "outputs", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobOutput" } } + name: "TimeSpan" } }, - resources: { - serializedName: "resources", + location: { + serializedName: "location", type: { - name: "Composite", - className: "JobResourceConfiguration" + name: "String" } }, - taskDetails: { - serializedName: "taskDetails", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "AutoMLVertical" + name: "Number" } } } } }; -export const CommandJob: coreClient.CompositeMapper = { - serializedName: "Command", +export const InferencePoolsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CommandJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "InferencePoolsUpdateHeaders", modelProperties: { - ...JobBaseProperties.type.modelProperties, - codeId: { - serializedName: "codeId", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + location: { + serializedName: "location", type: { name: "String" } }, - command: { + retryAfter: { constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]"), - MinLength: 1 + InclusiveMaximum: 600, + InclusiveMinimum: 10 }, - serializedName: "command", - required: true, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } - }, - distribution: { - serializedName: "distribution", + } + } + } +}; + +export const InferencePoolsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferencePoolsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "DistributionConfiguration" + name: "TimeSpan" } }, - environmentId: { - constraints: { - Pattern: new RegExp("[a-zA-Z0-9_]") - }, - serializedName: "environmentId", - required: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { name: "String" } - }, - environmentVariables: { - serializedName: "environmentVariables", - nullable: true, + } + } + } +}; + +export const InferenceGroupsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferenceGroupsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "TimeSpan" } }, - inputs: { - serializedName: "inputs", - nullable: true, + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobInput" } } + name: "String" } }, - limits: { - serializedName: "limits", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "CommandJobLimits" + name: "Number" } - }, - outputs: { - serializedName: "outputs", - nullable: true, + } + } + } +}; + +export const InferenceGroupsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferenceGroupsUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobOutput" } } + name: "TimeSpan" } }, - parameters: { - serializedName: "parameters", - readOnly: true, - nullable: true, + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - resources: { - serializedName: "resources", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "JobResourceConfiguration" + name: "Number" } } } } }; -export const PipelineJob: coreClient.CompositeMapper = { - serializedName: "Pipeline", +export const InferenceGroupsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PipelineJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "InferenceGroupsCreateOrUpdateHeaders", modelProperties: { - ...JobBaseProperties.type.modelProperties, - inputs: { - serializedName: "inputs", - nullable: true, + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobInput" } } + name: "TimeSpan" } }, - jobs: { - serializedName: "jobs", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Dictionary", - value: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + name: "String" } - }, - outputs: { - serializedName: "outputs", - nullable: true, + } + } + } +}; + +export const InferenceEndpointsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferenceEndpointsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobOutput" } } + name: "TimeSpan" } }, - settings: { - serializedName: "settings", - nullable: true, + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - sourceJobId: { - serializedName: "sourceJobId", - nullable: true, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const SweepJob: coreClient.CompositeMapper = { - serializedName: "Sweep", +export const InferenceEndpointsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SweepJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + className: "InferenceEndpointsUpdateHeaders", modelProperties: { - ...JobBaseProperties.type.modelProperties, - earlyTermination: { - serializedName: "earlyTermination", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "EarlyTerminationPolicy" + name: "TimeSpan" } }, - inputs: { - serializedName: "inputs", - nullable: true, + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobInput" } } + name: "String" } }, - limits: { - serializedName: "limits", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "SweepJobLimits" + name: "Number" } - }, - objective: { - serializedName: "objective", + } + } + } +}; + +export const InferenceEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InferenceEndpointsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "Objective" + name: "TimeSpan" } }, - outputs: { - serializedName: "outputs", - nullable: true, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "JobOutput" } } + name: "String" } - }, - samplingAlgorithm: { - serializedName: "samplingAlgorithm", + } + } + } +}; + +export const JobsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JobsDeleteHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "Composite", - className: "SamplingAlgorithm" + name: "TimeSpan" } }, - searchSpace: { - serializedName: "searchSpace", - required: true, + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } }, - trial: { - serializedName: "trial", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "Composite", - className: "TrialComponent" + name: "Number" } } } } }; -export const MLTableData: coreClient.CompositeMapper = { - serializedName: "mltable", +export const JobsCancelHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MLTableData", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + className: "JobsCancelHeaders", modelProperties: { - ...DataVersionBaseProperties.type.modelProperties, - referencedUris: { - serializedName: "referencedUris", - nullable: true, + location: { + serializedName: "location", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" } } } } }; -export const UriFileDataVersion: coreClient.CompositeMapper = { - serializedName: "uri_file", +export const LabelingJobsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFileDataVersion", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + className: "LabelingJobsCreateOrUpdateHeaders", modelProperties: { - ...DataVersionBaseProperties.type.modelProperties + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } } } }; -export const UriFolderDataVersion: coreClient.CompositeMapper = { - serializedName: "uri_folder", +export const LabelingJobsExportLabelsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UriFolderDataVersion", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + className: "LabelingJobsExportLabelsHeaders", modelProperties: { - ...DataVersionBaseProperties.type.modelProperties + location: { + serializedName: "location", + type: { + name: "String" + } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } + } } } }; -export const WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { +export const LabelingJobsResumeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspacesDiagnoseHeaders", + className: "LabelingJobsResumeHeaders", modelProperties: { location: { serializedName: "location", @@ -11324,30 +20370,40 @@ export const WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { } }; -export const ComputeCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const ModelVersionsPackageHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeCreateOrUpdateHeaders", + className: "ModelVersionsPackageHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String" } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } } } } }; -export const ComputeDeleteHeaders: coreClient.CompositeMapper = { +export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComputeDeleteHeaders", + className: "OnlineEndpointsDeleteHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", type: { - name: "String" + name: "TimeSpan" } }, location: { @@ -11355,15 +20411,25 @@ export const ComputeDeleteHeaders: coreClient.CompositeMapper = { type: { name: "String" } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } } } } }; -export const BatchEndpointsDeleteHeaders: coreClient.CompositeMapper = { +export const OnlineEndpointsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointsDeleteHeaders", + className: "OnlineEndpointsUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11391,10 +20457,10 @@ export const BatchEndpointsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const BatchEndpointsUpdateHeaders: coreClient.CompositeMapper = { +export const OnlineEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointsUpdateHeaders", + className: "OnlineEndpointsCreateOrUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11402,6 +20468,21 @@ export const BatchEndpointsUpdateHeaders: coreClient.CompositeMapper = { name: "TimeSpan" } }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const OnlineEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnlineEndpointsRegenerateKeysHeaders", + modelProperties: { location: { serializedName: "location", type: { @@ -11422,10 +20503,10 @@ export const BatchEndpointsUpdateHeaders: coreClient.CompositeMapper = { } }; -export const BatchEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const OnlineDeploymentsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchEndpointsCreateOrUpdateHeaders", + className: "OnlineDeploymentsDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11433,20 +20514,30 @@ export const BatchEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { name: "TimeSpan" } }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String" } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } } } } }; -export const BatchDeploymentsDeleteHeaders: coreClient.CompositeMapper = { +export const OnlineDeploymentsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentsDeleteHeaders", + className: "OnlineDeploymentsUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11474,10 +20565,31 @@ export const BatchDeploymentsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const BatchDeploymentsUpdateHeaders: coreClient.CompositeMapper = { +export const OnlineDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentsUpdateHeaders", + className: "OnlineDeploymentsCreateOrUpdateHeaders", + modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const SchedulesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SchedulesDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11505,10 +20617,10 @@ export const BatchDeploymentsUpdateHeaders: coreClient.CompositeMapper = { } }; -export const BatchDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const SchedulesCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BatchDeploymentsCreateOrUpdateHeaders", + className: "SchedulesCreateOrUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11526,10 +20638,10 @@ export const BatchDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = } }; -export const JobsDeleteHeaders: coreClient.CompositeMapper = { +export const ServerlessEndpointsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobsDeleteHeaders", + className: "ServerlessEndpointsDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11557,11 +20669,17 @@ export const JobsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const JobsCancelHeaders: coreClient.CompositeMapper = { +export const ServerlessEndpointsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JobsCancelHeaders", + className: "ServerlessEndpointsUpdateHeaders", modelProperties: { + xMsAsyncOperationTimeout: { + serializedName: "x-ms-async-operation-timeout", + type: { + name: "TimeSpan" + } + }, location: { serializedName: "location", type: { @@ -11582,10 +20700,10 @@ export const JobsCancelHeaders: coreClient.CompositeMapper = { } }; -export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { +export const ServerlessEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsDeleteHeaders", + className: "ServerlessEndpointsCreateOrUpdateHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11593,6 +20711,21 @@ export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { name: "TimeSpan" } }, + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ServerlessEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerlessEndpointsRegenerateKeysHeaders", + modelProperties: { location: { serializedName: "location", type: { @@ -11613,10 +20746,10 @@ export const OnlineEndpointsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const OnlineEndpointsUpdateHeaders: coreClient.CompositeMapper = { +export const RegistriesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsUpdateHeaders", + className: "RegistriesDeleteHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11644,10 +20777,10 @@ export const OnlineEndpointsUpdateHeaders: coreClient.CompositeMapper = { } }; -export const OnlineEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const RegistriesRemoveRegionsHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsCreateOrUpdateHeaders", + className: "RegistriesRemoveRegionsHeaders", modelProperties: { xMsAsyncOperationTimeout: { serializedName: "x-ms-async-operation-timeout", @@ -11655,20 +20788,30 @@ export const OnlineEndpointsCreateOrUpdateHeaders: coreClient.CompositeMapper = name: "TimeSpan" } }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String" } + }, + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", + type: { + name: "Number" + } } } } }; -export const OnlineEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = { +export const WorkspacesCreateOrUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineEndpointsRegenerateKeysHeaders", + className: "WorkspacesCreateOrUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -11690,17 +20833,11 @@ export const OnlineEndpointsRegenerateKeysHeaders: coreClient.CompositeMapper = } }; -export const OnlineDeploymentsDeleteHeaders: coreClient.CompositeMapper = { +export const WorkspacesDiagnoseHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentsDeleteHeaders", + className: "WorkspacesDiagnoseHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan" - } - }, location: { serializedName: "location", type: { @@ -11721,17 +20858,11 @@ export const OnlineDeploymentsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const OnlineDeploymentsUpdateHeaders: coreClient.CompositeMapper = { +export const WorkspacesPrepareNotebookHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentsUpdateHeaders", + className: "WorkspacesPrepareNotebookHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", - type: { - name: "TimeSpan" - } - }, location: { serializedName: "location", type: { @@ -11752,38 +20883,51 @@ export const OnlineDeploymentsUpdateHeaders: coreClient.CompositeMapper = { } }; -export const OnlineDeploymentsCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const WorkspacesResyncKeysHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OnlineDeploymentsCreateOrUpdateHeaders", + className: "WorkspacesResyncKeysHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", + location: { + serializedName: "location", type: { - name: "TimeSpan" + name: "String" } }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } } }; -export const SchedulesDeleteHeaders: coreClient.CompositeMapper = { +export const ManagedNetworkSettingsRuleDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SchedulesDeleteHeaders", + className: "ManagedNetworkSettingsRuleDeleteHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", + location: { + serializedName: "location", type: { - name: "TimeSpan" + name: "String" } - }, + } + } + } +}; + +export const ManagedNetworkSettingsRuleCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedNetworkSettingsRuleCreateOrUpdateHeaders", + modelProperties: { location: { serializedName: "location", type: { @@ -11804,21 +20948,25 @@ export const SchedulesDeleteHeaders: coreClient.CompositeMapper = { } }; -export const SchedulesCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const ManagedNetworkProvisionsProvisionManagedNetworkHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SchedulesCreateOrUpdateHeaders", + className: "ManagedNetworkProvisionsProvisionManagedNetworkHeaders", modelProperties: { - xMsAsyncOperationTimeout: { - serializedName: "x-ms-async-operation-timeout", + location: { + serializedName: "location", type: { - name: "TimeSpan" + name: "String" } }, - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + retryAfter: { + constraints: { + InclusiveMaximum: 600, + InclusiveMinimum: 10 + }, + serializedName: "retry-after", type: { - name: "String" + name: "Number" } } } @@ -11828,14 +20976,27 @@ export const SchedulesCreateOrUpdateHeaders: coreClient.CompositeMapper = { export let discriminators = { Compute: Compute, ComputeSecrets: ComputeSecrets, - WorkspaceConnectionPropertiesV2: WorkspaceConnectionPropertiesV2, + PendingUploadCredentialDto: PendingUploadCredentialDto, + BaseEnvironmentSource: BaseEnvironmentSource, + InferencingServer: InferencingServer, + PackageInputPathBase: PackageInputPathBase, + BatchDeploymentConfiguration: BatchDeploymentConfiguration, AssetReferenceBase: AssetReferenceBase, DatastoreCredentials: DatastoreCredentials, DatastoreSecrets: DatastoreSecrets, + Webhook: Webhook, + TriggerBase: TriggerBase, IdentityConfiguration: IdentityConfiguration, + Nodes: Nodes, + LabelingJobMediaProperties: LabelingJobMediaProperties, + MLAssistConfiguration: MLAssistConfiguration, + ExportSummary: ExportSummary, OnlineScaleSettings: OnlineScaleSettings, ScheduleActionBase: ScheduleActionBase, - TriggerBase: TriggerBase, + OutboundRule: OutboundRule, + WorkspaceConnectionPropertiesV2: WorkspaceConnectionPropertiesV2, + MonitoringFeatureFilterBase: MonitoringFeatureFilterBase, + MonitorComputeIdentityBase: MonitorComputeIdentityBase, ForecastHorizon: ForecastHorizon, JobOutput: JobOutput, AutoMLVertical: AutoMLVertical, @@ -11844,10 +21005,21 @@ export let discriminators = { Seasonality: Seasonality, TargetLags: TargetLags, TargetRollingWindowSize: TargetRollingWindowSize, + MonitoringAlertNotificationSettingsBase: MonitoringAlertNotificationSettingsBase, EarlyTerminationPolicy: EarlyTerminationPolicy, SamplingAlgorithm: SamplingAlgorithm, + DataDriftMetricThresholdBase: DataDriftMetricThresholdBase, + DataQualityMetricThresholdBase: DataQualityMetricThresholdBase, + PredictionDriftMetricThresholdBase: PredictionDriftMetricThresholdBase, + ModelPerformanceMetricThresholdBase: ModelPerformanceMetricThresholdBase, DistributionConfiguration: DistributionConfiguration, JobLimits: JobLimits, + MonitorComputeConfigurationBase: MonitorComputeConfigurationBase, + MonitoringSignalBase: MonitoringSignalBase, + MonitoringInputDataBase: MonitoringInputDataBase, + DataImportSource: DataImportSource, + OneLakeArtifact: OneLakeArtifact, + SparkJobEntry: SparkJobEntry, "Compute.AKS": Aks, "Compute.Kubernetes": Kubernetes, "Compute.AmlCompute": AmlCompute, @@ -11861,35 +21033,72 @@ export let discriminators = { "ComputeSecrets.AKS": AksComputeSecrets, "ComputeSecrets.VirtualMachine": VirtualMachineSecrets, "ComputeSecrets.Databricks": DatabricksComputeSecrets, - "WorkspaceConnectionPropertiesV2.PAT": PATAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.SAS": SASAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.UsernamePassword": UsernamePasswordAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.None": NoneAuthTypeWorkspaceConnectionProperties, - "WorkspaceConnectionPropertiesV2.ManagedIdentity": ManagedIdentityAuthTypeWorkspaceConnectionProperties, - "AssetReferenceBase.DataPath": DataPathAssetReference, + "ResourceBase.DatastoreProperties": DatastoreProperties, + "ResourceBase.JobBaseProperties": JobBaseProperties, + "PendingUploadCredentialDto.SAS": SASCredentialDto, + "BaseEnvironmentSource.EnvironmentAsset": BaseEnvironmentId, + "InferencingServer.AzureMLBatch": AzureMLBatchInferencingServer, + "InferencingServer.AzureMLOnline": AzureMLOnlineInferencingServer, + "InferencingServer.Custom": CustomInferencingServer, + "InferencingServer.Triton": TritonInferencingServer, + "PackageInputPathBase.PathId": PackageInputPathId, + "PackageInputPathBase.Url": PackageInputPathUrl, + "PackageInputPathBase.PathVersion": PackageInputPathVersion, + "BatchDeploymentConfiguration.PipelineComponent": BatchPipelineComponentDeploymentConfiguration, "AssetReferenceBase.Id": IdAssetReference, + "AssetReferenceBase.DataPath": DataPathAssetReference, "AssetReferenceBase.OutputPath": OutputPathAssetReference, "EndpointDeploymentPropertiesBase.OnlineDeploymentProperties": OnlineDeploymentProperties, - "ResourceBase.DatastoreProperties": DatastoreProperties, - "ResourceBase.JobBaseProperties": JobBaseProperties, "DatastoreCredentials.AccountKey": AccountKeyDatastoreCredentials, "DatastoreCredentials.Certificate": CertificateDatastoreCredentials, + "KerberosCredentials.KerberosKeytab": KerberosKeytabCredentials, + "KerberosCredentials.KerberosPassword": KerberosPasswordCredentials, "DatastoreCredentials.None": NoneDatastoreCredentials, "DatastoreCredentials.Sas": SasDatastoreCredentials, "DatastoreCredentials.ServicePrincipal": ServicePrincipalDatastoreCredentials, "DatastoreSecrets.AccountKey": AccountKeyDatastoreSecrets, "DatastoreSecrets.Certificate": CertificateDatastoreSecrets, + "DatastoreSecrets.KerberosKeytab": KerberosKeytabSecrets, + "DatastoreSecrets.KerberosPassword": KerberosPasswordSecrets, "DatastoreSecrets.Sas": SasDatastoreSecrets, "DatastoreSecrets.ServicePrincipal": ServicePrincipalDatastoreSecrets, + "Webhook.AzureDevOps": AzureDevOpsWebhook, + "TriggerBase.Recurrence": RecurrenceTrigger, + "TriggerBase.Cron": CronTrigger, "IdentityConfiguration.AMLToken": AmlToken, "IdentityConfiguration.Managed": ManagedIdentity, "IdentityConfiguration.UserIdentity": UserIdentity, + "Nodes.All": AllNodes, + "LabelingJobMediaProperties.Image": LabelingJobImageProperties, + "LabelingJobMediaProperties.Text": LabelingJobTextProperties, + "MLAssistConfiguration.Disabled": MLAssistConfigurationDisabled, + "MLAssistConfiguration.Enabled": MLAssistConfigurationEnabled, + "ExportSummary.Coco": CocoExportSummary, + "ExportSummary.CSV": CsvExportSummary, + "ExportSummary.Dataset": DatasetExportSummary, "OnlineScaleSettings.Default": DefaultScaleSettings, "OnlineScaleSettings.TargetUtilization": TargetUtilizationScaleSettings, + "ScheduleActionBase.CreateMonitor": CreateMonitorAction, "ScheduleActionBase.InvokeBatchEndpoint": EndpointScheduleAction, + "ScheduleActionBase.ImportData": ImportDataAction, "ScheduleActionBase.CreateJob": JobScheduleAction, - "TriggerBase.Recurrence": RecurrenceTrigger, - "TriggerBase.Cron": CronTrigger, + "OutboundRule.FQDN": FqdnOutboundRule, + "OutboundRule.PrivateEndpoint": PrivateEndpointOutboundRule, + "OutboundRule.ServiceTag": ServiceTagOutboundRule, + "WorkspaceConnectionPropertiesV2.AccessKey": AccessKeyAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.ApiKey": ApiKeyAuthWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.CustomKeys": CustomKeysWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.ManagedIdentity": ManagedIdentityAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.None": NoneAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.PAT": PATAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.SAS": SASAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.ServicePrincipal": ServicePrincipalAuthTypeWorkspaceConnectionProperties, + "WorkspaceConnectionPropertiesV2.UsernamePassword": UsernamePasswordAuthTypeWorkspaceConnectionProperties, + "MonitoringFeatureFilterBase.AllFeatures": AllFeatures, + "MonitoringFeatureFilterBase.FeatureSubset": FeatureSubset, + "MonitoringFeatureFilterBase.TopNByAttribution": TopNFeaturesByAttribution, + "MonitorComputeIdentityBase.AmlToken": AmlTokenComputeIdentity, + "MonitorComputeIdentityBase.ManagedIdentity": ManagedComputeIdentity, "AssetJobInput.mltable": MLTableJobInput, "AssetJobInput.custom_model": CustomModelJobInput, "AssetJobInput.mlflow_model": MLFlowModelJobInput, @@ -11923,29 +21132,61 @@ export let discriminators = { "TargetLags.Custom": CustomTargetLags, "TargetRollingWindowSize.Auto": AutoTargetRollingWindowSize, "TargetRollingWindowSize.Custom": CustomTargetRollingWindowSize, + "MonitoringAlertNotificationSettingsBase.AzureMonitor": AzMonMonitoringAlertNotificationSettings, + "MonitoringAlertNotificationSettingsBase.Email": EmailMonitoringAlertNotificationSettings, + "AzureDatastore.AzureBlob": AzureBlobDatastore, + "AzureDatastore.AzureDataLakeGen1": AzureDataLakeGen1Datastore, + "AzureDatastore.AzureDataLakeGen2": AzureDataLakeGen2Datastore, + "AzureDatastore.AzureFile": AzureFileDatastore, "EarlyTerminationPolicy.Bandit": BanditPolicy, "EarlyTerminationPolicy.MedianStopping": MedianStoppingPolicy, "EarlyTerminationPolicy.TruncationSelection": TruncationSelectionPolicy, "SamplingAlgorithm.Bayesian": BayesianSamplingAlgorithm, "SamplingAlgorithm.Grid": GridSamplingAlgorithm, "SamplingAlgorithm.Random": RandomSamplingAlgorithm, + "DataDriftMetricThresholdBase.Categorical": CategoricalDataDriftMetricThreshold, + "DataDriftMetricThresholdBase.Numerical": NumericalDataDriftMetricThreshold, + "DataQualityMetricThresholdBase.Categorical": CategoricalDataQualityMetricThreshold, + "DataQualityMetricThresholdBase.Numerical": NumericalDataQualityMetricThreshold, + "PredictionDriftMetricThresholdBase.Categorical": CategoricalPredictionDriftMetricThreshold, + "PredictionDriftMetricThresholdBase.Numerical": NumericalPredictionDriftMetricThreshold, + "ModelPerformanceMetricThresholdBase.Classification": ClassificationModelPerformanceMetricThreshold, + "ModelPerformanceMetricThresholdBase.Regression": RegressionModelPerformanceMetricThreshold, "DistributionConfiguration.Mpi": Mpi, "DistributionConfiguration.PyTorch": PyTorch, + "DistributionConfiguration.Ray": Ray, "DistributionConfiguration.TensorFlow": TensorFlow, "JobLimits.Command": CommandJobLimits, "JobLimits.Sweep": SweepJobLimits, - "OnlineDeploymentProperties.Kubernetes": KubernetesOnlineDeployment, - "OnlineDeploymentProperties.Managed": ManagedOnlineDeployment, + "MonitorComputeConfigurationBase.ServerlessSpark": MonitorServerlessSparkCompute, + "MonitoringSignalBase.Custom": CustomMonitoringSignal, + "MonitoringSignalBase.DataDrift": DataDriftMonitoringSignal, + "MonitoringSignalBase.DataQuality": DataQualityMonitoringSignal, + "MonitoringSignalBase.FeatureAttributionDrift": FeatureAttributionDriftMonitoringSignal, + "MonitoringSignalBase.GenerationSafetyQuality": GenerationSafetyQualityMonitoringSignal, + "MonitoringSignalBase.GenerationTokenStatistics": GenerationTokenStatisticsSignal, + "MonitoringSignalBase.ModelPerformance": ModelPerformanceSignal, + "MonitoringSignalBase.PredictionDrift": PredictionDriftMonitoringSignal, + "MonitoringInputDataBase.Fixed": FixedInputData, + "MonitoringInputDataBase.Static": StaticInputData, + "MonitoringInputDataBase.Trailing": TrailingInputData, + "DataImportSource.database": DatabaseSource, + "DataImportSource.file_system": FileSystemSource, + "OneLakeArtifact.LakeHouse": LakeHouseArtifact, + "SparkJobEntry.SparkJobPythonEntry": SparkJobPythonEntry, + "SparkJobEntry.SparkJobScalaEntry": SparkJobScalaEntry, "AssetBase.DataVersionBaseProperties": DataVersionBaseProperties, - "DatastoreProperties.AzureBlob": AzureBlobDatastore, - "DatastoreProperties.AzureDataLakeGen1": AzureDataLakeGen1Datastore, - "DatastoreProperties.AzureDataLakeGen2": AzureDataLakeGen2Datastore, - "DatastoreProperties.AzureFile": AzureFileDatastore, + "DatastoreProperties.Hdfs": HdfsDatastore, + "DatastoreProperties.OneLake": OneLakeDatastore, + "JobBaseProperties.Labeling": LabelingJobProperties, "JobBaseProperties.AutoML": AutoMLJob, "JobBaseProperties.Command": CommandJob, "JobBaseProperties.Pipeline": PipelineJob, + "JobBaseProperties.Spark": SparkJob, "JobBaseProperties.Sweep": SweepJob, + "OnlineDeploymentProperties.Kubernetes": KubernetesOnlineDeployment, + "OnlineDeploymentProperties.Managed": ManagedOnlineDeployment, + "DataVersionBaseProperties.uri_folder": UriFolderDataVersion, "DataVersionBaseProperties.mltable": MLTableData, - "DataVersionBaseProperties.uri_file": UriFileDataVersion, - "DataVersionBaseProperties.uri_folder": UriFolderDataVersion + "DataVersionBaseProperties.uri_file": UriFileDataVersion }; diff --git a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts index 1774bcca03b6..956062efca48 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts @@ -12,36 +12,58 @@ import { 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, - WorkspaceConnectionPropertiesV2BasicResource as WorkspaceConnectionPropertiesV2BasicResourceMapper, - PartialMinimalTrackedResourceWithIdentity as PartialMinimalTrackedResourceWithIdentityMapper, - BatchEndpoint as BatchEndpointMapper, - PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties as PartialBatchDeploymentPartialMinimalTrackedResourceWithPropertiesMapper, - BatchDeployment as BatchDeploymentMapper, + IdleShutdownSetting as IdleShutdownSettingMapper, + ResizeSchema as ResizeSchemaMapper, CodeContainer as CodeContainerMapper, CodeVersion as CodeVersionMapper, + PendingUploadRequestDto as PendingUploadRequestDtoMapper, ComponentContainer as ComponentContainerMapper, ComponentVersion as ComponentVersionMapper, DataContainer as DataContainerMapper, DataVersionBase as DataVersionBaseMapper, - Datastore as DatastoreMapper, EnvironmentContainer as EnvironmentContainerMapper, EnvironmentVersion as EnvironmentVersionMapper, - JobBase as JobBaseMapper, ModelContainer as ModelContainerMapper, ModelVersion as ModelVersionMapper, + PackageRequest as PackageRequestMapper, + PartialMinimalTrackedResourceWithIdentity as PartialMinimalTrackedResourceWithIdentityMapper, + BatchEndpoint as BatchEndpointMapper, + PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties as PartialBatchDeploymentPartialMinimalTrackedResourceWithPropertiesMapper, + BatchDeployment as BatchDeploymentMapper, + Datastore as DatastoreMapper, + FeaturesetContainer as FeaturesetContainerMapper, + FeaturesetVersion as FeaturesetVersionMapper, + FeaturesetVersionBackfillRequest as FeaturesetVersionBackfillRequestMapper, + FeaturestoreEntityContainer as FeaturestoreEntityContainerMapper, + FeaturestoreEntityVersion as FeaturestoreEntityVersionMapper, + PartialMinimalTrackedResourceWithSkuAndIdentity as PartialMinimalTrackedResourceWithSkuAndIdentityMapper, + InferencePool as InferencePoolMapper, + PartialMinimalTrackedResourceWithSku as PartialMinimalTrackedResourceWithSkuMapper, + InferenceGroupMinimalTrackedResourceWithSku as InferenceGroupMinimalTrackedResourceWithSkuMapper, + InferenceEndpointMinimalTrackedResource as InferenceEndpointMinimalTrackedResourceMapper, + PartialJobBasePartialResource as PartialJobBasePartialResourceMapper, + JobBase as JobBaseMapper, + LabelingJob as LabelingJobMapper, + ExportSummary as ExportSummaryMapper, OnlineEndpoint as OnlineEndpointMapper, RegenerateEndpointKeysRequest as RegenerateEndpointKeysRequestMapper, - PartialMinimalTrackedResourceWithSku as PartialMinimalTrackedResourceWithSkuMapper, OnlineDeployment as OnlineDeploymentMapper, DeploymentLogsRequest as DeploymentLogsRequestMapper, - Schedule as ScheduleMapper + Schedule as ScheduleMapper, + ServerlessEndpoint as ServerlessEndpointMapper, + PartialRegistryPartialTrackedResource as PartialRegistryPartialTrackedResourceMapper, + Registry as RegistryMapper, + WorkspaceUpdateParameters as WorkspaceUpdateParametersMapper, + Workspace as WorkspaceMapper, + DiagnoseWorkspaceParameters as DiagnoseWorkspaceParametersMapper, + WorkspaceConnectionUpdateParameter as WorkspaceConnectionUpdateParameterMapper, + WorkspaceConnectionPropertiesV2BasicResource as WorkspaceConnectionPropertiesV2BasicResourceMapper, + OutboundRuleBasicResource as OutboundRuleBasicResourceMapper, + PrivateEndpointConnection as PrivateEndpointConnectionMapper, + ManagedNetworkProvisionOptions as ManagedNetworkProvisionOptionsMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -71,7 +93,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-10-01", + defaultValue: "2023-08-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -94,14 +116,13 @@ export const subscriptionId: OperationURLParameter = { } }; -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", +export const location: OperationURLParameter = { + parameterPath: "location", mapper: { constraints: { - MaxLength: 90, - MinLength: 1 + Pattern: new RegExp("^[-\\w\\._]+$") }, - serializedName: "resourceGroupName", + serializedName: "location", required: true, type: { name: "String" @@ -109,15 +130,16 @@ export const resourceGroupName: OperationURLParameter = { } }; -export const workspaceName: OperationURLParameter = { - parameterPath: "workspaceName", +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { - serializedName: "workspaceName", + serializedName: "nextLink", required: true, type: { name: "String" } - } + }, + skipEncoding: true }; export const contentType: OperationParameter = { @@ -134,63 +156,56 @@ export const contentType: OperationParameter = { export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: WorkspaceMapper -}; - -export const parameters1: OperationParameter = { - parameterPath: "parameters", - mapper: WorkspaceUpdateParametersMapper + mapper: QuotaUpdateParametersMapper }; -export const skip: OperationQueryParameter = { - parameterPath: ["options", "skip"], +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { - serializedName: "$skip", + constraints: { + MaxLength: 90, + MinLength: 1 + }, + serializedName: "resourceGroupName", + required: true, type: { name: "String" } } }; -export const parameters2: OperationParameter = { - parameterPath: ["options", "parameters"], - mapper: DiagnoseWorkspaceParametersMapper -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", +export const workspaceName: OperationURLParameter = { + parameterPath: "workspaceName", mapper: { - serializedName: "nextLink", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") + }, + serializedName: "workspaceName", required: true, type: { name: "String" } - }, - skipEncoding: true + } }; -export const location: OperationURLParameter = { - parameterPath: "location", +export const skip: OperationQueryParameter = { + parameterPath: ["options", "skip"], mapper: { - constraints: { - Pattern: new RegExp("^[-\\w\\._]+$") - }, - serializedName: "location", - required: true, + serializedName: "$skip", type: { name: "String" } } }; -export const parameters3: OperationParameter = { - parameterPath: "parameters", - mapper: QuotaUpdateParametersMapper -}; - export const computeName: OperationURLParameter = { parameterPath: "computeName", mapper: { + constraints: { + Pattern: new RegExp( + "^[a-zA-Z](?![a-zA-Z0-9-]*-\\d+$)[a-zA-Z0-9\\-]{2,23}$" + ) + }, serializedName: "computeName", required: true, type: { @@ -199,12 +214,12 @@ export const computeName: OperationURLParameter = { } }; -export const parameters4: OperationParameter = { +export const parameters1: OperationParameter = { parameterPath: "parameters", mapper: ComputeResourceMapper }; -export const parameters5: OperationParameter = { +export const parameters2: OperationParameter = { parameterPath: "parameters", mapper: ClusterUpdateParametersMapper }; @@ -220,31 +235,40 @@ export const underlyingResourceAction: OperationQueryParameter = { } }; -export const privateEndpointConnectionName: OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", +export const customServices: OperationParameter = { + parameterPath: "customServices", mapper: { - serializedName: "privateEndpointConnectionName", + serializedName: "customServices", required: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomService" + } + } } } }; -export const properties: OperationParameter = { - parameterPath: "properties", - mapper: PrivateEndpointConnectionMapper +export const parameters3: OperationParameter = { + parameterPath: "parameters", + mapper: IdleShutdownSettingMapper }; -export const parameters6: OperationParameter = { +export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: WorkspaceConnectionPropertiesV2BasicResourceMapper + mapper: ResizeSchemaMapper }; -export const connectionName: OperationURLParameter = { - parameterPath: "connectionName", +export const registryName: OperationURLParameter = { + parameterPath: "registryName", mapper: { - serializedName: "connectionName", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{2,32}$") + }, + serializedName: "registryName", required: true, type: { name: "String" @@ -252,40 +276,49 @@ export const connectionName: OperationURLParameter = { } }; -export const target: OperationQueryParameter = { - parameterPath: ["options", "target"], +export const codeName: OperationURLParameter = { + parameterPath: "codeName", mapper: { - serializedName: "target", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "codeName", + required: true, type: { name: "String" } } }; -export const category: OperationQueryParameter = { - parameterPath: ["options", "category"], +export const body: OperationParameter = { + parameterPath: "body", + mapper: CodeContainerMapper +}; + +export const orderBy: OperationQueryParameter = { + parameterPath: ["options", "orderBy"], mapper: { - serializedName: "category", + serializedName: "$orderBy", type: { name: "String" } } }; -export const count: OperationQueryParameter = { - parameterPath: ["options", "count"], +export const top: OperationQueryParameter = { + parameterPath: ["options", "top"], mapper: { - serializedName: "count", + serializedName: "$top", type: { name: "Number" } } }; -export const endpointName: OperationURLParameter = { - parameterPath: "endpointName", +export const version: OperationURLParameter = { + parameterPath: "version", mapper: { - serializedName: "endpointName", + serializedName: "version", required: true, type: { name: "String" @@ -293,18 +326,23 @@ export const endpointName: OperationURLParameter = { } }; -export const body: OperationParameter = { +export const body1: OperationParameter = { parameterPath: "body", - mapper: PartialMinimalTrackedResourceWithIdentityMapper + mapper: CodeVersionMapper }; -export const endpointName1: OperationURLParameter = { - parameterPath: "endpointName", +export const body2: OperationParameter = { + parameterPath: "body", + mapper: PendingUploadRequestDtoMapper +}; + +export const componentName: OperationURLParameter = { + parameterPath: "componentName", mapper: { constraints: { Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") }, - serializedName: "endpointName", + serializedName: "componentName", required: true, type: { name: "String" @@ -312,66 +350,36 @@ export const endpointName1: OperationURLParameter = { } }; -export const body1: OperationParameter = { +export const body3: OperationParameter = { parameterPath: "body", - mapper: BatchEndpointMapper -}; - -export const orderBy: OperationQueryParameter = { - parameterPath: ["options", "orderBy"], - mapper: { - serializedName: "$orderBy", - type: { - name: "String" - } - } -}; - -export const top: OperationQueryParameter = { - parameterPath: ["options", "top"], - mapper: { - serializedName: "$top", - type: { - name: "Number" - } - } + mapper: ComponentContainerMapper }; -export const deploymentName: OperationURLParameter = { - parameterPath: "deploymentName", +export const stage: OperationQueryParameter = { + parameterPath: ["options", "stage"], mapper: { - serializedName: "deploymentName", - required: true, + serializedName: "stage", type: { name: "String" } } }; -export const body2: OperationParameter = { +export const body4: OperationParameter = { parameterPath: "body", - mapper: PartialBatchDeploymentPartialMinimalTrackedResourceWithPropertiesMapper + mapper: ComponentVersionMapper }; -export const deploymentName1: OperationURLParameter = { - parameterPath: "deploymentName", +export const listViewType: OperationQueryParameter = { + parameterPath: ["options", "listViewType"], mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") - }, - serializedName: "deploymentName", - required: true, + serializedName: "listViewType", type: { name: "String" } } }; -export const body3: OperationParameter = { - parameterPath: "body", - mapper: BatchDeploymentMapper -}; - export const name: OperationURLParameter = { parameterPath: "name", mapper: { @@ -383,9 +391,9 @@ export const name: OperationURLParameter = { } }; -export const body4: OperationParameter = { +export const body5: OperationParameter = { parameterPath: "body", - mapper: CodeContainerMapper + mapper: DataContainerMapper }; export const name1: OperationURLParameter = { @@ -402,51 +410,53 @@ export const name1: OperationURLParameter = { } }; -export const version: OperationURLParameter = { - parameterPath: "version", +export const tags: OperationQueryParameter = { + parameterPath: ["options", "tags"], mapper: { - serializedName: "version", - required: true, + serializedName: "$tags", type: { name: "String" } } }; -export const body5: OperationParameter = { +export const body6: OperationParameter = { parameterPath: "body", - mapper: CodeVersionMapper + mapper: DataVersionBaseMapper }; -export const listViewType: OperationQueryParameter = { - parameterPath: ["options", "listViewType"], +export const environmentName: OperationURLParameter = { + parameterPath: "environmentName", mapper: { - serializedName: "listViewType", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "environmentName", + required: true, type: { name: "String" } } }; -export const body6: OperationParameter = { - parameterPath: "body", - mapper: ComponentContainerMapper -}; - export const body7: OperationParameter = { parameterPath: "body", - mapper: ComponentVersionMapper + mapper: EnvironmentContainerMapper }; export const body8: OperationParameter = { parameterPath: "body", - mapper: DataContainerMapper + mapper: EnvironmentVersionMapper }; -export const tags: OperationQueryParameter = { - parameterPath: ["options", "tags"], +export const modelName: OperationURLParameter = { + parameterPath: "modelName", mapper: { - serializedName: "$tags", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "modelName", + required: true, type: { name: "String" } @@ -455,24 +465,174 @@ export const tags: OperationQueryParameter = { export const body9: OperationParameter = { parameterPath: "body", - mapper: DataVersionBaseMapper + mapper: ModelContainerMapper }; -export const count1: OperationQueryParameter = { - parameterPath: ["options", "count"], +export const version1: OperationQueryParameter = { + parameterPath: ["options", "version"], mapper: { - defaultValue: 30, - serializedName: "count", + serializedName: "version", type: { - name: "Number" + name: "String" } } }; -export const isDefault: OperationQueryParameter = { - parameterPath: ["options", "isDefault"], +export const description: OperationQueryParameter = { + parameterPath: ["options", "description"], mapper: { - serializedName: "isDefault", + serializedName: "description", + type: { + name: "String" + } + } +}; + +export const tags1: OperationQueryParameter = { + parameterPath: ["options", "tags"], + mapper: { + serializedName: "tags", + type: { + name: "String" + } + } +}; + +export const properties: OperationQueryParameter = { + parameterPath: ["options", "properties"], + mapper: { + serializedName: "properties", + type: { + name: "String" + } + } +}; + +export const body10: OperationParameter = { + parameterPath: "body", + mapper: ModelVersionMapper +}; + +export const body11: OperationParameter = { + parameterPath: "body", + mapper: PackageRequestMapper +}; + +export const count: OperationQueryParameter = { + parameterPath: ["options", "count"], + mapper: { + serializedName: "count", + type: { + name: "Number" + } + } +}; + +export const endpointName: OperationURLParameter = { + parameterPath: "endpointName", + mapper: { + serializedName: "endpointName", + required: true, + type: { + name: "String" + } + } +}; + +export const body12: OperationParameter = { + parameterPath: "body", + mapper: PartialMinimalTrackedResourceWithIdentityMapper +}; + +export const endpointName1: OperationURLParameter = { + parameterPath: "endpointName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "endpointName", + required: true, + type: { + name: "String" + } + } +}; + +export const body13: OperationParameter = { + parameterPath: "body", + mapper: BatchEndpointMapper +}; + +export const deploymentName: OperationURLParameter = { + parameterPath: "deploymentName", + mapper: { + serializedName: "deploymentName", + required: true, + type: { + name: "String" + } + } +}; + +export const body14: OperationParameter = { + parameterPath: "body", + mapper: PartialBatchDeploymentPartialMinimalTrackedResourceWithPropertiesMapper +}; + +export const deploymentName1: OperationURLParameter = { + parameterPath: "deploymentName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "deploymentName", + required: true, + type: { + name: "String" + } + } +}; + +export const body15: OperationParameter = { + parameterPath: "body", + mapper: BatchDeploymentMapper +}; + +export const hash: OperationQueryParameter = { + parameterPath: ["options", "hash"], + mapper: { + serializedName: "hash", + type: { + name: "String" + } + } +}; + +export const hashVersion: OperationQueryParameter = { + parameterPath: ["options", "hashVersion"], + mapper: { + serializedName: "hashVersion", + type: { + name: "String" + } + } +}; + +export const count1: OperationQueryParameter = { + parameterPath: ["options", "count"], + mapper: { + defaultValue: 30, + serializedName: "count", + type: { + name: "Number" + } + } +}; + +export const isDefault: OperationQueryParameter = { + parameterPath: ["options", "isDefault"], + mapper: { + serializedName: "isDefault", type: { name: "Boolean" } @@ -526,7 +686,7 @@ export const orderByAsc: OperationQueryParameter = { } }; -export const body10: OperationParameter = { +export const body16: OperationParameter = { parameterPath: "body", mapper: DatastoreMapper }; @@ -542,14 +702,215 @@ export const skipValidation: OperationQueryParameter = { } }; -export const body11: OperationParameter = { +export const pageSize: OperationQueryParameter = { + parameterPath: ["options", "pageSize"], + mapper: { + defaultValue: 20, + serializedName: "pageSize", + type: { + name: "Number" + } + } +}; + +export const name2: OperationQueryParameter = { + parameterPath: ["options", "name"], + mapper: { + serializedName: "name", + type: { + name: "String" + } + } +}; + +export const createdBy: OperationQueryParameter = { + parameterPath: ["options", "createdBy"], + mapper: { + serializedName: "createdBy", + type: { + name: "String" + } + } +}; + +export const body17: OperationParameter = { parameterPath: "body", - mapper: EnvironmentContainerMapper + mapper: FeaturesetContainerMapper }; -export const body12: OperationParameter = { +export const featuresetName: OperationURLParameter = { + parameterPath: "featuresetName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "featuresetName", + required: true, + type: { + name: "String" + } + } +}; + +export const featuresetVersion: OperationURLParameter = { + parameterPath: "featuresetVersion", + mapper: { + serializedName: "featuresetVersion", + required: true, + type: { + name: "String" + } + } +}; + +export const featureName: OperationQueryParameter = { + parameterPath: ["options", "featureName"], + mapper: { + serializedName: "featureName", + type: { + name: "String" + } + } +}; + +export const pageSize1: OperationQueryParameter = { + parameterPath: ["options", "pageSize"], + mapper: { + defaultValue: 1000, + serializedName: "pageSize", + type: { + name: "Number" + } + } +}; + +export const featureName1: OperationURLParameter = { + parameterPath: "featureName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "featureName", + required: true, + type: { + name: "String" + } + } +}; + +export const versionName: OperationQueryParameter = { + parameterPath: ["options", "versionName"], + mapper: { + serializedName: "versionName", + type: { + name: "String" + } + } +}; + +export const body18: OperationParameter = { parameterPath: "body", - mapper: EnvironmentVersionMapper + mapper: FeaturesetVersionMapper +}; + +export const body19: OperationParameter = { + parameterPath: "body", + mapper: FeaturesetVersionBackfillRequestMapper +}; + +export const body20: OperationParameter = { + parameterPath: "body", + mapper: FeaturestoreEntityContainerMapper +}; + +export const body21: OperationParameter = { + parameterPath: "body", + mapper: FeaturestoreEntityVersionMapper +}; + +export const orderBy2: OperationQueryParameter = { + parameterPath: ["options", "orderBy"], + mapper: { + serializedName: "orderBy", + type: { + name: "String" + } + } +}; + +export const body22: OperationParameter = { + parameterPath: "body", + mapper: PartialMinimalTrackedResourceWithSkuAndIdentityMapper +}; + +export const body23: OperationParameter = { + parameterPath: "body", + mapper: InferencePoolMapper +}; + +export const poolName: OperationURLParameter = { + parameterPath: "poolName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "poolName", + required: true, + type: { + name: "String" + } + } +}; + +export const body24: OperationParameter = { + parameterPath: "body", + mapper: PartialMinimalTrackedResourceWithSkuMapper +}; + +export const poolName1: OperationURLParameter = { + parameterPath: "poolName", + mapper: { + serializedName: "poolName", + required: true, + type: { + name: "String" + } + } +}; + +export const body25: OperationParameter = { + parameterPath: "body", + mapper: InferenceGroupMinimalTrackedResourceWithSkuMapper +}; + +export const groupName: OperationURLParameter = { + parameterPath: "groupName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,254}$") + }, + serializedName: "groupName", + required: true, + type: { + name: "String" + } + } +}; + +export const body26: OperationParameter = { + parameterPath: "body", + mapper: { + serializedName: "body", + required: true, + type: { + name: "any" + } + } +}; + +export const body27: OperationParameter = { + parameterPath: "body", + mapper: InferenceEndpointMinimalTrackedResourceMapper }; export const jobType: OperationQueryParameter = { @@ -572,6 +933,36 @@ export const tag: OperationQueryParameter = { } }; +export const assetName: OperationQueryParameter = { + parameterPath: ["options", "assetName"], + mapper: { + serializedName: "assetName", + type: { + name: "String" + } + } +}; + +export const scheduled: OperationQueryParameter = { + parameterPath: ["options", "scheduled"], + mapper: { + serializedName: "scheduled", + type: { + name: "Boolean" + } + } +}; + +export const scheduleId: OperationQueryParameter = { + parameterPath: ["options", "scheduleId"], + mapper: { + serializedName: "scheduleId", + type: { + name: "String" + } + } +}; + export const id: OperationURLParameter = { parameterPath: "id", mapper: { @@ -583,7 +974,12 @@ export const id: OperationURLParameter = { } }; -export const body13: OperationParameter = { +export const body28: OperationParameter = { + parameterPath: "body", + mapper: PartialJobBasePartialResourceMapper +}; + +export const body29: OperationParameter = { parameterPath: "body", mapper: JobBaseMapper }; @@ -602,142 +998,212 @@ export const id1: OperationURLParameter = { } }; -export const body14: OperationParameter = { +export const body30: OperationParameter = { parameterPath: "body", - mapper: ModelContainerMapper + mapper: LabelingJobMapper }; -export const version1: OperationQueryParameter = { - parameterPath: ["options", "version"], +export const body31: OperationParameter = { + parameterPath: "body", + mapper: ExportSummaryMapper +}; + +export const offset: OperationQueryParameter = { + parameterPath: ["options", "offset"], mapper: { - serializedName: "version", + serializedName: "offset", type: { - name: "String" + name: "Number" } } }; -export const description: OperationQueryParameter = { - parameterPath: ["options", "description"], +export const feed: OperationQueryParameter = { + parameterPath: ["options", "feed"], mapper: { - serializedName: "description", + serializedName: "feed", type: { name: "String" } } }; -export const offset: OperationQueryParameter = { - parameterPath: ["options", "offset"], +export const computeType: OperationQueryParameter = { + parameterPath: ["options", "computeType"], mapper: { - serializedName: "offset", + serializedName: "computeType", type: { - name: "Number" + name: "String" } } }; -export const tags1: OperationQueryParameter = { - parameterPath: ["options", "tags"], +export const body32: OperationParameter = { + parameterPath: "body", + mapper: OnlineEndpointMapper +}; + +export const body33: OperationParameter = { + parameterPath: "body", + mapper: RegenerateEndpointKeysRequestMapper +}; + +export const body34: OperationParameter = { + parameterPath: "body", + mapper: OnlineDeploymentMapper +}; + +export const body35: OperationParameter = { + parameterPath: "body", + mapper: DeploymentLogsRequestMapper +}; + +export const listViewType1: OperationQueryParameter = { + parameterPath: ["options", "listViewType"], mapper: { - serializedName: "tags", + serializedName: "listViewType", type: { name: "String" } } }; -export const properties1: OperationQueryParameter = { - parameterPath: ["options", "properties"], +export const body36: OperationParameter = { + parameterPath: "body", + mapper: ScheduleMapper +}; + +export const body37: OperationParameter = { + parameterPath: "body", + mapper: ServerlessEndpointMapper +}; + +export const body38: OperationParameter = { + parameterPath: "body", + mapper: PartialRegistryPartialTrackedResourceMapper +}; + +export const body39: OperationParameter = { + parameterPath: "body", + mapper: RegistryMapper +}; + +export const kind: OperationQueryParameter = { + parameterPath: ["options", "kind"], mapper: { - serializedName: "properties", + serializedName: "kind", type: { name: "String" } } }; -export const feed: OperationQueryParameter = { - parameterPath: ["options", "feed"], +export const forceToPurge: OperationQueryParameter = { + parameterPath: ["options", "forceToPurge"], mapper: { - serializedName: "feed", + defaultValue: false, + serializedName: "forceToPurge", type: { - name: "String" + name: "Boolean" } } }; -export const body15: OperationParameter = { +export const body40: OperationParameter = { parameterPath: "body", - mapper: ModelVersionMapper + mapper: WorkspaceUpdateParametersMapper }; -export const name2: OperationQueryParameter = { - parameterPath: ["options", "name"], +export const body41: OperationParameter = { + parameterPath: "body", + mapper: WorkspaceMapper +}; + +export const body42: OperationParameter = { + parameterPath: ["options", "body"], + mapper: DiagnoseWorkspaceParametersMapper +}; + +export const target: OperationQueryParameter = { + parameterPath: ["options", "target"], mapper: { - serializedName: "name", + serializedName: "target", type: { name: "String" } } }; -export const computeType: OperationQueryParameter = { - parameterPath: ["options", "computeType"], +export const category: OperationQueryParameter = { + parameterPath: ["options", "category"], mapper: { - serializedName: "computeType", + serializedName: "category", type: { name: "String" } } }; -export const orderBy2: OperationQueryParameter = { - parameterPath: ["options", "orderBy"], +export const connectionName: OperationURLParameter = { + parameterPath: "connectionName", mapper: { - serializedName: "orderBy", + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") + }, + serializedName: "connectionName", + required: true, type: { name: "String" } } }; -export const body16: OperationParameter = { - parameterPath: "body", - mapper: OnlineEndpointMapper -}; - -export const body17: OperationParameter = { - parameterPath: "body", - mapper: RegenerateEndpointKeysRequestMapper +export const body43: OperationParameter = { + parameterPath: ["options", "body"], + mapper: WorkspaceConnectionUpdateParameterMapper }; -export const body18: OperationParameter = { - parameterPath: "body", - mapper: PartialMinimalTrackedResourceWithSkuMapper +export const body44: OperationParameter = { + parameterPath: ["options", "body"], + mapper: WorkspaceConnectionPropertiesV2BasicResourceMapper }; -export const body19: OperationParameter = { - parameterPath: "body", - mapper: OnlineDeploymentMapper +export const ruleName: OperationURLParameter = { + parameterPath: "ruleName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$") + }, + serializedName: "ruleName", + required: true, + type: { + name: "String" + } + } }; -export const body20: OperationParameter = { +export const body45: OperationParameter = { parameterPath: "body", - mapper: DeploymentLogsRequestMapper + mapper: OutboundRuleBasicResourceMapper }; -export const listViewType1: OperationQueryParameter = { - parameterPath: ["options", "listViewType"], +export const privateEndpointConnectionName: OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", mapper: { - serializedName: "listViewType", + serializedName: "privateEndpointConnectionName", + required: true, type: { name: "String" } } }; -export const body21: OperationParameter = { +export const body46: OperationParameter = { parameterPath: "body", - mapper: ScheduleMapper + mapper: PrivateEndpointConnectionMapper +}; + +export const body47: OperationParameter = { + parameterPath: ["options", "body"], + mapper: ManagedNetworkProvisionOptionsMapper }; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/batchDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operations/batchDeployments.ts index 1e22d4ba5c63..8a71837f6f0e 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/batchDeployments.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/batchDeployments.ts @@ -12,9 +12,13 @@ import { BatchDeployments } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { BatchDeployment, BatchDeploymentsListNextOptionalParams, @@ -34,13 +38,13 @@ import { /// /** Class containing BatchDeployments operations. */ export class BatchDeploymentsImpl implements BatchDeployments { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class BatchDeployments class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -170,14 +174,14 @@ export class BatchDeploymentsImpl implements BatchDeployments { endpointName: string, deploymentName: string, options?: BatchDeploymentsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -210,20 +214,21 @@ export class BatchDeploymentsImpl implements BatchDeployments { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, deploymentName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -298,8 +303,8 @@ export class BatchDeploymentsImpl implements BatchDeployments { body: PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties, options?: BatchDeploymentsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchDeploymentsUpdateResponse > > { @@ -309,7 +314,7 @@ export class BatchDeploymentsImpl implements BatchDeployments { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -342,9 +347,9 @@ export class BatchDeploymentsImpl implements BatchDeployments { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, @@ -352,10 +357,13 @@ export class BatchDeploymentsImpl implements BatchDeployments { body, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + BatchDeploymentsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -407,8 +415,8 @@ export class BatchDeploymentsImpl implements BatchDeployments { body: BatchDeployment, options?: BatchDeploymentsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchDeploymentsCreateOrUpdateResponse > > { @@ -418,7 +426,7 @@ export class BatchDeploymentsImpl implements BatchDeployments { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -451,9 +459,9 @@ export class BatchDeploymentsImpl implements BatchDeployments { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, @@ -461,11 +469,15 @@ export class BatchDeploymentsImpl implements BatchDeployments { body, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + BatchDeploymentsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" }); await poller.poll(); return poller; @@ -621,7 +633,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body2, + requestBody: Parameters.body14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -656,7 +668,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body3, + requestBody: Parameters.body15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -681,18 +693,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.endpointName ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/batchEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operations/batchEndpoints.ts index 6517735a2a32..99a8bb29ad7b 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/batchEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/batchEndpoints.ts @@ -12,9 +12,13 @@ import { BatchEndpoints } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { BatchEndpoint, BatchEndpointsListNextOptionalParams, @@ -36,13 +40,13 @@ import { /// /** Class containing BatchEndpoints operations. */ export class BatchEndpointsImpl implements BatchEndpoints { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class BatchEndpoints class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -151,14 +155,14 @@ export class BatchEndpointsImpl implements BatchEndpoints { workspaceName: string, endpointName: string, options?: BatchEndpointsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -191,14 +195,15 @@ export class BatchEndpointsImpl implements BatchEndpoints { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, endpointName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -260,8 +265,8 @@ export class BatchEndpointsImpl implements BatchEndpoints { body: PartialMinimalTrackedResourceWithIdentity, options?: BatchEndpointsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchEndpointsUpdateResponse > > { @@ -271,7 +276,7 @@ export class BatchEndpointsImpl implements BatchEndpoints { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -304,13 +309,16 @@ export class BatchEndpointsImpl implements BatchEndpoints { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, endpointName, body, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + BatchEndpointsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -357,8 +365,8 @@ export class BatchEndpointsImpl implements BatchEndpoints { body: BatchEndpoint, options?: BatchEndpointsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchEndpointsCreateOrUpdateResponse > > { @@ -368,7 +376,7 @@ export class BatchEndpointsImpl implements BatchEndpoints { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -401,14 +409,18 @@ export class BatchEndpointsImpl implements BatchEndpoints { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, endpointName, body, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + BatchEndpointsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" }); await poller.poll(); return poller; @@ -570,7 +582,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body, + requestBody: Parameters.body12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -604,7 +616,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body1, + requestBody: Parameters.body13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -651,13 +663,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts index 67e964d179c1..0373c8b2c437 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/codeContainers.ts @@ -12,7 +12,7 @@ import { CodeContainers } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { CodeContainer, CodeContainersListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing CodeContainers operations. */ export class CodeContainersImpl implements CodeContainers { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class CodeContainers class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -295,7 +295,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body4, + requestBody: Parameters.body, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -319,13 +319,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts index aecb1bc79fd7..f5b9a3d579ee 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/codeVersions.ts @@ -12,7 +12,7 @@ import { CodeVersions } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { CodeVersion, CodeVersionsListNextOptionalParams, @@ -23,19 +23,22 @@ import { CodeVersionsGetResponse, CodeVersionsCreateOrUpdateOptionalParams, CodeVersionsCreateOrUpdateResponse, + PendingUploadRequestDto, + CodeVersionsCreateOrGetStartPendingUploadOptionalParams, + CodeVersionsCreateOrGetStartPendingUploadResponse, CodeVersionsListNextResponse } from "../models"; /// /** Class containing CodeVersions operations. */ export class CodeVersionsImpl implements CodeVersions { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class CodeVersions class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -216,6 +219,29 @@ export class CodeVersionsImpl implements CodeVersions { ); } + /** + * Generate a storage location and credential for the client to upload a code asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: PendingUploadRequestDto, + options?: CodeVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, body, options }, + createOrGetStartPendingUploadOperationSpec + ); + } + /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -256,7 +282,9 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.apiVersion, Parameters.skip, Parameters.orderBy, - Parameters.top + Parameters.top, + Parameters.hash, + Parameters.hashVersion ], urlParameters: [ Parameters.$host, @@ -285,8 +313,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -309,8 +337,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -330,15 +358,41 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body5, + requestBody: Parameters.body1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name1, - Parameters.version + Parameters.version, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrGetStartPendingUploadOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}/startPendingUpload", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PendingUploadResponseDto + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -355,18 +409,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/componentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/componentContainers.ts index 26779c163b36..c33d97e21f6c 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/componentContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/componentContainers.ts @@ -12,7 +12,7 @@ import { ComponentContainers } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { ComponentContainer, ComponentContainersListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing ComponentContainers operations. */ export class ComponentContainersImpl implements ComponentContainers { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class ComponentContainers class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -299,7 +299,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body6, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -323,17 +323,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts index 4f84d94d01f1..4495f5be59f8 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/componentVersions.ts @@ -12,7 +12,7 @@ import { ComponentVersions } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { ComponentVersion, ComponentVersionsListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing ComponentVersions operations. */ export class ComponentVersionsImpl implements ComponentVersions { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class ComponentVersions class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -257,6 +257,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.skip, Parameters.orderBy, Parameters.top, + Parameters.stage, Parameters.listViewType ], urlParameters: [ @@ -286,8 +287,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -310,8 +311,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -331,15 +332,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body7, + requestBody: Parameters.body4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name1, - Parameters.version + Parameters.version, + Parameters.name1 ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -356,19 +357,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts b/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts index 702e18d066aa..1009f680ae02 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/computeOperations.ts @@ -12,9 +12,13 @@ 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ComputeResource, ComputeListNextOptionalParams, @@ -33,11 +37,20 @@ import { ComputeUpdateResponse, UnderlyingResourceAction, ComputeDeleteOptionalParams, + CustomService, + ComputeUpdateCustomServicesOptionalParams, ComputeListKeysOptionalParams, ComputeListKeysResponse, ComputeStartOptionalParams, ComputeStopOptionalParams, ComputeRestartOptionalParams, + IdleShutdownSetting, + ComputeUpdateIdleShutdownSettingOptionalParams, + ComputeGetAllowedResizeSizesOptionalParams, + ComputeGetAllowedResizeSizesResponse, + ResizeSchema, + ComputeResizeOptionalParams, + ComputeResizeResponse, ComputeListNextResponse, ComputeListNodesNextResponse } from "../models"; @@ -45,13 +58,13 @@ import { /// /** Class containing ComputeOperations operations. */ export class ComputeOperationsImpl implements ComputeOperations { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class ComputeOperations class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -278,8 +291,8 @@ export class ComputeOperationsImpl implements ComputeOperations { parameters: ComputeResource, options?: ComputeCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ComputeCreateOrUpdateResponse > > { @@ -289,7 +302,7 @@ export class ComputeOperationsImpl implements ComputeOperations { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -322,13 +335,22 @@ export class ComputeOperationsImpl implements ComputeOperations { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, computeName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + computeName, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ComputeCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -378,7 +400,10 @@ export class ComputeOperationsImpl implements ComputeOperations { parameters: ClusterUpdateParameters, options?: ComputeUpdateOptionalParams ): Promise< - PollerLike, ComputeUpdateResponse> + SimplePollerLike< + OperationState, + ComputeUpdateResponse + > > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -386,7 +411,7 @@ export class ComputeOperationsImpl implements ComputeOperations { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -419,13 +444,22 @@ export class ComputeOperationsImpl implements ComputeOperations { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, computeName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + computeName, + parameters, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + ComputeUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -473,14 +507,14 @@ export class ComputeOperationsImpl implements ComputeOperations { computeName: string, underlyingResourceAction: UnderlyingResourceAction, options?: ComputeDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -513,19 +547,19 @@ export class ComputeOperationsImpl implements ComputeOperations { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, computeName, underlyingResourceAction, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -558,6 +592,33 @@ export class ComputeOperationsImpl implements ComputeOperations { return poller.pollUntilDone(); } + /** + * Updates the custom services list. The list of custom services provided shall be overwritten + * @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 customServices New list of Custom Services. + * @param options The options parameters. + */ + updateCustomServices( + resourceGroupName: string, + workspaceName: string, + computeName: string, + customServices: CustomService[], + options?: ComputeUpdateCustomServicesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + computeName, + customServices, + options + }, + updateCustomServicesOperationSpec + ); + } + /** * 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. @@ -608,14 +669,14 @@ export class ComputeOperationsImpl implements ComputeOperations { workspaceName: string, computeName: string, options?: ComputeStartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -648,13 +709,13 @@ export class ComputeOperationsImpl implements ComputeOperations { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, computeName, options }, - startOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, computeName, options }, + spec: startOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -695,14 +756,14 @@ export class ComputeOperationsImpl implements ComputeOperations { workspaceName: string, computeName: string, options?: ComputeStopOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -735,13 +796,13 @@ export class ComputeOperationsImpl implements ComputeOperations { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, computeName, options }, - stopOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, computeName, options }, + spec: stopOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -782,14 +843,14 @@ export class ComputeOperationsImpl implements ComputeOperations { workspaceName: string, computeName: string, options?: ComputeRestartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -822,13 +883,13 @@ export class ComputeOperationsImpl implements ComputeOperations { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, computeName, options }, - restartOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, computeName, options }, + spec: restartOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -857,6 +918,152 @@ export class ComputeOperationsImpl implements ComputeOperations { return poller.pollUntilDone(); } + /** + * Updates the idle shutdown setting of 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 parameters The object for updating idle shutdown setting of specified ComputeInstance. + * @param options The options parameters. + */ + updateIdleShutdownSetting( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: IdleShutdownSetting, + options?: ComputeUpdateIdleShutdownSettingOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, parameters, options }, + updateIdleShutdownSettingOperationSpec + ); + } + + /** + * Returns supported virtual machine sizes for resize + * @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. + */ + getAllowedResizeSizes( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeGetAllowedResizeSizesOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, computeName, options }, + getAllowedResizeSizesOperationSpec + ); + } + + /** + * Updates the size of 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 parameters The object for updating VM size setting of specified Compute Instance. + * @param options The options parameters. + */ + async beginResize( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ResizeSchema, + options?: ComputeResizeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ComputeResizeResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + computeName, + parameters, + options + }, + spec: resizeOperationSpec + }); + const poller = await createHttpPoller< + ComputeResizeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Updates the size of 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 parameters The object for updating VM size setting of specified Compute Instance. + * @param options The options parameters. + */ + async beginResizeAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ResizeSchema, + options?: ComputeResizeOptionalParams + ): Promise { + const poller = await this.beginResize( + resourceGroupName, + workspaceName, + computeName, + parameters, + options + ); + return poller.pollUntilDone(); + } + /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -966,7 +1173,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters4, + requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1000,7 +1207,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters5, + requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1037,6 +1244,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const updateCustomServicesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/customServices", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.customServices, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const listNodesOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes", @@ -1155,6 +1385,86 @@ const restartOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const updateIdleShutdownSettingOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/updateIdleShutdownSetting", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getAllowedResizeSizesOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/getAllowedVmSizesForResize", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineSizeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.computeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const resizeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/resize", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.ComputeResizeHeaders + }, + 201: { + headersMapper: Mappers.ComputeResizeHeaders + }, + 202: { + headersMapper: Mappers.ComputeResizeHeaders + }, + 204: { + headersMapper: Mappers.ComputeResizeHeaders + }, + 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 listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -1166,13 +1476,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer @@ -1188,13 +1497,12 @@ const listNodesNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.computeName ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/dataContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/dataContainers.ts index 919fb4a2dcec..b8d928b05e39 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/dataContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/dataContainers.ts @@ -12,7 +12,7 @@ import { DataContainers } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { DataContainer, DataContainersListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing DataContainers operations. */ export class DataContainersImpl implements DataContainers { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class DataContainers class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -299,7 +299,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body8, + requestBody: Parameters.body5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -323,17 +323,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts index 30559627d079..b233a23e70bd 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/dataVersions.ts @@ -12,7 +12,7 @@ import { DataVersions } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { DataVersionBase, DataVersionsListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing DataVersions operations. */ export class DataVersionsImpl implements DataVersions { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class DataVersions class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -257,6 +257,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.skip, Parameters.orderBy, Parameters.top, + Parameters.stage, Parameters.listViewType, Parameters.tags ], @@ -287,8 +288,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -311,8 +312,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -332,15 +333,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body9, + requestBody: Parameters.body6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name1, - Parameters.version + Parameters.version, + Parameters.name1 ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -357,20 +358,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top, - Parameters.listViewType, - Parameters.tags - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/datastores.ts b/sdk/machinelearning/arm-machinelearning/src/operations/datastores.ts index d7879f3d50ca..5354ba5aa50f 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/datastores.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/datastores.ts @@ -12,7 +12,7 @@ import { Datastores } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { Datastore, DatastoresListNextOptionalParams, @@ -31,13 +31,13 @@ import { /// /** Class containing Datastores operations. */ export class DatastoresImpl implements Datastores { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class Datastores class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -325,7 +325,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body10, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion, Parameters.skipValidation], urlParameters: [ Parameters.$host, @@ -372,22 +372,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.count1, - Parameters.isDefault, - Parameters.names, - Parameters.searchText, - Parameters.orderBy1, - Parameters.orderByAsc - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/environmentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/environmentContainers.ts index 2dbf74f59490..75276510f29b 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/environmentContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/environmentContainers.ts @@ -12,7 +12,7 @@ import { EnvironmentContainers } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { EnvironmentContainer, EnvironmentContainersListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing EnvironmentContainers operations. */ export class EnvironmentContainersImpl implements EnvironmentContainers { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class EnvironmentContainers class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -299,7 +299,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body11, + requestBody: Parameters.body7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -323,17 +323,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts index eab18e455003..7dd0252e4ab8 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/environmentVersions.ts @@ -12,7 +12,7 @@ import { EnvironmentVersions } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { EnvironmentVersion, EnvironmentVersionsListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing EnvironmentVersions operations. */ export class EnvironmentVersionsImpl implements EnvironmentVersions { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class EnvironmentVersions class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -257,6 +257,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.skip, Parameters.orderBy, Parameters.top, + Parameters.stage, Parameters.listViewType ], urlParameters: [ @@ -286,8 +287,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -310,8 +311,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -331,15 +332,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body12, + requestBody: Parameters.body8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name1, - Parameters.version + Parameters.version, + Parameters.name1 ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -356,19 +357,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/features.ts b/sdk/machinelearning/arm-machinelearning/src/operations/features.ts new file mode 100644 index 000000000000..8e46e370e913 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/features.ts @@ -0,0 +1,310 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Features } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + Feature, + FeaturesListNextOptionalParams, + FeaturesListOptionalParams, + FeaturesListResponse, + FeaturesGetOptionalParams, + FeaturesGetResponse, + FeaturesListNextResponse +} from "../models"; + +/// +/** Class containing Features operations. */ +export class FeaturesImpl implements Features { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class Features class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List Features. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param featuresetName Featureset name. This is case-sensitive. + * @param featuresetVersion Featureset Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + options?: FeaturesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + options?: FeaturesListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: FeaturesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + options?: FeaturesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + options + )) { + yield* page; + } + } + + /** + * List Features. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param featuresetName Featureset name. This is case-sensitive. + * @param featuresetVersion Featureset Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + options?: FeaturesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + options + }, + listOperationSpec + ); + } + + /** + * Get feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param featuresetName Feature set name. This is case-sensitive. + * @param featuresetVersion Feature set version identifier. This is case-sensitive. + * @param featureName Feature Name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + featureName: string, + options?: FeaturesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + featureName, + options + }, + getOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param featuresetName Featureset name. This is case-sensitive. + * @param featuresetVersion Featureset Version identifier. This is case-sensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + nextLink: string, + options?: FeaturesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + featuresetName, + featuresetVersion, + nextLink, + options + }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeatureResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType, + Parameters.description, + Parameters.tags1, + Parameters.featureName, + Parameters.pageSize1 + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.featuresetName, + Parameters.featuresetVersion + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{featuresetName}/versions/{featuresetVersion}/features/{featureName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Feature + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.featuresetName, + Parameters.featuresetVersion, + Parameters.featureName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeatureResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.featuresetName, + Parameters.featuresetVersion + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/featuresetContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/featuresetContainers.ts new file mode 100644 index 000000000000..ac981b3d8100 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/featuresetContainers.ts @@ -0,0 +1,503 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { FeaturesetContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + FeaturesetContainer, + FeaturesetContainersListNextOptionalParams, + FeaturesetContainersListOptionalParams, + FeaturesetContainersListResponse, + FeaturesetContainersDeleteOptionalParams, + FeaturesetContainersGetEntityOptionalParams, + FeaturesetContainersGetEntityResponse, + FeaturesetContainersCreateOrUpdateOptionalParams, + FeaturesetContainersCreateOrUpdateResponse, + FeaturesetContainersListNextResponse +} from "../models"; + +/// +/** Class containing FeaturesetContainers operations. */ +export class FeaturesetContainersImpl implements FeaturesetContainers { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class FeaturesetContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List featurestore entity containers. + * @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?: FeaturesetContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: FeaturesetContainersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: FeaturesetContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, workspaceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: FeaturesetContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List featurestore entity containers. + * @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?: FeaturesetContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetContainersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetContainersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + name, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + getEntity( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetContainersGetEntityOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getEntityOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturesetContainer, + options?: FeaturesetContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturesetContainersCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + FeaturesetContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturesetContainer, + options?: FeaturesetContainersCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + name, + body, + 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?: FeaturesetContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType, + Parameters.description, + Parameters.tags1, + Parameters.pageSize, + Parameters.name2, + Parameters.createdBy + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetContainer + }, + 201: { + bodyMapper: Mappers.FeaturesetContainer + }, + 202: { + bodyMapper: Mappers.FeaturesetContainer + }, + 204: { + bodyMapper: Mappers.FeaturesetContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body17, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/featuresetVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/featuresetVersions.ts new file mode 100644 index 000000000000..64f2526c5829 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/featuresetVersions.ts @@ -0,0 +1,687 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { FeaturesetVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + FeaturesetVersion, + FeaturesetVersionsListNextOptionalParams, + FeaturesetVersionsListOptionalParams, + FeaturesetVersionsListResponse, + FeaturesetVersionsDeleteOptionalParams, + FeaturesetVersionsGetOptionalParams, + FeaturesetVersionsGetResponse, + FeaturesetVersionsCreateOrUpdateOptionalParams, + FeaturesetVersionsCreateOrUpdateResponse, + FeaturesetVersionBackfillRequest, + FeaturesetVersionsBackfillOptionalParams, + FeaturesetVersionsBackfillResponse, + FeaturesetVersionsListNextResponse +} from "../models"; + +/// +/** Class containing FeaturesetVersions operations. */ +export class FeaturesetVersionsImpl implements FeaturesetVersions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class FeaturesetVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Featureset name. This is case-sensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: FeaturesetVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + workspaceName, + name, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Featureset name. This is case-sensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturesetVersionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, version, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturesetVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + name, + version, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturesetVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersion, + options?: FeaturesetVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturesetVersionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, version, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + FeaturesetVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersion, + options?: FeaturesetVersionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + name, + version, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Backfill. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Feature set version backfill request entity. + * @param options The options parameters. + */ + async beginBackfill( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersionBackfillRequest, + options?: FeaturesetVersionsBackfillOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturesetVersionsBackfillResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, version, body, options }, + spec: backfillOperationSpec + }); + const poller = await createHttpPoller< + FeaturesetVersionsBackfillResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Backfill. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Feature set version backfill request entity. + * @param options The options parameters. + */ + async beginBackfillAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersionBackfillRequest, + options?: FeaturesetVersionsBackfillOptionalParams + ): Promise { + const poller = await this.beginBackfill( + resourceGroupName, + workspaceName, + name, + version, + body, + 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 name Featureset name. This is case-sensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + name: string, + nextLink: string, + options?: FeaturesetVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.stage, + Parameters.listViewType, + Parameters.version1, + Parameters.description, + Parameters.tags1, + Parameters.pageSize, + Parameters.createdBy, + Parameters.versionName + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetVersion + }, + 201: { + bodyMapper: Mappers.FeaturesetVersion + }, + 202: { + bodyMapper: Mappers.FeaturesetVersion + }, + 204: { + bodyMapper: Mappers.FeaturesetVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body18, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const backfillOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}/backfill", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetVersionBackfillResponse + }, + 201: { + bodyMapper: Mappers.FeaturesetVersionBackfillResponse + }, + 202: { + bodyMapper: Mappers.FeaturesetVersionBackfillResponse + }, + 204: { + bodyMapper: Mappers.FeaturesetVersionBackfillResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body19, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturesetVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityContainers.ts new file mode 100644 index 000000000000..ca1691ddd05d --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityContainers.ts @@ -0,0 +1,504 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { FeaturestoreEntityContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + FeaturestoreEntityContainer, + FeaturestoreEntityContainersListNextOptionalParams, + FeaturestoreEntityContainersListOptionalParams, + FeaturestoreEntityContainersListResponse, + FeaturestoreEntityContainersDeleteOptionalParams, + FeaturestoreEntityContainersGetEntityOptionalParams, + FeaturestoreEntityContainersGetEntityResponse, + FeaturestoreEntityContainersCreateOrUpdateOptionalParams, + FeaturestoreEntityContainersCreateOrUpdateResponse, + FeaturestoreEntityContainersListNextResponse +} from "../models"; + +/// +/** Class containing FeaturestoreEntityContainers operations. */ +export class FeaturestoreEntityContainersImpl + implements FeaturestoreEntityContainers { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class FeaturestoreEntityContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List featurestore entity containers. + * @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?: FeaturestoreEntityContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: FeaturestoreEntityContainersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: FeaturestoreEntityContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, workspaceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: FeaturestoreEntityContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List featurestore entity containers. + * @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?: FeaturestoreEntityContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityContainersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityContainersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + name, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + getEntity( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityContainersGetEntityOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getEntityOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturestoreEntityContainer, + options?: FeaturestoreEntityContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturestoreEntityContainersCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + FeaturestoreEntityContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturestoreEntityContainer, + options?: FeaturestoreEntityContainersCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + name, + body, + 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?: FeaturestoreEntityContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType, + Parameters.description, + Parameters.tags1, + Parameters.pageSize, + Parameters.name2, + Parameters.createdBy + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getEntityOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityContainer + }, + 201: { + bodyMapper: Mappers.FeaturestoreEntityContainer + }, + 202: { + bodyMapper: Mappers.FeaturestoreEntityContainer + }, + 204: { + bodyMapper: Mappers.FeaturestoreEntityContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body20, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityVersions.ts new file mode 100644 index 000000000000..ecec58651cdd --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/featurestoreEntityVersions.ts @@ -0,0 +1,544 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { FeaturestoreEntityVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + FeaturestoreEntityVersion, + FeaturestoreEntityVersionsListNextOptionalParams, + FeaturestoreEntityVersionsListOptionalParams, + FeaturestoreEntityVersionsListResponse, + FeaturestoreEntityVersionsDeleteOptionalParams, + FeaturestoreEntityVersionsGetOptionalParams, + FeaturestoreEntityVersionsGetResponse, + FeaturestoreEntityVersionsCreateOrUpdateOptionalParams, + FeaturestoreEntityVersionsCreateOrUpdateResponse, + FeaturestoreEntityVersionsListNextResponse +} from "../models"; + +/// +/** Class containing FeaturestoreEntityVersions operations. */ +export class FeaturestoreEntityVersionsImpl + implements FeaturestoreEntityVersions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class FeaturestoreEntityVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Feature entity name. This is case-sensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: FeaturestoreEntityVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + workspaceName, + name, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + name, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Feature entity name. This is case-sensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturestoreEntityVersionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, version, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturestoreEntityVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + name, + version, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturestoreEntityVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturestoreEntityVersion, + options?: FeaturestoreEntityVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturestoreEntityVersionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, version, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + FeaturestoreEntityVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturestoreEntityVersion, + options?: FeaturestoreEntityVersionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + name, + version, + body, + 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 name Feature entity name. This is case-sensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + name: string, + nextLink: string, + options?: FeaturestoreEntityVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.stage, + Parameters.listViewType, + Parameters.version1, + Parameters.description, + Parameters.tags1, + Parameters.pageSize, + Parameters.createdBy, + Parameters.versionName + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featurestoreEntities/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityVersion + }, + 201: { + bodyMapper: Mappers.FeaturestoreEntityVersion + }, + 202: { + bodyMapper: Mappers.FeaturestoreEntityVersion + }, + 204: { + bodyMapper: Mappers.FeaturestoreEntityVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body21, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.FeaturestoreEntityVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/index.ts b/sdk/machinelearning/arm-machinelearning/src/operations/index.ts index 5c0eba4f45e0..9f8828809012 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/index.ts @@ -6,15 +6,20 @@ * 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 "./registryCodeContainers"; +export * from "./registryCodeVersions"; +export * from "./registryComponentContainers"; +export * from "./registryComponentVersions"; +export * from "./registryDataContainers"; +export * from "./registryDataVersions"; +export * from "./registryEnvironmentContainers"; +export * from "./registryEnvironmentVersions"; +export * from "./registryModelContainers"; +export * from "./registryModelVersions"; export * from "./batchEndpoints"; export * from "./batchDeployments"; export * from "./codeContainers"; @@ -26,10 +31,28 @@ export * from "./dataVersions"; export * from "./datastores"; export * from "./environmentContainers"; export * from "./environmentVersions"; +export * from "./featuresetContainers"; +export * from "./features"; +export * from "./featuresetVersions"; +export * from "./featurestoreEntityContainers"; +export * from "./featurestoreEntityVersions"; +export * from "./inferencePools"; +export * from "./inferenceGroups"; +export * from "./inferenceEndpoints"; export * from "./jobs"; +export * from "./labelingJobs"; export * from "./modelContainers"; export * from "./modelVersions"; export * from "./onlineEndpoints"; export * from "./onlineDeployments"; export * from "./schedules"; +export * from "./serverlessEndpoints"; +export * from "./registries"; export * from "./workspaceFeatures"; +export * from "./operations"; +export * from "./workspaces"; +export * from "./workspaceConnections"; +export * from "./managedNetworkSettingsRule"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; +export * from "./managedNetworkProvisions"; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/inferenceEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operations/inferenceEndpoints.ts new file mode 100644 index 000000000000..4f27ebebe299 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/inferenceEndpoints.ts @@ -0,0 +1,749 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { InferenceEndpoints } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + InferenceEndpointMinimalTrackedResource, + InferenceEndpointsListNextOptionalParams, + InferenceEndpointsListOptionalParams, + InferenceEndpointsListResponse, + InferenceEndpointsDeleteOptionalParams, + InferenceEndpointsGetOptionalParams, + InferenceEndpointsGetResponse, + InferenceEndpointsUpdateOptionalParams, + InferenceEndpointsUpdateResponse, + InferenceEndpointsCreateOrUpdateOptionalParams, + InferenceEndpointsCreateOrUpdateResponse, + InferenceEndpointsListNextResponse +} from "../models"; + +/// +/** Class containing InferenceEndpoints operations. */ +export class InferenceEndpointsImpl implements InferenceEndpoints { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class InferenceEndpoints class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List Inference Endpoints. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName Name of the InferencePool. + * @param groupName InferenceGroup name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + options?: InferenceEndpointsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + poolName, + groupName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + poolName, + groupName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + options?: InferenceEndpointsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: InferenceEndpointsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + workspaceName, + poolName, + groupName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + poolName, + groupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + options?: InferenceEndpointsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + poolName, + groupName, + options + )) { + yield* page; + } + } + + /** + * List Inference Endpoints. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName Name of the InferencePool. + * @param groupName InferenceGroup name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + options?: InferenceEndpointsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, poolName, groupName, options }, + listOperationSpec + ); + } + + /** + * Delete InferenceEndpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param groupName InferenceGroup name. + * @param name InferenceEndpoint name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + name: string, + options?: InferenceEndpointsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + poolName, + groupName, + name, + options + }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete InferenceEndpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param groupName InferenceGroup name. + * @param name InferenceEndpoint name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + name: string, + options?: InferenceEndpointsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + poolName, + groupName, + name, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get InferenceEndpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param groupName InferenceGroup name. + * @param name InferenceEndpoint name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + name: string, + options?: InferenceEndpointsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, poolName, groupName, name, options }, + getOperationSpec + ); + } + + /** + * Update InferenceEndpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param groupName InferenceGroup name. + * @param name InferenceEndpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + name: string, + body: any, + options?: InferenceEndpointsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InferenceEndpointsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + poolName, + groupName, + name, + body, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + InferenceEndpointsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Update InferenceEndpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param groupName InferenceGroup name. + * @param name InferenceEndpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + name: string, + body: any, + options?: InferenceEndpointsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + poolName, + groupName, + name, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Create or update InferenceEndpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param groupName InferenceGroup name. + * @param name InferenceEndpoint name. + * @param body InferenceEndpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + name: string, + body: InferenceEndpointMinimalTrackedResource, + options?: InferenceEndpointsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InferenceEndpointsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + workspaceName, + poolName, + groupName, + name, + body, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + InferenceEndpointsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update InferenceEndpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param groupName InferenceGroup name. + * @param name InferenceEndpoint name. + * @param body InferenceEndpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + name: string, + body: InferenceEndpointMinimalTrackedResource, + options?: InferenceEndpointsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + poolName, + groupName, + name, + body, + 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 poolName Name of the InferencePool. + * @param groupName InferenceGroup name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + nextLink: string, + options?: InferenceEndpointsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + workspaceName, + poolName, + groupName, + nextLink, + options + }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/groups/{groupName}/endpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.InferenceEndpointMinimalTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.tags1, + Parameters.properties, + Parameters.count, + Parameters.orderBy2 + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.poolName, + Parameters.groupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/groups/{groupName}/endpoints/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.poolName, + Parameters.groupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/groups/{groupName}/endpoints/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InferenceEndpointMinimalTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.poolName, + Parameters.groupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/groups/{groupName}/endpoints/{name}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.InferenceEndpointMinimalTrackedResource + }, + 201: { + bodyMapper: Mappers.InferenceEndpointMinimalTrackedResource + }, + 202: { + bodyMapper: Mappers.InferenceEndpointMinimalTrackedResource + }, + 204: { + bodyMapper: Mappers.InferenceEndpointMinimalTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body26, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.poolName, + Parameters.groupName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/groups/{groupName}/endpoints/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.InferenceEndpointMinimalTrackedResource + }, + 201: { + bodyMapper: Mappers.InferenceEndpointMinimalTrackedResource + }, + 202: { + bodyMapper: Mappers.InferenceEndpointMinimalTrackedResource + }, + 204: { + bodyMapper: Mappers.InferenceEndpointMinimalTrackedResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body27, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.poolName, + Parameters.groupName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.InferenceEndpointMinimalTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.poolName, + Parameters.groupName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/inferenceGroups.ts b/sdk/machinelearning/arm-machinelearning/src/operations/inferenceGroups.ts new file mode 100644 index 000000000000..3a9a2ad4cf73 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/inferenceGroups.ts @@ -0,0 +1,929 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { InferenceGroups } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + InferenceGroupMinimalTrackedResourceWithSku, + InferenceGroupsListNextOptionalParams, + InferenceGroupsListOptionalParams, + InferenceGroupsListResponse, + SkuResource, + InferenceGroupsListSkusNextOptionalParams, + InferenceGroupsListSkusOptionalParams, + InferenceGroupsListSkusResponse, + InferenceGroupsDeleteOptionalParams, + InferenceGroupsGetOptionalParams, + InferenceGroupsGetResponse, + PartialMinimalTrackedResourceWithSku, + InferenceGroupsUpdateOptionalParams, + InferenceGroupsUpdateResponse, + InferenceGroupsCreateOrUpdateOptionalParams, + InferenceGroupsCreateOrUpdateResponse, + InferenceGroupsGetStatusOptionalParams, + InferenceGroupsGetStatusResponse, + InferenceGroupsListNextResponse, + InferenceGroupsListSkusNextResponse +} from "../models"; + +/// +/** Class containing InferenceGroups operations. */ +export class InferenceGroupsImpl implements InferenceGroups { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class InferenceGroups class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List Inference Groups. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName Name of the InferencePool. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + workspaceName: string, + poolName: string, + options?: InferenceGroupsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + workspaceName, + poolName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + poolName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + poolName: string, + options?: InferenceGroupsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: InferenceGroupsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + workspaceName, + poolName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + poolName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + poolName: string, + options?: InferenceGroupsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + poolName, + options + )) { + yield* page; + } + } + + /** + * List Inference Group Skus. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName Inference Pool name. + * @param name Inference Group name. + * @param options The options parameters. + */ + public listSkus( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + options?: InferenceGroupsListSkusOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listSkusPagingAll( + resourceGroupName, + workspaceName, + poolName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listSkusPagingPage( + resourceGroupName, + workspaceName, + poolName, + name, + options, + settings + ); + } + }; + } + + private async *listSkusPagingPage( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + options?: InferenceGroupsListSkusOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: InferenceGroupsListSkusResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listSkus( + resourceGroupName, + workspaceName, + poolName, + name, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listSkusNext( + resourceGroupName, + workspaceName, + poolName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listSkusPagingAll( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + options?: InferenceGroupsListSkusOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listSkusPagingPage( + resourceGroupName, + workspaceName, + poolName, + name, + options + )) { + yield* page; + } + } + + /** + * List Inference Groups. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName Name of the InferencePool. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + poolName: string, + options?: InferenceGroupsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, poolName, options }, + listOperationSpec + ); + } + + /** + * Delete InferenceGroup (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + options?: InferenceGroupsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, poolName, name, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete InferenceGroup (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + options?: InferenceGroupsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + poolName, + name, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get InferenceGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + options?: InferenceGroupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, poolName, name, options }, + getOperationSpec + ); + } + + /** + * Update InferenceGroup (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + body: PartialMinimalTrackedResourceWithSku, + options?: InferenceGroupsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InferenceGroupsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, poolName, name, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + InferenceGroupsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Update InferenceGroup (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + body: PartialMinimalTrackedResourceWithSku, + options?: InferenceGroupsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + poolName, + name, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Create or update InferenceGroup (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param body InferenceGroup entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + body: InferenceGroupMinimalTrackedResourceWithSku, + options?: InferenceGroupsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InferenceGroupsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, poolName, name, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + InferenceGroupsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update InferenceGroup (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param body InferenceGroup entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + body: InferenceGroupMinimalTrackedResourceWithSku, + options?: InferenceGroupsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + poolName, + name, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * List Inference Group Skus. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName Inference Pool name. + * @param name Inference Group name. + * @param options The options parameters. + */ + private _listSkus( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + options?: InferenceGroupsListSkusOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, poolName, name, options }, + listSkusOperationSpec + ); + } + + /** + * Retrieve inference group status. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param options The options parameters. + */ + getStatus( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + options?: InferenceGroupsGetStatusOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, poolName, name, options }, + getStatusOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName Name of the InferencePool. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + workspaceName: string, + poolName: string, + nextLink: string, + options?: InferenceGroupsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, poolName, nextLink, options }, + listNextOperationSpec + ); + } + + /** + * ListSkusNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName Inference Pool name. + * @param name Inference Group name. + * @param nextLink The nextLink from the previous successful call to the ListSkus method. + * @param options The options parameters. + */ + private _listSkusNext( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + nextLink: string, + options?: InferenceGroupsListSkusNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, poolName, name, nextLink, options }, + listSkusNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/groups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.InferenceGroupMinimalTrackedResourceWithSkuArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.tags1, + Parameters.properties, + Parameters.count, + Parameters.orderBy2 + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.poolName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/groups/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.poolName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/groups/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InferenceGroupMinimalTrackedResourceWithSku + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.poolName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/groups/{name}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.InferenceGroupMinimalTrackedResourceWithSku + }, + 201: { + bodyMapper: Mappers.InferenceGroupMinimalTrackedResourceWithSku + }, + 202: { + bodyMapper: Mappers.InferenceGroupMinimalTrackedResourceWithSku + }, + 204: { + bodyMapper: Mappers.InferenceGroupMinimalTrackedResourceWithSku + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body24, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.poolName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/groups/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.InferenceGroupMinimalTrackedResourceWithSku + }, + 201: { + bodyMapper: Mappers.InferenceGroupMinimalTrackedResourceWithSku + }, + 202: { + bodyMapper: Mappers.InferenceGroupMinimalTrackedResourceWithSku + }, + 204: { + bodyMapper: Mappers.InferenceGroupMinimalTrackedResourceWithSku + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body25, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1, + Parameters.poolName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listSkusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/groups/{name}/skus", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SkuResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.poolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getStatusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{poolName}/groups/{name}/status", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GroupStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.poolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: + Mappers.InferenceGroupMinimalTrackedResourceWithSkuArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.poolName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listSkusNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SkuResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name, + Parameters.poolName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/inferencePools.ts b/sdk/machinelearning/arm-machinelearning/src/operations/inferencePools.ts new file mode 100644 index 000000000000..044daa768f24 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/inferencePools.ts @@ -0,0 +1,865 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { InferencePools } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + InferencePool, + InferencePoolsListNextOptionalParams, + InferencePoolsListOptionalParams, + InferencePoolsListResponse, + SkuResource, + InferencePoolsListSkusNextOptionalParams, + InferencePoolsListSkusOptionalParams, + InferencePoolsListSkusResponse, + InferencePoolsDeleteOptionalParams, + InferencePoolsGetOptionalParams, + InferencePoolsGetResponse, + PartialMinimalTrackedResourceWithSkuAndIdentity, + InferencePoolsUpdateOptionalParams, + InferencePoolsUpdateResponse, + InferencePoolsCreateOrUpdateOptionalParams, + InferencePoolsCreateOrUpdateResponse, + InferencePoolsGetStatusOptionalParams, + InferencePoolsGetStatusResponse, + InferencePoolsListNextResponse, + InferencePoolsListSkusNextResponse +} from "../models"; + +/// +/** Class containing InferencePools operations. */ +export class InferencePoolsImpl implements InferencePools { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class InferencePools class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List InferencePools. + * @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?: InferencePoolsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: InferencePoolsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: InferencePoolsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, workspaceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: InferencePoolsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List Inference Pool Skus. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Inference Group name. + * @param options The options parameters. + */ + public listSkus( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: InferencePoolsListSkusOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listSkusPagingAll( + resourceGroupName, + workspaceName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listSkusPagingPage( + resourceGroupName, + workspaceName, + name, + options, + settings + ); + } + }; + } + + private async *listSkusPagingPage( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: InferencePoolsListSkusOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: InferencePoolsListSkusResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listSkus( + resourceGroupName, + workspaceName, + name, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listSkusNext( + resourceGroupName, + workspaceName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listSkusPagingAll( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: InferencePoolsListSkusOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listSkusPagingPage( + resourceGroupName, + workspaceName, + name, + options + )) { + yield* page; + } + } + + /** + * List InferencePools. + * @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?: InferencePoolsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete InferencePool (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: InferencePoolsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete InferencePool (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: InferencePoolsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + name, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get InferencePool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: InferencePoolsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getOperationSpec + ); + } + + /** + * Update InferencePool (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param body Inference Pool entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: InferencePoolsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InferencePoolsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + InferencePoolsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Update InferencePool (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param body Inference Pool entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: InferencePoolsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + name, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Create or update InferencePool (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param body InferencePool entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: InferencePool, + options?: InferencePoolsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InferencePoolsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + InferencePoolsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update InferencePool (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param body InferencePool entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: InferencePool, + options?: InferencePoolsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + name, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * List Inference Pool Skus. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Inference Group name. + * @param options The options parameters. + */ + private _listSkus( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: InferencePoolsListSkusOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + listSkusOperationSpec + ); + } + + /** + * Retrieve inference pool status. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param options The options parameters. + */ + getStatus( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: InferencePoolsGetStatusOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getStatusOperationSpec + ); + } + + /** + * 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?: InferencePoolsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } + + /** + * ListSkusNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Inference Group name. + * @param nextLink The nextLink from the previous successful call to the ListSkus method. + * @param options The options parameters. + */ + private _listSkusNext( + resourceGroupName: string, + workspaceName: string, + name: string, + nextLink: string, + options?: InferencePoolsListSkusNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, nextLink, options }, + listSkusNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InferencePoolTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.tags1, + Parameters.properties, + Parameters.count, + Parameters.orderBy2 + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InferencePool + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{name}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.InferencePool + }, + 201: { + bodyMapper: Mappers.InferencePool + }, + 202: { + bodyMapper: Mappers.InferencePool + }, + 204: { + bodyMapper: Mappers.InferencePool + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body22, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.InferencePool + }, + 201: { + bodyMapper: Mappers.InferencePool + }, + 202: { + bodyMapper: Mappers.InferencePool + }, + 204: { + bodyMapper: Mappers.InferencePool + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body23, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listSkusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{name}/skus", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SkuResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getStatusOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/inferencePools/{name}/status", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PoolStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InferencePoolTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listSkusNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SkuResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts b/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts index 36387941c513..93fcefd035c8 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/jobs.ts @@ -12,9 +12,13 @@ import { Jobs } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { JobBase, JobsListNextOptionalParams, @@ -23,6 +27,9 @@ import { JobsDeleteOptionalParams, JobsGetOptionalParams, JobsGetResponse, + PartialJobBasePartialResource, + JobsUpdateOptionalParams, + JobsUpdateResponse, JobsCreateOrUpdateOptionalParams, JobsCreateOrUpdateResponse, JobsCancelOptionalParams, @@ -32,13 +39,13 @@ import { /// /** Class containing Jobs operations. */ export class JobsImpl implements Jobs { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class Jobs class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -147,14 +154,14 @@ export class JobsImpl implements Jobs { workspaceName: string, id: string, options?: JobsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -187,14 +194,15 @@ export class JobsImpl implements Jobs { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, id, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, id, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -241,6 +249,27 @@ export class JobsImpl implements Jobs { ); } + /** + * Updates a Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param body Job definition to apply during the operation. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + id: string, + body: PartialJobBasePartialResource, + options?: JobsUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, id, body, options }, + updateOperationSpec + ); + } + /** * Creates and executes a Job. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -274,14 +303,14 @@ export class JobsImpl implements Jobs { workspaceName: string, id: string, options?: JobsCancelOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -314,15 +343,15 @@ export class JobsImpl implements Jobs { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, id, options }, - cancelOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, id, options }, + spec: cancelOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -388,8 +417,12 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.apiVersion, Parameters.skip, Parameters.listViewType, + Parameters.properties, Parameters.jobType, - Parameters.tag + Parameters.tag, + Parameters.assetName, + Parameters.scheduled, + Parameters.scheduleId ], urlParameters: [ Parameters.$host, @@ -447,6 +480,31 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.JobBase + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body28, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/{id}", @@ -462,7 +520,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body13, + requestBody: Parameters.body29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -510,19 +568,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType, - Parameters.jobType, - Parameters.tag - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/labelingJobs.ts b/sdk/machinelearning/arm-machinelearning/src/operations/labelingJobs.ts new file mode 100644 index 000000000000..02d702568e8a --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/labelingJobs.ts @@ -0,0 +1,737 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { LabelingJobs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + LabelingJob, + LabelingJobsListNextOptionalParams, + LabelingJobsListOptionalParams, + LabelingJobsListResponse, + LabelingJobsDeleteOptionalParams, + LabelingJobsGetOptionalParams, + LabelingJobsGetResponse, + LabelingJobsCreateOrUpdateOptionalParams, + LabelingJobsCreateOrUpdateResponse, + ExportSummaryUnion, + LabelingJobsExportLabelsOptionalParams, + LabelingJobsExportLabelsResponse, + LabelingJobsPauseOptionalParams, + LabelingJobsPauseResponse, + LabelingJobsResumeOptionalParams, + LabelingJobsResumeResponse, + LabelingJobsListNextResponse +} from "../models"; + +/// +/** Class containing LabelingJobs operations. */ +export class LabelingJobsImpl implements LabelingJobs { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class LabelingJobs class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * Lists labeling jobs in 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. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: LabelingJobsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, workspaceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists labeling jobs in 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. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: LabelingJobsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete a labeling job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, id, options }, + deleteOperationSpec + ); + } + + /** + * Gets a labeling job by name/id. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, id, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body LabelingJob definition object. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + id: string, + body: LabelingJob, + options?: LabelingJobsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LabelingJobsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, id, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + LabelingJobsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body LabelingJob definition object. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + body: LabelingJob, + options?: LabelingJobsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + id, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Export labels from a labeling job (asynchronous). Using the URL in the Location header, the status + * of the job export operation can be tracked. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body The export summary. + * @param options The options parameters. + */ + async beginExportLabels( + resourceGroupName: string, + workspaceName: string, + id: string, + body: ExportSummaryUnion, + options?: LabelingJobsExportLabelsOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LabelingJobsExportLabelsResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, id, body, options }, + spec: exportLabelsOperationSpec + }); + const poller = await createHttpPoller< + LabelingJobsExportLabelsResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Export labels from a labeling job (asynchronous). Using the URL in the Location header, the status + * of the job export operation can be tracked. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body The export summary. + * @param options The options parameters. + */ + async beginExportLabelsAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + body: ExportSummaryUnion, + options?: LabelingJobsExportLabelsOptionalParams + ): Promise { + const poller = await this.beginExportLabels( + resourceGroupName, + workspaceName, + id, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Pause a labeling job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + pause( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsPauseOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, id, options }, + pauseOperationSpec + ); + } + + /** + * Resume a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + async beginResume( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsResumeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LabelingJobsResumeResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, id, options }, + spec: resumeOperationSpec + }); + const poller = await createHttpPoller< + LabelingJobsResumeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Resume a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + async beginResumeAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsResumeOptionalParams + ): Promise { + const poller = await this.beginResume( + resourceGroupName, + workspaceName, + id, + 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?: LabelingJobsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.top], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LabelingJob + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.LabelingJob + }, + 201: { + bodyMapper: Mappers.LabelingJob + }, + 202: { + bodyMapper: Mappers.LabelingJob + }, + 204: { + bodyMapper: Mappers.LabelingJob + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body30, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const exportLabelsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/exportLabels", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ExportSummary + }, + 201: { + bodyMapper: Mappers.ExportSummary + }, + 202: { + bodyMapper: Mappers.ExportSummary + }, + 204: { + bodyMapper: Mappers.ExportSummary + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body31, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const pauseOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/pause", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.LabelingJobProperties + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const resumeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/labelingJobs/{id}/resume", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.LabelingJobProperties + }, + 201: { + bodyMapper: Mappers.LabelingJobProperties + }, + 202: { + bodyMapper: Mappers.LabelingJobProperties + }, + 204: { + bodyMapper: Mappers.LabelingJobProperties + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.id + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LabelingJobResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkProvisions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkProvisions.ts new file mode 100644 index 000000000000..8fb6f0aa1e05 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkProvisions.ts @@ -0,0 +1,163 @@ +/* + * 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 { ManagedNetworkProvisions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams, + ManagedNetworkProvisionsProvisionManagedNetworkResponse +} from "../models"; + +/** Class containing ManagedNetworkProvisions operations. */ +export class ManagedNetworkProvisionsImpl implements ManagedNetworkProvisions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class ManagedNetworkProvisions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * Provisions the managed network of 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. + */ + async beginProvisionManagedNetwork( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedNetworkProvisionsProvisionManagedNetworkResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: provisionManagedNetworkOperationSpec + }); + const poller = await createHttpPoller< + ManagedNetworkProvisionsProvisionManagedNetworkResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Provisions the managed network of 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. + */ + async beginProvisionManagedNetworkAndWait( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + ): Promise { + const poller = await this.beginProvisionManagedNetwork( + resourceGroupName, + workspaceName, + options + ); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const provisionManagedNetworkOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/provisionManagedNetwork", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ManagedNetworkProvisionStatus + }, + 201: { + bodyMapper: Mappers.ManagedNetworkProvisionStatus + }, + 202: { + bodyMapper: Mappers.ManagedNetworkProvisionStatus + }, + 204: { + bodyMapper: Mappers.ManagedNetworkProvisionStatus + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body47, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkSettingsRule.ts b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkSettingsRule.ts new file mode 100644 index 000000000000..2a3966602f25 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/managedNetworkSettingsRule.ts @@ -0,0 +1,496 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ManagedNetworkSettingsRule } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + OutboundRuleBasicResource, + ManagedNetworkSettingsRuleListNextOptionalParams, + ManagedNetworkSettingsRuleListOptionalParams, + ManagedNetworkSettingsRuleListResponse, + ManagedNetworkSettingsRuleDeleteOptionalParams, + ManagedNetworkSettingsRuleGetOptionalParams, + ManagedNetworkSettingsRuleGetResponse, + ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams, + ManagedNetworkSettingsRuleCreateOrUpdateResponse, + ManagedNetworkSettingsRuleListNextResponse +} from "../models"; + +/// +/** Class containing ManagedNetworkSettingsRule operations. */ +export class ManagedNetworkSettingsRuleImpl + implements ManagedNetworkSettingsRule { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class ManagedNetworkSettingsRule class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * Lists the managed network outbound rules for 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. + */ + public list( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ManagedNetworkSettingsRuleListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, workspaceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Lists the managed network outbound rules for 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. + */ + private _list( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Deletes an outbound rule from the managed network of 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 ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, ruleName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Deletes an outbound rule from the managed network of 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 ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + ruleName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets an outbound rule from the managed network of 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 ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, ruleName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates an outbound rule in the managed network of 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 ruleName Name of the workspace managed network outbound rule + * @param body Outbound Rule to be created or updated in the managed network of a machine learning + * workspace. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + body: OutboundRuleBasicResource, + options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedNetworkSettingsRuleCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, ruleName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ManagedNetworkSettingsRuleCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates an outbound rule in the managed network of 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 ruleName Name of the workspace managed network outbound rule + * @param body Outbound Rule to be created or updated in the managed network of a machine learning + * workspace. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + body: OutboundRuleBasicResource, + options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + ruleName, + body, + 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?: ManagedNetworkSettingsRuleListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundRuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.ruleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.ruleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + 201: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + 202: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + 204: { + bodyMapper: Mappers.OutboundRuleBasicResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body45, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.ruleName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundRuleListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/modelContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/modelContainers.ts index 5500f5d4d643..aaa90fc4cbe7 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/modelContainers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/modelContainers.ts @@ -12,7 +12,7 @@ import { ModelContainers } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { ModelContainer, ModelContainersListNextOptionalParams, @@ -29,13 +29,13 @@ import { /// /** Class containing ModelContainers operations. */ export class ModelContainersImpl implements ModelContainers { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class ModelContainers class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -228,8 +228,8 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.skip, - Parameters.count, - Parameters.listViewType + Parameters.listViewType, + Parameters.count ], urlParameters: [ Parameters.$host, @@ -300,7 +300,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body14, + requestBody: Parameters.body9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -324,18 +324,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.count, - Parameters.listViewType - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts index 966c9225da40..1c62b2137f73 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/modelVersions.ts @@ -12,7 +12,13 @@ import { ModelVersions } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { ModelVersion, ModelVersionsListNextOptionalParams, @@ -23,19 +29,22 @@ import { ModelVersionsGetResponse, ModelVersionsCreateOrUpdateOptionalParams, ModelVersionsCreateOrUpdateResponse, + PackageRequest, + ModelVersionsPackageOptionalParams, + ModelVersionsPackageResponse, ModelVersionsListNextResponse } from "../models"; /// /** Class containing ModelVersions operations. */ export class ModelVersionsImpl implements ModelVersions { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class ModelVersions class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -216,6 +225,112 @@ export class ModelVersionsImpl implements ModelVersions { ); } + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + async beginPackage( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: PackageRequest, + options?: ModelVersionsPackageOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ModelVersionsPackageResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, version, body, options }, + spec: packageOperationSpec + }); + const poller = await createHttpPoller< + ModelVersionsPackageResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + async beginPackageAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: PackageRequest, + options?: ModelVersionsPackageOptionalParams + ): Promise { + const poller = await this.beginPackage( + resourceGroupName, + workspaceName, + name, + version, + body, + options + ); + return poller.pollUntilDone(); + } + /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -257,12 +372,13 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.skip, Parameters.orderBy, Parameters.top, + Parameters.stage, Parameters.listViewType, Parameters.version1, Parameters.description, - Parameters.offset, Parameters.tags1, - Parameters.properties1, + Parameters.properties, + Parameters.offset, Parameters.feed ], urlParameters: [ @@ -292,8 +408,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -316,8 +432,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name, - Parameters.version + Parameters.version, + Parameters.name ], headerParameters: [Parameters.accept], serializer @@ -337,15 +453,50 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body15, + requestBody: Parameters.body10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.name1, - Parameters.version + Parameters.version, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const packageOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}/package", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PackageResponse + }, + 201: { + bodyMapper: Mappers.PackageResponse + }, + 202: { + bodyMapper: Mappers.PackageResponse + }, + 204: { + bodyMapper: Mappers.PackageResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body11, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.version, + Parameters.name1 ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -362,25 +513,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top, - Parameters.listViewType, - Parameters.version1, - Parameters.description, - Parameters.offset, - Parameters.tags1, - Parameters.properties1, - Parameters.feed - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.name ], headerParameters: [Parameters.accept], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts index 0d71a80f4298..07529d78d0b9 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/onlineDeployments.ts @@ -12,9 +12,13 @@ import { OnlineDeployments } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { OnlineDeployment, OnlineDeploymentsListNextOptionalParams, @@ -42,13 +46,13 @@ import { /// /** Class containing OnlineDeployments operations. */ export class OnlineDeploymentsImpl implements OnlineDeployments { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class OnlineDeployments class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -280,14 +284,14 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { endpointName: string, deploymentName: string, options?: OnlineDeploymentsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -320,20 +324,21 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, deploymentName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -408,8 +413,8 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { body: PartialMinimalTrackedResourceWithSku, options?: OnlineDeploymentsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineDeploymentsUpdateResponse > > { @@ -419,7 +424,7 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -452,9 +457,9 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, @@ -462,10 +467,13 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { body, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + OnlineDeploymentsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -517,8 +525,8 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { body: OnlineDeployment, options?: OnlineDeploymentsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineDeploymentsCreateOrUpdateResponse > > { @@ -528,7 +536,7 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -561,9 +569,9 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { }; }; - const lro = new LroImpl( - sendOperation, - { + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, @@ -571,11 +579,15 @@ export class OnlineDeploymentsImpl implements OnlineDeployments { body, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + OnlineDeploymentsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" }); await poller.poll(); return poller; @@ -818,7 +830,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body18, + requestBody: Parameters.body24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -853,7 +865,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body19, + requestBody: Parameters.body34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -879,7 +891,7 @@ const getLogsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body20, + requestBody: Parameters.body35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -928,18 +940,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.orderBy, - Parameters.top - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.endpointName ], headerParameters: [Parameters.accept], @@ -956,13 +962,12 @@ const listSkusNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.count], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, Parameters.workspaceName, - Parameters.nextLink, Parameters.endpointName, Parameters.deploymentName ], diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts index ec5c78271803..9c74d0987ed8 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/onlineEndpoints.ts @@ -12,9 +12,13 @@ import { OnlineEndpoints } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { OnlineEndpoint, OnlineEndpointsListNextOptionalParams, @@ -40,13 +44,13 @@ import { /// /** Class containing OnlineEndpoints operations. */ export class OnlineEndpointsImpl implements OnlineEndpoints { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class OnlineEndpoints class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -155,14 +159,14 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { workspaceName: string, endpointName: string, options?: OnlineEndpointsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -195,14 +199,15 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, endpointName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -264,8 +269,8 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { body: PartialMinimalTrackedResourceWithIdentity, options?: OnlineEndpointsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineEndpointsUpdateResponse > > { @@ -275,7 +280,7 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -308,13 +313,16 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, endpointName, body, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + OnlineEndpointsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -361,8 +369,8 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { body: OnlineEndpoint, options?: OnlineEndpointsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineEndpointsCreateOrUpdateResponse > > { @@ -372,7 +380,7 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -405,14 +413,18 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, endpointName, body, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + OnlineEndpointsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" }); await poller.poll(); return poller; @@ -476,14 +488,14 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { endpointName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -516,15 +528,15 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, endpointName, body, options }, - regenerateKeysOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, endpointName, body, options }, + spec: regenerateKeysOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -556,7 +568,7 @@ export class OnlineEndpointsImpl implements OnlineEndpoints { } /** - * Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication. + * Retrieve a valid AML token for an Endpoint using AMLToken-based authentication. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param endpointName Online Endpoint name. @@ -611,12 +623,12 @@ const listOperationSpec: coreClient.OperationSpec = { queryParameters: [ Parameters.apiVersion, Parameters.skip, - Parameters.count, Parameters.tags1, - Parameters.properties1, + Parameters.properties, + Parameters.count, Parameters.name2, - Parameters.computeType, - Parameters.orderBy2 + Parameters.orderBy2, + Parameters.computeType ], urlParameters: [ Parameters.$host, @@ -695,7 +707,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body, + requestBody: Parameters.body12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -729,7 +741,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body16, + requestBody: Parameters.body32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -778,7 +790,7 @@ const regenerateKeysOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body17, + requestBody: Parameters.body33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -825,22 +837,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.count, - Parameters.tags1, - Parameters.properties1, - Parameters.name2, - Parameters.computeType, - Parameters.orderBy2 - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts b/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts index 2dc181c81bfb..b16219d21d04 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/operations.ts @@ -11,7 +11,7 @@ import { Operations } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { AmlOperation, OperationsListOptionalParams, @@ -21,18 +21,18 @@ import { /// /** Class containing Operations operations. */ export class OperationsImpl implements Operations { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class Operations class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } /** - * Lists all of the available Azure Machine Learning Workspaces REST API operations. + * Lists all of the available Azure Machine Learning Workspaces REST API operations * @param options The options parameters. */ public list( @@ -73,7 +73,7 @@ export class OperationsImpl implements Operations { } /** - * Lists all of the available Azure Machine Learning Workspaces REST API operations. + * Lists all of the available Azure Machine Learning Workspaces REST API operations * @param options The options parameters. */ private _list( diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts index ce71a81f37c6..4d657369e376 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/privateEndpointConnections.ts @@ -11,34 +11,34 @@ import { PrivateEndpointConnections } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListOptionalParams, PrivateEndpointConnectionsListResponse, + PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, - PrivateEndpointConnectionsCreateOrUpdateResponse, - PrivateEndpointConnectionsDeleteOptionalParams + PrivateEndpointConnectionsCreateOrUpdateResponse } from "../models"; /// /** Class containing PrivateEndpointConnections operations. */ export class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class PrivateEndpointConnections class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } /** - * List all the private endpoint connections associated with the workspace. + * Called by end-users to get all PE connections. * @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. @@ -96,7 +96,7 @@ export class PrivateEndpointConnectionsImpl } /** - * List all the private endpoint connections associated with the workspace. + * Called by end-users to get all PE connections. * @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. @@ -113,19 +113,18 @@ export class PrivateEndpointConnectionsImpl } /** - * Gets the specified private endpoint connection associated with the workspace. + * Called by end-users to delete a PE connection. * @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 NRP Private Endpoint Connection Name * @param options The options parameters. */ - get( + delete( resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams - ): Promise { + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -133,60 +132,59 @@ export class PrivateEndpointConnectionsImpl privateEndpointConnectionName, options }, - getOperationSpec + deleteOperationSpec ); } /** - * Update the state of specified private endpoint connection associated with the workspace. + * Called by end-users to get a PE connection. * @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 privateEndpointConnectionName NRP Private Endpoint Connection Name * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - properties: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams - ): Promise { + options?: PrivateEndpointConnectionsGetOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, privateEndpointConnectionName, - properties, options }, - createOrUpdateOperationSpec + getOperationSpec ); } /** - * Deletes the specified private endpoint connection associated with the workspace. + * Called by end-users to approve or reject a PE connection. + * This method must validate and forward the call to NRP. * @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 NRP Private Endpoint Connection Name + * @param body PrivateEndpointConnection object * @param options The options parameters. */ - delete( + createOrUpdate( resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise { + body: PrivateEndpointConnection, + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, privateEndpointConnectionName, + body, options }, - deleteOperationSpec + createOrUpdateOperationSpec ); } } @@ -215,14 +213,13 @@ const listOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const getOperationSpec: coreClient.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "GET", + httpMethod: "DELETE", responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnection - }, + 200: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -238,10 +235,10 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "PUT", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnection @@ -250,7 +247,6 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.properties, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -259,21 +255,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const deleteOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "DELETE", + httpMethod: "PUT", responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, default: { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.body46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -282,6 +279,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts b/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts index efe5fab5b56b..c5de66567612 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/privateLinkResources.ts @@ -6,35 +6,106 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { PrivateLinkResources } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { + PrivateLinkResource, PrivateLinkResourcesListOptionalParams, PrivateLinkResourcesListResponse } from "../models"; +/// /** Class containing PrivateLinkResources operations. */ export class PrivateLinkResourcesImpl implements PrivateLinkResources { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class PrivateLinkResources class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } /** - * Gets the private link resources that need to be created for a workspace. + * Called by Client (Portal, CLI, etc) to get available "private link resources" for the workspace. + * Each "private link resource" is a connection endpoint (IP address) to the resource. + * Pre single connection endpoint per workspace: the Data Plane IP address, returned by DNS resolution. + * + * Other RPs, such as Azure Storage, have multiple - one for Blobs, other for Queues, etc. + * Defined in the "[NRP] Private Endpoint Design" doc, topic "GET API for GroupIds". * @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( + public list( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams, + _settings?: PageSettings + ): AsyncIterableIterator { + let result: PrivateLinkResourcesListResponse; + result = await this._list(resourceGroupName, workspaceName, options); + yield result.value || []; + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: PrivateLinkResourcesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * Called by Client (Portal, CLI, etc) to get available "private link resources" for the workspace. + * Each "private link resource" is a connection endpoint (IP address) to the resource. + * Pre single connection endpoint per workspace: the Data Plane IP address, returned by DNS resolution. + * + * Other RPs, such as Azure Storage, have multiple - one for Blobs, other for Queues, etc. + * Defined in the "[NRP] Private Endpoint Design" doc, topic "GET API for GroupIds". + * @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?: PrivateLinkResourcesListOptionalParams diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/quotas.ts b/sdk/machinelearning/arm-machinelearning/src/operations/quotas.ts index 8ba2d40e0eeb..597154eca957 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/quotas.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/quotas.ts @@ -12,7 +12,7 @@ import { Quotas } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { ResourceQuota, QuotasListNextOptionalParams, @@ -27,13 +27,13 @@ import { /// /** Class containing Quotas operations. */ export class QuotasImpl implements Quotas { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class Quotas class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -159,7 +159,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters3, + requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -202,12 +202,11 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, - Parameters.location + Parameters.location, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registries.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registries.ts new file mode 100644 index 000000000000..bd3dfc5bf0b2 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registries.ts @@ -0,0 +1,758 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { Registries } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + Registry, + RegistriesListBySubscriptionNextOptionalParams, + RegistriesListBySubscriptionOptionalParams, + RegistriesListBySubscriptionResponse, + RegistriesListNextOptionalParams, + RegistriesListOptionalParams, + RegistriesListResponse, + RegistriesDeleteOptionalParams, + RegistriesGetOptionalParams, + RegistriesGetResponse, + PartialRegistryPartialTrackedResource, + RegistriesUpdateOptionalParams, + RegistriesUpdateResponse, + RegistriesCreateOrUpdateOptionalParams, + RegistriesCreateOrUpdateResponse, + RegistriesRemoveRegionsOptionalParams, + RegistriesRemoveRegionsResponse, + RegistriesListBySubscriptionNextResponse, + RegistriesListNextResponse +} from "../models"; + +/// +/** Class containing Registries operations. */ +export class RegistriesImpl implements Registries { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class Registries class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List registries by subscription + * @param options The options parameters. + */ + public listBySubscription( + options?: RegistriesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: RegistriesListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistriesListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: RegistriesListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * List registries + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + options?: RegistriesListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(resourceGroupName, options, settings); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + options?: RegistriesListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistriesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + options?: RegistriesListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceGroupName, options)) { + yield* page; + } + } + + /** + * List registries by subscription + * @param options The options parameters. + */ + private _listBySubscription( + options?: RegistriesListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * List registries + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + options?: RegistriesListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listOperationSpec + ); + } + + /** + * Delete registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + options?: RegistriesDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + options?: RegistriesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + options?: RegistriesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + getOperationSpec + ); + } + + /** + * Update tags + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + registryName: string, + body: PartialRegistryPartialTrackedResource, + options?: RegistriesUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, body, options }, + updateOperationSpec + ); + } + + /** + * Create or update registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistriesCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistriesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Remove regions from registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + async beginRemoveRegions( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesRemoveRegionsOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistriesRemoveRegionsResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, body, options }, + spec: removeRegionsOperationSpec + }); + const poller = await createHttpPoller< + RegistriesRemoveRegionsResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Remove regions from registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + async beginRemoveRegionsAndWait( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesRemoveRegionsOptionalParams + ): Promise { + const poller = await this.beginRemoveRegions( + resourceGroupName, + registryName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: RegistriesListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + nextLink: string, + options?: RegistriesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/registries", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RegistryTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RegistryTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Registry + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.Registry + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body38, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.Registry + }, + 201: { + bodyMapper: Mappers.Registry + }, + 202: { + bodyMapper: Mappers.Registry + }, + 204: { + bodyMapper: Mappers.Registry + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body39, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const removeRegionsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/removeRegions", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.Registry + }, + 201: { + bodyMapper: Mappers.Registry + }, + 202: { + bodyMapper: Mappers.Registry + }, + 204: { + bodyMapper: Mappers.Registry + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body39, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RegistryTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.RegistryTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeContainers.ts new file mode 100644 index 000000000000..6b66d193c214 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeContainers.ts @@ -0,0 +1,494 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryCodeContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + CodeContainer, + RegistryCodeContainersListNextOptionalParams, + RegistryCodeContainersListOptionalParams, + RegistryCodeContainersListResponse, + RegistryCodeContainersDeleteOptionalParams, + RegistryCodeContainersGetOptionalParams, + RegistryCodeContainersGetResponse, + RegistryCodeContainersCreateOrUpdateOptionalParams, + RegistryCodeContainersCreateOrUpdateResponse, + RegistryCodeContainersListNextResponse +} from "../models"; + +/// +/** Class containing RegistryCodeContainers operations. */ +export class RegistryCodeContainersImpl implements RegistryCodeContainers { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryCodeContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: RegistryCodeContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: RegistryCodeContainersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryCodeContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: RegistryCodeContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: RegistryCodeContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Delete Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeContainersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, codeName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeContainersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + codeName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, codeName, options }, + getOperationSpec + ); + } + + /** + * Create or update Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + codeName: string, + body: CodeContainer, + options?: RegistryCodeContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryCodeContainersCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, codeName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryCodeContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + body: CodeContainer, + options?: RegistryCodeContainersCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + codeName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: RegistryCodeContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CodeContainer + }, + 201: { + bodyMapper: Mappers.CodeContainer + }, + 202: { + bodyMapper: Mappers.CodeContainer + }, + 204: { + bodyMapper: Mappers.CodeContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeVersions.ts new file mode 100644 index 000000000000..e30f705e089d --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryCodeVersions.ts @@ -0,0 +1,596 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryCodeVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + CodeVersion, + RegistryCodeVersionsListNextOptionalParams, + RegistryCodeVersionsListOptionalParams, + RegistryCodeVersionsListResponse, + RegistryCodeVersionsDeleteOptionalParams, + RegistryCodeVersionsGetOptionalParams, + RegistryCodeVersionsGetResponse, + RegistryCodeVersionsCreateOrUpdateOptionalParams, + RegistryCodeVersionsCreateOrUpdateResponse, + PendingUploadRequestDto, + RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams, + RegistryCodeVersionsCreateOrGetStartPendingUploadResponse, + RegistryCodeVersionsListNextResponse +} from "../models"; + +/// +/** Class containing RegistryCodeVersions operations. */ +export class RegistryCodeVersionsImpl implements RegistryCodeVersions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryCodeVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + registryName, + codeName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + codeName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryCodeVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + registryName, + codeName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + codeName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + codeName, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, codeName, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + options?: RegistryCodeVersionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, codeName, version, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + options?: RegistryCodeVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + codeName, + version, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + options?: RegistryCodeVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, codeName, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + body: CodeVersion, + options?: RegistryCodeVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryCodeVersionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + codeName, + version, + body, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryCodeVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + body: CodeVersion, + options?: RegistryCodeVersionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + codeName, + version, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Generate a storage location and credential for the client to upload a code asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Pending upload name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + body: PendingUploadRequestDto, + options?: RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, codeName, version, body, options }, + createOrGetStartPendingUploadOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + codeName: string, + nextLink: string, + options?: RegistryCodeVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, codeName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName, + Parameters.version + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CodeVersion + }, + 201: { + bodyMapper: Mappers.CodeVersion + }, + 202: { + bodyMapper: Mappers.CodeVersion + }, + 204: { + bodyMapper: Mappers.CodeVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName, + Parameters.version + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrGetStartPendingUploadOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/codes/{codeName}/versions/{version}/startPendingUpload", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PendingUploadResponseDto + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName, + Parameters.version + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CodeVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.codeName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentContainers.ts new file mode 100644 index 000000000000..f35bb83e84f9 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentContainers.ts @@ -0,0 +1,495 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryComponentContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ComponentContainer, + RegistryComponentContainersListNextOptionalParams, + RegistryComponentContainersListOptionalParams, + RegistryComponentContainersListResponse, + RegistryComponentContainersDeleteOptionalParams, + RegistryComponentContainersGetOptionalParams, + RegistryComponentContainersGetResponse, + RegistryComponentContainersCreateOrUpdateOptionalParams, + RegistryComponentContainersCreateOrUpdateResponse, + RegistryComponentContainersListNextResponse +} from "../models"; + +/// +/** Class containing RegistryComponentContainers operations. */ +export class RegistryComponentContainersImpl + implements RegistryComponentContainers { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryComponentContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: RegistryComponentContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: RegistryComponentContainersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryComponentContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: RegistryComponentContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: RegistryComponentContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentContainersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, componentName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentContainersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + componentName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, componentName, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + componentName: string, + body: ComponentContainer, + options?: RegistryComponentContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryComponentContainersCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, componentName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryComponentContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + body: ComponentContainer, + options?: RegistryComponentContainersCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + componentName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: RegistryComponentContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.componentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.componentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ComponentContainer + }, + 201: { + bodyMapper: Mappers.ComponentContainer + }, + 202: { + bodyMapper: Mappers.ComponentContainer + }, + 204: { + bodyMapper: Mappers.ComponentContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.componentName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentVersions.ts new file mode 100644 index 000000000000..f44d6aa9d00a --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryComponentVersions.ts @@ -0,0 +1,552 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryComponentVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ComponentVersion, + RegistryComponentVersionsListNextOptionalParams, + RegistryComponentVersionsListOptionalParams, + RegistryComponentVersionsListResponse, + RegistryComponentVersionsDeleteOptionalParams, + RegistryComponentVersionsGetOptionalParams, + RegistryComponentVersionsGetResponse, + RegistryComponentVersionsCreateOrUpdateOptionalParams, + RegistryComponentVersionsCreateOrUpdateResponse, + RegistryComponentVersionsListNextResponse +} from "../models"; + +/// +/** Class containing RegistryComponentVersions operations. */ +export class RegistryComponentVersionsImpl + implements RegistryComponentVersions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryComponentVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + registryName, + componentName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + componentName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryComponentVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + registryName, + componentName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + componentName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + componentName, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, componentName, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + options?: RegistryComponentVersionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + componentName, + version, + options + }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + options?: RegistryComponentVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + componentName, + version, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + options?: RegistryComponentVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, componentName, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + body: ComponentVersion, + options?: RegistryComponentVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryComponentVersionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + componentName, + version, + body, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryComponentVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + body: ComponentVersion, + options?: RegistryComponentVersionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + componentName, + version, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + componentName: string, + nextLink: string, + options?: RegistryComponentVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, componentName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.stage + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.componentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.componentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.componentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/components/{componentName}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ComponentVersion + }, + 201: { + bodyMapper: Mappers.ComponentVersion + }, + 202: { + bodyMapper: Mappers.ComponentVersion + }, + 204: { + bodyMapper: Mappers.ComponentVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.componentName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ComponentVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.componentName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryDataContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataContainers.ts new file mode 100644 index 000000000000..acf9251a8b00 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataContainers.ts @@ -0,0 +1,498 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryDataContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + DataContainer, + RegistryDataContainersListNextOptionalParams, + RegistryDataContainersListOptionalParams, + RegistryDataContainersListResponse, + RegistryDataContainersDeleteOptionalParams, + RegistryDataContainersGetOptionalParams, + RegistryDataContainersGetResponse, + RegistryDataContainersCreateOrUpdateOptionalParams, + RegistryDataContainersCreateOrUpdateResponse, + RegistryDataContainersListNextResponse +} from "../models"; + +/// +/** Class containing RegistryDataContainers operations. */ +export class RegistryDataContainersImpl implements RegistryDataContainers { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryDataContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List Data containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: RegistryDataContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: RegistryDataContainersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryDataContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: RegistryDataContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * List Data containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: RegistryDataContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataContainersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, name, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataContainersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + name, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, name, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + name: string, + body: DataContainer, + options?: RegistryDataContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryDataContainersCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, name, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryDataContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + name: string, + body: DataContainer, + options?: RegistryDataContainersCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + name, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: RegistryDataContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DataContainer + }, + 201: { + bodyMapper: Mappers.DataContainer + }, + 202: { + bodyMapper: Mappers.DataContainer + }, + 204: { + bodyMapper: Mappers.DataContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryDataVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataVersions.ts new file mode 100644 index 000000000000..e0b22ce958e7 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryDataVersions.ts @@ -0,0 +1,586 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryDataVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + DataVersionBase, + RegistryDataVersionsListNextOptionalParams, + RegistryDataVersionsListOptionalParams, + RegistryDataVersionsListResponse, + RegistryDataVersionsDeleteOptionalParams, + RegistryDataVersionsGetOptionalParams, + RegistryDataVersionsGetResponse, + RegistryDataVersionsCreateOrUpdateOptionalParams, + RegistryDataVersionsCreateOrUpdateResponse, + PendingUploadRequestDto, + RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams, + RegistryDataVersionsCreateOrGetStartPendingUploadResponse, + RegistryDataVersionsListNextResponse +} from "../models"; + +/// +/** Class containing RegistryDataVersions operations. */ +export class RegistryDataVersionsImpl implements RegistryDataVersions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryDataVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List data versions in the data container + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Data container's name + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + registryName, + name, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + name, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryDataVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, name, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + name, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + name, + options + )) { + yield* page; + } + } + + /** + * List data versions in the data container + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Data container's name + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, name, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + options?: RegistryDataVersionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, name, version, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + options?: RegistryDataVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + name, + version, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + options?: RegistryDataVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, name, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + body: DataVersionBase, + options?: RegistryDataVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryDataVersionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, name, version, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryDataVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + body: DataVersionBase, + options?: RegistryDataVersionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + name, + version, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Generate a storage location and credential for the client to upload a data asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Data asset name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + body: PendingUploadRequestDto, + options?: RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, name, version, body, options }, + createOrGetStartPendingUploadOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Data container's name + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + name: string, + nextLink: string, + options?: RegistryDataVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, name, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataVersionBaseResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.listViewType, + Parameters.tags + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataVersionBase + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DataVersionBase + }, + 201: { + bodyMapper: Mappers.DataVersionBase + }, + 202: { + bodyMapper: Mappers.DataVersionBase + }, + 204: { + bodyMapper: Mappers.DataVersionBase + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrGetStartPendingUploadOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/data/{name}/versions/{version}/startPendingUpload", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PendingUploadResponseDto + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.name + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DataVersionBaseResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentContainers.ts new file mode 100644 index 000000000000..c7cd20dd41e4 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentContainers.ts @@ -0,0 +1,499 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryEnvironmentContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + EnvironmentContainer, + RegistryEnvironmentContainersListNextOptionalParams, + RegistryEnvironmentContainersListOptionalParams, + RegistryEnvironmentContainersListResponse, + RegistryEnvironmentContainersDeleteOptionalParams, + RegistryEnvironmentContainersGetOptionalParams, + RegistryEnvironmentContainersGetResponse, + RegistryEnvironmentContainersCreateOrUpdateOptionalParams, + RegistryEnvironmentContainersCreateOrUpdateResponse, + RegistryEnvironmentContainersListNextResponse +} from "../models"; + +/// +/** Class containing RegistryEnvironmentContainers operations. */ +export class RegistryEnvironmentContainersImpl + implements RegistryEnvironmentContainers { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryEnvironmentContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List environment containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: RegistryEnvironmentContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: RegistryEnvironmentContainersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryEnvironmentContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: RegistryEnvironmentContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * List environment containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: RegistryEnvironmentContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentContainersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, environmentName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentContainersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + environmentName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, environmentName, options }, + getOperationSpec + ); + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + environmentName: string, + body: EnvironmentContainer, + options?: RegistryEnvironmentContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryEnvironmentContainersCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, environmentName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryEnvironmentContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + body: EnvironmentContainer, + options?: RegistryEnvironmentContainersCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + environmentName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: RegistryEnvironmentContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.environmentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.environmentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainer + }, + 201: { + bodyMapper: Mappers.EnvironmentContainer + }, + 202: { + bodyMapper: Mappers.EnvironmentContainer + }, + 204: { + bodyMapper: Mappers.EnvironmentContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.environmentName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentVersions.ts new file mode 100644 index 000000000000..ebaeda5399d1 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryEnvironmentVersions.ts @@ -0,0 +1,553 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryEnvironmentVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + EnvironmentVersion, + RegistryEnvironmentVersionsListNextOptionalParams, + RegistryEnvironmentVersionsListOptionalParams, + RegistryEnvironmentVersionsListResponse, + RegistryEnvironmentVersionsDeleteOptionalParams, + RegistryEnvironmentVersionsGetOptionalParams, + RegistryEnvironmentVersionsGetResponse, + RegistryEnvironmentVersionsCreateOrUpdateOptionalParams, + RegistryEnvironmentVersionsCreateOrUpdateResponse, + RegistryEnvironmentVersionsListNextResponse +} from "../models"; + +/// +/** Class containing RegistryEnvironmentVersions operations. */ +export class RegistryEnvironmentVersionsImpl + implements RegistryEnvironmentVersions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryEnvironmentVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + registryName, + environmentName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + environmentName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryEnvironmentVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + registryName, + environmentName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + environmentName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + environmentName, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, environmentName, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + options?: RegistryEnvironmentVersionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + environmentName, + version, + options + }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + options?: RegistryEnvironmentVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + environmentName, + version, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + options?: RegistryEnvironmentVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, environmentName, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + body: EnvironmentVersion, + options?: RegistryEnvironmentVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryEnvironmentVersionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + environmentName, + version, + body, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryEnvironmentVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + body: EnvironmentVersion, + options?: RegistryEnvironmentVersionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + environmentName, + version, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + environmentName: string, + nextLink: string, + options?: RegistryEnvironmentVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, environmentName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.stage, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.environmentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.environmentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.environmentName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentVersion + }, + 201: { + bodyMapper: Mappers.EnvironmentVersion + }, + 202: { + bodyMapper: Mappers.EnvironmentVersion + }, + 204: { + bodyMapper: Mappers.EnvironmentVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.environmentName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.EnvironmentVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.environmentName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryModelContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryModelContainers.ts new file mode 100644 index 000000000000..08bcd5a1d5a3 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryModelContainers.ts @@ -0,0 +1,498 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryModelContainers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ModelContainer, + RegistryModelContainersListNextOptionalParams, + RegistryModelContainersListOptionalParams, + RegistryModelContainersListResponse, + RegistryModelContainersDeleteOptionalParams, + RegistryModelContainersGetOptionalParams, + RegistryModelContainersGetResponse, + RegistryModelContainersCreateOrUpdateOptionalParams, + RegistryModelContainersCreateOrUpdateResponse, + RegistryModelContainersListNextResponse +} from "../models"; + +/// +/** Class containing RegistryModelContainers operations. */ +export class RegistryModelContainersImpl implements RegistryModelContainers { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryModelContainers class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List model containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + options?: RegistryModelContainersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, registryName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + options?: RegistryModelContainersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryModelContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, registryName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + options?: RegistryModelContainersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + options + )) { + yield* page; + } + } + + /** + * List model containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + options?: RegistryModelContainersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, options }, + listOperationSpec + ); + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelContainersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, modelName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelContainersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + modelName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelContainersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, modelName, options }, + getOperationSpec + ); + } + + /** + * Create or update model container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + modelName: string, + body: ModelContainer, + options?: RegistryModelContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryModelContainersCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, modelName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryModelContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update model container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + body: ModelContainer, + options?: RegistryModelContainersCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + modelName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + nextLink: string, + options?: RegistryModelContainersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.listViewType + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.modelName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.modelName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ModelContainer + }, + 201: { + bodyMapper: Mappers.ModelContainer + }, + 202: { + bodyMapper: Mappers.ModelContainer + }, + 204: { + bodyMapper: Mappers.ModelContainer + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body9, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.modelName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelContainerResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/registryModelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operations/registryModelVersions.ts new file mode 100644 index 000000000000..42dbe758e1b1 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/registryModelVersions.ts @@ -0,0 +1,752 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { RegistryModelVersions } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ModelVersion, + RegistryModelVersionsListNextOptionalParams, + RegistryModelVersionsListOptionalParams, + RegistryModelVersionsListResponse, + RegistryModelVersionsDeleteOptionalParams, + RegistryModelVersionsGetOptionalParams, + RegistryModelVersionsGetResponse, + RegistryModelVersionsCreateOrUpdateOptionalParams, + RegistryModelVersionsCreateOrUpdateResponse, + PackageRequest, + RegistryModelVersionsPackageOptionalParams, + RegistryModelVersionsPackageResponse, + PendingUploadRequestDto, + RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams, + RegistryModelVersionsCreateOrGetStartPendingUploadResponse, + RegistryModelVersionsListNextResponse +} from "../models"; + +/// +/** Class containing RegistryModelVersions operations. */ +export class RegistryModelVersionsImpl implements RegistryModelVersions { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class RegistryModelVersions class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelVersionsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + registryName, + modelName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + registryName, + modelName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelVersionsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: RegistryModelVersionsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + registryName, + modelName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + registryName, + modelName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelVersionsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + registryName, + modelName, + options + )) { + yield* page; + } + } + + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelVersionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, modelName, options }, + listOperationSpec + ); + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + options?: RegistryModelVersionsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, registryName, modelName, version, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + options?: RegistryModelVersionsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + registryName, + modelName, + version, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + options?: RegistryModelVersionsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, modelName, version, options }, + getOperationSpec + ); + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: ModelVersion, + options?: RegistryModelVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryModelVersionsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + modelName, + version, + body, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + RegistryModelVersionsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: ModelVersion, + options?: RegistryModelVersionsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + registryName, + modelName, + version, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + async beginPackage( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: PackageRequest, + options?: RegistryModelVersionsPackageOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryModelVersionsPackageResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + registryName, + modelName, + version, + body, + options + }, + spec: packageOperationSpec + }); + const poller = await createHttpPoller< + RegistryModelVersionsPackageResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + async beginPackageAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: PackageRequest, + options?: RegistryModelVersionsPackageOptionalParams + ): Promise { + const poller = await this.beginPackage( + resourceGroupName, + registryName, + modelName, + version, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Generate a storage location and credential for the client to upload a model asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Model name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: PendingUploadRequestDto, + options?: RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, modelName, version, body, options }, + createOrGetStartPendingUploadOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + registryName: string, + modelName: string, + nextLink: string, + options?: RegistryModelVersionsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, registryName, modelName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.skip, + Parameters.orderBy, + Parameters.top, + Parameters.listViewType, + Parameters.version1, + Parameters.description, + Parameters.tags1, + Parameters.properties + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.modelName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.modelName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.modelName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ModelVersion + }, + 201: { + bodyMapper: Mappers.ModelVersion + }, + 202: { + bodyMapper: Mappers.ModelVersion + }, + 204: { + bodyMapper: Mappers.ModelVersion + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body10, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.modelName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const packageOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}/package", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PackageResponse + }, + 201: { + bodyMapper: Mappers.PackageResponse + }, + 202: { + bodyMapper: Mappers.PackageResponse + }, + 204: { + bodyMapper: Mappers.PackageResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body11, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.modelName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrGetStartPendingUploadOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/models/{modelName}/versions/{version}/startPendingUpload", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.PendingUploadResponseDto + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.version, + Parameters.modelName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ModelVersionResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.modelName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts b/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts index e50c9ecb7227..869915f71434 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/schedules.ts @@ -12,9 +12,13 @@ import { Schedules } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { Schedule, SchedulesListNextOptionalParams, @@ -31,13 +35,13 @@ import { /// /** Class containing Schedules operations. */ export class SchedulesImpl implements Schedules { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class Schedules class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -146,14 +150,14 @@ export class SchedulesImpl implements Schedules { workspaceName: string, name: string, options?: SchedulesDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -186,14 +190,15 @@ export class SchedulesImpl implements Schedules { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, name, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -255,8 +260,8 @@ export class SchedulesImpl implements Schedules { body: Schedule, options?: SchedulesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SchedulesCreateOrUpdateResponse > > { @@ -266,7 +271,7 @@ export class SchedulesImpl implements Schedules { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -299,14 +304,18 @@ export class SchedulesImpl implements Schedules { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, name, body, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + SchedulesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" }); await poller.poll(); return poller; @@ -453,7 +462,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body21, + requestBody: Parameters.body36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -477,17 +486,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.skip, - Parameters.listViewType1 - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/serverlessEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operations/serverlessEndpoints.ts new file mode 100644 index 000000000000..7013aea60108 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operations/serverlessEndpoints.ts @@ -0,0 +1,813 @@ +/* + * 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ServerlessEndpoints } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + ServerlessEndpoint, + ServerlessEndpointsListNextOptionalParams, + ServerlessEndpointsListOptionalParams, + ServerlessEndpointsListResponse, + ServerlessEndpointsDeleteOptionalParams, + ServerlessEndpointsGetOptionalParams, + ServerlessEndpointsGetResponse, + PartialMinimalTrackedResourceWithSkuAndIdentity, + ServerlessEndpointsUpdateOptionalParams, + ServerlessEndpointsUpdateResponse, + ServerlessEndpointsCreateOrUpdateOptionalParams, + ServerlessEndpointsCreateOrUpdateResponse, + ServerlessEndpointsListKeysOptionalParams, + ServerlessEndpointsListKeysResponse, + RegenerateEndpointKeysRequest, + ServerlessEndpointsRegenerateKeysOptionalParams, + ServerlessEndpointsRegenerateKeysResponse, + ServerlessEndpointsListNextResponse +} from "../models"; + +/// +/** Class containing ServerlessEndpoints operations. */ +export class ServerlessEndpointsImpl implements ServerlessEndpoints { + private readonly client: AzureMachineLearningServices; + + /** + * Initialize a new instance of the class ServerlessEndpoints class. + * @param client Reference to the service client + */ + constructor(client: AzureMachineLearningServices) { + this.client = client; + } + + /** + * List Serverless Endpoints. + * @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?: ServerlessEndpointsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceGroupName, workspaceName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + workspaceName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + workspaceName: string, + options?: ServerlessEndpointsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ServerlessEndpointsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, workspaceName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + workspaceName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + workspaceName: string, + options?: ServerlessEndpointsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + workspaceName, + options + )) { + yield* page; + } + } + + /** + * List Serverless Endpoints. + * @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?: ServerlessEndpointsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + workspaceName, + name, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get Serverless Endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + getOperationSpec + ); + } + + /** + * Update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: ServerlessEndpointsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ServerlessEndpointsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + ServerlessEndpointsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: ServerlessEndpointsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + workspaceName, + name, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Create or update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: ServerlessEndpoint, + options?: ServerlessEndpointsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ServerlessEndpointsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + ServerlessEndpointsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "original-uri" + }); + await poller.poll(); + return poller; + } + + /** + * Create or update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: ServerlessEndpoint, + options?: ServerlessEndpointsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + workspaceName, + name, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * List EndpointAuthKeys for an Endpoint using Key-based authentication. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsListKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, name, options }, + listKeysOperationSpec + ); + } + + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + async beginRegenerateKeys( + resourceGroupName: string, + workspaceName: string, + name: string, + body: RegenerateEndpointKeysRequest, + options?: ServerlessEndpointsRegenerateKeysOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ServerlessEndpointsRegenerateKeysResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, name, body, options }, + spec: regenerateKeysOperationSpec + }); + const poller = await createHttpPoller< + ServerlessEndpointsRegenerateKeysResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + async beginRegenerateKeysAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: RegenerateEndpointKeysRequest, + options?: ServerlessEndpointsRegenerateKeysOptionalParams + ): Promise { + const poller = await this.beginRegenerateKeys( + resourceGroupName, + workspaceName, + name, + body, + 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?: ServerlessEndpointsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerlessEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skip], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerlessEndpoint + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.ServerlessEndpoint + }, + 201: { + bodyMapper: Mappers.ServerlessEndpoint + }, + 202: { + bodyMapper: Mappers.ServerlessEndpoint + }, + 204: { + bodyMapper: Mappers.ServerlessEndpoint + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body22, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ServerlessEndpoint + }, + 201: { + bodyMapper: Mappers.ServerlessEndpoint + }, + 202: { + bodyMapper: Mappers.ServerlessEndpoint + }, + 204: { + bodyMapper: Mappers.ServerlessEndpoint + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body37, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}/listKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthKeys + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const regenerateKeysOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name}/regenerateKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.EndpointAuthKeys + }, + 201: { + bodyMapper: Mappers.EndpointAuthKeys + }, + 202: { + bodyMapper: Mappers.EndpointAuthKeys + }, + 204: { + bodyMapper: Mappers.EndpointAuthKeys + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body33, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.name1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerlessEndpointTrackedResourceArmPaginatedResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/usages.ts b/sdk/machinelearning/arm-machinelearning/src/operations/usages.ts index d3abf9d81047..966358d4df2a 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/usages.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/usages.ts @@ -12,7 +12,7 @@ import { Usages } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { Usage, UsagesListNextOptionalParams, @@ -24,13 +24,13 @@ import { /// /** Class containing Usages operations. */ export class UsagesImpl implements Usages { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class Usages class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -161,12 +161,11 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink, - Parameters.location + Parameters.location, + Parameters.nextLink ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/virtualMachineSizes.ts b/sdk/machinelearning/arm-machinelearning/src/operations/virtualMachineSizes.ts index 1b937ab98879..c393dc0a01e7 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/virtualMachineSizes.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/virtualMachineSizes.ts @@ -10,7 +10,7 @@ import { VirtualMachineSizes } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { VirtualMachineSizesListOptionalParams, VirtualMachineSizesListResponse @@ -18,13 +18,13 @@ import { /** Class containing VirtualMachineSizes operations. */ export class VirtualMachineSizesImpl implements VirtualMachineSizes { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class VirtualMachineSizes class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts index ec30dfa77d23..506fd3494476 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceConnections.ts @@ -12,34 +12,39 @@ import { WorkspaceConnections } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { WorkspaceConnectionPropertiesV2BasicResource, WorkspaceConnectionsListNextOptionalParams, WorkspaceConnectionsListOptionalParams, WorkspaceConnectionsListResponse, - WorkspaceConnectionsCreateOptionalParams, - WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsDeleteOptionalParams, WorkspaceConnectionsGetOptionalParams, WorkspaceConnectionsGetResponse, - WorkspaceConnectionsDeleteOptionalParams, + WorkspaceConnectionsUpdateOptionalParams, + WorkspaceConnectionsUpdateResponse, + WorkspaceConnectionsCreateOptionalParams, + WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsListSecretsOptionalParams, + WorkspaceConnectionsListSecretsResponse, WorkspaceConnectionsListNextResponse } from "../models"; /// /** Class containing WorkspaceConnections operations. */ export class WorkspaceConnectionsImpl implements WorkspaceConnections { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class WorkspaceConnections class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } /** + * Lists all the available machine learning workspaces connections under the 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. @@ -115,26 +120,43 @@ export class WorkspaceConnectionsImpl implements WorkspaceConnections { } /** + * Lists all the available machine learning workspaces connections under the 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?: WorkspaceConnectionsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listOperationSpec + ); + } + + /** + * Delete machine learning workspaces connections by name. * @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( + delete( resourceGroupName: string, workspaceName: string, connectionName: string, - parameters: WorkspaceConnectionPropertiesV2BasicResource, - options?: WorkspaceConnectionsCreateOptionalParams - ): Promise { + options?: WorkspaceConnectionsDeleteOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, connectionName, parameters, options }, - createOperationSpec + { resourceGroupName, workspaceName, connectionName, options }, + deleteOperationSpec ); } /** + * Lists machine learning workspaces connections by name. * @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 @@ -153,36 +175,59 @@ export class WorkspaceConnectionsImpl implements WorkspaceConnections { } /** + * Update machine learning workspaces connections under the specified workspace. * @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( + update( resourceGroupName: string, workspaceName: string, connectionName: string, - options?: WorkspaceConnectionsDeleteOptionalParams - ): Promise { + options?: WorkspaceConnectionsUpdateOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, connectionName, options }, - deleteOperationSpec + updateOperationSpec ); } /** + * Create or update machine learning workspaces connections under the specified workspace. * @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. */ - private _list( + create( resourceGroupName: string, workspaceName: string, - options?: WorkspaceConnectionsListOptionalParams - ): Promise { + connectionName: string, + options?: WorkspaceConnectionsCreateOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, options }, - listOperationSpec + { resourceGroupName, workspaceName, connectionName, options }, + createOperationSpec + ); + } + + /** + * List all the secrets of a machine learning workspaces connections. + * @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. + */ + listSecrets( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsListSecretsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, connectionName, options }, + listSecretsOperationSpec ); } @@ -208,19 +253,44 @@ export class WorkspaceConnectionsImpl implements WorkspaceConnections { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const createOperationSpec: coreClient.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceConnectionPropertiesV2BasicResource + bodyMapper: + Mappers.WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters6, + queryParameters: [ + Parameters.apiVersion, + Parameters.target, + Parameters.category + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName + ], + 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.ErrorResponse + } + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -229,8 +299,7 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.connectionName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; const getOperationSpec: coreClient.OperationSpec = { @@ -256,17 +325,19 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const deleteOperationSpec: coreClient.OperationSpec = { +const updateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", - httpMethod: "DELETE", + httpMethod: "PATCH", responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.WorkspaceConnectionPropertiesV2BasicResource + }, default: { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.body43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -275,32 +346,54 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.workspaceName, Parameters.connectionName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; -const listOperationSpec: coreClient.OperationSpec = { +const createOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: - Mappers.WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult + bodyMapper: Mappers.WorkspaceConnectionPropertiesV2BasicResource }, default: { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.target, - Parameters.category + requestBody: Parameters.body44, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.workspaceName, + Parameters.connectionName ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listSecretsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}/listsecrets", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.WorkspaceConnectionPropertiesV2BasicResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.workspaceName, + Parameters.connectionName ], headerParameters: [Parameters.accept], serializer @@ -317,17 +410,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [ - Parameters.apiVersion, - Parameters.target, - Parameters.category - ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceFeatures.ts b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceFeatures.ts index 2dfb2a4b8794..3ebcce7e15ca 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/workspaceFeatures.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/workspaceFeatures.ts @@ -12,7 +12,7 @@ import { WorkspaceFeatures } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; import { AmlUserFeature, WorkspaceFeaturesListNextOptionalParams, @@ -24,13 +24,13 @@ import { /// /** Class containing WorkspaceFeatures operations. */ export class WorkspaceFeaturesImpl implements WorkspaceFeatures { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class WorkspaceFeatures class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } @@ -182,13 +182,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.nextLink, Parameters.resourceGroupName, - Parameters.workspaceName, - Parameters.nextLink + Parameters.workspaceName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts b/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts index c9cbd5890ede..9569fd3423a2 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operations/workspaces.ts @@ -12,67 +12,69 @@ import { Workspaces } 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 { AzureMachineLearningServices } from "../azureMachineLearningServices"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { Workspace, - WorkspacesListByResourceGroupNextOptionalParams, - WorkspacesListByResourceGroupOptionalParams, - WorkspacesListByResourceGroupResponse, WorkspacesListBySubscriptionNextOptionalParams, WorkspacesListBySubscriptionOptionalParams, WorkspacesListBySubscriptionResponse, + WorkspacesListByResourceGroupNextOptionalParams, + WorkspacesListByResourceGroupOptionalParams, + WorkspacesListByResourceGroupResponse, + WorkspacesDeleteOptionalParams, WorkspacesGetOptionalParams, WorkspacesGetResponse, - WorkspacesCreateOrUpdateOptionalParams, - WorkspacesCreateOrUpdateResponse, - WorkspacesDeleteOptionalParams, WorkspaceUpdateParameters, WorkspacesUpdateOptionalParams, WorkspacesUpdateResponse, + WorkspacesCreateOrUpdateOptionalParams, + WorkspacesCreateOrUpdateResponse, WorkspacesDiagnoseOptionalParams, WorkspacesDiagnoseResponse, WorkspacesListKeysOptionalParams, WorkspacesListKeysResponse, - WorkspacesResyncKeysOptionalParams, WorkspacesListNotebookAccessTokenOptionalParams, WorkspacesListNotebookAccessTokenResponse, - WorkspacesPrepareNotebookOptionalParams, - WorkspacesPrepareNotebookResponse, - WorkspacesListStorageAccountKeysOptionalParams, - WorkspacesListStorageAccountKeysResponse, WorkspacesListNotebookKeysOptionalParams, WorkspacesListNotebookKeysResponse, + WorkspacesListStorageAccountKeysOptionalParams, + WorkspacesListStorageAccountKeysResponse, WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams, WorkspacesListOutboundNetworkDependenciesEndpointsResponse, - WorkspacesListByResourceGroupNextResponse, - WorkspacesListBySubscriptionNextResponse + WorkspacesPrepareNotebookOptionalParams, + WorkspacesPrepareNotebookResponse, + WorkspacesResyncKeysOptionalParams, + WorkspacesListBySubscriptionNextResponse, + WorkspacesListByResourceGroupNextResponse } from "../models"; /// /** Class containing Workspaces operations. */ export class WorkspacesImpl implements Workspaces { - private readonly client: AzureMachineLearningWorkspaces; + private readonly client: AzureMachineLearningServices; /** * Initialize a new instance of the class Workspaces class. * @param client Reference to the service client */ - constructor(client: AzureMachineLearningWorkspaces) { + constructor(client: AzureMachineLearningServices) { this.client = client; } /** - * 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. + * Lists all the available machine learning workspaces under the specified subscription. * @param options The options parameters. */ - public listByResourceGroup( - resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + public listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + const iter = this.listBySubscriptionPagingAll(options); return { next() { return iter.next(); @@ -84,35 +86,26 @@ export class WorkspacesImpl implements Workspaces { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings - ); + return this.listBySubscriptionPagingPage(options, settings); } }; } - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams, + private async *listBySubscriptionPagingPage( + options?: WorkspacesListBySubscriptionOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: WorkspacesListByResourceGroupResponse; + let result: WorkspacesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); + result = await this._listBySubscription(options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options - ); + result = await this._listBySubscriptionNext(continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -120,26 +113,24 @@ export class WorkspacesImpl implements Workspaces { } } - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + private async *listBySubscriptionPagingAll( + options?: WorkspacesListBySubscriptionOptionalParams ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options - )) { + for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; } } /** - * Lists all the available machine learning workspaces under the specified subscription. + * 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. */ - public listBySubscription( - options?: WorkspacesListBySubscriptionOptionalParams + public listByResourceGroup( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionPagingAll(options); + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { next() { return iter.next(); @@ -151,26 +142,35 @@ export class WorkspacesImpl implements Workspaces { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listBySubscriptionPagingPage(options, settings); + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); } }; } - private async *listBySubscriptionPagingPage( - options?: WorkspacesListBySubscriptionOptionalParams, + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: WorkspacesListBySubscriptionResponse; + let result: WorkspacesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listBySubscription(options); + result = await this._listByResourceGroup(resourceGroupName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -178,56 +178,64 @@ export class WorkspacesImpl implements Workspaces { } } - private async *listBySubscriptionPagingAll( - options?: WorkspacesListBySubscriptionOptionalParams + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: WorkspacesListByResourceGroupOptionalParams ): AsyncIterableIterator { - for await (const page of this.listBySubscriptionPagingPage(options)) { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { yield* page; } } /** - * Gets the properties of the specified machine learning workspace. + * Lists all the available machine learning workspaces under the specified subscription. + * @param options The options parameters. + */ + private _listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * 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 workspaceName Name of Azure Machine Learning workspace. * @param options The options parameters. */ - get( + private _listByResourceGroup( resourceGroupName: string, - workspaceName: string, - options?: WorkspacesGetOptionalParams - ): Promise { + options?: WorkspacesListByResourceGroupOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, options }, - getOperationSpec + { resourceGroupName, options }, + listByResourceGroupOperationSpec ); } /** - * Creates or updates a workspace with the specified parameters. + * 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 creating or updating a machine learning workspace. * @param options The options parameters. */ - async beginCreateOrUpdate( + async beginDelete( resourceGroupName: string, workspaceName: string, - parameters: Workspace, - options?: WorkspacesCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - WorkspacesCreateOrUpdateResponse - > - > { + options?: WorkspacesDeleteOptionalParams + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -260,13 +268,13 @@ export class WorkspacesImpl implements Workspaces { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -274,45 +282,66 @@ export class WorkspacesImpl implements Workspaces { } /** - * Creates or updates a workspace with the specified parameters. + * 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 creating or updating a machine learning workspace. * @param options The options parameters. */ - async beginCreateOrUpdateAndWait( + async beginDeleteAndWait( resourceGroupName: string, workspaceName: string, - parameters: Workspace, - options?: WorkspacesCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( + options?: WorkspacesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( resourceGroupName, workspaceName, - parameters, options ); return poller.pollUntilDone(); } /** - * Deletes a machine learning workspace. + * 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. */ - async beginDelete( + get( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams - ): Promise, void>> { + options?: WorkspacesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + getOperationSpec + ); + } + + /** + * 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 body The parameters for updating a machine learning workspace. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + workspaceName: string, + body: WorkspaceUpdateParameters, + options?: WorkspacesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspacesUpdateResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -345,13 +374,16 @@ export class WorkspacesImpl implements Workspaces { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + WorkspacesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -359,49 +391,52 @@ export class WorkspacesImpl implements Workspaces { } /** - * Deletes a machine learning workspace. + * 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 body The parameters for updating a machine learning workspace. * @param options The options parameters. */ - async beginDeleteAndWait( + async beginUpdateAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( + body: WorkspaceUpdateParameters, + options?: WorkspacesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( resourceGroupName, workspaceName, + body, options ); return poller.pollUntilDone(); } /** - * Updates a machine learning workspace with the specified parameters. + * 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 updating a machine learning workspace. + * @param body The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - async beginUpdate( + async beginCreateOrUpdate( resourceGroupName: string, workspaceName: string, - parameters: WorkspaceUpdateParameters, - options?: WorkspacesUpdateOptionalParams + body: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, - WorkspacesUpdateResponse + SimplePollerLike< + OperationState, + WorkspacesCreateOrUpdateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -434,56 +469,45 @@ export class WorkspacesImpl implements Workspaces { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, body, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + WorkspacesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" }); await poller.poll(); return poller; } /** - * Updates a machine learning workspace with the specified parameters. + * 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 updating a machine learning workspace. + * @param body The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - async beginUpdateAndWait( + async beginCreateOrUpdateAndWait( resourceGroupName: string, workspaceName: string, - parameters: WorkspaceUpdateParameters, - options?: WorkspacesUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( + body: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( resourceGroupName, workspaceName, - parameters, + body, options ); return poller.pollUntilDone(); } - /** - * 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. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec - ); - } - /** * Diagnose workspace setup issue. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -495,8 +519,8 @@ export class WorkspacesImpl implements Workspaces { workspaceName: string, options?: WorkspacesDiagnoseOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesDiagnoseResponse > > { @@ -506,7 +530,7 @@ export class WorkspacesImpl implements Workspaces { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -539,15 +563,18 @@ export class WorkspacesImpl implements Workspaces { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, options }, - diagnoseOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: diagnoseOperationSpec + }); + const poller = await createHttpPoller< + WorkspacesDiagnoseResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -574,7 +601,7 @@ export class WorkspacesImpl implements Workspaces { /** * Lists all the keys associated with this workspace. This includes keys for the storage account, app - * insights and password for container registry + * 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. @@ -591,121 +618,76 @@ export class WorkspacesImpl implements Workspaces { } /** - * Resync all the keys associated with this workspace. This includes keys for the storage account, app - * insights and password for container registry + * Get Azure Machine Learning Workspace notebook access 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. */ - async beginResyncKeys( + listNotebookAccessToken( 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, + options?: WorkspacesListNotebookAccessTokenOptionalParams + ): Promise { + return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - resyncKeysOperationSpec + listNotebookAccessTokenOperationSpec ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; } /** - * Resync all the keys associated with this workspace. This includes keys for the storage account, app - * insights and password for container registry + * Lists keys of Azure Machine Learning Workspaces 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. */ - async beginResyncKeysAndWait( + listNotebookKeys( resourceGroupName: string, workspaceName: string, - options?: WorkspacesResyncKeysOptionalParams - ): Promise { - const poller = await this.beginResyncKeys( - resourceGroupName, - workspaceName, - options + options?: WorkspacesListNotebookKeysOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listNotebookKeysOperationSpec ); - return poller.pollUntilDone(); } /** - * Lists all the available machine learning workspaces under the specified subscription. + * Lists keys of Azure Machine Learning Workspace's storage account. + * @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 _listBySubscription( - options?: WorkspacesListBySubscriptionOptionalParams - ): Promise { + listStorageAccountKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspacesListStorageAccountKeysOptionalParams + ): Promise { return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec + { resourceGroupName, workspaceName, options }, + listStorageAccountKeysOperationSpec ); } /** - * return notebook access token and refresh token + * 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. */ - listNotebookAccessToken( + listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, workspaceName: string, - options?: WorkspacesListNotebookAccessTokenOptionalParams - ): Promise { + options?: WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - listNotebookAccessTokenOperationSpec + listOutboundNetworkDependenciesEndpointsOperationSpec ); } /** - * Prepare a notebook. + * Prepare Azure Machine Learning Workspace's notebook resource * @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. @@ -715,8 +697,8 @@ export class WorkspacesImpl implements Workspaces { workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesPrepareNotebookResponse > > { @@ -726,7 +708,7 @@ export class WorkspacesImpl implements Workspaces { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -759,22 +741,25 @@ export class WorkspacesImpl implements Workspaces { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, workspaceName, options }, - prepareNotebookOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: prepareNotebookOperationSpec + }); + const poller = await createHttpPoller< + WorkspacesPrepareNotebookResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; } /** - * Prepare a notebook. + * Prepare Azure Machine Learning Workspace's notebook resource * @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. @@ -793,54 +778,102 @@ export class WorkspacesImpl implements Workspaces { } /** - * List storage account keys of a workspace. + * 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. */ - listStorageAccountKeys( + async beginResyncKeys( resourceGroupName: string, workspaceName: string, - options?: WorkspacesListStorageAccountKeysOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, options }, - listStorageAccountKeysOperationSpec - ); + options?: WorkspacesResyncKeysOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = 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 = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, workspaceName, options }, + spec: resyncKeysOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; } /** - * List keys of a notebook. + * 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. */ - listNotebookKeys( + async beginResyncKeysAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspacesListNotebookKeysOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, options }, - listNotebookKeysOperationSpec + options?: WorkspacesResyncKeysOptionalParams + ): Promise { + const poller = await this.beginResyncKeys( + resourceGroupName, + workspaceName, + options ); + return poller.pollUntilDone(); } /** - * 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. + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. * @param options The options parameters. */ - listOutboundNetworkDependenciesEndpoints( - resourceGroupName: string, - workspaceName: string, - options?: WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams - ): Promise { + private _listBySubscriptionNext( + nextLink: string, + options?: WorkspacesListBySubscriptionNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, workspaceName, options }, - listOutboundNetworkDependenciesEndpointsOperationSpec + { nextLink, options }, + listBySubscriptionNextOperationSpec ); } @@ -860,78 +893,46 @@ export class WorkspacesImpl implements Workspaces { listByResourceGroupNextOperationSpec ); } - - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext( - nextLink: string, - options?: WorkspacesListBySubscriptionNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getOperationSpec: coreClient.OperationSpec = { +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.WorkspaceListResult }, default: { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName - ], + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.kind], + urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer }; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", - httpMethod: "PUT", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Workspace - }, - 201: { - bodyMapper: Mappers.Workspace - }, - 202: { - bodyMapper: Mappers.Workspace - }, - 204: { - bodyMapper: Mappers.Workspace + bodyMapper: Mappers.WorkspaceListResult }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.skip, Parameters.kind], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.workspaceName + Parameters.resourceGroupName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; const deleteOperationSpec: coreClient.OperationSpec = { @@ -947,6 +948,28 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, + queryParameters: [Parameters.apiVersion, Parameters.forceToPurge], + 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}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.Workspace + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -978,7 +1001,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters1, + requestBody: Parameters.body40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -990,25 +1013,37 @@ const updateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}", + httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.WorkspaceListResult + bodyMapper: Mappers.Workspace + }, + 201: { + bodyMapper: Mappers.Workspace + }, + 202: { + bodyMapper: Mappers.Workspace + }, + 204: { + bodyMapper: Mappers.Workspace }, default: { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip], + requestBody: Parameters.body41, + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, + Parameters.workspaceName ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const diagnoseOperationSpec: coreClient.OperationSpec = { @@ -1032,7 +1067,7 @@ const diagnoseOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters2, + requestBody: Parameters.body42, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1066,15 +1101,14 @@ const listKeysOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const resyncKeysOperationSpec: coreClient.OperationSpec = { +const listNotebookAccessTokenOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken", httpMethod: "POST", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.NotebookAccessTokenResult + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -1089,30 +1123,13 @@ const resyncKeysOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.WorkspaceListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion, Parameters.skip], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listNotebookAccessTokenOperationSpec: coreClient.OperationSpec = { +const listNotebookKeysOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NotebookAccessTokenResult + bodyMapper: Mappers.ListNotebookKeysResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -1128,22 +1145,13 @@ const listNotebookAccessTokenOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const prepareNotebookOperationSpec: coreClient.OperationSpec = { +const listStorageAccountKeysOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.NotebookResourceInfo - }, - 201: { - bodyMapper: Mappers.NotebookResourceInfo - }, - 202: { - bodyMapper: Mappers.NotebookResourceInfo - }, - 204: { - bodyMapper: Mappers.NotebookResourceInfo + bodyMapper: Mappers.ListStorageAccountKeysResult }, default: { bodyMapper: Mappers.ErrorResponse @@ -1159,13 +1167,13 @@ const prepareNotebookOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listStorageAccountKeysOperationSpec: coreClient.OperationSpec = { +const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys", - httpMethod: "POST", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints", + httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListStorageAccountKeysResult + bodyMapper: Mappers.ExternalFqdnResponse }, default: { bodyMapper: Mappers.ErrorResponse @@ -1181,13 +1189,22 @@ const listStorageAccountKeysOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listNotebookKeysOperationSpec: coreClient.OperationSpec = { +const prepareNotebookOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/prepareNotebook", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ListNotebookKeysResult + bodyMapper: Mappers.NotebookResourceInfo + }, + 201: { + bodyMapper: Mappers.NotebookResourceInfo + }, + 202: { + bodyMapper: Mappers.NotebookResourceInfo + }, + 204: { + bodyMapper: Mappers.NotebookResourceInfo }, default: { bodyMapper: Mappers.ErrorResponse @@ -1203,14 +1220,15 @@ const listNotebookKeysOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = { +const resyncKeysOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints", - httpMethod: "GET", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/resyncKeys", + httpMethod: "POST", responses: { - 200: { - bodyMapper: Mappers.ExternalFqdnResponse - }, + 200: {}, + 201: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -1225,7 +1243,7 @@ const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.Operatio headerParameters: [Parameters.accept], serializer }; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1236,17 +1254,15 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, Parameters.nextLink ], headerParameters: [Parameters.accept], serializer }; -const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1257,11 +1273,11 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion, Parameters.skip], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, + Parameters.resourceGroupName ], headerParameters: [Parameters.accept], serializer diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts index 751f730b1a54..0decb41295c6 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchDeployments.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { BatchDeployment, BatchDeploymentsListOptionalParams, @@ -51,7 +51,7 @@ export interface BatchDeployments { endpointName: string, deploymentName: string, options?: BatchDeploymentsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete Batch Inference deployment (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -99,8 +99,8 @@ export interface BatchDeployments { body: PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties, options?: BatchDeploymentsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchDeploymentsUpdateResponse > >; @@ -138,8 +138,8 @@ export interface BatchDeployments { body: BatchDeployment, options?: BatchDeploymentsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchDeploymentsCreateOrUpdateResponse > >; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts index 6b64fdacf732..a1f9d8279a85 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/batchEndpoints.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { BatchEndpoint, BatchEndpointsListOptionalParams, @@ -49,7 +49,7 @@ export interface BatchEndpoints { workspaceName: string, endpointName: string, options?: BatchEndpointsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete Batch Inference Endpoint (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -91,8 +91,8 @@ export interface BatchEndpoints { body: PartialMinimalTrackedResourceWithIdentity, options?: BatchEndpointsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchEndpointsUpdateResponse > >; @@ -126,8 +126,8 @@ export interface BatchEndpoints { body: BatchEndpoint, options?: BatchEndpointsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, BatchEndpointsCreateOrUpdateResponse > >; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts index 4d6f4f26c7de..6f3c3310a1c7 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/codeVersions.ts @@ -14,7 +14,10 @@ import { CodeVersionsGetOptionalParams, CodeVersionsGetResponse, CodeVersionsCreateOrUpdateOptionalParams, - CodeVersionsCreateOrUpdateResponse + CodeVersionsCreateOrUpdateResponse, + PendingUploadRequestDto, + CodeVersionsCreateOrGetStartPendingUploadOptionalParams, + CodeVersionsCreateOrGetStartPendingUploadResponse } from "../models"; /// @@ -80,4 +83,21 @@ export interface CodeVersions { body: CodeVersion, options?: CodeVersionsCreateOrUpdateOptionalParams ): Promise; + /** + * Generate a storage location and credential for the client to upload a code asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: PendingUploadRequestDto, + options?: CodeVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts index 630c4eee8be1..f32fda9cd505 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/computeOperations.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ComputeResource, ComputeListOptionalParams, @@ -22,11 +22,20 @@ import { ComputeUpdateResponse, UnderlyingResourceAction, ComputeDeleteOptionalParams, + CustomService, + ComputeUpdateCustomServicesOptionalParams, ComputeListKeysOptionalParams, ComputeListKeysResponse, ComputeStartOptionalParams, ComputeStopOptionalParams, - ComputeRestartOptionalParams + ComputeRestartOptionalParams, + IdleShutdownSetting, + ComputeUpdateIdleShutdownSettingOptionalParams, + ComputeGetAllowedResizeSizesOptionalParams, + ComputeGetAllowedResizeSizesResponse, + ResizeSchema, + ComputeResizeOptionalParams, + ComputeResizeResponse } from "../models"; /// @@ -87,8 +96,8 @@ export interface ComputeOperations { parameters: ComputeResource, options?: ComputeCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, ComputeCreateOrUpdateResponse > >; @@ -125,7 +134,10 @@ export interface ComputeOperations { parameters: ClusterUpdateParameters, options?: ComputeUpdateOptionalParams ): Promise< - PollerLike, ComputeUpdateResponse> + SimplePollerLike< + OperationState, + ComputeUpdateResponse + > >; /** * Updates properties of a compute. This call will overwrite a compute if it exists. This is a @@ -158,7 +170,7 @@ export interface ComputeOperations { computeName: string, underlyingResourceAction: UnderlyingResourceAction, options?: ComputeDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes specified Machine Learning compute. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -175,6 +187,21 @@ export interface ComputeOperations { underlyingResourceAction: UnderlyingResourceAction, options?: ComputeDeleteOptionalParams ): Promise; + /** + * Updates the custom services list. The list of custom services provided shall be overwritten + * @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 customServices New list of Custom Services. + * @param options The options parameters. + */ + updateCustomServices( + resourceGroupName: string, + workspaceName: string, + computeName: string, + customServices: CustomService[], + options?: ComputeUpdateCustomServicesOptionalParams + ): 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. @@ -200,7 +227,7 @@ export interface ComputeOperations { workspaceName: string, computeName: string, options?: ComputeStartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Posts a start action to a compute instance * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -226,7 +253,7 @@ export interface ComputeOperations { workspaceName: string, computeName: string, options?: ComputeStopOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Posts a stop action to a compute instance * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -252,7 +279,7 @@ export interface ComputeOperations { workspaceName: string, computeName: string, options?: ComputeRestartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Posts a restart action to a compute instance * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -266,4 +293,67 @@ export interface ComputeOperations { computeName: string, options?: ComputeRestartOptionalParams ): Promise; + /** + * Updates the idle shutdown setting of 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 parameters The object for updating idle shutdown setting of specified ComputeInstance. + * @param options The options parameters. + */ + updateIdleShutdownSetting( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: IdleShutdownSetting, + options?: ComputeUpdateIdleShutdownSettingOptionalParams + ): Promise; + /** + * Returns supported virtual machine sizes for resize + * @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. + */ + getAllowedResizeSizes( + resourceGroupName: string, + workspaceName: string, + computeName: string, + options?: ComputeGetAllowedResizeSizesOptionalParams + ): Promise; + /** + * Updates the size of 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 parameters The object for updating VM size setting of specified Compute Instance. + * @param options The options parameters. + */ + beginResize( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ResizeSchema, + options?: ComputeResizeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ComputeResizeResponse + > + >; + /** + * Updates the size of 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 parameters The object for updating VM size setting of specified Compute Instance. + * @param options The options parameters. + */ + beginResizeAndWait( + resourceGroupName: string, + workspaceName: string, + computeName: string, + parameters: ResizeSchema, + options?: ComputeResizeOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/features.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/features.ts new file mode 100644 index 000000000000..9d0261041527 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/features.ts @@ -0,0 +1,52 @@ +/* + * 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 { + Feature, + FeaturesListOptionalParams, + FeaturesGetOptionalParams, + FeaturesGetResponse +} from "../models"; + +/// +/** Interface representing a Features. */ +export interface Features { + /** + * List Features. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param featuresetName Featureset name. This is case-sensitive. + * @param featuresetVersion Featureset Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + options?: FeaturesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get feature. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param featuresetName Feature set name. This is case-sensitive. + * @param featuresetVersion Feature set version identifier. This is case-sensitive. + * @param featureName Feature Name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + featuresetName: string, + featuresetVersion: string, + featureName: string, + options?: FeaturesGetOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetContainers.ts new file mode 100644 index 000000000000..d78338e0ace3 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetContainers.ts @@ -0,0 +1,109 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + FeaturesetContainer, + FeaturesetContainersListOptionalParams, + FeaturesetContainersDeleteOptionalParams, + FeaturesetContainersGetEntityOptionalParams, + FeaturesetContainersGetEntityResponse, + FeaturesetContainersCreateOrUpdateOptionalParams, + FeaturesetContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a FeaturesetContainers. */ +export interface FeaturesetContainers { + /** + * List featurestore entity containers. + * @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?: FeaturesetContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetContainersDeleteOptionalParams + ): Promise, void>>; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + getEntity( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetContainersGetEntityOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturesetContainer, + options?: FeaturesetContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturesetContainersCreateOrUpdateResponse + > + >; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturesetContainer, + options?: FeaturesetContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetVersions.ts new file mode 100644 index 000000000000..95ec017080bb --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featuresetVersions.ts @@ -0,0 +1,163 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + FeaturesetVersion, + FeaturesetVersionsListOptionalParams, + FeaturesetVersionsDeleteOptionalParams, + FeaturesetVersionsGetOptionalParams, + FeaturesetVersionsGetResponse, + FeaturesetVersionsCreateOrUpdateOptionalParams, + FeaturesetVersionsCreateOrUpdateResponse, + FeaturesetVersionBackfillRequest, + FeaturesetVersionsBackfillOptionalParams, + FeaturesetVersionsBackfillResponse +} from "../models"; + +/// +/** Interface representing a FeaturesetVersions. */ +export interface FeaturesetVersions { + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Featureset name. This is case-sensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturesetVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturesetVersionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturesetVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturesetVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersion, + options?: FeaturesetVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturesetVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersion, + options?: FeaturesetVersionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Backfill. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Feature set version backfill request entity. + * @param options The options parameters. + */ + beginBackfill( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersionBackfillRequest, + options?: FeaturesetVersionsBackfillOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturesetVersionsBackfillResponse + > + >; + /** + * Backfill. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Feature set version backfill request entity. + * @param options The options parameters. + */ + beginBackfillAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturesetVersionBackfillRequest, + options?: FeaturesetVersionsBackfillOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityContainers.ts new file mode 100644 index 000000000000..05da334c8925 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityContainers.ts @@ -0,0 +1,109 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + FeaturestoreEntityContainer, + FeaturestoreEntityContainersListOptionalParams, + FeaturestoreEntityContainersDeleteOptionalParams, + FeaturestoreEntityContainersGetEntityOptionalParams, + FeaturestoreEntityContainersGetEntityResponse, + FeaturestoreEntityContainersCreateOrUpdateOptionalParams, + FeaturestoreEntityContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a FeaturestoreEntityContainers. */ +export interface FeaturestoreEntityContainers { + /** + * List featurestore entity containers. + * @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?: FeaturestoreEntityContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityContainersDeleteOptionalParams + ): Promise, void>>; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param options The options parameters. + */ + getEntity( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityContainersGetEntityOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturestoreEntityContainer, + options?: FeaturestoreEntityContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturestoreEntityContainersCreateOrUpdateResponse + > + >; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: FeaturestoreEntityContainer, + options?: FeaturestoreEntityContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityVersions.ts new file mode 100644 index 000000000000..5d650958b7f7 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/featurestoreEntityVersions.ts @@ -0,0 +1,121 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + FeaturestoreEntityVersion, + FeaturestoreEntityVersionsListOptionalParams, + FeaturestoreEntityVersionsDeleteOptionalParams, + FeaturestoreEntityVersionsGetOptionalParams, + FeaturestoreEntityVersionsGetResponse, + FeaturestoreEntityVersionsCreateOrUpdateOptionalParams, + FeaturestoreEntityVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a FeaturestoreEntityVersions. */ +export interface FeaturestoreEntityVersions { + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Feature entity name. This is case-sensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: FeaturestoreEntityVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturestoreEntityVersionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturestoreEntityVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + options?: FeaturestoreEntityVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturestoreEntityVersion, + options?: FeaturestoreEntityVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + FeaturestoreEntityVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: FeaturestoreEntityVersion, + options?: FeaturestoreEntityVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts index 5c0eba4f45e0..9f8828809012 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/index.ts @@ -6,15 +6,20 @@ * 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 "./registryCodeContainers"; +export * from "./registryCodeVersions"; +export * from "./registryComponentContainers"; +export * from "./registryComponentVersions"; +export * from "./registryDataContainers"; +export * from "./registryDataVersions"; +export * from "./registryEnvironmentContainers"; +export * from "./registryEnvironmentVersions"; +export * from "./registryModelContainers"; +export * from "./registryModelVersions"; export * from "./batchEndpoints"; export * from "./batchDeployments"; export * from "./codeContainers"; @@ -26,10 +31,28 @@ export * from "./dataVersions"; export * from "./datastores"; export * from "./environmentContainers"; export * from "./environmentVersions"; +export * from "./featuresetContainers"; +export * from "./features"; +export * from "./featuresetVersions"; +export * from "./featurestoreEntityContainers"; +export * from "./featurestoreEntityVersions"; +export * from "./inferencePools"; +export * from "./inferenceGroups"; +export * from "./inferenceEndpoints"; export * from "./jobs"; +export * from "./labelingJobs"; export * from "./modelContainers"; export * from "./modelVersions"; export * from "./onlineEndpoints"; export * from "./onlineDeployments"; export * from "./schedules"; +export * from "./serverlessEndpoints"; +export * from "./registries"; export * from "./workspaceFeatures"; +export * from "./operations"; +export * from "./workspaces"; +export * from "./workspaceConnections"; +export * from "./managedNetworkSettingsRule"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; +export * from "./managedNetworkProvisions"; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/inferenceEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/inferenceEndpoints.ts new file mode 100644 index 000000000000..c7ddd337ffc3 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/inferenceEndpoints.ts @@ -0,0 +1,178 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + InferenceEndpointMinimalTrackedResource, + InferenceEndpointsListOptionalParams, + InferenceEndpointsDeleteOptionalParams, + InferenceEndpointsGetOptionalParams, + InferenceEndpointsGetResponse, + InferenceEndpointsUpdateOptionalParams, + InferenceEndpointsUpdateResponse, + InferenceEndpointsCreateOrUpdateOptionalParams, + InferenceEndpointsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a InferenceEndpoints. */ +export interface InferenceEndpoints { + /** + * List Inference Endpoints. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName Name of the InferencePool. + * @param groupName InferenceGroup name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + options?: InferenceEndpointsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete InferenceEndpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param groupName InferenceGroup name. + * @param name InferenceEndpoint name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + name: string, + options?: InferenceEndpointsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete InferenceEndpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param groupName InferenceGroup name. + * @param name InferenceEndpoint name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + name: string, + options?: InferenceEndpointsDeleteOptionalParams + ): Promise; + /** + * Get InferenceEndpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param groupName InferenceGroup name. + * @param name InferenceEndpoint name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + name: string, + options?: InferenceEndpointsGetOptionalParams + ): Promise; + /** + * Update InferenceEndpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param groupName InferenceGroup name. + * @param name InferenceEndpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + name: string, + body: any, + options?: InferenceEndpointsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InferenceEndpointsUpdateResponse + > + >; + /** + * Update InferenceEndpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param groupName InferenceGroup name. + * @param name InferenceEndpoint name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + name: string, + body: any, + options?: InferenceEndpointsUpdateOptionalParams + ): Promise; + /** + * Create or update InferenceEndpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param groupName InferenceGroup name. + * @param name InferenceEndpoint name. + * @param body InferenceEndpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + name: string, + body: InferenceEndpointMinimalTrackedResource, + options?: InferenceEndpointsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InferenceEndpointsCreateOrUpdateResponse + > + >; + /** + * Create or update InferenceEndpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param groupName InferenceGroup name. + * @param name InferenceEndpoint name. + * @param body InferenceEndpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + groupName: string, + name: string, + body: InferenceEndpointMinimalTrackedResource, + options?: InferenceEndpointsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/inferenceGroups.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/inferenceGroups.ts new file mode 100644 index 000000000000..24948e4de13f --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/inferenceGroups.ts @@ -0,0 +1,197 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + InferenceGroupMinimalTrackedResourceWithSku, + InferenceGroupsListOptionalParams, + SkuResource, + InferenceGroupsListSkusOptionalParams, + InferenceGroupsDeleteOptionalParams, + InferenceGroupsGetOptionalParams, + InferenceGroupsGetResponse, + PartialMinimalTrackedResourceWithSku, + InferenceGroupsUpdateOptionalParams, + InferenceGroupsUpdateResponse, + InferenceGroupsCreateOrUpdateOptionalParams, + InferenceGroupsCreateOrUpdateResponse, + InferenceGroupsGetStatusOptionalParams, + InferenceGroupsGetStatusResponse +} from "../models"; + +/// +/** Interface representing a InferenceGroups. */ +export interface InferenceGroups { + /** + * List Inference Groups. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName Name of the InferencePool. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + workspaceName: string, + poolName: string, + options?: InferenceGroupsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * List Inference Group Skus. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName Inference Pool name. + * @param name Inference Group name. + * @param options The options parameters. + */ + listSkus( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + options?: InferenceGroupsListSkusOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete InferenceGroup (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + options?: InferenceGroupsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete InferenceGroup (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + options?: InferenceGroupsDeleteOptionalParams + ): Promise; + /** + * Get InferenceGroup. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + options?: InferenceGroupsGetOptionalParams + ): Promise; + /** + * Update InferenceGroup (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + body: PartialMinimalTrackedResourceWithSku, + options?: InferenceGroupsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InferenceGroupsUpdateResponse + > + >; + /** + * Update InferenceGroup (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param body Online Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + body: PartialMinimalTrackedResourceWithSku, + options?: InferenceGroupsUpdateOptionalParams + ): Promise; + /** + * Create or update InferenceGroup (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param body InferenceGroup entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + body: InferenceGroupMinimalTrackedResourceWithSku, + options?: InferenceGroupsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InferenceGroupsCreateOrUpdateResponse + > + >; + /** + * Create or update InferenceGroup (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param body InferenceGroup entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + body: InferenceGroupMinimalTrackedResourceWithSku, + options?: InferenceGroupsCreateOrUpdateOptionalParams + ): Promise; + /** + * Retrieve inference group status. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param poolName InferencePool name. + * @param name InferenceGroup name. + * @param options The options parameters. + */ + getStatus( + resourceGroupName: string, + workspaceName: string, + poolName: string, + name: string, + options?: InferenceGroupsGetStatusOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/inferencePools.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/inferencePools.ts new file mode 100644 index 000000000000..0843f0a9dd4a --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/inferencePools.ts @@ -0,0 +1,177 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + InferencePool, + InferencePoolsListOptionalParams, + SkuResource, + InferencePoolsListSkusOptionalParams, + InferencePoolsDeleteOptionalParams, + InferencePoolsGetOptionalParams, + InferencePoolsGetResponse, + PartialMinimalTrackedResourceWithSkuAndIdentity, + InferencePoolsUpdateOptionalParams, + InferencePoolsUpdateResponse, + InferencePoolsCreateOrUpdateOptionalParams, + InferencePoolsCreateOrUpdateResponse, + InferencePoolsGetStatusOptionalParams, + InferencePoolsGetStatusResponse +} from "../models"; + +/// +/** Interface representing a InferencePools. */ +export interface InferencePools { + /** + * List InferencePools. + * @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?: InferencePoolsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * List Inference Pool Skus. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Inference Group name. + * @param options The options parameters. + */ + listSkus( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: InferencePoolsListSkusOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete InferencePool (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: InferencePoolsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete InferencePool (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: InferencePoolsDeleteOptionalParams + ): Promise; + /** + * Get InferencePool. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: InferencePoolsGetOptionalParams + ): Promise; + /** + * Update InferencePool (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param body Inference Pool entity to apply during operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: InferencePoolsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InferencePoolsUpdateResponse + > + >; + /** + * Update InferencePool (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param body Inference Pool entity to apply during operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: InferencePoolsUpdateOptionalParams + ): Promise; + /** + * Create or update InferencePool (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param body InferencePool entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: InferencePool, + options?: InferencePoolsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InferencePoolsCreateOrUpdateResponse + > + >; + /** + * Create or update InferencePool (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param body InferencePool entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: InferencePool, + options?: InferencePoolsCreateOrUpdateOptionalParams + ): Promise; + /** + * Retrieve inference pool status. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name InferencePool name. + * @param options The options parameters. + */ + getStatus( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: InferencePoolsGetStatusOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts index f86e352d466f..5baef8bb2021 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/jobs.ts @@ -7,13 +7,16 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { JobBase, JobsListOptionalParams, JobsDeleteOptionalParams, JobsGetOptionalParams, JobsGetResponse, + PartialJobBasePartialResource, + JobsUpdateOptionalParams, + JobsUpdateResponse, JobsCreateOrUpdateOptionalParams, JobsCreateOrUpdateResponse, JobsCancelOptionalParams @@ -45,7 +48,7 @@ export interface Jobs { workspaceName: string, id: string, options?: JobsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Deletes a Job (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -72,6 +75,21 @@ export interface Jobs { id: string, options?: JobsGetOptionalParams ): Promise; + /** + * Updates a Job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the Job. This is case-sensitive. + * @param body Job definition to apply during the operation. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + workspaceName: string, + id: string, + body: PartialJobBasePartialResource, + options?: JobsUpdateOptionalParams + ): Promise; /** * Creates and executes a Job. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -99,7 +117,7 @@ export interface Jobs { workspaceName: string, id: string, options?: JobsCancelOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Cancels a Job (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/labelingJobs.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/labelingJobs.ts new file mode 100644 index 000000000000..58ddd511d4c3 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/labelingJobs.ts @@ -0,0 +1,184 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + LabelingJob, + LabelingJobsListOptionalParams, + LabelingJobsDeleteOptionalParams, + LabelingJobsGetOptionalParams, + LabelingJobsGetResponse, + LabelingJobsCreateOrUpdateOptionalParams, + LabelingJobsCreateOrUpdateResponse, + ExportSummaryUnion, + LabelingJobsExportLabelsOptionalParams, + LabelingJobsExportLabelsResponse, + LabelingJobsPauseOptionalParams, + LabelingJobsPauseResponse, + LabelingJobsResumeOptionalParams, + LabelingJobsResumeResponse +} from "../models"; + +/// +/** Interface representing a LabelingJobs. */ +export interface LabelingJobs { + /** + * Lists labeling jobs in 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?: LabelingJobsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete a labeling job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsDeleteOptionalParams + ): Promise; + /** + * Gets a labeling job by name/id. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsGetOptionalParams + ): Promise; + /** + * Creates or updates a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body LabelingJob definition object. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + id: string, + body: LabelingJob, + options?: LabelingJobsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LabelingJobsCreateOrUpdateResponse + > + >; + /** + * Creates or updates a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body LabelingJob definition object. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + body: LabelingJob, + options?: LabelingJobsCreateOrUpdateOptionalParams + ): Promise; + /** + * Export labels from a labeling job (asynchronous). Using the URL in the Location header, the status + * of the job export operation can be tracked. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body The export summary. + * @param options The options parameters. + */ + beginExportLabels( + resourceGroupName: string, + workspaceName: string, + id: string, + body: ExportSummaryUnion, + options?: LabelingJobsExportLabelsOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LabelingJobsExportLabelsResponse + > + >; + /** + * Export labels from a labeling job (asynchronous). Using the URL in the Location header, the status + * of the job export operation can be tracked. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param body The export summary. + * @param options The options parameters. + */ + beginExportLabelsAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + body: ExportSummaryUnion, + options?: LabelingJobsExportLabelsOptionalParams + ): Promise; + /** + * Pause a labeling job. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + pause( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsPauseOptionalParams + ): Promise; + /** + * Resume a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + beginResume( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsResumeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + LabelingJobsResumeResponse + > + >; + /** + * Resume a labeling job (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param id The name and identifier for the LabelingJob. + * @param options The options parameters. + */ + beginResumeAndWait( + resourceGroupName: string, + workspaceName: string, + id: string, + options?: LabelingJobsResumeOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkProvisions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkProvisions.ts new file mode 100644 index 000000000000..782614ab8c31 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkProvisions.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams, + ManagedNetworkProvisionsProvisionManagedNetworkResponse +} from "../models"; + +/** Interface representing a ManagedNetworkProvisions. */ +export interface ManagedNetworkProvisions { + /** + * Provisions the managed network of 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. + */ + beginProvisionManagedNetwork( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedNetworkProvisionsProvisionManagedNetworkResponse + > + >; + /** + * Provisions the managed network of 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. + */ + beginProvisionManagedNetworkAndWait( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkProvisionsProvisionManagedNetworkOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkSettingsRule.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkSettingsRule.ts new file mode 100644 index 000000000000..fe7addd3effb --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/managedNetworkSettingsRule.ts @@ -0,0 +1,111 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + OutboundRuleBasicResource, + ManagedNetworkSettingsRuleListOptionalParams, + ManagedNetworkSettingsRuleDeleteOptionalParams, + ManagedNetworkSettingsRuleGetOptionalParams, + ManagedNetworkSettingsRuleGetResponse, + ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams, + ManagedNetworkSettingsRuleCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a ManagedNetworkSettingsRule. */ +export interface ManagedNetworkSettingsRule { + /** + * Lists the managed network outbound rules for 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. + */ + list( + resourceGroupName: string, + workspaceName: string, + options?: ManagedNetworkSettingsRuleListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Deletes an outbound rule from the managed network of 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 ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes an outbound rule from the managed network of 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 ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleDeleteOptionalParams + ): Promise; + /** + * Gets an outbound rule from the managed network of 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 ruleName Name of the workspace managed network outbound rule + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + options?: ManagedNetworkSettingsRuleGetOptionalParams + ): Promise; + /** + * Creates or updates an outbound rule in the managed network of 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 ruleName Name of the workspace managed network outbound rule + * @param body Outbound Rule to be created or updated in the managed network of a machine learning + * workspace. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + body: OutboundRuleBasicResource, + options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ManagedNetworkSettingsRuleCreateOrUpdateResponse + > + >; + /** + * Creates or updates an outbound rule in the managed network of 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 ruleName Name of the workspace managed network outbound rule + * @param body Outbound Rule to be created or updated in the managed network of a machine learning + * workspace. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + ruleName: string, + body: OutboundRuleBasicResource, + options?: ManagedNetworkSettingsRuleCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelVersions.ts index 14cf3f6fa73c..a6735a26a7b9 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelVersions.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/modelVersions.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ModelVersion, ModelVersionsListOptionalParams, @@ -14,7 +15,10 @@ import { ModelVersionsGetOptionalParams, ModelVersionsGetResponse, ModelVersionsCreateOrUpdateOptionalParams, - ModelVersionsCreateOrUpdateResponse + ModelVersionsCreateOrUpdateResponse, + PackageRequest, + ModelVersionsPackageOptionalParams, + ModelVersionsPackageResponse } from "../models"; /// @@ -80,4 +84,43 @@ export interface ModelVersions { body: ModelVersion, options?: ModelVersionsCreateOrUpdateOptionalParams ): Promise; + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + beginPackage( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: PackageRequest, + options?: ModelVersionsPackageOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ModelVersionsPackageResponse + > + >; + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + beginPackageAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + version: string, + body: PackageRequest, + options?: ModelVersionsPackageOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineDeployments.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineDeployments.ts index 39d986af8bee..14b14b4cf456 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineDeployments.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineDeployments.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { OnlineDeployment, OnlineDeploymentsListOptionalParams, @@ -71,7 +71,7 @@ export interface OnlineDeployments { endpointName: string, deploymentName: string, options?: OnlineDeploymentsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete Inference Endpoint Deployment (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -119,8 +119,8 @@ export interface OnlineDeployments { body: PartialMinimalTrackedResourceWithSku, options?: OnlineDeploymentsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineDeploymentsUpdateResponse > >; @@ -158,8 +158,8 @@ export interface OnlineDeployments { body: OnlineDeployment, options?: OnlineDeploymentsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineDeploymentsCreateOrUpdateResponse > >; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineEndpoints.ts index 20dac39f279f..76da5136b30a 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineEndpoints.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/onlineEndpoints.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { OnlineEndpoint, OnlineEndpointsListOptionalParams, @@ -53,7 +53,7 @@ export interface OnlineEndpoints { workspaceName: string, endpointName: string, options?: OnlineEndpointsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete Online Endpoint (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -95,8 +95,8 @@ export interface OnlineEndpoints { body: PartialMinimalTrackedResourceWithIdentity, options?: OnlineEndpointsUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineEndpointsUpdateResponse > >; @@ -130,8 +130,8 @@ export interface OnlineEndpoints { body: OnlineEndpoint, options?: OnlineEndpointsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, OnlineEndpointsCreateOrUpdateResponse > >; @@ -177,7 +177,7 @@ export interface OnlineEndpoints { endpointName: string, body: RegenerateEndpointKeysRequest, options?: OnlineEndpointsRegenerateKeysOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -194,7 +194,7 @@ export interface OnlineEndpoints { options?: OnlineEndpointsRegenerateKeysOptionalParams ): Promise; /** - * Retrieve a valid AAD token for an Endpoint using AMLToken-based authentication. + * Retrieve a valid AML token for an Endpoint using AMLToken-based authentication. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName Name of Azure Machine Learning workspace. * @param endpointName Online Endpoint name. diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/operations.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/operations.ts index b36bbe2a8d98..ff15652cb3a2 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/operations.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/operations.ts @@ -13,7 +13,7 @@ import { AmlOperation, OperationsListOptionalParams } from "../models"; /** Interface representing a Operations. */ export interface Operations { /** - * Lists all of the available Azure Machine Learning Workspaces REST API operations. + * Lists all of the available Azure Machine Learning Workspaces REST API operations * @param options The options parameters. */ list( diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts index e36e60ff73cb..e77c1f236623 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateEndpointConnections.ts @@ -10,18 +10,18 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PrivateEndpointConnection, PrivateEndpointConnectionsListOptionalParams, + PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, - PrivateEndpointConnectionsCreateOrUpdateResponse, - PrivateEndpointConnectionsDeleteOptionalParams + PrivateEndpointConnectionsCreateOrUpdateResponse } from "../models"; /// /** Interface representing a PrivateEndpointConnections. */ export interface PrivateEndpointConnections { /** - * List all the private endpoint connections associated with the workspace. + * Called by end-users to get all PE connections. * @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. @@ -32,47 +32,45 @@ export interface PrivateEndpointConnections { options?: PrivateEndpointConnectionsListOptionalParams ): PagedAsyncIterableIterator; /** - * Gets the specified private endpoint connection associated with the workspace. + * Called by end-users to delete a PE connection. * @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 NRP Private Endpoint Connection Name * @param options The options parameters. */ - get( + delete( resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsGetOptionalParams - ): Promise; + options?: PrivateEndpointConnectionsDeleteOptionalParams + ): Promise; /** - * Update the state of specified private endpoint connection associated with the workspace. + * Called by end-users to get a PE connection. * @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 privateEndpointConnectionName NRP Private Endpoint Connection Name * @param options The options parameters. */ - createOrUpdate( + get( resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - properties: PrivateEndpointConnection, - options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams - ): Promise; + options?: PrivateEndpointConnectionsGetOptionalParams + ): Promise; /** - * Deletes the specified private endpoint connection associated with the workspace. + * Called by end-users to approve or reject a PE connection. + * This method must validate and forward the call to NRP. * @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 NRP Private Endpoint Connection Name + * @param body PrivateEndpointConnection object * @param options The options parameters. */ - delete( + createOrUpdate( resourceGroupName: string, workspaceName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionsDeleteOptionalParams - ): Promise; + body: PrivateEndpointConnection, + options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateLinkResources.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateLinkResources.ts index 9297407ea513..e39fc867683f 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateLinkResources.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/privateLinkResources.ts @@ -6,15 +6,22 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { - PrivateLinkResourcesListOptionalParams, - PrivateLinkResourcesListResponse + PrivateLinkResource, + PrivateLinkResourcesListOptionalParams } from "../models"; +/// /** Interface representing a PrivateLinkResources. */ export interface PrivateLinkResources { /** - * Gets the private link resources that need to be created for a workspace. + * Called by Client (Portal, CLI, etc) to get available "private link resources" for the workspace. + * Each "private link resource" is a connection endpoint (IP address) to the resource. + * Pre single connection endpoint per workspace: the Data Plane IP address, returned by DNS resolution. + * + * Other RPs, such as Azure Storage, have multiple - one for Blobs, other for Queues, etc. + * Defined in the "[NRP] Private Endpoint Design" doc, topic "GET API for GroupIds". * @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. @@ -23,5 +30,5 @@ export interface PrivateLinkResources { resourceGroupName: string, workspaceName: string, options?: PrivateLinkResourcesListOptionalParams - ): Promise; + ): PagedAsyncIterableIterator; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registries.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registries.ts new file mode 100644 index 000000000000..f9ffd30f865a --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registries.ts @@ -0,0 +1,154 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + Registry, + RegistriesListBySubscriptionOptionalParams, + RegistriesListOptionalParams, + RegistriesDeleteOptionalParams, + RegistriesGetOptionalParams, + RegistriesGetResponse, + PartialRegistryPartialTrackedResource, + RegistriesUpdateOptionalParams, + RegistriesUpdateResponse, + RegistriesCreateOrUpdateOptionalParams, + RegistriesCreateOrUpdateResponse, + RegistriesRemoveRegionsOptionalParams, + RegistriesRemoveRegionsResponse +} from "../models"; + +/// +/** Interface representing a Registries. */ +export interface Registries { + /** + * List registries by subscription + * @param options The options parameters. + */ + listBySubscription( + options?: RegistriesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * List registries + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + options?: RegistriesListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + options?: RegistriesDeleteOptionalParams + ): Promise, void>>; + /** + * Delete registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + options?: RegistriesDeleteOptionalParams + ): Promise; + /** + * Get registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + options?: RegistriesGetOptionalParams + ): Promise; + /** + * Update tags + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + update( + resourceGroupName: string, + registryName: string, + body: PartialRegistryPartialTrackedResource, + options?: RegistriesUpdateOptionalParams + ): Promise; + /** + * Create or update registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistriesCreateOrUpdateResponse + > + >; + /** + * Create or update registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesCreateOrUpdateOptionalParams + ): Promise; + /** + * Remove regions from registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + beginRemoveRegions( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesRemoveRegionsOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistriesRemoveRegionsResponse + > + >; + /** + * Remove regions from registry + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param body Details required to create the registry. + * @param options The options parameters. + */ + beginRemoveRegionsAndWait( + resourceGroupName: string, + registryName: string, + body: Registry, + options?: RegistriesRemoveRegionsOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeContainers.ts new file mode 100644 index 000000000000..f262f9e416f4 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeContainers.ts @@ -0,0 +1,109 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + CodeContainer, + RegistryCodeContainersListOptionalParams, + RegistryCodeContainersDeleteOptionalParams, + RegistryCodeContainersGetOptionalParams, + RegistryCodeContainersGetResponse, + RegistryCodeContainersCreateOrUpdateOptionalParams, + RegistryCodeContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a RegistryCodeContainers. */ +export interface RegistryCodeContainers { + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: RegistryCodeContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeContainersDeleteOptionalParams + ): Promise, void>>; + /** + * Delete Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeContainersDeleteOptionalParams + ): Promise; + /** + * Get Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeContainersGetOptionalParams + ): Promise; + /** + * Create or update Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + codeName: string, + body: CodeContainer, + options?: RegistryCodeContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryCodeContainersCreateOrUpdateResponse + > + >; + /** + * Create or update Code container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + body: CodeContainer, + options?: RegistryCodeContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeVersions.ts new file mode 100644 index 000000000000..ba470187fbda --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryCodeVersions.ts @@ -0,0 +1,141 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + CodeVersion, + RegistryCodeVersionsListOptionalParams, + RegistryCodeVersionsDeleteOptionalParams, + RegistryCodeVersionsGetOptionalParams, + RegistryCodeVersionsGetResponse, + RegistryCodeVersionsCreateOrUpdateOptionalParams, + RegistryCodeVersionsCreateOrUpdateResponse, + PendingUploadRequestDto, + RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams, + RegistryCodeVersionsCreateOrGetStartPendingUploadResponse +} from "../models"; + +/// +/** Interface representing a RegistryCodeVersions. */ +export interface RegistryCodeVersions { + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + codeName: string, + options?: RegistryCodeVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + options?: RegistryCodeVersionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + options?: RegistryCodeVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + options?: RegistryCodeVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + body: CodeVersion, + options?: RegistryCodeVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryCodeVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + body: CodeVersion, + options?: RegistryCodeVersionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Generate a storage location and credential for the client to upload a code asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param codeName Pending upload name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + registryName: string, + codeName: string, + version: string, + body: PendingUploadRequestDto, + options?: RegistryCodeVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentContainers.ts new file mode 100644 index 000000000000..0ff64b3bb428 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentContainers.ts @@ -0,0 +1,109 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ComponentContainer, + RegistryComponentContainersListOptionalParams, + RegistryComponentContainersDeleteOptionalParams, + RegistryComponentContainersGetOptionalParams, + RegistryComponentContainersGetResponse, + RegistryComponentContainersCreateOrUpdateOptionalParams, + RegistryComponentContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a RegistryComponentContainers. */ +export interface RegistryComponentContainers { + /** + * List containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: RegistryComponentContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentContainersDeleteOptionalParams + ): Promise, void>>; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + componentName: string, + body: ComponentContainer, + options?: RegistryComponentContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryComponentContainersCreateOrUpdateResponse + > + >; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + body: ComponentContainer, + options?: RegistryComponentContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentVersions.ts new file mode 100644 index 000000000000..cf3f8025717f --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryComponentVersions.ts @@ -0,0 +1,121 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ComponentVersion, + RegistryComponentVersionsListOptionalParams, + RegistryComponentVersionsDeleteOptionalParams, + RegistryComponentVersionsGetOptionalParams, + RegistryComponentVersionsGetResponse, + RegistryComponentVersionsCreateOrUpdateOptionalParams, + RegistryComponentVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a RegistryComponentVersions. */ +export interface RegistryComponentVersions { + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + componentName: string, + options?: RegistryComponentVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + options?: RegistryComponentVersionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + options?: RegistryComponentVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + options?: RegistryComponentVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + body: ComponentVersion, + options?: RegistryComponentVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryComponentVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param componentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + componentName: string, + version: string, + body: ComponentVersion, + options?: RegistryComponentVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataContainers.ts new file mode 100644 index 000000000000..705ef292f8d8 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataContainers.ts @@ -0,0 +1,109 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + DataContainer, + RegistryDataContainersListOptionalParams, + RegistryDataContainersDeleteOptionalParams, + RegistryDataContainersGetOptionalParams, + RegistryDataContainersGetResponse, + RegistryDataContainersCreateOrUpdateOptionalParams, + RegistryDataContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a RegistryDataContainers. */ +export interface RegistryDataContainers { + /** + * List Data containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: RegistryDataContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataContainersDeleteOptionalParams + ): Promise, void>>; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + name: string, + body: DataContainer, + options?: RegistryDataContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryDataContainersCreateOrUpdateResponse + > + >; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + name: string, + body: DataContainer, + options?: RegistryDataContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataVersions.ts new file mode 100644 index 000000000000..2d77a622ca68 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryDataVersions.ts @@ -0,0 +1,141 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + DataVersionBase, + RegistryDataVersionsListOptionalParams, + RegistryDataVersionsDeleteOptionalParams, + RegistryDataVersionsGetOptionalParams, + RegistryDataVersionsGetResponse, + RegistryDataVersionsCreateOrUpdateOptionalParams, + RegistryDataVersionsCreateOrUpdateResponse, + PendingUploadRequestDto, + RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams, + RegistryDataVersionsCreateOrGetStartPendingUploadResponse +} from "../models"; + +/// +/** Interface representing a RegistryDataVersions. */ +export interface RegistryDataVersions { + /** + * List data versions in the data container + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Data container's name + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + name: string, + options?: RegistryDataVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + options?: RegistryDataVersionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + options?: RegistryDataVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + options?: RegistryDataVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + body: DataVersionBase, + options?: RegistryDataVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryDataVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + body: DataVersionBase, + options?: RegistryDataVersionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Generate a storage location and credential for the client to upload a data asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param name Data asset name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + registryName: string, + name: string, + version: string, + body: PendingUploadRequestDto, + options?: RegistryDataVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentContainers.ts new file mode 100644 index 000000000000..6ab15688b254 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentContainers.ts @@ -0,0 +1,109 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + EnvironmentContainer, + RegistryEnvironmentContainersListOptionalParams, + RegistryEnvironmentContainersDeleteOptionalParams, + RegistryEnvironmentContainersGetOptionalParams, + RegistryEnvironmentContainersGetResponse, + RegistryEnvironmentContainersCreateOrUpdateOptionalParams, + RegistryEnvironmentContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a RegistryEnvironmentContainers. */ +export interface RegistryEnvironmentContainers { + /** + * List environment containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: RegistryEnvironmentContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentContainersDeleteOptionalParams + ): Promise, void>>; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentContainersGetOptionalParams + ): Promise; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + environmentName: string, + body: EnvironmentContainer, + options?: RegistryEnvironmentContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryEnvironmentContainersCreateOrUpdateResponse + > + >; + /** + * Create or update container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + body: EnvironmentContainer, + options?: RegistryEnvironmentContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentVersions.ts new file mode 100644 index 000000000000..9851705d868c --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryEnvironmentVersions.ts @@ -0,0 +1,121 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + EnvironmentVersion, + RegistryEnvironmentVersionsListOptionalParams, + RegistryEnvironmentVersionsDeleteOptionalParams, + RegistryEnvironmentVersionsGetOptionalParams, + RegistryEnvironmentVersionsGetResponse, + RegistryEnvironmentVersionsCreateOrUpdateOptionalParams, + RegistryEnvironmentVersionsCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a RegistryEnvironmentVersions. */ +export interface RegistryEnvironmentVersions { + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + environmentName: string, + options?: RegistryEnvironmentVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + options?: RegistryEnvironmentVersionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + options?: RegistryEnvironmentVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + options?: RegistryEnvironmentVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + body: EnvironmentVersion, + options?: RegistryEnvironmentVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryEnvironmentVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param environmentName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + environmentName: string, + version: string, + body: EnvironmentVersion, + options?: RegistryEnvironmentVersionsCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelContainers.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelContainers.ts new file mode 100644 index 000000000000..86ad54bd7d80 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelContainers.ts @@ -0,0 +1,109 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ModelContainer, + RegistryModelContainersListOptionalParams, + RegistryModelContainersDeleteOptionalParams, + RegistryModelContainersGetOptionalParams, + RegistryModelContainersGetResponse, + RegistryModelContainersCreateOrUpdateOptionalParams, + RegistryModelContainersCreateOrUpdateResponse +} from "../models"; + +/// +/** Interface representing a RegistryModelContainers. */ +export interface RegistryModelContainers { + /** + * List model containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + options?: RegistryModelContainersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelContainersDeleteOptionalParams + ): Promise, void>>; + /** + * Delete container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelContainersDeleteOptionalParams + ): Promise; + /** + * Get container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelContainersGetOptionalParams + ): Promise; + /** + * Create or update model container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + modelName: string, + body: ModelContainer, + options?: RegistryModelContainersCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryModelContainersCreateOrUpdateResponse + > + >; + /** + * Create or update model container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param body Container entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + body: ModelContainer, + options?: RegistryModelContainersCreateOrUpdateOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelVersions.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelVersions.ts new file mode 100644 index 000000000000..3d62005388a3 --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/registryModelVersions.ts @@ -0,0 +1,183 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ModelVersion, + RegistryModelVersionsListOptionalParams, + RegistryModelVersionsDeleteOptionalParams, + RegistryModelVersionsGetOptionalParams, + RegistryModelVersionsGetResponse, + RegistryModelVersionsCreateOrUpdateOptionalParams, + RegistryModelVersionsCreateOrUpdateResponse, + PackageRequest, + RegistryModelVersionsPackageOptionalParams, + RegistryModelVersionsPackageResponse, + PendingUploadRequestDto, + RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams, + RegistryModelVersionsCreateOrGetStartPendingUploadResponse +} from "../models"; + +/// +/** Interface representing a RegistryModelVersions. */ +export interface RegistryModelVersions { + /** + * List versions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + registryName: string, + modelName: string, + options?: RegistryModelVersionsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + options?: RegistryModelVersionsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + options?: RegistryModelVersionsDeleteOptionalParams + ): Promise; + /** + * Get version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + options?: RegistryModelVersionsGetOptionalParams + ): Promise; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: ModelVersion, + options?: RegistryModelVersionsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryModelVersionsCreateOrUpdateResponse + > + >; + /** + * Create or update version. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. + * @param version Version identifier. + * @param body Version entity to create or update. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: ModelVersion, + options?: RegistryModelVersionsCreateOrUpdateOptionalParams + ): Promise; + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + beginPackage( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: PackageRequest, + options?: RegistryModelVersionsPackageOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RegistryModelVersionsPackageResponse + > + >; + /** + * Model Version Package operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Container name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Package operation request body. + * @param options The options parameters. + */ + beginPackageAndWait( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: PackageRequest, + options?: RegistryModelVersionsPackageOptionalParams + ): Promise; + /** + * Generate a storage location and credential for the client to upload a model asset to. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param registryName Name of Azure Machine Learning registry. This is case-insensitive + * @param modelName Model name. This is case-sensitive. + * @param version Version identifier. This is case-sensitive. + * @param body Pending upload request object + * @param options The options parameters. + */ + createOrGetStartPendingUpload( + resourceGroupName: string, + registryName: string, + modelName: string, + version: string, + body: PendingUploadRequestDto, + options?: RegistryModelVersionsCreateOrGetStartPendingUploadOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts index aaa2ce6be834..71b7e146765d 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/schedules.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Schedule, SchedulesListOptionalParams, @@ -44,7 +44,7 @@ export interface Schedules { workspaceName: string, name: string, options?: SchedulesDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Delete schedule. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -86,8 +86,8 @@ export interface Schedules { body: Schedule, options?: SchedulesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, SchedulesCreateOrUpdateResponse > >; diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/serverlessEndpoints.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/serverlessEndpoints.ts new file mode 100644 index 000000000000..900951e9b90e --- /dev/null +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/serverlessEndpoints.ts @@ -0,0 +1,200 @@ +/* + * 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + ServerlessEndpoint, + ServerlessEndpointsListOptionalParams, + ServerlessEndpointsDeleteOptionalParams, + ServerlessEndpointsGetOptionalParams, + ServerlessEndpointsGetResponse, + PartialMinimalTrackedResourceWithSkuAndIdentity, + ServerlessEndpointsUpdateOptionalParams, + ServerlessEndpointsUpdateResponse, + ServerlessEndpointsCreateOrUpdateOptionalParams, + ServerlessEndpointsCreateOrUpdateResponse, + ServerlessEndpointsListKeysOptionalParams, + ServerlessEndpointsListKeysResponse, + RegenerateEndpointKeysRequest, + ServerlessEndpointsRegenerateKeysOptionalParams, + ServerlessEndpointsRegenerateKeysResponse +} from "../models"; + +/// +/** Interface representing a ServerlessEndpoints. */ +export interface ServerlessEndpoints { + /** + * List Serverless Endpoints. + * @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?: ServerlessEndpointsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Delete Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsDeleteOptionalParams + ): Promise, void>>; + /** + * Delete Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsDeleteOptionalParams + ): Promise; + /** + * Get Serverless Endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsGetOptionalParams + ): Promise; + /** + * Update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: ServerlessEndpointsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ServerlessEndpointsUpdateResponse + > + >; + /** + * Update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: PartialMinimalTrackedResourceWithSkuAndIdentity, + options?: ServerlessEndpointsUpdateOptionalParams + ): Promise; + /** + * Create or update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + workspaceName: string, + name: string, + body: ServerlessEndpoint, + options?: ServerlessEndpointsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ServerlessEndpointsCreateOrUpdateResponse + > + >; + /** + * Create or update Serverless Endpoint (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body Serverless Endpoint entity to apply during operation. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: ServerlessEndpoint, + options?: ServerlessEndpointsCreateOrUpdateOptionalParams + ): Promise; + /** + * List EndpointAuthKeys for an Endpoint using Key-based authentication. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + name: string, + options?: ServerlessEndpointsListKeysOptionalParams + ): Promise; + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + beginRegenerateKeys( + resourceGroupName: string, + workspaceName: string, + name: string, + body: RegenerateEndpointKeysRequest, + options?: ServerlessEndpointsRegenerateKeysOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + ServerlessEndpointsRegenerateKeysResponse + > + >; + /** + * Regenerate EndpointAuthKeys for an Endpoint using Key-based authentication (asynchronous). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName Name of Azure Machine Learning workspace. + * @param name Serverless Endpoint name. + * @param body RegenerateKeys request . + * @param options The options parameters. + */ + beginRegenerateKeysAndWait( + resourceGroupName: string, + workspaceName: string, + name: string, + body: RegenerateEndpointKeysRequest, + options?: ServerlessEndpointsRegenerateKeysOptionalParams + ): Promise; +} diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts index 1b33ac27cf3e..e49c60c40245 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaceConnections.ts @@ -10,17 +10,22 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { WorkspaceConnectionPropertiesV2BasicResource, WorkspaceConnectionsListOptionalParams, - WorkspaceConnectionsCreateOptionalParams, - WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsDeleteOptionalParams, WorkspaceConnectionsGetOptionalParams, WorkspaceConnectionsGetResponse, - WorkspaceConnectionsDeleteOptionalParams + WorkspaceConnectionsUpdateOptionalParams, + WorkspaceConnectionsUpdateResponse, + WorkspaceConnectionsCreateOptionalParams, + WorkspaceConnectionsCreateResponse, + WorkspaceConnectionsListSecretsOptionalParams, + WorkspaceConnectionsListSecretsResponse } from "../models"; /// /** Interface representing a WorkspaceConnections. */ export interface WorkspaceConnections { /** + * Lists all the available machine learning workspaces connections under the 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. @@ -31,20 +36,20 @@ export interface WorkspaceConnections { options?: WorkspaceConnectionsListOptionalParams ): PagedAsyncIterableIterator; /** + * Delete machine learning workspaces connections by name. * @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( + delete( resourceGroupName: string, workspaceName: string, connectionName: string, - parameters: WorkspaceConnectionPropertiesV2BasicResource, - options?: WorkspaceConnectionsCreateOptionalParams - ): Promise; + options?: WorkspaceConnectionsDeleteOptionalParams + ): Promise; /** + * Lists machine learning workspaces connections by name. * @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 @@ -57,15 +62,42 @@ export interface WorkspaceConnections { options?: WorkspaceConnectionsGetOptionalParams ): Promise; /** + * Update machine learning workspaces connections under the specified workspace. * @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( + update( resourceGroupName: string, workspaceName: string, connectionName: string, - options?: WorkspaceConnectionsDeleteOptionalParams - ): Promise; + options?: WorkspaceConnectionsUpdateOptionalParams + ): Promise; + /** + * Create or update machine learning workspaces connections under the specified workspace. + * @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. + */ + create( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsCreateOptionalParams + ): Promise; + /** + * List all the secrets of a machine learning workspaces connections. + * @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. + */ + listSecrets( + resourceGroupName: string, + workspaceName: string, + connectionName: string, + options?: WorkspaceConnectionsListSecretsOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts index 39e9d916b20b..d3a302f393b2 100644 --- a/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/operationsInterfaces/workspaces.ts @@ -7,39 +7,46 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { Workspace, - WorkspacesListByResourceGroupOptionalParams, WorkspacesListBySubscriptionOptionalParams, + WorkspacesListByResourceGroupOptionalParams, + WorkspacesDeleteOptionalParams, WorkspacesGetOptionalParams, WorkspacesGetResponse, - WorkspacesCreateOrUpdateOptionalParams, - WorkspacesCreateOrUpdateResponse, - WorkspacesDeleteOptionalParams, WorkspaceUpdateParameters, WorkspacesUpdateOptionalParams, WorkspacesUpdateResponse, + WorkspacesCreateOrUpdateOptionalParams, + WorkspacesCreateOrUpdateResponse, WorkspacesDiagnoseOptionalParams, WorkspacesDiagnoseResponse, WorkspacesListKeysOptionalParams, WorkspacesListKeysResponse, - WorkspacesResyncKeysOptionalParams, WorkspacesListNotebookAccessTokenOptionalParams, WorkspacesListNotebookAccessTokenResponse, - WorkspacesPrepareNotebookOptionalParams, - WorkspacesPrepareNotebookResponse, - WorkspacesListStorageAccountKeysOptionalParams, - WorkspacesListStorageAccountKeysResponse, WorkspacesListNotebookKeysOptionalParams, WorkspacesListNotebookKeysResponse, + WorkspacesListStorageAccountKeysOptionalParams, + WorkspacesListStorageAccountKeysResponse, WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams, - WorkspacesListOutboundNetworkDependenciesEndpointsResponse + WorkspacesListOutboundNetworkDependenciesEndpointsResponse, + WorkspacesPrepareNotebookOptionalParams, + WorkspacesPrepareNotebookResponse, + WorkspacesResyncKeysOptionalParams } from "../models"; /// /** Interface representing a Workspaces. */ export interface Workspaces { + /** + * Lists all the available machine learning workspaces under the specified subscription. + * @param options The options parameters. + */ + listBySubscription( + options?: WorkspacesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; /** * 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. @@ -50,107 +57,100 @@ export interface Workspaces { 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. + * 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. */ - get( + beginDelete( resourceGroupName: string, workspaceName: string, - options?: WorkspacesGetOptionalParams - ): Promise; + options?: WorkspacesDeleteOptionalParams + ): Promise, void>>; /** - * Creates or updates a workspace with the specified parameters. + * 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 creating or updating a machine learning workspace. * @param options The options parameters. */ - beginCreateOrUpdate( + beginDeleteAndWait( resourceGroupName: string, workspaceName: string, - parameters: Workspace, - options?: WorkspacesCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - WorkspacesCreateOrUpdateResponse - > - >; + options?: WorkspacesDeleteOptionalParams + ): Promise; /** - * Creates or updates a workspace with the specified parameters. + * 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 parameters The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - beginCreateOrUpdateAndWait( + get( resourceGroupName: string, workspaceName: string, - parameters: Workspace, - options?: WorkspacesCreateOrUpdateOptionalParams - ): Promise; + options?: WorkspacesGetOptionalParams + ): Promise; /** - * Deletes a machine learning workspace. + * 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 body The parameters for updating a machine learning workspace. * @param options The options parameters. */ - beginDelete( + beginUpdate( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams - ): Promise, void>>; + body: WorkspaceUpdateParameters, + options?: WorkspacesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + WorkspacesUpdateResponse + > + >; /** - * Deletes a machine learning workspace. + * 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 body The parameters for updating a machine learning workspace. * @param options The options parameters. */ - beginDeleteAndWait( + beginUpdateAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams - ): Promise; + body: WorkspaceUpdateParameters, + options?: WorkspacesUpdateOptionalParams + ): Promise; /** - * Updates a machine learning workspace with the specified parameters. + * 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 updating a machine learning workspace. + * @param body The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - beginUpdate( + beginCreateOrUpdate( resourceGroupName: string, workspaceName: string, - parameters: WorkspaceUpdateParameters, - options?: WorkspacesUpdateOptionalParams + body: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, - WorkspacesUpdateResponse + SimplePollerLike< + OperationState, + WorkspacesCreateOrUpdateResponse > >; /** - * Updates a machine learning workspace with the specified parameters. + * 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 updating a machine learning workspace. + * @param body The parameters for creating or updating a machine learning workspace. * @param options The options parameters. */ - beginUpdateAndWait( + beginCreateOrUpdateAndWait( resourceGroupName: string, workspaceName: string, - parameters: WorkspaceUpdateParameters, - options?: WorkspacesUpdateOptionalParams - ): Promise; + body: Workspace, + options?: WorkspacesCreateOrUpdateOptionalParams + ): Promise; /** * Diagnose workspace setup issue. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -162,8 +162,8 @@ export interface Workspaces { workspaceName: string, options?: WorkspacesDiagnoseOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesDiagnoseResponse > >; @@ -180,7 +180,7 @@ export interface Workspaces { ): Promise; /** * Lists all the keys associated with this workspace. This includes keys for the storage account, app - * insights and password for container registry + * 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. @@ -191,42 +191,52 @@ export interface Workspaces { 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 + * Get Azure Machine Learning Workspace notebook access 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. */ - beginResyncKeys( + listNotebookAccessToken( resourceGroupName: string, workspaceName: string, - options?: WorkspacesResyncKeysOptionalParams - ): Promise, void>>; + options?: WorkspacesListNotebookAccessTokenOptionalParams + ): Promise; /** - * Resync all the keys associated with this workspace. This includes keys for the storage account, app - * insights and password for container registry + * Lists keys of Azure Machine Learning Workspaces 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. */ - beginResyncKeysAndWait( + listNotebookKeys( resourceGroupName: string, workspaceName: string, - options?: WorkspacesResyncKeysOptionalParams - ): Promise; + options?: WorkspacesListNotebookKeysOptionalParams + ): Promise; /** - * return notebook access token and refresh token + * Lists keys of Azure Machine Learning Workspace's storage account. * @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( + listStorageAccountKeys( resourceGroupName: string, workspaceName: string, - options?: WorkspacesListNotebookAccessTokenOptionalParams - ): Promise; + options?: WorkspacesListStorageAccountKeysOptionalParams + ): Promise; /** - * Prepare a notebook. + * 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; + /** + * Prepare Azure Machine Learning Workspace's notebook resource * @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. @@ -236,13 +246,13 @@ export interface Workspaces { workspaceName: string, options?: WorkspacesPrepareNotebookOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, WorkspacesPrepareNotebookResponse > >; /** - * Prepare a notebook. + * Prepare Azure Machine Learning Workspace's notebook resource * @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. @@ -253,37 +263,27 @@ export interface Workspaces { 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. + * 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. */ - listNotebookKeys( + beginResyncKeys( resourceGroupName: string, workspaceName: string, - options?: WorkspacesListNotebookKeysOptionalParams - ): Promise; + options?: WorkspacesResyncKeysOptionalParams + ): Promise, void>>; /** - * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) - * programmatically. + * 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. */ - listOutboundNetworkDependenciesEndpoints( + beginResyncKeysAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspacesListOutboundNetworkDependenciesEndpointsOptionalParams - ): Promise; + options?: WorkspacesResyncKeysOptionalParams + ): Promise; } diff --git a/sdk/machinelearning/arm-machinelearning/src/pagingHelper.ts b/sdk/machinelearning/arm-machinelearning/src/pagingHelper.ts index d85fc13bce1e..269a2b9814b5 100644 --- a/sdk/machinelearning/arm-machinelearning/src/pagingHelper.ts +++ b/sdk/machinelearning/arm-machinelearning/src/pagingHelper.ts @@ -13,11 +13,11 @@ export interface PageInfo { const pageMap = new WeakMap(); /** - * Given a result page from a pageable operation, returns a - * continuation token that can be used to begin paging from + * Given the last `.value` produced by the `byPage` iterator, + * returns a continuation token that can be used to begin paging from * that point later. - * @param page A result object from calling .byPage() on a paged operation. - * @returns The continuation token that can be passed into byPage(). + * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. + * @returns The continuation token that can be passed into byPage() during future calls. */ export function getContinuationToken(page: unknown): string | undefined { if (typeof page !== "object" || page === null) { diff --git a/sdk/machinelearning/arm-machinelearning/tsconfig.json b/sdk/machinelearning/arm-machinelearning/tsconfig.json index c068b7a47837..3e6ae96443f3 100644 --- a/sdk/machinelearning/arm-machinelearning/tsconfig.json +++ b/sdk/machinelearning/arm-machinelearning/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-machinelearning": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"